]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/devd/apple.conf
Prepare for the removal of set_rcvar() by changing the rcvar=
[FreeBSD/FreeBSD.git] / etc / devd / apple.conf
1 # $FreeBSD$
2 #
3 # PowerPC Apple specific devd events
4
5 # Keyboard power key
6 notify 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.
15 notify 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
25 notify 0 {
26         match "system"          "PMU";
27         match "subsystem"       "keys";
28         match "type"            "mute";
29         action                  "mixer 0";
30 };
31
32 notify 0 {
33         match "system"          "PMU";
34         match "subsystem"       "keys";
35         match "type"            "volume";
36         match "notify"          "down";
37         action                  "mixer vol -10";
38 };
39
40 notify 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
49 notify 0 {
50         match "system"          "PMU";
51         match "subsystem"       "keys";
52         match "type"            "eject";
53         action                  "camcontrol eject cd0";
54 };
55
56