SUMMARY I am running into an issue where I seemingly cannot configure power button behaviour on KDE Plasma. I have configured the power button behaviour to "lock screen" in all of KDE system settings' energy saving tabs. However, it seems as if that setting is ignored. Looking at journalctl, ksmserver launches the "org.kde.LogoutPrompt" after getting the power key pressed signal. ```journalctl systemd-logind[3342]: Power key pressed short. dbus-daemon[3634]: [session uid=1001 pid=3634] Activating service name='org.kde.LogoutPrompt' requested by ':1.17' (uid=1001 pid=3708 comm="/usr/bin/ksmserver") dbus-daemon[3634]: [session uid=1001 pid=3634] Successfully activated service 'org.kde.LogoutPrompt' ``` STEPS TO REPRODUCE 1. Configure power button action in System settings → Energy saving 2. Press power button. OBSERVED RESULT The behaviour observed and the behaviour configured don't match. Currently pressing the power button opens the logout prompt. EXPECTED RESULT SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux ARM (Plasma Desktop, not mobile or bigscreen) (available in About System) KDE Plasma Version: 5.27.7 KDE Frameworks Version: 5.108.0 Qt Version: 5.15.10 ADDITIONAL INFORMATION A couple of days ago it opened the shutdown prompt instead or the logout prompt. I ran a system update since then and played with other the power settings. I don't know what caused the change in behaviour though.
If you configure the power button to do something else, does that work? If you invoke the logout screen by clicking the Shut Down button in Kickoff, does that work?
(In reply to Nate Graham from comment #1) > If you configure the power button to do something else, does that work? No, regardless of the setting it opens the logout prompt. (I tried different settings in all three tabs, in case something is inconsistent there.) (In reply to Nate Graham from comment #1) > If you invoke the logout screen by clicking the Shut Down button in Kickoff, > does that work? Yes, that is generally how I log out or shut down the machine.
Can you attach a screenshot of the setting you're changing that's not having an effect?
Created attachment 161177 [details] The not working setting is open in this picture.
I see, thanks. It's working for me FWIW.
Does it respect the power button setting if you set it to something else, such as standby? Does the lid close setting work as intended if you set it to turning off the screen?
(In reply to Natalie Clarius from comment #6) > Does it respect the power button setting if you set it to something else, > such as standby? No. After setting it to standby, it still opens the logout prompt. Even setting it to "Do nothing" has it open the logout prompt. > Does the lid close setting work as intended if you set it to turning off the > screen? Yes. If I set it to "Lock screen" it locks the screen. If I set it to "Turn off screen" it turns of the screen. In the meantime, I have updated to KDE Plasma 5.27.8 with KDE Frameworks version 5.110.0.
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
I've just tested and cannot replicate this issue. Is this still an issue for you on a recent version of KDE Plasma?
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!
.
The power management settings have been completely reworked in Plasma 6, so it is quite likely that the issue you were seeing is fixed now. If you're using the latest version and still seeing the bug, please let us know. Thanks!