foodotfiles/root/etc/udev/rules.d/99-lowbat.rules

3 lines
178 B
Plaintext
Raw Normal View History

# 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"