summaryrefslogtreecommitdiffstats
path: root/etc/devd
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2012-02-26 13:45:25 +0000
committerjhibbits <jhibbits@FreeBSD.org>2012-02-26 13:45:25 +0000
commit76b96a73a21dcf5aeee696374140cc282c98ff0f (patch)
tree8e644c967830caaa1e93449b20e754595dc24b18 /etc/devd
parent9b7d718a858ef9643ac3de3bcd4f099365aa0791 (diff)
downloadFreeBSD-src-76b96a73a21dcf5aeee696374140cc282c98ff0f.zip
FreeBSD-src-76b96a73a21dcf5aeee696374140cc282c98ff0f.tar.gz
Add backlight control to ATI-graphics PowerBooks and iBooks.
Approved by: nwhitehorn (mentor) MFC after: 1 week
Diffstat (limited to 'etc/devd')
-rw-r--r--etc/devd/apple.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/etc/devd/apple.conf b/etc/devd/apple.conf
index a84822f..8518890 100644
--- a/etc/devd/apple.conf
+++ b/etc/devd/apple.conf
@@ -19,6 +19,26 @@ notify 0 {
};
+# The next blocks enable brightness hotkeys that can be found on Apple laptops
+notify 0 {
+ match "system" "PMU";
+ match "subsystem" "keys";
+ match "type" "brightness";
+ match "notify" "down";
+ action "sysctl dev.backlight.0.level=\
+ $(expr `sysctl -n dev.backlight.0.level` - 10)";
+};
+
+notify 0 {
+ match "system" "PMU";
+ match "subsystem" "keys";
+ match "type" "brightness";
+ match "notify" "up";
+ action "sysctl dev.backlight.0.level=\
+ $(expr `sysctl -n dev.backlight.0.level` + 10)";
+};
+
+
# The next blocks enable volume hotkeys that can be found on Apple laptops
notify 0 {
match "system" "PMU";
OpenPOWER on IntegriCloud