summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2011-12-05 00:12:10 +0000
committerjhibbits <jhibbits@FreeBSD.org>2011-12-05 00:12:10 +0000
commit97bfac165ba69eaa279bfa7edc34b55e4cd7840c (patch)
tree70724e611b0160989332cf75f7f006563c76cf2a /etc
parent1a47fa14a87281d147badfb8deb4eaa0d58bbf18 (diff)
downloadFreeBSD-src-97bfac165ba69eaa279bfa7edc34b55e4cd7840c.zip
FreeBSD-src-97bfac165ba69eaa279bfa7edc34b55e4cd7840c.tar.gz
Add a devd notification for closing/opening the lid on PowerBooks and iBooks.
Approved by: nwhitehorn (mentor)
Diffstat (limited to 'etc')
-rw-r--r--etc/devd/apple.conf10
1 files changed, 10 insertions, 0 deletions
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";
OpenPOWER on IntegriCloud