Add acpid config/script for laptop lid
parent
90788e8934
commit
30192212d8
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
case "$2" in
|
||||||
|
LID)
|
||||||
|
grep -q open /proc/acpi/button/lid/LID0/state && exit 0
|
||||||
|
pm-suspend
|
||||||
|
;;
|
||||||
|
SLPB)
|
||||||
|
pm-suspend
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
logger "Unknown button pressed: $2"
|
||||||
|
;;
|
||||||
|
esac
|
|
@ -0,0 +1,2 @@
|
||||||
|
event=button/sleep
|
||||||
|
action=/etc/acpi/actions/sleep.sh %e
|
Loading…
Reference in New Issue