Primary monitor changes after waking up

I am running Plasma desktop on Tumbleweed and am updated to the latest. My laptop is i7 with 16Gb RAM and GTX1650i graphics card (Legion 5). I am running KDE on X11. I have an external monitor connected as extended display to the left.

Since past few weeks, whenever I woke my laptop from sleep (by opening the lid) the external monitor becomes the primary screen while the built-in monitor becomes the secondary despite me setting it in the System Setting panel.
There was a thread discussion, a few year back, that told to delete the contents of ~/.local/share/kscreen/ to restore to default setting and then it will remember the primary screen. It worked right after I did it but the second time onwards it reverts to the external monitor.

Has anyone else come across this problem? Has anyone got any solution to this?

Did you do this while logged out of Plasma session?

Have you tried, while logged out of Plasma session, deleting ~/.cache/*?

Hi. Yes, I logged out and deleted the files on a TTY screen.

I did not delete .cache/ directory. I will try this and get back to you.

I deleted the .cache directrory only this time and until now, the primary screen hasn’t changed yet. Looks like this could be the solution to the porblem.