xfce4-power-manager suspend not available for lid close
-
Install
pm-utils
sudo apt-get install pm-utils
Reboot
Reference: [Solved] Issues with xfce4-power-manager-1.2.0
Discussion resume that: upower
is relying on pm-utils
to check for suspend/hibernate capability.
The broken link in the reference page should point to related bug report: Debian bug#639754 [upower] upower doesn't verify correctly the "suspend" and "hibernate" capabilities correctly
Not sure about this as upower
package has Depends: pm-utils | systemd | systemd-services
. I thought they should be alternatives. So may be there is other solution using systemd-services
which is installed by default.
The same symptoms and output of xfce4-power-manager
can be observed with pm-utils
installed. In that case, it is possible at least to restore the suspend when lid is closed using the information on Xfce4 FAQ page, section "How can I make logind handle button events":
To have logind handle the lid open/close event:
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -n -t bool -s true
To have logind handle the power key:
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-power-key -n -t bool -s true
To have logind handle the suspend key:
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-suspend-key -n -t bool -s true
To have logind handle the hibernate key:
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-hibernate-key -n -t bool -s true