apmd.conf revision 81159
1# apmd Configuration File
2#
3# $FreeBSD: head/etc/apmd.conf 81159 2001-08-05 15:45:21Z nsayer $
4#
5
6apm_event SUSPENDREQ {
7	exec "/etc/rc.suspend";
8}
9
10apm_event USERSUSPENDREQ {
11	exec "sync && sync && sync";
12	exec "sleep 1";
13	exec "apm -z";
14}
15
16apm_event NORMRESUME, STANDBYRESUME {
17	exec "/etc/rc.resume";
18}
19
20# resume event configuration for serial mouse users by
21# reinitializing a moused(8) connected to a serial port.
22#
23#apm_event NORMRESUME {
24#	exec "kill -HUP `cat /var/run/moused.pid`";
25#}
26
27# suspend request event configuration for ATA HDD users:
28# execute standby instead of suspend.
29#
30#apm_event SUSPENDREQ {
31#	reject;
32#	exec "sync && sync && sync";
33#	exec "sleep 1";
34#	exec "apm -Z";
35#}
36
37# Sample entries for battery state monitoring
38#apm_battery 5% discharging {
39#	exec "logger user.emerg battery status critical!"
40#}
41#apm_battery 1% discharging {
42#	exec "logger user.emerg battery low - emergency suspend"
43#	apm -z
44#}
45#apm_battery 99% charging {
46#	exec "logger user.notice battery fully charged"
47#}
48
49# apmd Configuration ends here
50