Bug 473329 - Power button configuration being ignored
Summary: Power button configuration being ignored
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (show other bugs)
Version: 5.27.7
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-13 11:38 UTC by Julian Groß
Modified: 2024-09-27 21:36 UTC (History)
3 users (show)

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


Attachments
The not working setting is open in this picture. (220.86 KB, image/png)
2023-08-25 16:25 UTC, Julian Groß
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Groß 2023-08-13 11:38:10 UTC
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.
Comment 1 Nate Graham 2023-08-13 20:17:36 UTC
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?
Comment 2 Julian Groß 2023-08-19 10:24:27 UTC
(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.
Comment 3 Nate Graham 2023-08-21 18:02:58 UTC
Can you attach a screenshot of the setting you're changing that's not having an effect?
Comment 4 Julian Groß 2023-08-25 16:25:51 UTC
Created attachment 161177 [details]
The not working setting is open in this picture.
Comment 5 Nate Graham 2023-08-25 18:41:45 UTC
I see, thanks. It's working for me FWIW.
Comment 6 Natalie Clarius 2023-09-15 16:10:02 UTC
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?
Comment 7 Julian Groß 2023-09-29 13:26:29 UTC
(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.
Comment 8 Bug Janitor Service 2023-10-14 03:46:06 UTC
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!
Comment 9 Justin Zobel 2024-09-11 15:22:01 UTC
I've just tested and cannot replicate this issue. Is this still an issue for you on a recent version of KDE Plasma?
Comment 10 Bug Janitor Service 2024-09-26 03:47:20 UTC
🐛🧹 ⚠️ 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!
Comment 11 Natalie Clarius 2024-09-27 21:30:31 UTC
.
Comment 12 Natalie Clarius 2024-09-27 21:36:27 UTC
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!