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