Auto-hibernate when battery is about to empty?
I use TLP for power management, so i think i don't need to install "acpid" or "laptop mode tools" to do similar things.
One thing i want is auto hibernate when the battery is about to empty to protect unsaved work. Can TLP be used to do this?
Thank you very much.
All distributions / desktops i worked with already implement this feature. I won't implement something that conflicts with existing functionality.
I use Awesome dm and I can't find this feature there. What should i do?
(a) use xfce4-power-manager, ...
(b) udev rule (https://wiki.archlinux.org/index.php/laptop#Udev_events)
Requires that your battery sends events for each 1% (dis-)charging. You can test that with udevadmin monitor --property (while discharging; watch POWER_SUPPLY_CAPACITY)
See also issue #54 .
(c) acpi(d) rule
You should receive one or more acpi events when your battery is low. The thresholds are fixed, e.g. 15% and 5%. Can be tested with acpi_listen.
(d) batwatch A daemon that runs scripts when a discharging battery is low (the threshold(s) are freely choosable). See the README for details. (It's not related to TLP, so please don't discuss it here. There's #tlp on freenode(IRC) if you have questions.)