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.
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)
I updated the title and component accordingly. Thank you.
-- 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