Laptop hibernate on critical battery
Hi, what's the best way to make my laptop hibernate instead of powering it off when battery is critically low in Fedora 23?
I used gsettings
previously (f20) but now it seem not to be an available option to set, look:
[claudio@f23x8664 ~]$ gsettings list-keys org.gnome.settings-daemon.plugins.power
idle-brightness
power-button-action
priority
idle-dim
sleep-inactive-ac-type
sleep-inactive-battery-timeout
sleep-inactive-battery-type
sleep-inactive-ac-timeout
ambient-enabled
active
Maybe it could be possible editing /etc/UPower/UPower.conf
. At the end of the file I read:
[...]
# The action to take when "TimeAction" or "PercentageAction" above has been
# reached for the batteries (UPS or laptop batteries) supplying the computer
#
# Possible values are:
# PowerOff
# Hibernate
# HybridSleep
#
# If HybridSleep isn't available, Hibernate will be used
# If Hibernate isn't available, PowerOff will be used
CriticalPowerAction=HybridSleep
But it does not honor neither HybridSleep
nor Hibernate
.
Any idea how to test it?
Thanks, Claudio