Every once in a while it appears that plasmashell hangs and all I see is a blank dark screen. I can use the Ctrl-Alt-F5 key combination to go to a different tty. Say, tty1 was where I was on origially, and now I have launched tty5. I would like to be able to restart plasmashell on tty1 from tty5. I looked at this post but could not get it to work. When I run the command w from tty5, I see that tty1 has:
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
vamsi tty1 - 07:44 15:50m 0.02s 0.02s /usr/bin/startplasma-wayland
So, may be I am supposed to run something related to plasma-wayland? But I am not sure what that command is.
Try using systemctl --user restart plasma-plasmashell.service to restart plasmashell.
If it turns out you actually need to restart kwin under wayland, you could try systemctl --user restart plasma-kwin_wayland.service, though I donât know how that will fare as far as keeping applications open or if some of them will be closed when you do that.
Thanks, that seems to have worked. But did not do exactly what I was hoping for. Typically when it hangs, I would have a bunch of windows, say Chrome and VS Code, open that I would like to preserve. Is that possible?
You can emulate what the âlogoutâ widget does from the KDE desktop but instead via command line (like you could run this from that tty):
qdbus-qt6 org.kde.Shutdown /Shutdown logout
Youâd just need to make sure package âqt6-qttoolsâ is installed to have âqdbus-qt6â command available.
After it logouts out, then login again. If âSystem Settingsâ â âSessionâ â âDesktop Sessionâ has âSession Restoreâ set to have âOn last logoutâ checked, your apps and windows should be there.
Ah, thatâs good to know, and also interesting, since my understanding based on using X11 has been that youâre better off to use systemctl --user restart plasma-kwin_x11.service rather than kwin_x11 --replace, or is that incorrect?
This was also why I thought that restarting kwin_wayland via systemctl was the more correct approach.
The issue I am facing was reported here: Plasma 6.2: Black screen on wakeup
In my case, itâs not a laptop but everything else is the same. I am watching that issue to see if there is a fix.