X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=lenovo-x220-linuxacpi%2Fetc%2Facpi%2Factions%2Flm_battery.sh;fp=lenovo-x220-linuxacpi%2Fetc%2Facpi%2Factions%2Flm_battery.sh;h=0bce5a7257be9e7409c19a616f85de4d8212dc53;hb=3940751562b91c8ff785e902a618cc0bf71e2b5e;hp=0000000000000000000000000000000000000000;hpb=ba8d944658a4e8b99d9c5e4762da74ca5475d213;p=shutils.git diff --git a/lenovo-x220-linuxacpi/etc/acpi/actions/lm_battery.sh b/lenovo-x220-linuxacpi/etc/acpi/actions/lm_battery.sh new file mode 100755 index 0000000..0bce5a7 --- /dev/null +++ b/lenovo-x220-linuxacpi/etc/acpi/actions/lm_battery.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +test -f /usr/sbin/laptop_mode || exit 0 + +# Automatically disable laptop mode when the battery almost runs out, +# and re-enable it when it + +/usr/sbin/laptop_mode auto