apple.conf revision 228277
1226449Snwhitehorn# $FreeBSD: head/etc/devd/apple.conf 228277 2011-12-05 14:13:21Z jhibbits $ 2226449Snwhitehorn# 3226449Snwhitehorn# PowerPC Apple specific devd events 4226449Snwhitehorn 5226449Snwhitehorn# Keyboard power key 6226449Snwhitehornnotify 0 { 7226449Snwhitehorn match "system" "PMU"; 8226449Snwhitehorn match "subsystem" "Button"; 9226449Snwhitehorn match "notify" "0x0"; 10226449Snwhitehorn action "shutdown -p now"; 11226449Snwhitehorn}; 12226449Snwhitehorn 13226449Snwhitehorn 14228277Sjhibbits# PowerBook and iBook lid close. 15228270Sjhibbitsnotify 0 { 16228270Sjhibbits match "system" "PMU"; 17228270Sjhibbits match "subsystem" "lid"; 18228270Sjhibbits match "type" "close"; 19228270Sjhibbits match "notify" "0x0"; 20228270Sjhibbits action "shutdown -p now"; 21228270Sjhibbits}; 22228270Sjhibbits 23228270Sjhibbits 24226449Snwhitehorn# The next blocks enable volume hotkeys that can be found on Apple laptops 25226449Snwhitehornnotify 0 { 26226449Snwhitehorn match "system" "PMU"; 27226449Snwhitehorn match "subsystem" "keys"; 28226449Snwhitehorn match "type" "mute"; 29226449Snwhitehorn action "mixer 0"; 30226449Snwhitehorn}; 31226449Snwhitehorn 32226449Snwhitehornnotify 0 { 33226449Snwhitehorn match "system" "PMU"; 34226449Snwhitehorn match "subsystem" "keys"; 35226449Snwhitehorn match "type" "volume"; 36226449Snwhitehorn match "notify" "down"; 37226449Snwhitehorn action "mixer vol -10"; 38226449Snwhitehorn}; 39226449Snwhitehorn 40226449Snwhitehornnotify 0 { 41226449Snwhitehorn match "system" "PMU"; 42226449Snwhitehorn match "subsystem" "keys"; 43226449Snwhitehorn match "type" "volume"; 44226449Snwhitehorn match "notify" "up"; 45226449Snwhitehorn action "mixer vol +10"; 46226449Snwhitehorn}; 47226449Snwhitehorn 48226449Snwhitehorn# Eject key 49226449Snwhitehornnotify 0 { 50226449Snwhitehorn match "system" "PMU"; 51226449Snwhitehorn match "subsystem" "keys"; 52226449Snwhitehorn match "type" "eject"; 53226449Snwhitehorn action "camcontrol eject cd0"; 54226449Snwhitehorn}; 55226449Snwhitehorn 56226449Snwhitehorn 57