The panel and desktop configruation of a monitor can get 'lost' after a ScreenConnectors renumbering, requiring manual editing of plasmashellrc to restore.
STEPS TO REPRODUCE
On my dual-monitor setup ~/.config/plasmashellrc looks like this:
DisplayPort-0 is the left display, DisplayPort-1 on the right.
1. Starting x0tigervncserver and connecting from another computer with TigerVNC Viewer 1.11.0 & the "Resize remote session to the local window" option checked ends up with DisplayPort-0 being resized to 800x600 and DisplayPort-1 being shut off. plasmashellrc ends up looking like this:
No idea where :0.0 came from during that but it's apparently the primary connector now.
2. Disconnecting from VNC & and using the "Display Configuration" applet to re-enable & re-arrange both monitors like they were before gives me:
Now the panel/desktop config for slot 1 is 'lost', stuck on :0.0. DisplayPort-1 ends up using a default panel & desktop config.
I didn't see an obvious way to fix this situation in any of the System Settings applets. Editing plasmashellrc to put DisplayPort-1 back on slot 1 like it was in step #1 and restarting plasmashell restores the 'lost' panel/desktop config for DisplayPort-1.
Ideally once I set things back up in the "Display Configuration" applet then DisplayPort-1 would end up back on slot 1 somehow and my panel/desktop config for that monitor would be restored.
Kubuntu 20.04, amd64
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.4.0-45-generic
This patch fixes things for me:
Thanks! Can you please submit that as a merge request? See https://community.kde.org/Infrastructure/GitLab
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/352
*** Bug 416739 has been marked as a duplicate of this bug. ***
*** Bug 425897 has been marked as a duplicate of this bug. ***
Same issue, I believe. Would love to see this fixed!
After a couple of months of tranquility, the issue suddenly reappeared a month ago, with a vengeance :-(
And now it's stuff on *both* monitors that goes wonky.
- Task managers set up to show only tasks from current screen suddenly show stuff from other screen, and only stuff from the other screen (i.e. the task manager on left hand screen shows tasks from right hand screen, and the task manager on right hand screen shows stuff from left hand screen)
- Spacers disappear (i.e. systray and clock move flush left against whatever stuff is on the left hand side of the panel, rather than staying at the right border)
- Occasionally panels disappear altogether (or move to hide under the equivalent panel on the other screen)
- Clock widgets configured to show seconds suddenly no longer show seconds
- Full screen applications move to the other screen
Time to bring out that handy restartPlasmaShell script again, and add a shortcut to it to the panel:
nohup plasmashell >/dev/null 2>&1 </dev/null &
Ironically enough, occasionally that shortcut disappears to :-)
(Just adding myself to the Ccs. Same issue, up-to-date kubuntu 21.10, installed yesterday. Seems related to external monitor and doesn't reproducibly happen with each restart. Will evaluate the workarounds outlined here and see what happens...)
Wondering, though, whether there's a more reliable workaround for that. Restarting plasma seems to work just sometimes, but sometimes the panel just won't re-appear or apparently there's no way of making it show up again, leaving adding a new panel (and reconfiguring everything inside) the only option. That's pretty tedious if one has a customized panel. :(
(In reply to Kristian Rink from comment #10)
> Wondering, though, whether there's a more reliable workaround for that.
> Restarting plasma seems to work just sometimes, but sometimes the panel just
> won't re-appear or apparently there's no way of making it show up again,
> leaving adding a new panel (and reconfiguring everything inside) the only
> option. That's pretty tedious if one has a customized panel. :(
After reconfiguring everything as I need it, I store a backup copy of plasma-org.kde.plasma.desktop-appletsrc and plasmashellrc, and the restore those in my restart script:
cp -a $HOME/.config/PlasmaBackup/* $HOME/.config/
nohup plasmashell >/dev/null 2>&1 </dev/null &
Of course, after performing a *wanted* change, I have to copy the files over to the reference again.
(In reply to Alain Knaff from comment #11)
> (In reply to Kristian Rink from comment #10)
> > Wondering, though, whether there's a more reliable workaround for that.
> > Restarting plasma seems to work just sometimes, but sometimes the panel just
> > won't re-appear or apparently there's no way of making it show up again,
> > leaving adding a new panel (and reconfiguring everything inside) the only
> > option. That's pretty tedious if one has a customized panel. :(
> After reconfiguring everything as I need it, I store a backup copy of
> plasma-org.kde.plasma.desktop-appletsrc and plasmashellrc, and the restore
> those in my restart script:
> #kquitapp plasmashell
> killall plasmashell
> cp -a $HOME/.config/PlasmaBackup/* $HOME/.config/
> nohup plasmashell >/dev/null 2>&1 </dev/null &
> Of course, after performing a *wanted* change, I have to copy the files over
> to the reference again.
Ah cool, thanks, that should do for my purposes too. Not changing desktop too often once it has been set up anyway. :)
Same issue here, and it occurs randomly every now and then... The workaround I've found so far is to:
- kquitapp5 plasmashell
- Edit ~/.config/plasmashellrc and remove all entries under [ScreenConnectors]
- kstart5 plasmashell && kquitapp5 plasmashell
- Read ~/.config/plasmashellrc [ScreenConnectors] to get new screen numbers
- Edit ~/.config/plasma-org.kde.plasma.desktop-appletsrc and manually set lastScreen values for Containments as needed.
- kstart5 plasmashell
Maybe my issue is connected to this one:
I have two screens and use a KVM to switch between two PCs. I can consistently reproduce the problem by switching the PCs. Every time I switch from my main PC to my work-laptop and back, my second screen has lost its panel and configurations. If I switch to my laptop and PC AGAIN, everything is back the way it was. So every uneven switch, I lose my settings and every even switch I get them back.
I'm using KDE Plasma 5.23.5 with KDE neon 20.04.
Same problem here with plasma-worskpace-5.18.5-0ubuntu0.1
I have two monitors (occasionally adding a hdmi TV with another graphic card). My panel is vertical on the left of the left monitor.
The problem occurs randomly after the monitors went to powersave mode (or manually turned off).
Maybe it could be important, I had to switch the default order of the monitors (DisplayPort-1 is on the left and DisplayPort-0 on the right). And again randomly, I sometimes have to redo that operation (and sometimes one of the monitor is disabled in the system settings).
I don't know if I could be more helpful but this bug drives me crazy :'(
This should be fixed in Plasma 5.25 with a big refactor of how screens are handled. Unfortunately the change was to large to be backportable to 5.24.something.
*** Bug 450446 has been marked as a duplicate of this bug. ***
Good news: we backported it to 5.24.3. :)
The screen setup is now maintained OK, but the wallpaper (different on primary screen) and the plasma widgets on are lost after rebooting.
It's probably a slightly different issue, unless you can point to unnecessary renumbering in the [ScreenConnectors] group of your ~/.config/plasmashellrc file as specifically still happening. If not, can you file a new bug report?
The screen connectors are fine, so it really seems to be a different (new) problem.
(In reply to Syiad from comment #21)
> The screen connectors are fine, so it really seems to be a different (new)
You might be having the same error I am getting. The symptoms are already described in another (quite old) bugreport:
Maybe the panel disappearing and the background disappearing are two separate bugs that get triggered at the same time.