cgd
25bdbb661e
convert to use getprogname()
2001-02-19 23:22:40 +00:00
chuck
739ac42b5e
be more picky about running /etc/apm/{battery,line} in response
...
to APM_POWER_CHANGE event. some BIOS post this event periodically
while the battery is charging/discharging (no change in a/c state).
on these systems this prevents /etc/apm/{battery,line} from being
run multiple times.
2001-01-25 00:48:59 +00:00
lukem
0645f2f67b
use explicit name rather than __progname in openlog
2001-01-11 01:34:28 +00:00
jhawk
8c412633ff
Check for lowbattery state (if running -l) when polling for state,
...
rather than just when receiving events. Thus, if events are not
working (for some unknown reason...), low-power shutdown will
still work.
2000-08-13 21:13:56 +00:00
mycroft
5ba0d0cdec
Add a `-v' option, and make various log messages depend on `-d' or `-v'.
2000-03-04 21:27:17 +00:00
jlam
2cda0d3aff
Add 'l' to getopt-checked flags
2000-01-13 16:04:53 +00:00
soren
4b5e002090
Do not force logging of status in the POWER_CHANGE case. Any
...
interesting changes will be noticed and printed by power_status().
1999-09-04 18:38:28 +00:00
thorpej
56c5efa335
Use pidfile(3).
1999-06-06 02:52:16 +00:00
christos
ac20cbee1c
PR/6606: Johnny C. Lam: Add -l flag to apmd so that it suspends automagically
...
when the is a battery low event.
1998-12-19 15:27:58 +00:00
kenh
0c2d06b6ae
Add support for running scripts for line power to battery transitions
...
(and vice versa).
1998-11-19 19:39:14 +00:00
lukem
786b86d71b
use AF_LOCAL instead of AF_UNIX
1998-07-18 05:04:35 +00:00
lukem
e477b94d93
remove unnecessary externs
1997-10-17 04:57:31 +00:00
jtc
87f4ccd45f
Fix files using old TNF copyright notice
1997-07-30 22:53:50 +00:00
jtk
46764eff41
PR # 3271: ignore SIGPIPE to avoid nasty clients causing apmd to die.
...
From Lennart Augustsson <augustss@cs.chalmers.se>.
1997-03-01 19:10:49 +00:00
jtc
e1cfddbd32
Copyright has been assigned to The NetBSD Foundation
1996-09-25 00:53:45 +00:00
jtk
179716e7b0
bug fix: set fromlen to sizeof(from)
1996-09-17 00:46:31 +00:00
jtk
9869120050
add -o and -m options for owner/group and mode of the socket
1996-09-13 01:10:14 +00:00
jtk
b86b695240
add Advanced Power Management driver
...
Includes bootstrap support from FreeBSD (Tatsumi HOSOKAWA and <ukai>)
1996-08-25 23:38:57 +00:00