xref: /freebsd/usr.sbin/apm/apm.8 (revision 7899f917b1c0ea178f1d2be0cfb452086d079d23)
1.\" LP (Laptop Package)
2.\"
3.\" Copyright (c) 1994 by Tatsumi Hosokawa <hosokawa@jp.FreeBSD.org>
4.\"
5.\" This software may be used, modified, copied, and distributed, in
6.\" both source and binary form provided that the above copyright and
7.\" these terms are retained. Under no circumstances is the author
8.\" responsible for the proper functioning of this software, nor does
9.\" the author assume any responsibility for damages incurred with its
10.\" use.
11.\"
12.Dd December 22, 2009
13.Dt APM 8 i386
14.Os
15.Sh NAME
16.Nm apm
17.Nd control the APM BIOS and display its information
18.Sh SYNOPSIS
19.Nm
20.Op Fl ablstzZ
21.Op Fl d Ar enable
22.Op Fl e Ar enable
23.Op Fl h Ar enable
24.Op Fl r Ar delta
25.Sh DESCRIPTION
26The
27.Nm
28utility
29controls the Intel / Microsoft APM (Advanced Power Management) BIOS and
30displays the current status of APM on laptop PCs.
31.Pp
32The options are as follows:
33.Bl -tag -width indent
34.It Fl a
35Display the current AC-line status as an integer value.
36The values
370, 1 and 2 correspond to the
38.Dq off-line
39state,
40.Dq on-line
41state or
42.Dq backup power
43state, respectively.
44.It Fl b
45Display an integer value reflecting the current battery status.
46The values 0, 1, 2, 3, correspond to the
47.Dq high
48status,
49.Dq low
50status,
51.Dq critical
52status,
53.Dq charging
54status respectively.
55.It Fl d Ar enable
56Disable/enable suspending of the display separately from a normal suspend
57using the boolean value for
58.Ar enable .
59This feature seems to not work on many different laptops,
60including the Libretto 30CT and 50CT.
61.It Fl e Ar enable
62Enable or disable APM functions of the computer,
63depending on the boolean
64.Ar enable
65argument.
66.It Fl h Ar enable
67Depending on the boolean value of
68.Ar enable ,
69enable or disable the HLT instruction in the kernel context switch routine.
70These options are not necessary for almost all APM implementations,
71but for some implementations whose
72.Dq Pa Idle CPU
73call executes both CPU clock slowdown and HLT instruction,
74.Fl h Cm false
75is necessary to prevent the system from reducing its peak performance.
76See
77.Xr apm 4
78for details.
79.It Fl l
80Display the remaining battery percentage.
81If your laptop does not
82support this function, 255 is displayed.
83.It Fl r Ar delta
84Enable the resume wakeup timer, if the laptop supports it.
85This
86does not actually suspend the laptop, but if the laptop is suspended,
87and it supports resume from suspend, then it will be resumed after
88.Ar delta
89seconds (from when you run this command, not from when you suspend).
90.It Fl s
91Display the status of the APM support as an integer value.
92The values
930 and 1 correspond to the
94.Dq disabled
95state or
96.Dq enabled
97state respectively.
98.It Fl t
99Display the estimated remaining battery lifetime in seconds.
100If
101it is unknown, -1 is displayed.
102.It Fl Z
103Transition the system into standby mode.
104This mode uses less power than
105full power mode, but more than suspend mode.
106Some laptops support
107resuming from this state on timer or Ring Indicator events.
108The
109output of
110.Nm
111tells what your laptop claims to support.
112.It Fl z
113Suspend the system.
114It is used by
115.Xr zzz 8 .
116.El
117.Pp
118If no options are specified,
119.Nm
120displays information and current status of APM in verbose mode.
121If multiple display options are given, the values are displayed one
122per line in the order given here.
123.Sh NOTES
124.Xr apmconf 8
125has been merged in
126.Nm
127and thus
128.Nm
129replaces all of its functionality.
130.Sh SEE ALSO
131.Xr apm 4 ,
132.Xr zzz 8
133.Sh AUTHORS
134.An Tatsumi Hosokawa Aq Mt hosokawa@jp.FreeBSD.org
135.Sh BUGS
136Some APM implementations do not support parameters needed by
137.Nm .
138On such systems,
139.Nm
140displays them as unknown.
141.Pp
142Some APM implementations cannot handle events such as pushing the
143power button or closing the cover.
144On such implementations, the system
145.Ar must
146be suspended
147.Ar only
148by using
149.Nm
150or
151.Nm zzz .
152