Add automatic hibernation on low battery

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2019-10-30 17:06:32 +02:00
parent 5e65e39acd
commit 0c720a05fe
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,2 @@
# Suspend the system when battery level drops to 5% or lower
SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-5]", RUN+="/usr/bin/systemctl hibernate"