apple.conf revision 228277
1# $FreeBSD: head/etc/devd/apple.conf 228277 2011-12-05 14:13:21Z jhibbits $
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# PowerBook and iBook lid close.
15notify 0 {
16	match "system"		"PMU";
17	match "subsystem"	"lid";
18	match "type"		"close";
19	match "notify"		"0x0";
20	action			"shutdown -p now";
21};
22
23
24# The next blocks enable volume hotkeys that can be found on Apple laptops
25notify 0 {
26	match "system"		"PMU";
27	match "subsystem"	"keys";
28	match "type"		"mute";
29	action			"mixer 0";
30};
31
32notify 0 {
33	match "system"		"PMU";
34	match "subsystem"	"keys";
35	match "type"		"volume";
36	match "notify"		"down";
37	action			"mixer vol -10";
38};
39
40notify 0 {
41	match "system"		"PMU";
42	match "subsystem"	"keys";
43	match "type"		"volume";
44	match "notify"		"up";
45	action			"mixer vol +10";
46};
47
48# Eject key
49notify 0 {
50	match "system"		"PMU";
51	match "subsystem"	"keys";
52	match "type"		"eject";
53	action			"camcontrol eject cd0";
54};
55
56
57