When logged, in I choose from the Menu "Leave -> Shutdown/Restart" but to get the system shutdown/restarted it takes about 90 seconds (which is the timeout configured in systemd or such). If I use "Leave -> Logout" and then hit shutdown/restart from sddm login screen I can logout in a couple of seconds and shutdown in a couple more (less than 10 seconds from clicking Logout to power-off/restart including my clicking in sddm). I have disabled restore previous session in KDE settings as I red this could cause issues with no joy. STEPS TO REPRODUCE 1. Log in to a session 2. Click "Leave -> shutdown" or "Leave -> restart" OBSERVED RESULT I get logged out straight away and see the console messages that were printed at start up for about 90 seconds (which is the timeout configured in systemd or such) then the system is powered off/restarted. EXPECTED RESULT I get logged out straight away and see the system powered off/restarted in a few seconds. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.20.5 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION Debian bullseye - kernel 5.10.0-3-amd64 Using wayland. Using sddm as login manager. Used 'journalctl -rb -1' to check what happens at shutdown but can't see anything wrong or holding up shutdown process.
Clarification that this is happening when I try shutdown or reboot from an active session. When I do that after logging out of the session (from SDDM) I see printed to the console all STOP commands and the system is powered down in a few seconds. So it must be something in the active session that is holding up the process but cannot see anything in the journal. Has anyone any idea on how I can see what is going on here? Anyone else with the same issue?
This means something is blocking logout. You can hit the Esc key to see what it is. Often it's SDDM; see Bug 445449. Distros can override this time and kill stuck processes sooner; some do, like Neon. There isn't anything that ksmserver can do here, sorry.