Problem after removing second display

I have being working with two displays with no trouble, I even configured the secondary screen to be located on top of the primary and it was awesome.
After unplugging the second screen, the problem started: now everytime I login to plasma session the screen looks distorted, like some kind of graphic fail, and the mouse pointer is locked to the top of the screen (I can only move it horizontally), since then I cannot use anything on the plasma session and the only way to get out is using ctrl+alt+backspace twice

Fixes I’ve tried so far (with no success):

  • Configured screens to disable secondary screen with the secondary screen plugged and restarted
  • Configured screens to disable secondary screen with the secondary screen unplugged and restarted
  • Configured screens to disable secondary screen with the secondary screen plugged, turned off, unplugged, turned on
  • Relocating the secondary screen before disabling it to be to the right of the primary screen, then disabling it
  • Relocating the secondary screen before disabling it to be a clone output of the primary screen, then disabling it
  • Used snapper, it rolls back every change but screen config

Fix that worked but not a definitive solution:

  • Plugging back the secondary screen and working with two screens: Right now this is the only way to login to plasma and use it without any issues

The login screen works fine
Right now I’m on IceWM because it doesn’t have the problem I explained, the problem only happens on plasma session.

My specs:

  • Notebook: Asus Republic of Gamers GL551JM
  • Video card: GTX 860M
  • Optimus driver
  • OpenSuse Leap 42.1 x64

after some googling i found the solution:

  • removing ~/.local/share/kscreen
  • login to plasma

screen works fine now

shouldn’t this issue be fixed by kde’s screen setup?

Yes, it should.

But currently multi-monitor handling is still buggy, at least partly due to limitations in Qt 5.5.
It should be better with Qt 5.6 (and especially in combination with Plasma 5.7 which will be released in July).