3 # PowerPC Apple specific devd events
8 match "subsystem" "Button";
9 action "shutdown -p now";
13 # PowerBook and iBook lid close.
16 match "subsystem" "lid";
18 action "shutdown -p now";
22 # The next blocks enable brightness hotkeys that can be found on Apple laptops
25 match "subsystem" "keys";
26 match "type" "brightness";
27 match "notify" "down";
28 action "sysctl dev.backlight.0.level=\
29 $(expr `sysctl -n dev.backlight.0.level` - 10)";
34 match "subsystem" "keys";
35 match "type" "brightness";
37 action "sysctl dev.backlight.0.level=\
38 $(expr `sysctl -n dev.backlight.0.level` + 10)";
42 # The next blocks enable volume hotkeys that can be found on Apple laptops
45 match "subsystem" "keys";
52 match "subsystem" "keys";
53 match "type" "volume";
54 match "notify" "down";
55 action "mixer vol -10";
60 match "subsystem" "keys";
61 match "type" "volume";
63 action "mixer vol +10";
69 match "subsystem" "keys";
71 action "camcontrol eject cd0";
74 # Equivalent to the ACPI/ACAD notify
77 match "subsystem" "POWER";
78 match "type" "ACLINE";
79 action "service power_profile $notify";