From 97bfac165ba69eaa279bfa7edc34b55e4cd7840c Mon Sep 17 00:00:00 2001 From: jhibbits Date: Mon, 5 Dec 2011 00:12:10 +0000 Subject: Add a devd notification for closing/opening the lid on PowerBooks and iBooks. Approved by: nwhitehorn (mentor) --- etc/devd/apple.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'etc') diff --git a/etc/devd/apple.conf b/etc/devd/apple.conf index a57a8e0..275d737 100644 --- a/etc/devd/apple.conf +++ b/etc/devd/apple.conf @@ -11,6 +11,16 @@ notify 0 { }; +# Keyboard power key +notify 0 { + match "system" "PMU"; + match "subsystem" "lid"; + match "type" "close"; + match "notify" "0x0"; + action "shutdown -p now"; +}; + + # The next blocks enable volume hotkeys that can be found on Apple laptops notify 0 { match "system" "PMU"; -- cgit v1.1