Bug 434735

Summary: Long logout and shutdown
Product: [Unmaintained] ksmserver Reporter: juri26
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED FIXED    
Severity: normal CC: nate, plasma-bugs
Priority: NOR    
Version: 5.21.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In: 5.22
Sentry Crash Report:

Description juri26 2021-03-21 22:13:35 UTC
My logout or shutdown often takes forever (something like 30 seconds) or never finishes at all. When i click on shutdown or on logout the first thing that happens is: nothing. Then after a short time the monitor goes black with just the cursor and a few still open programs on it. But i can still start and use programs as usual. For example i can start and use terminal with the shortcut. Then after about 15 seconds of this strange state the monitor goes just completely off ant the real shutdown begins. I have installed it on a nvme SSD so this shouldn't be the problem. This bug occurs on any os with KDE Plasma desktop environment, even on live installations

STEPS TO REPRODUCE
1. Install any os with KDE Plasma desktop environment
2. Click on shutdown or logout
3. Enjoy long logout

OBSERVED RESULT
Extreme long logout

EXPECTED RESULT
Fast logout

SOFTWARE/OS VERSIONS 
Linux/KDE Plasma: Manjaro
(available in About System)
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I've made a Reddit post on that topic for additional information:
https://www.reddit.com/r/linux4noobs/comments/m5qf9r/shutting_down_manjaro_takes_forever/
Comment 1 Nate Graham 2021-03-22 02:23:57 UTC
Are you using systemd startup? If not, can you try enabling it by running `kwriteconfig5 --file startkderc --group General --key systemdBoot true` and then reboot, and then see if that helps? Thanks!
Comment 2 juri26 2021-03-22 08:38:49 UTC
(In reply to Nate Graham from comment #1)
> Are you using systemd startup? If not, can you try enabling it by running
> `kwriteconfig5 --file startkderc --group General --key systemdBoot true` and
> then reboot, and then see if that helps? Thanks!

Yes, that fixed the bug! Thank you very much!
Comment 3 Nate Graham 2021-03-22 12:03:36 UTC
I'm happy to hear that, because it's supposed to fix that. :) This feature is optional and off by default for now but we are planning to turn it on by default for Plasma 5.22. So I'll call the bug fixed in Plasma 5.22