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