History log of /freebsd-10.1-release/usr.sbin/apm/
Revision Date Author Comments
272461 03-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


227249 06-Nov-2011 ed

Mark global functions and/or variables in apm(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.


211725 23-Aug-2010 imp

MFtbemd:

Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.


208290 19-May-2010 uqs

Garbage collect unused variable, missed in r200840

Found by: clang static analyzer


201390 02-Jan-2010 ed

The last big commit: let usr.sbin/ use WARNS=6 by default.


200840 22-Dec-2009 ru

apm(8) is no longer linked to zzz(8), catch up.
(Fixes "zzz" clash in the whatis(1) database.)


197536 27-Sep-2009 jkim

Copy apm(4) emulation from sys/i386/acpica/acpi_machdep.c and
install apm(8) and apm_bios.h on amd64.


146812 30-May-2005 will

Make apm(8) understand AC Line state 2 as "backup power".

Submitted by: liamfoy@sepulcrum.org


141846 13-Feb-2005 ru

Expand *n't contractions.


140442 18-Jan-2005 ru

Sort sections.


139552 01-Jan-2005 maxim

o Remove duplicate includes.

PR: bin/75712
Submitted by: brueffer
Obtained from: Dragonfly BSD


131500 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


131368 30-Jun-2004 imp

Fix to not use 255, but instead use APM_UNKNOWN.
Compare things correctly against -1 or 0
Don't print any capabilities if unknown is returned from the kernel.

Reviewed/Submitted by: njl, Liam Foy


131364 30-Jun-2004 mux

Remove a duplicated printf().

Submitted by: Niki Denev <nike_d@cytexbg.com>


130604 16-Jun-2004 mux

Tabs were accidentally lost in the last commit.

Submitted by: Liam J. Foy <liamfoy@sepulcrum.org>


130476 14-Jun-2004 mux

Factor out some duplicated code and fix some style(9) issues.

Submitted by: Liam J. Foy <liamfoy@sepulcrum.org>


129784 27-May-2004 njl

Check for >= 255 since sign extension from byte to u_int sometimes makes
the value for "unknown" 0xffffffff. The underlying kernel drivers should
be updated to only return 255 but the ABI is used by too many userland
utilities.

Also, make this WARNS 6 compatible.


124786 21-Jan-2004 ru

Mark APM manpages as i386-only.


117558 14-Jul-2003 njl

Remove the zzz files since they have been moved to src/usr.sbin/zzz


117539 14-Jul-2003 njl

Change zzz to be a shell script that checks for APM or ACPI support and
suspends the system appropriately.

Submitted by: Mark Santcroos <marks@ripe.net>


117517 13-Jul-2003 rwatson

If mktime() or timegm() return -1, print out the resume timer value as
"unknown", rather than a conversion of -1 to a date/timestamp.


115221 22-May-2003 ru

Assorted mdoc(7) fixes.

Approved by: re (blanket)


114417 01-May-2003 tobez

The -t flag in the retired apmconf.8 is the same as "-h false" in the
apm.8. Since the -t flag in the apm.8 is something different entirely,
the reference to -t was quite confusing. Fix that.


113961 24-Apr-2003 maxim

Fix a typo: "Managment" -> "Management".

PR: bin/47343
Submitted by: Jeremy C. Reed <reed@reedmedia.net>
MFC after: 4 days


113091 04-Apr-2003 obrien

style.Makefile(5)


108257 24-Dec-2002 ru

mdoc(7) police: Deal with self-xrefs.


105157 15-Oct-2002 charnier

Add missing .Nm. Add FBSDID. fprintf -> warnx. Lowercase first letter inside
err().


102403 25-Aug-2002 imp

Remove extra args to printf
use Capabilities rather than Capacities.

Submitted by: kkenn


100714 26-Jul-2002 sobomax

Don't dump all information about apm when only asked to enable/disable apm
functions (-e and -h switches). This should make apm(8) self-consistent, as
for example -d enable|disable doesn't dump such info.

MFC after: 5 days


99968 14-Jul-2002 charnier

The .Nm utility


91878 08-Mar-2002 keramida

Minor grammar fix:
s/will be resume/will be resumed/


81462 10-Aug-2001 ru

mdoc(7) police: join split punctuation to macro calls.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


74816 26-Mar-2001 ru

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


74532 20-Mar-2001 ru

Set the default manual section for usr.sbin/ to 8.


68965 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


68637 12-Nov-2000 rse

Add missing "delta" argument to description headline of "apm" -r option
to be consistent with descriptions of other options which take arguments.


64615 13-Aug-2000 ume

Add output of per battery information to apm(1).
New ioctl APMIO_GETPWSTATUS is introduced.

Reviewed by: -mobile and -current folks (no objection)


64252 04-Aug-2000 ume

If caller have privilege to r/w access to /dev/apm, show the
info about resume timer and resume on ring indicator, again.

Reviewed by: imp


63766 23-Jul-2000 nsayer

apm -d also needs a writable file descriptor.


63495 19-Jul-2000 imp

When we're just reading info from the driver, attempt to open the apm
device read only so we can suppot a readonly apm device.


57673 01-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


56579 25-Jan-2000 bde

Fixed breakage of installation of zzz.8 in previous commit. MLINKS
consists of pairs of link names.


56433 23-Jan-2000 asmodai

Add MLINK for apmconf(8).

Suggested by: msmith


56432 23-Jan-2000 asmodai

Reflect that apmconf(8) has been absorbed by apm(8).

Suggested by: msmith


56400 22-Jan-2000 asmodai

Import the apmconf function descriptions as per modified patch
from green.


56399 22-Jan-2000 green

Cleanups, new options, and syntax changes w.r.t. the -e fiag I had just
added. This completes the addition of apmconf(8) features into apm(8),
and will be followed shortly by asmodai with a manpage commit.


56123 16-Jan-2000 green

Add the apm -e argument, which will toggle the "enabled" status of APM.


50479 28-Aug-1999 peter

$Id$ -> $FreeBSD$


49790 14-Aug-1999 iwasaki

Change to continue process after calling `Get Resume TImer' APM
BIOS function (supported in v1.2) on older BIOS version (v1.1 or 1.0).

Reviewed by: -mobile ML folks.


49293 30-Jul-1999 msmith

Reenable use of the APMIO_BIOS ioctl for now.


49286 30-Jul-1999 msmith

Erk, more APMIO_BIOS stuff I missed. Temporarily disable the resume timer
support until I can implement it as an ioctl proper.

Submitted by: N.Dudorov <nnd@mail.nsk.ru>


48939 20-Jul-1999 green

Make bcd2int work (resume time reporting now works.)

PR: 12613
Submitted by: Michael Constant <mconst@not.there.com>


48938 20-Jul-1999 green

Make wall_cmos do something.

PR: 12614


48791 12-Jul-1999 nik

Add $Id$, to make it simpler for members of the translation teams to
track.

The Id line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


38809 04-Sep-1998 imp

o Enable standby mode in apm utility. You need a newer kernel for this
functionality to work (however, the kernel changes were committed
to current at 1998/07/05 23:29:11 PDT).
o Enable setting of a timer for later wakeup. Note, not all APM
BIOSes support this for all modes (mine doesn't support waking up on
a timer from standby mode).
o Print out the APM capabilities, as reported by the BIOS.
o Report wake on ring indication. No way to enable/disable this, but
it is reported.
o update man page with above
o The output of this command has changed, so if you have a script that
parses its output, then you may need to rewrite it slightly.
o The code attempts to deal with older kernels than July 5, 1998, but
that part of the code isn't well tested.


34809 23-Mar-1998 charnier

.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.


33657 20-Feb-1998 hosokawa

Updated my e-mail addresses.


32769 25-Jan-1998 steve

Fix a couple of typos.

PR: 5561
Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp>


31127 12-Nov-1997 jdp

Output the estimated battery lifetime as "hh:mm:ss" along with
everything else. Add a "-t" option for outputting it in raw form.
Define and document the order in which raw values are printed when
more than one is requested on the command line.


30996 06-Nov-1997 imp

Use warn rather than warnx to report errors opening the APM device.
Nit formatting fix


29985 29-Sep-1997 jdp

Correct the description of the output from the "-s" option. It was
backward.


29030 02-Sep-1997 charnier

Use err(3). Typo in man page.


24428 31-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


22997 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


21364 06-Jan-1997 nate

Remove an un-needed static declaration.


21363 06-Jan-1997 nate

Re-write the driver to use getopt(), add the new display suspend
function of the kernel, and other assorted misc. cleanups.

Submitted by: nate & HOSOKAWA, Tatsumi <hosokawa@jp.FreeBSD.org>


15842 21-May-1996 wosch

delete MANDIR=/usr/share/man/man,
it breaks `env MANDIR=<dir> make maninstall'


14674 18-Mar-1996 nate

Open up /dev/apm instead of /dev/apm0.


14609 13-Mar-1996 nate

Add the '-s' flag to apm which returns the status of the APM support
(enable/disabled) now that the APM_GETINFO ioctl returns the necessary
information. Also, print out the status along with the other
information as the default behavior.


8857 30-May-1995 rgrimes

Remove trailing whitespace.


4081 02-Nov-1994 phk

make the right link to "zzz"


4075 02-Nov-1994 phk

Fixed a #include to point to machine/apm_bios.h


4062 01-Nov-1994 phk

The latest user-land changes from the author. I added a big warning to the
apm.4 man-page. I also hope the Makefiles make sense now.

Submitted by: HOSOKAWA Tatsumi


3606 15-Oct-1994 phk

Stop "make install" from falling over if DESTDIR is defined.


3259 01-Oct-1994 dg

Laptop Advanced Power Management support (userland end) by HOSOKAWA Tatsumi.

Submitted by: HOSOKAWA Tatsumi