apple.conf revision 230640
1# $FreeBSD: head/etc/devd/apple.conf 230640 2012-01-28 02:52:22Z jhibbits $ 2# 3# PowerPC Apple specific devd events 4 5# Keyboard power key 6notify 0 { 7 match "system" "PMU"; 8 match "subsystem" "Button"; 9 action "shutdown -p now"; 10}; 11 12 13# PowerBook and iBook lid close. 14notify 0 { 15 match "system" "PMU"; 16 match "subsystem" "lid"; 17 match "type" "close"; 18 action "shutdown -p now"; 19}; 20 21 22# The next blocks enable volume hotkeys that can be found on Apple laptops 23notify 0 { 24 match "system" "PMU"; 25 match "subsystem" "keys"; 26 match "type" "mute"; 27 action "mixer 0"; 28}; 29 30notify 0 { 31 match "system" "PMU"; 32 match "subsystem" "keys"; 33 match "type" "volume"; 34 match "notify" "down"; 35 action "mixer vol -10"; 36}; 37 38notify 0 { 39 match "system" "PMU"; 40 match "subsystem" "keys"; 41 match "type" "volume"; 42 match "notify" "up"; 43 action "mixer vol +10"; 44}; 45 46# Eject key 47notify 0 { 48 match "system" "PMU"; 49 match "subsystem" "keys"; 50 match "type" "eject"; 51 action "camcontrol eject cd0"; 52}; 53 54 55