From: Stefan Huber Date: Sun, 5 Jan 2014 15:21:54 +0000 (+0100) Subject: acpi: Update scripts and handlers X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=bf802780e8220052bb5e142105062f734d33f002;p=shutils.git acpi: Update scripts and handlers --- diff --git a/lenovo-x220-linuxacpi/etc/acpi/actions/btn-cammic.sh b/lenovo-x220-linuxacpi/etc/acpi/actions/btn-cammic.sh index 3bf0d69..d70f72f 100755 --- a/lenovo-x220-linuxacpi/etc/acpi/actions/btn-cammic.sh +++ b/lenovo-x220-linuxacpi/etc/acpi/actions/btn-cammic.sh @@ -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 index 0000000..87d7e0d --- /dev/null +++ b/lenovo-x220-linuxacpi/etc/acpi/events/screenlock @@ -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 index 0000000..51d6421 --- /dev/null +++ b/lenovo-x220-linuxacpi/etc/acpi/events/video_switchmode @@ -0,0 +1,2 @@ +event=video[ /]switchmode +action=/etc/acpi/actions/btn-vga.sh %e