1994-11-01 22:46:40 +00:00
|
|
|
.\" LP (Laptop Package)
|
2001-07-15 08:06:20 +00:00
|
|
|
.\"
|
1998-02-20 07:17:48 +00:00
|
|
|
.\" Copyright (c) 1994 by Tatsumi Hosokawa <hosokawa@jp.FreeBSD.org>
|
2001-07-15 08:06:20 +00:00
|
|
|
.\"
|
1994-11-01 22:46:40 +00:00
|
|
|
.\" This software may be used, modified, copied, and distributed, in
|
|
|
|
.\" both source and binary form provided that the above copyright and
|
2001-07-15 08:06:20 +00:00
|
|
|
.\" these terms are retained. Under no circumstances is the author
|
|
|
|
.\" responsible for the proper functioning of this software, nor does
|
|
|
|
.\" the author assume any responsibility for damages incurred with its
|
1999-07-12 20:12:29 +00:00
|
|
|
.\"
|
1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1999-07-12 20:12:29 +00:00
|
|
|
.\"
|
1994-11-01 22:46:40 +00:00
|
|
|
.\" use.
|
|
|
|
.Dd November 1, 1994
|
2004-01-21 13:38:17 +00:00
|
|
|
.Dt APM 8 i386
|
1994-11-01 22:46:40 +00:00
|
|
|
.Os
|
|
|
|
.Sh NAME
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm apm , zzz
|
1994-11-01 22:46:40 +00:00
|
|
|
.Nd control the APM BIOS and display its information
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2000-01-22 18:28:23 +00:00
|
|
|
.Op Fl ablstzZ
|
|
|
|
.Op Fl d Ar enable
|
|
|
|
.Op Fl e Ar enable
|
|
|
|
.Op Fl h Ar enable
|
1998-09-04 16:08:54 +00:00
|
|
|
.Op Fl r Ar delta
|
1994-11-01 22:46:40 +00:00
|
|
|
.Pp
|
|
|
|
.Nm zzz
|
|
|
|
.Sh DESCRIPTION
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility
|
2001-07-15 08:06:20 +00:00
|
|
|
controls the Intel / Microsoft APM (Advanced Power Management) BIOS and
|
1994-11-01 22:46:40 +00:00
|
|
|
displays the current status of APM on laptop PCs.
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
|
|
|
.Nm zzz
|
|
|
|
utility suspends the system by controlling APM.
|
1994-11-01 22:46:40 +00:00
|
|
|
.Pp
|
2001-07-15 08:06:20 +00:00
|
|
|
The following options are available for
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1994-11-01 22:46:40 +00:00
|
|
|
(no options are available for
|
2001-08-10 17:35:21 +00:00
|
|
|
.Nm zzz ) .
|
1994-11-01 22:46:40 +00:00
|
|
|
If no options are specified,
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1994-11-01 22:46:40 +00:00
|
|
|
displays information and current status of APM in verbose mode.
|
1997-11-12 04:16:23 +00:00
|
|
|
If multiple display options are given, the values are displayed one
|
|
|
|
per line in the order given here.
|
1994-11-01 22:46:40 +00:00
|
|
|
.Bl -tag -width indent
|
1997-01-06 06:04:42 +00:00
|
|
|
.It Fl a
|
2004-07-02 23:13:00 +00:00
|
|
|
Display the current AC-line status as an integer value.
|
|
|
|
The values
|
2001-07-15 08:06:20 +00:00
|
|
|
0 and 1 correspond to the
|
1997-01-06 06:04:42 +00:00
|
|
|
.Dq off-line
|
|
|
|
state or
|
|
|
|
.Dq on-line
|
|
|
|
state, respectively.
|
1994-11-01 22:46:40 +00:00
|
|
|
.It Fl b
|
|
|
|
Display an integer value reflecting the current battery status.
|
2001-07-15 08:06:20 +00:00
|
|
|
The values 0, 1, 2, 3, correspond to the
|
1994-11-01 22:46:40 +00:00
|
|
|
.Dq high
|
2001-07-15 08:06:20 +00:00
|
|
|
status,
|
1994-11-01 22:46:40 +00:00
|
|
|
.Dq low
|
2001-07-15 08:06:20 +00:00
|
|
|
status,
|
1994-11-01 22:46:40 +00:00
|
|
|
.Dq critical
|
|
|
|
status,
|
|
|
|
.Dq charging
|
|
|
|
status respectively.
|
2000-01-22 18:28:23 +00:00
|
|
|
.It Fl d Ar enable
|
1997-01-06 06:04:42 +00:00
|
|
|
Disable/enable suspending of the display separately from a normal suspend
|
2000-01-22 18:28:23 +00:00
|
|
|
using the boolean value for
|
|
|
|
.Ar enable .
|
|
|
|
This feature seems to not work on many different laptops,
|
|
|
|
including the Libretto 30CT and 50CT.
|
|
|
|
.It Fl e Ar enable
|
|
|
|
Enable or disable APM functions of the computer,
|
|
|
|
depending on the boolean
|
|
|
|
.Ar enable
|
|
|
|
argument.
|
|
|
|
.It Fl h Ar enable
|
|
|
|
Depending on the boolean value of
|
|
|
|
.Ar enable ,
|
|
|
|
enable or disable the HLT instruction in the kernel context switch routine.
|
|
|
|
These options are not necessary for almost all APM implementations,
|
|
|
|
but for some implementations whose
|
|
|
|
.Dq Pa Idle CPU
|
|
|
|
call executes both CPU clock slowdown and HLT instruction,
|
2003-05-22 11:52:23 +00:00
|
|
|
.Fl h Cm false
|
2000-01-22 18:28:23 +00:00
|
|
|
is necessary to prevent the system from reducing its peak performance.
|
|
|
|
See
|
|
|
|
.Xr apm 4
|
|
|
|
for details.
|
1994-11-01 22:46:40 +00:00
|
|
|
.It Fl l
|
2004-07-02 23:13:00 +00:00
|
|
|
Display the remaining battery percentage.
|
|
|
|
If your laptop does not
|
1994-11-01 22:46:40 +00:00
|
|
|
support this function, 255 is displayed.
|
2000-11-12 15:40:41 +00:00
|
|
|
.It Fl r Ar delta
|
2004-07-02 23:13:00 +00:00
|
|
|
Enable the resume wakeup timer, if the laptop supports it.
|
|
|
|
This
|
1998-09-04 16:08:54 +00:00
|
|
|
doesn't actually suspend the laptop, but if the laptop is suspended,
|
2002-03-08 12:48:05 +00:00
|
|
|
and it supports resume from suspend, then it will be resumed after
|
1998-09-04 16:08:54 +00:00
|
|
|
.Ar delta
|
|
|
|
seconds (from when you run this command, not from when you suspend).
|
1996-03-13 00:48:06 +00:00
|
|
|
.It Fl s
|
2004-07-02 23:13:00 +00:00
|
|
|
Display the status of the APM support as an integer value.
|
|
|
|
The values
|
1996-03-13 00:48:06 +00:00
|
|
|
0 and 1 correspond to the
|
|
|
|
.Dq disabled
|
1997-09-29 17:43:11 +00:00
|
|
|
state or
|
|
|
|
.Dq enabled
|
1997-09-02 06:36:39 +00:00
|
|
|
state respectively.
|
1997-11-12 04:16:23 +00:00
|
|
|
.It Fl t
|
2004-07-02 23:13:00 +00:00
|
|
|
Display the estimated remaining battery lifetime in seconds.
|
|
|
|
If
|
1997-11-12 04:16:23 +00:00
|
|
|
it is unknown, -1 is displayed.
|
1998-09-04 16:08:54 +00:00
|
|
|
.It Fl Z
|
2004-07-02 23:13:00 +00:00
|
|
|
Transition the system into standby mode.
|
|
|
|
This mode uses less power than
|
|
|
|
full power mode, but more than suspend mode.
|
|
|
|
Some laptops support
|
|
|
|
resuming from this state on timer or Ring Indicator events.
|
|
|
|
The
|
2002-10-15 16:28:21 +00:00
|
|
|
output of
|
|
|
|
.Nm
|
|
|
|
tells what your laptop claims to support.
|
1997-01-06 06:04:42 +00:00
|
|
|
.It Fl z
|
2000-03-01 14:09:25 +00:00
|
|
|
Suspend the system.
|
|
|
|
It is equivalent to
|
1998-01-25 16:22:22 +00:00
|
|
|
.Nm zzz .
|
|
|
|
.El
|
1994-11-01 22:46:40 +00:00
|
|
|
.Sh BUGS
|
|
|
|
Some APM implementations do not support parameters needed by
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm .
|
1994-11-01 22:46:40 +00:00
|
|
|
On such systems,
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1994-11-01 22:46:40 +00:00
|
|
|
displays them as unknown.
|
|
|
|
.Pp
|
2001-07-15 08:06:20 +00:00
|
|
|
Some APM implementations cannot handle events such as pushing the
|
2004-07-02 23:13:00 +00:00
|
|
|
power button or closing the cover.
|
|
|
|
On such implementations, the system
|
1994-11-01 22:46:40 +00:00
|
|
|
.Ar must
|
|
|
|
be suspended
|
|
|
|
.Ar only
|
|
|
|
by using
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-07-15 08:06:20 +00:00
|
|
|
or
|
1998-01-25 16:22:22 +00:00
|
|
|
.Nm zzz .
|
2000-01-23 09:59:31 +00:00
|
|
|
.Sh NOTES
|
|
|
|
.Xr apmconf 8
|
|
|
|
has been merged in
|
2002-12-24 13:41:48 +00:00
|
|
|
.Nm
|
2000-01-23 09:59:31 +00:00
|
|
|
and thus
|
2002-12-24 13:41:48 +00:00
|
|
|
.Nm
|
2000-01-23 09:59:31 +00:00
|
|
|
replaces all of its functionality.
|
1994-11-01 22:46:40 +00:00
|
|
|
.Sh SEE ALSO
|
2000-01-22 18:28:23 +00:00
|
|
|
.Xr apm 4
|
1998-03-23 08:31:20 +00:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An Tatsumi Hosokawa Aq hosokawa@jp.FreeBSD.org
|