Commit Graph

70 Commits

Author SHA1 Message Date
Will Andrews b3d2f94ea7 Make apm(8) understand AC Line state 2 as "backup power".
Submitted by:	liamfoy@sepulcrum.org
2005-05-30 18:44:43 +00:00
Ruslan Ermilov 0227791b40 Expand *n't contractions. 2005-02-13 22:25:33 +00:00
Ruslan Ermilov 59a3c79da6 Sort sections. 2005-01-18 20:02:45 +00:00
Maxim Konovalov 74d8001c64 o Remove duplicate includes.
PR:		bin/75712
Submitted by:	brueffer
Obtained from:	Dragonfly BSD
2005-01-01 22:07:06 +00:00
Ruslan Ermilov 07bfccd71e Mechanically kill hard sentence breaks. 2004-07-02 23:13:00 +00:00
Warner Losh 6084486fd6 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
2004-06-30 21:00:07 +00:00
Maxime Henrion 55388cdd92 Remove a duplicated printf().
Submitted by:	Niki Denev <nike_d@cytexbg.com>
2004-06-30 19:56:23 +00:00
Maxime Henrion e15b31bb41 Tabs were accidentally lost in the last commit.
Submitted by:	Liam J. Foy <liamfoy@sepulcrum.org>
2004-06-16 19:14:21 +00:00
Maxime Henrion f47320845a Factor out some duplicated code and fix some style(9) issues.
Submitted by:	Liam J. Foy <liamfoy@sepulcrum.org>
2004-06-14 16:53:20 +00:00
Nate Lawson a607c5e4cb 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.
2004-05-27 19:23:27 +00:00
Ruslan Ermilov 1fdc189947 Mark APM manpages as i386-only. 2004-01-21 13:38:17 +00:00
Nate Lawson 744543b92e Remove the zzz files since they have been moved to src/usr.sbin/zzz 2003-07-14 16:32:45 +00:00
Nate Lawson d1d7c86132 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>
2003-07-14 03:58:05 +00:00
Robert Watson bc8aff4484 If mktime() or timegm() return -1, print out the resume timer value as
"unknown", rather than a conversion of -1 to a date/timestamp.
2003-07-13 20:06:41 +00:00
Ruslan Ermilov f062eac425 Assorted mdoc(7) fixes.
Approved by:	re (blanket)
2003-05-22 11:52:23 +00:00
Anton Berezin 711ccd049d 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.
2003-05-01 14:19:00 +00:00
Maxim Konovalov 936690ebe4 Fix a typo: "Managment" -> "Management".
PR:		bin/47343
Submitted by:	Jeremy C. Reed <reed@reedmedia.net>
MFC after:	4 days
2003-04-24 09:16:01 +00:00
David E. O'Brien 052238b16c style.Makefile(5) 2003-04-04 17:49:21 +00:00
Ruslan Ermilov facc67676f mdoc(7) police: Deal with self-xrefs. 2002-12-24 13:41:48 +00:00
Philippe Charnier 4cdb6a340b Add missing .Nm. Add FBSDID. fprintf -> warnx. Lowercase first letter inside
err().
2002-10-15 16:28:21 +00:00
Warner Losh ca551bcd21 Remove extra args to printf
use Capabilities rather than Capacities.

Submitted by: kkenn
2002-08-25 06:15:50 +00:00
Maxim Sobolev c7daa47b0e 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
2002-07-26 13:43:47 +00:00
Philippe Charnier 490d5836b5 The .Nm utility 2002-07-14 14:47:15 +00:00
Giorgos Keramidas ae47752bd6 Minor grammar fix:
s/will be resume/will be resumed/
2002-03-08 12:48:05 +00:00
Ruslan Ermilov 94ba280c59 mdoc(7) police: join split punctuation to macro calls. 2001-08-10 17:35:21 +00:00
Dima Dorfman f247324df7 Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
Ruslan Ermilov 345e52e742 - Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
Ruslan Ermilov c73e22c3d4 Set the default manual section for usr.sbin/ to 8. 2001-03-20 18:17:26 +00:00
Ruslan Ermilov e97407b4f2 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 20:10:44 +00:00
Ralf S. Engelschall 179e2bf1be Add missing "delta" argument to description headline of "apm" -r option
to be consistent with descriptions of other options which take arguments.
2000-11-12 15:40:41 +00:00
Hajimu UMEMOTO 8ad6d022ca Add output of per battery information to apm(1).
New ioctl APMIO_GETPWSTATUS is introduced.

Reviewed by:	-mobile and -current folks (no objection)
2000-08-13 17:05:27 +00:00
Hajimu UMEMOTO 7e3809fd50 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
2000-08-04 20:57:31 +00:00
Nick Sayer a19fdb8f27 apm -d also needs a writable file descriptor. 2000-07-23 04:49:43 +00:00
Warner Losh ad5536b59f 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.
2000-07-19 06:34:02 +00:00
Sheldon Hearn f2e366a105 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.
2000-03-01 14:09:25 +00:00
Bruce Evans 0e898a451c Fixed breakage of installation of zzz.8 in previous commit. MLINKS
consists of pairs of link names.
2000-01-25 08:39:15 +00:00
Jeroen Ruigrok van der Werven fe35cea7e9 Add MLINK for apmconf(8).
Suggested by:	msmith
2000-01-23 10:00:05 +00:00
Jeroen Ruigrok van der Werven 0b29e15270 Reflect that apmconf(8) has been absorbed by apm(8).
Suggested by:	msmith
2000-01-23 09:59:31 +00:00
Jeroen Ruigrok van der Werven d7f9c2f27a Import the apmconf function descriptions as per modified patch
from green.
2000-01-22 18:28:23 +00:00
Brian Feldman 295e0cdaed 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.
2000-01-22 18:11:58 +00:00
Brian Feldman 701eaeb380 Add the apm -e argument, which will toggle the "enabled" status of APM. 2000-01-16 20:25:57 +00:00
Peter Wemm 97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Mitsuru IWASAKI 77540b5492 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.
1999-08-14 18:45:19 +00:00
Mike Smith 0f1331a827 Reenable use of the APMIO_BIOS ioctl for now. 1999-07-30 19:35:21 +00:00
Mike Smith 0f8db20beb 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>
1999-07-30 16:15:11 +00:00
Brian Feldman e50479cc81 Make bcd2int work (resume time reporting now works.)
PR:		12613
Submitted by:	Michael Constant <mconst@not.there.com>
1999-07-20 15:37:28 +00:00
Brian Feldman 94c8c4fb16 Make wall_cmos do something.
PR:		12614
1999-07-20 15:31:23 +00:00
Nik Clayton 414a35e60a 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
1999-07-12 20:12:29 +00:00
Warner Losh 94d1a20141 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.
1998-09-04 16:08:54 +00:00
Philippe Charnier f12a14713b .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00