projects
/
shutils.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x220-acpi: Add acpi event scripts for Lenovo X220
[shutils.git]
/
lenovo-x220-linuxacpi
/
etc
/
acpi
/
actions
/
lm_battery.sh
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
(executable)
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