diff options
author | Justin Hibbits <jhibbits@FreeBSD.org> | 2012-02-26 13:45:25 +0000 |
---|---|---|
committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2012-02-26 13:45:25 +0000 |
commit | 3cc28bd9bf399d6f1329796afa8a846ac23bcdf3 (patch) | |
tree | 8e644c967830caaa1e93449b20e754595dc24b18 /etc | |
parent | d72bb9b024aa05e1a1156096606097ec15fa40fc (diff) | |
download | src-3cc28bd9bf399d6f1329796afa8a846ac23bcdf3.tar.gz src-3cc28bd9bf399d6f1329796afa8a846ac23bcdf3.zip |
Add backlight control to ATI-graphics PowerBooks and iBooks.
Approved by: nwhitehorn (mentor)
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=232177
Diffstat (limited to 'etc')
-rw-r--r-- | etc/devd/apple.conf | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/etc/devd/apple.conf b/etc/devd/apple.conf index a84822f7fd6e..8518890a5d6d 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"; |