Add automatic hibernation on low battery
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
66cacdf161
commit
85041a9f92
2 changed files with 6 additions and 0 deletions
|
@ -95,6 +95,9 @@ dotfiles:
|
||||||
f_99-conbee-usb-serial.rules:
|
f_99-conbee-usb-serial.rules:
|
||||||
src: etc/udev/rules.d/99-conbee-usb-serial.rules
|
src: etc/udev/rules.d/99-conbee-usb-serial.rules
|
||||||
dst: /etc/udev/rules.d/99-conbee-usb-serial.rules
|
dst: /etc/udev/rules.d/99-conbee-usb-serial.rules
|
||||||
|
f_99-lowbat.rules:
|
||||||
|
src: etc/udev/rules.d/99-lowbat.rules
|
||||||
|
dst: /etc/udev/rules.d/99-lowbat.rules
|
||||||
profiles:
|
profiles:
|
||||||
locale:
|
locale:
|
||||||
dotfiles:
|
dotfiles:
|
||||||
|
@ -129,6 +132,7 @@ profiles:
|
||||||
- f_override.conf
|
- f_override.conf
|
||||||
- f_rc-manager.conf
|
- f_rc-manager.conf
|
||||||
- f_99-conbee-usb-serial.rules
|
- f_99-conbee-usb-serial.rules
|
||||||
|
- f_99-lowbat.rules
|
||||||
include:
|
include:
|
||||||
- locale
|
- locale
|
||||||
- pacman
|
- pacman
|
||||||
|
|
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…
Reference in a new issue