Section: Linux Programmer's Manual (8)
Updated: 10 Jan 1996Index
Return to Main Contents
Copyright 1996 Rickard E. Faith (mailto:email@example.com
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.
Permission is granted to copy and distribute modified versions of this
manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a
permission notice identical to this one.
Since the Linux kernel and libraries are constantly changing, this
manual page may be incorrect or out-of-date. The author(s) assume no
responsibility for errors or omissions, or for damages resulting from
the use of the information contained herein. The author(s) may not
have taken the same level of care in the production of this manual,
which is licensed free of charge, as they might when working
Formatted or processed versions of this manual, if unaccompanied by
the source, must acknowledge the copyright and authors of this work.
apmd - Advanced Power Management (APM) BIOS daemon
apmd [ -vVW ] [ -p percent_change ] [ -w warn_percent ]
is an APM BIOS monitoring daemon. It will log, via
changes in APM power status (e.g., on or off AC power, discharging or
charging battery). When the available battery power becomes very low, it
to alert all users on the system. When the APM BIOS notifies the daemon of
a pending suspend or standby request,
sleep for 2 seconds, and then tell the APM BIOS to continue its operation.
When a critical resume occurs,
will make a feable attempt to reset the clock.
The information logged contains 4 fields:
- 1) Rate of discharge (percent/minute). Negative rates indicate charging.
- 2) Time since total charge or total discharge (hh:mm:ss). This value is
only useful if it reflects the time since a 100% or 0% state has been
reached. Otherwise, this time is in parentheses, and reflects the time
since the last important
- 3) Estimate of time left until total discharge (or total charge), assuming
use similar to that since the last resume ( or since AC was connected).
This time is calculated by
- 4) Parenthetically, the percent and length of remaining battery life, as
estimated by the APM BIOS (which is often an estimate from the
intelligent battery itself).
- -V, --version
Print version and exit.
- -v, --verbose
Log all APM events
- -p percent_change, --percentage percent_change
Every time the percentage of available power changes by
log information. The default is 5. Use values greater than 100 to disable
- -w warn_percent, --warn warn_percent
When the battery is not being charged and the percentage of available power
log a warning at ALERT level to
flag was given,
to alert all users of impending doom. Give the warning each time the
percentage changes. The default is 10. Use negative values to disable
- -W, --wall
In addition to logging via
to alert all users. This is most useful if
is not set up to write ALERT messages to all users. If both methods are
used, more noise will be made during the critical time period.
The first status report printed after a power change may be
inaccurate because the power change occured at a fractional percentage that
was rounded to a full percentage. For example, say you are discharging the
machine and have 50.9% power, which is reported as 50%. When you start to
charge the machine, it will only have 0.1% left before the percentage flips
to 50%, and the charge rate will be dramatically over-estimated.
This program was written by Rik Faith (firstname.lastname@example.org
) and may be freely
distributed under the terms of the GNU General Public License. There is
ABSOLUTELY NO WARANTY for this program.
- SEE ALSO