Add automatic hibernation on low battery
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
5e65e39acd
commit
0c720a05fe
2 changed files with 6 additions and 0 deletions
2
root/etc/udev/rules.d/99-lowbat.rules
Normal file
2
root/etc/udev/rules.d/99-lowbat.rules
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue