Skip to content

Do not grab power button input in order to allow power manager to capture it

Submitted by Hussam Al-Tayeb @hussamT

Assigned to Ali Abdallah @ali

Link to original bug (#16103)

Description

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.

Version: 0.1.8