! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Do not grab power button input in order to allow power manager to capture it
Status:
RESOLVED: MOVED
Product:
Xfce4-screensaver
Component:
General

Comments

Description Hussam Al-Tayeb 2019-10-29 19:42:08 CET
The configured power button action (hibenrate in my case) does not function when session is locked. I have set xfce to hibernate on power button. This works beautifully when the session is not locked (Thank you for supporting logind/systemd). However, nothing happens when the session is locked by xfce4-screensaver and I press the power button.
Some notes:
1) jorunalctl says logind registered the power button press but nothing happened afterwards.
2) If I type "sleep 60 && systemctl hibernate" and then immediately lock the session, the machine hibernates a minute later.

I'm not currently at my Linux desktop but I will be there tomorrow if you need me to gather more information.
Thank you.
Comment 1 Theo Linkspfeifer editbugs 2019-10-30 19:55:33 CET
I assume that happens because screen lockers grab key input, and therefore preventing the power manager from receiving the power button event.

Possible workaround:
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-power-key -n -t bool -s true
HandlePowerKey=hibernate in logind.conf (uncomment the line if needed)
Comment 2 Hussam Al-Tayeb 2019-11-18 16:27:08 CET
I updated the title and component accordingly. Thank you.
Comment 3 Git Bot editbugs 2020-05-25 22:27:11 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/xfce4-screensaver/-/issues/22.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #16103

Reported by:
Hussam Al-Tayeb
Reported on: 2019-10-29
Last modified on: 2020-05-25

People

Assignee:
Ali Abdallah
CC List:
4 users

Version

Attachments

Additional information