https://bugs.kde.org/show_bug.cgi?id=356225
--- Comment #162 from achat1...@free.fr --- I upgraded to Plasma 5.7.2, Qt 5.7.0, and framework 5.24 and still experiencing multi-screen issues. However, I noticed a significant improvement. My case is fairy simple, I always want all widgets and panels on my primary screen (i.e. screen 0) which is either my laptop screen if no external monitor is connected, or the external monitor if it is connected (I use HDMI screen at home and VGA at work). Kscreen does remember that choice of primary display. Also in terms of widgets and panels, I have some notes and folder views and 3 panels (one on the top, one on the bottom and one on the left). My external screen is always placed on the left of my laptop. For months I have been using the bash and ruby scripts I made, and running it after either plugging or unplugging the external screen always worked (100%) in restoring my desktop as I want it. BEFORE UPGRADING, plugging or unplugging a screen seem to change the LastScreen lines in ~/.config/plasma-org.kde.plasma.desktop-appletsrc, in the sections containing "org.kde.panel". Therefore, the ruby script reads the ~/.config/plasma-org.kde.plasma.desktop-appletsrc and changes LastScreen=1 to LastScreen=0 (since I want all panels on Screen 0 all the time) for sections containing "org.kde.panel", and then the bash script restarts plasma and my desktop got restored perfectly. Problem still present after latest upgrade: When I plug an external monitor, my laptop screen goes black and the external monitor has some widgets and panels on it but not all. When I am on two screens and I made it so it is all good, and then I unplug the external monitor, my laptop screen displays the right config (all widget and panels) for just half a second and then the screen flickers and I end up with only some widgets (although sometimes none) and panels (usually only the top one but also sometimes none). However, I do not need the ruby script anymore, but just need to restart plasma using: kquitapp5 plasmashell /usr/bin/plasmashell --shut-up in a bash script, and my desktop reappears perfectly! Hence the file ~/.config/plasma-org.kde.plasma.desktop-appletsrc does seem to now record the right config when plugging and unplugging :) :) However, it seems that the file/config is not being read automatically after plugging or unplugging a monitor, hence the desktop being messed up. -- You are receiving this mail because: You are watching all bug changes.