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