]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - etc/apmd.conf
MFC r368207,368607:
[FreeBSD/stable/10.git] / etc / apmd.conf
1 # apmd Configuration File
2 #
3 # $FreeBSD$
4 #
5
6 apm_event SUSPENDREQ {
7         exec "/etc/rc.suspend apm suspend";
8 }
9
10 apm_event USERSUSPENDREQ {
11         exec "sync && sync && sync";
12         exec "sleep 1";
13         exec "apm -z";
14 }
15
16 apm_event NORMRESUME {
17         exec "/etc/rc.resume apm suspend";
18 }
19
20 apm_event STANDBYRESUME {
21         exec "/etc/rc.resume apm standby";
22 }
23
24 # resume event configuration for serial mouse users by
25 # reinitializing a moused(8) connected to a serial port.
26 #
27 #apm_event NORMRESUME {
28 #       exec "kill -HUP `cat /var/run/moused.pid`";
29 #}
30
31 # suspend request event configuration for ATA HDD users:
32 # execute standby instead of suspend.
33 #
34 #apm_event SUSPENDREQ {
35 #       reject;
36 #       exec "sync && sync && sync";
37 #       exec "sleep 1";
38 #       exec "apm -Z";
39 #}
40
41 # Sample entries for battery state monitoring
42 #apm_battery 5% discharging {
43 #       exec "logger -p user.emerg battery status critical!";
44 #       exec "echo T250L8CE-GE-C >/dev/speaker";
45 #}
46 #apm_battery 1% discharging {
47 #       exec "logger -p user.emerg battery low - emergency suspend";
48 #       exec "echo T250L16B+BA+AG+GF+FED+DC+CC >/dev/speaker";
49 #       exec "apm -z";
50 #}
51 #apm_battery 99% charging {
52 #       exec "logger -p user.notice battery fully charged";
53 #}
54
55 # apmd Configuration ends here