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