summaryrefslogtreecommitdiffstats
path: root/usr.sbin/apm/apm.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing .Nm. Add FBSDID. fprintf -> warnx. Lowercase first letter insidecharnier2002-10-151-8/+5
| | | | err().
* Remove extra args to printfimp2002-08-251-2/+2
| | | | | | use Capabilities rather than Capacities. Submitted by: kkenn
* Don't dump all information about apm when only asked to enable/disable apmsobomax2002-07-261-0/+2
| | | | | | | 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
* Add output of per battery information to apm(1).ume2000-08-131-1/+53
| | | | | | New ioctl APMIO_GETPWSTATUS is introduced. Reviewed by: -mobile and -current folks (no objection)
* If caller have privilege to r/w access to /dev/apm, show theume2000-08-041-58/+65
| | | | | | info about resume timer and resume on ring indicator, again. Reviewed by: imp
* apm -d also needs a writable file descriptor.nsayer2000-07-231-1/+1
|
* When we're just reading info from the driver, attempt to open the apmimp2000-07-191-1/+4
| | | | device read only so we can suppot a readonly apm device.
* Cleanups, new options, and syntax changes w.r.t. the -e fiag I had justgreen2000-01-221-39/+75
| | | | | added. This completes the addition of apmconf(8) features into apm(8), and will be followed shortly by asmodai with a manpage commit.
* Add the apm -e argument, which will toggle the "enabled" status of APM.green2000-01-161-2/+17
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Change to continue process after calling `Get Resume TImer' APMiwasaki1999-08-141-2/+2
| | | | | | BIOS function (supported in v1.2) on older BIOS version (v1.1 or 1.0). Reviewed by: -mobile ML folks.
* Reenable use of the APMIO_BIOS ioctl for now.msmith1999-07-301-7/+1
|
* Erk, more APMIO_BIOS stuff I missed. Temporarily disable the resume timermsmith1999-07-301-2/+7
| | | | | | support until I can implement it as an ioctl proper. Submitted by: N.Dudorov <nnd@mail.nsk.ru>
* Make bcd2int work (resume time reporting now works.)green1999-07-201-3/+5
| | | | | PR: 12613 Submitted by: Michael Constant <mconst@not.there.com>
* Make wall_cmos do something.green1999-07-201-4/+13
| | | | PR: 12614
* o Enable standby mode in apm utility. You need a newer kernel for thisimp1998-09-041-9/+188
| | | | | | | | | | | | | | | | 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.
* Updated my e-mail addresses.hosokawa1998-02-201-2/+2
|
* Output the estimated battery lifetime as "hh:mm:ss" along withjdp1997-11-121-5/+27
| | | | | | 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.
* Use warn rather than warnx to report errors opening the APM device.imp1997-11-061-3/+3
| | | | Nit formatting fix
* Use err(3). Typo in man page.charnier1997-09-021-20/+19
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-1/+1
| | | | posix standard on the topic.
* Remove an un-needed static declaration.nate1997-01-061-1/+1
|
* Re-write the driver to use getopt(), add the new display suspendnate1997-01-061-81/+102
| | | | | | function of the kernel, and other assorted misc. cleanups. Submitted by: nate & HOSOKAWA, Tatsumi <hosokawa@jp.FreeBSD.org>
* Open up /dev/apm instead of /dev/apm0.nate1996-03-181-1/+1
|
* Add the '-s' flag to apm which returns the status of the APM supportnate1996-03-131-3/+9
| | | | | | (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.
* Remove trailing whitespace.rgrimes1995-05-301-4/+4
|
* Fixed a #include to point to machine/apm_bios.hphk1994-11-021-1/+1
|
* The latest user-land changes from the author. I added a big warning to thephk1994-11-011-3/+7
| | | | | | apm.4 man-page. I also hope the Makefiles make sense now. Submitted by: HOSOKAWA Tatsumi
* Laptop Advanced Power Management support (userland end) by HOSOKAWA Tatsumi.dg1994-10-011-0/+157
Submitted by: HOSOKAWA Tatsumi
OpenPOWER on IntegriCloud