apple.conf revision 226449
1226449Snwhitehorn# $FreeBSD: head/etc/devd/apple.conf 226449 2011-10-16 21:01:42Z nwhitehorn $ 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 14226449Snwhitehorn# The next blocks enable volume hotkeys that can be found on Apple laptops 15226449Snwhitehornnotify 0 { 16226449Snwhitehorn match "system" "PMU"; 17226449Snwhitehorn match "subsystem" "keys"; 18226449Snwhitehorn match "type" "mute"; 19226449Snwhitehorn action "mixer 0"; 20226449Snwhitehorn}; 21226449Snwhitehorn 22226449Snwhitehornnotify 0 { 23226449Snwhitehorn match "system" "PMU"; 24226449Snwhitehorn match "subsystem" "keys"; 25226449Snwhitehorn match "type" "volume"; 26226449Snwhitehorn match "notify" "down"; 27226449Snwhitehorn action "mixer vol -10"; 28226449Snwhitehorn}; 29226449Snwhitehorn 30226449Snwhitehornnotify 0 { 31226449Snwhitehorn match "system" "PMU"; 32226449Snwhitehorn match "subsystem" "keys"; 33226449Snwhitehorn match "type" "volume"; 34226449Snwhitehorn match "notify" "up"; 35226449Snwhitehorn action "mixer vol +10"; 36226449Snwhitehorn}; 37226449Snwhitehorn 38226449Snwhitehorn# Eject key 39226449Snwhitehornnotify 0 { 40226449Snwhitehorn match "system" "PMU"; 41226449Snwhitehorn match "subsystem" "keys"; 42226449Snwhitehorn match "type" "eject"; 43226449Snwhitehorn action "camcontrol eject cd0"; 44226449Snwhitehorn}; 45226449Snwhitehorn 46226449Snwhitehorn 47