acpi: Update scripts and handlers
authorStefan Huber <shuber@sthu.org>
Sun, 5 Jan 2014 15:21:54 +0000 (16:21 +0100)
committerStefan Huber <shuber@sthu.org>
Sun, 5 Jan 2014 15:21:54 +0000 (16:21 +0100)
lenovo-x220-linuxacpi/etc/acpi/actions/btn-cammic.sh
lenovo-x220-linuxacpi/etc/acpi/events/screenlock [new file with mode: 0644]
lenovo-x220-linuxacpi/etc/acpi/events/video_switchmode [new file with mode: 0644]

index 3bf0d69ccdb7f9d9d79dc93bb6d752cd0193236a..d70f72f920ceee9274a176528e11d8c3e4463128 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-/etc/init.d/autofs restart
-
+#/etc/init.d/autofs restart
+systemctl restart autofs.service
 
diff --git a/lenovo-x220-linuxacpi/etc/acpi/events/screenlock b/lenovo-x220-linuxacpi/etc/acpi/events/screenlock
new file mode 100644 (file)
index 0000000..87d7e0d
--- /dev/null
@@ -0,0 +1,2 @@
+event=button/screenlock
+action=/etc/acpi/actions/btn-lock.sh %e
diff --git a/lenovo-x220-linuxacpi/etc/acpi/events/video_switchmode b/lenovo-x220-linuxacpi/etc/acpi/events/video_switchmode
new file mode 100644 (file)
index 0000000..51d6421
--- /dev/null
@@ -0,0 +1,2 @@
+event=video[ /]switchmode
+action=/etc/acpi/actions/btn-vga.sh %e