You are not logged in.
Hey, I've been having the problem with Arch and KDE for a few weeks that when I want to turn off or restart my PC, my screen freezes and only after ~40 seconds the PC quits/restarts.
If I log out before shutting down/restarting, it is normally fast.
With “journalctl -b -1” I was able to find out that the time is lost when the “plasma-plasmashell.service” is terminated (but not 100% sure about this).
Apr 20 21:20:08 Threepwood systemd[1]: coolercontrold.service: Consumed 9.849s CPU time, 76.1M memory peak.
Apr 20 21:20:48 Threepwood systemd[898]: plasma-plasmashell.service: State 'stop-sigterm' timed out. Killing.
....
Apr 20 21:20:48 Threepwood systemd[898]: plasma-plasmashell.service: Failed with result 'timeout'.
Furthermore I could find out that if I delete the KDE desktop settings “plasma-org.kde.plasma.desktop-appletsrc”, reboot once (takes a long time again), then the next reboot is fast but only this one , the next reboot is slow again (without changing anything on the system).
I've been searching for a while but haven't found a solution yet, except that I might kill the “plasma-plasmashell.service” on shutdown but I don't find that a particularly good solution, does anyone have an idea how I can fix this?
AMD Ryzen 7 9800X3D @ 5.22 GHz
NVIDIA GeForce RTX 5080
nvidia (open source) 570.133.07
Arch Linux Kernel 6.14.3-arch1-1
KWin (Wayland)
Last edited by HelmchenLord (Yesterday 13:27:35)
Offline
plasmashell doesn't die on a sigterm and it seems to hinge on some plasma desktop widget thingy.
Does plasma-org.kde.plasma.desktop-appletsrc get recreated? What does it look like?
Offline
Yes, the plasma-org.kde.plasma.desktop-appletsrc is created again after logging in.
Here is my current plasma-org.kde.plasma.desktop-appletsrc: https://paste.c-net.org/BanjoCasinos
Offline
Image=/media/Data/Daten/Wallpaper/abstract_low_poly_plexus_design_background_2303.jpg
I assume /media/Data/Daten isn't on the root or /home partition? What if you use a wallpaper from /usr/share/wallpapers ? (You can jsut copy this one there)
* plugin=org.kde.plasma.devicenotifier
* plugin=org.kde.plasma.cameraindicator
* plugin=org.kde.plasma.vault
These I could imagine causing trouble as well
Offline
By deleting the plasma-org.kde.plasma.desktop-appletsrc, the background image is also reset to the default, I don't think that can be the problem.
I would say these plugins are included by default, should I remove them? If so, I could not find out how to do it.
Offline
So this has happened w/o altering the defaults at all?
Is the workaround reproducible?
If so, can you reboot fast multiple times if everytime after the login you do absolutely nothing but immediately reboot again?
Also post the journal for a boot w/ a slow reboot/shutdown - the system default timeout is 90s and maybe something acts up before to explain why plasmashell doesn't terminate. Or maybe there's a crash before and the process restarts and therefore doesn't terminate.
We'll see… hopefully.
Offline
It seems that it was just a coincidence with deleting the plasma-org.kde.plasma.desktop-appletsrc, this time it didn't help.
If I restart several times without doing anything, it is usually slow and rarely fast.
But I had two quick reboots without doing anything different than usual.
Here is the output from "sudo journalctl -b -1" of the slow reboot: https://paste.c-net.org/RussoEyesight
And here from the fast one: https://paste.c-net.org/RemorayProtests
Offline
Bad:
Apr 25 18:12:55 Threepwood systemd[902]: Stopped PipeWire Multimedia Service.
Apr 25 18:12:55 Threepwood kwin_wayland[980]: kwin_screencast: PipeWire remote error: connection error
Apr 25 18:13:35 Threepwood systemd[902]: Closed PipeWire PulseAudio.
…
Apr 25 18:13:35 Threepwood systemd[902]: plasma-plasmashell.service: State 'stop-sigterm' timed out. Killing.
Apr 25 18:13:35 Threepwood systemd[902]: plasma-plasmashell.service: Killing process 1096 (plasmashell) with signal SIGKILL.
Apr 25 18:13:35 Threepwood systemd[902]: plasma-plasmashell.service: Killing process 1255 (n/a) with signal SIGKILL.
Apr 25 18:13:35 Threepwood systemd[902]: plasma-plasmashell.service: Killing process 1260 (n/a) with signal SIGKILL.
Apr 25 18:13:35 Threepwood systemd[902]: plasma-plasmashell.service: Killing process 1293 (n/a) with signal SIGKILL.
Apr 25 18:13:35 Threepwood systemd[902]: plasma-plasmashell.service: Killing process 1307 (KIO::WorkerThre) with signal SIGKILL.
Apr 25 18:13:35 Threepwood systemd[902]: plasma-plasmashell.service: Main process exited, code=killed, status=9/KILL
Apr 25 18:13:35 Threepwood systemd[902]: plasma-plasmashell.service: Failed with result 'timeout'.
Good:
Apr 25 18:10:09 Threepwood systemd[905]: Stopped PipeWire Multimedia Service.
Apr 25 18:10:09 Threepwood systemd[905]: pipewire.service: Consumed 1.470s CPU time, 12.5M memory peak.
Apr 25 18:10:09 Threepwood kwin_wayland[992]: kwin_screencast: PipeWire remote error: connection error
Apr 25 18:10:09 Threepwood kwin_wayland[992]: kwin_wayland_drm: atomic commit failed: Keine Berechtigung
Apr 25 18:10:09 Threepwood plasmashell[1147]: file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/PlasmoidItem.qml:24: TypeError: Cannot read property 'toolTipMainText' of null
Apr 25 18:10:09 Threepwood plasmashell[1147]: file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/PlasmoidItem.qml:24: TypeError: Cannot read property 'toolTipMainText' of null
Apr 25 18:10:09 Threepwood plasmashell[1147]: kpipewire_logging: PipeWire remote error: -32 connection error
Apr 25 18:10:09 Threepwood kded6[1133]: kf.notifications: Had queued notifications on destruction. Was the eventloop running?
Apr 25 18:10:09 Threepwood plasmashell[1147]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:130: TypeError: Cannot read property 'screenGeometry' of null
Apr 25 18:10:09 Threepwood systemd[905]: Stopped KDE Daemon 6.
Bad:
Apr 25 18:12:15 Threepwood plasmashell[1096]: error creating screencast "Could not find window id {2c1d236a-2c4b-4346-b5ea-5bc339d74328}"
Apr 25 18:12:31 Threepwood plasmashell[1096]: error creating screencast "Could not find window id {e993908b-7b37-4b8c-b179-382f70cedb4b}"
Apr 25 18:12:55 Threepwood kwin_wayland[980]: kwin_screencast: PipeWire remote error: connection error
Apr 25 18:12:55 Threepwood plasmashell[1096]: error creating screencast "Could not find window id {faf55b87-e06a-4120-a34e-91dd83dab376}"
Good:
Apr 25 18:10:09 Threepwood kwin_wayland[992]: kwin_screencast: PipeWire remote error: connection error
Any idea what that is?
Offline
No idea what the screencast or PipeWire errors mean, couldn't find anything online that would have helped me.
The errors also appear in the log when the reboot is quick.
I also have a quick reboot log, which also contains the screencast and PipeWire errors: https://paste.c-net.org/SteppeMorose
Offline
Are you running a screencast?
Anyway w/ the other journal that's likely a red herring.
plasmashell is hanging in some kio worker thread, judging from https://bugs.kde.org/show_bug.cgi?id=499382 (not your bug, just a backtrace) likely some socket.
https://bbs.archlinux.org/viewtopic.php?id=297882 blames a bogus QT_QPA_PLATFORMTHEME environment
Ftr, https://www.reddit.com/r/archlinux/comm … ownrestart is you but https://www.reddit.com/r/kde/comments/1 … erm_timed/ seems a similar problem
Offline
No, I do not use Screencast.
I had already looked at the two links initially when looking for a solution.
I have not set QT_QPA_PLATFORMTHEME and kdeidletime5 is not running on my system, only kdeidletime6.
I had already seen the idea with the script and that would probably be a workaround but not a real solution to the problem.
If I can't find a solution, I would try the script but I'm not a big fan of that.
Offline