TLP icon indicating copy to clipboard operation
TLP copied to clipboard

Auto-hibernate when battery is about to empty?

Open Asymp opened this issue 13 years ago • 3 comments

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.

Asymp avatar Aug 07 '13 07:08 Asymp

All distributions / desktops i worked with already implement this feature. I won't implement something that conflicts with existing functionality.

linrunner avatar Aug 07 '13 17:08 linrunner

I use Awesome dm and I can't find this feature there. What should i do?

partus avatar Feb 24 '14 08:02 partus

(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.)

dywisor avatar Feb 24 '14 17:02 dywisor