In the KDE desktop, how to I set my computer to display the logout screen with a 30…
- User
In the KDE desktop, how to I set my computer to display the logout screen with a 30 second time out when the power button is pushed, the same as when shut down is selected from the start menu?
Assistant
In KDE Plasma, you can configure the power button to show the logout screen with a 30-second timeout by modifying the power management settings:
-
Open System Settings → Power Management → Energy Saving
-
Look for the Button events handling section (the exact location may vary slightly depending on your KDE version)
-
Find the When power button pressed option and set it to Ask or Show logout screen
However, the standard power management settings might not give you the exact 30-second timeout behavior. To achieve the same behavior as the start menu shutdown, you'll need to:
-
Open System Settings → Startup and Shutdown → Desktop Session
-
Check the box for Confirm logout if it's not already checked
-
Set the timeout value to 30 seconds
If the power button still doesn't show the logout dialog with timeout after these changes, you may need to create a custom action:
- Install
xbindkeysif not already installed - Create a custom script that calls:
qdbus org.kde.ksmserver /KSMServer logout 1 3 3 - Map this script to the power button press event
The numbers in the qdbus command represent: 1 = confirm, 3 = shutdown, 3 = force after timeout.
Note that the exact menu paths and options may vary slightly depending on your KDE Plasma version and distribution.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.