Bug 433494 - No power off or restart within the 90 second timeout from active session
Summary: No power off or restart within the 90 second timeout from active session
Status: RESOLVED DOWNSTREAM
Alias: None
Product: ksmserver
Classification: Unmaintained
Component: general (show other bugs)
Version: 5.20.5
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-23 15:37 UTC by Marco Ambu
Modified: 2023-05-17 17:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Ambu 2021-02-23 15:37:39 UTC
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.
Comment 1 Marco Ambu 2021-09-03 08:15:54 UTC
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?
Comment 2 Nate Graham 2023-05-17 17:38:02 UTC
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.