From bf802780e8220052bb5e142105062f734d33f002 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sun, 5 Jan 2014 16:21:54 +0100 Subject: [PATCH] acpi: Update scripts and handlers --- lenovo-x220-linuxacpi/etc/acpi/actions/btn-cammic.sh | 4 ++-- lenovo-x220-linuxacpi/etc/acpi/events/screenlock | 2 ++ lenovo-x220-linuxacpi/etc/acpi/events/video_switchmode | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 lenovo-x220-linuxacpi/etc/acpi/events/screenlock create mode 100644 lenovo-x220-linuxacpi/etc/acpi/events/video_switchmode 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 -- 2.39.5