xref: /freebsd/usr.sbin/apm/apm.8 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
119a41dfcSPoul-Henning Kamp.\" LP (Laptop Package)
219a41dfcSPoul-Henning Kamp.\"
396b54d77STatsumi Hosokawa.\" Copyright (c) 1994 by Tatsumi Hosokawa <hosokawa@jp.FreeBSD.org>
419a41dfcSPoul-Henning Kamp.\"
519a41dfcSPoul-Henning Kamp.\" This software may be used, modified, copied, and distributed, in
619a41dfcSPoul-Henning Kamp.\" both source and binary form provided that the above copyright and
719a41dfcSPoul-Henning Kamp.\" these terms are retained. Under no circumstances is the author
819a41dfcSPoul-Henning Kamp.\" responsible for the proper functioning of this software, nor does
919a41dfcSPoul-Henning Kamp.\" the author assume any responsibility for damages incurred with its
10a13f3190SRuslan Ermilov.\" use.
11414a35e6SNik Clayton.\"
12a13f3190SRuslan Ermilov.Dd December 22, 2009
131fdc1899SRuslan Ermilov.Dt APM 8 i386
1419a41dfcSPoul-Henning Kamp.Os
1519a41dfcSPoul-Henning Kamp.Sh NAME
16a13f3190SRuslan Ermilov.Nm apm
1719a41dfcSPoul-Henning Kamp.Nd control the APM BIOS and display its information
1819a41dfcSPoul-Henning Kamp.Sh SYNOPSIS
19e97407b4SRuslan Ermilov.Nm
20d7f9c2f2SJeroen Ruigrok van der Werven.Op Fl ablstzZ
21d7f9c2f2SJeroen Ruigrok van der Werven.Op Fl d Ar enable
22d7f9c2f2SJeroen Ruigrok van der Werven.Op Fl e Ar enable
23d7f9c2f2SJeroen Ruigrok van der Werven.Op Fl h Ar enable
2494d1a201SWarner Losh.Op Fl r Ar delta
2519a41dfcSPoul-Henning Kamp.Sh DESCRIPTION
26490d5836SPhilippe CharnierThe
27490d5836SPhilippe Charnier.Nm
28490d5836SPhilippe Charnierutility
2919a41dfcSPoul-Henning Kampcontrols the Intel / Microsoft APM (Advanced Power Management) BIOS and
3019a41dfcSPoul-Henning Kampdisplays the current status of APM on laptop PCs.
3119a41dfcSPoul-Henning Kamp.Pp
32a13f3190SRuslan ErmilovThe options are as follows:
3319a41dfcSPoul-Henning Kamp.Bl -tag -width indent
34e46ea891SNate Williams.It Fl a
3507bfccd7SRuslan ErmilovDisplay the current AC-line status as an integer value.
3607bfccd7SRuslan ErmilovThe values
37b3d2f94eSWill Andrews0, 1 and 2 correspond to the
38e46ea891SNate Williams.Dq off-line
39b3d2f94eSWill Andrewsstate,
40e46ea891SNate Williams.Dq on-line
41b3d2f94eSWill Andrewsstate or
42b3d2f94eSWill Andrews.Dq backup power
43e46ea891SNate Williamsstate, respectively.
4419a41dfcSPoul-Henning Kamp.It Fl b
4519a41dfcSPoul-Henning KampDisplay an integer value reflecting the current battery status.
4619a41dfcSPoul-Henning KampThe values 0, 1, 2, 3, correspond to the
4719a41dfcSPoul-Henning Kamp.Dq high
4819a41dfcSPoul-Henning Kampstatus,
4919a41dfcSPoul-Henning Kamp.Dq low
5019a41dfcSPoul-Henning Kampstatus,
5119a41dfcSPoul-Henning Kamp.Dq critical
5219a41dfcSPoul-Henning Kampstatus,
5319a41dfcSPoul-Henning Kamp.Dq charging
5419a41dfcSPoul-Henning Kampstatus respectively.
55d7f9c2f2SJeroen Ruigrok van der Werven.It Fl d Ar enable
56e46ea891SNate WilliamsDisable/enable suspending of the display separately from a normal suspend
57d7f9c2f2SJeroen Ruigrok van der Wervenusing the boolean value for
58d7f9c2f2SJeroen Ruigrok van der Werven.Ar enable .
59d7f9c2f2SJeroen Ruigrok van der WervenThis feature seems to not work on many different laptops,
60d7f9c2f2SJeroen Ruigrok van der Wervenincluding the Libretto 30CT and 50CT.
61d7f9c2f2SJeroen Ruigrok van der Werven.It Fl e Ar enable
62d7f9c2f2SJeroen Ruigrok van der WervenEnable or disable APM functions of the computer,
63d7f9c2f2SJeroen Ruigrok van der Wervendepending on the boolean
64d7f9c2f2SJeroen Ruigrok van der Werven.Ar enable
65d7f9c2f2SJeroen Ruigrok van der Wervenargument.
66d7f9c2f2SJeroen Ruigrok van der Werven.It Fl h Ar enable
67d7f9c2f2SJeroen Ruigrok van der WervenDepending on the boolean value of
68d7f9c2f2SJeroen Ruigrok van der Werven.Ar enable ,
69d7f9c2f2SJeroen Ruigrok van der Wervenenable or disable the HLT instruction in the kernel context switch routine.
70d7f9c2f2SJeroen Ruigrok van der WervenThese options are not necessary for almost all APM implementations,
71d7f9c2f2SJeroen Ruigrok van der Wervenbut for some implementations whose
72d7f9c2f2SJeroen Ruigrok van der Werven.Dq Pa Idle CPU
73d7f9c2f2SJeroen Ruigrok van der Wervencall executes both CPU clock slowdown and HLT instruction,
74f062eac4SRuslan Ermilov.Fl h Cm false
75d7f9c2f2SJeroen Ruigrok van der Wervenis necessary to prevent the system from reducing its peak performance.
76d7f9c2f2SJeroen Ruigrok van der WervenSee
77d7f9c2f2SJeroen Ruigrok van der Werven.Xr apm 4
78d7f9c2f2SJeroen Ruigrok van der Wervenfor details.
7919a41dfcSPoul-Henning Kamp.It Fl l
8007bfccd7SRuslan ErmilovDisplay the remaining battery percentage.
8107bfccd7SRuslan ErmilovIf your laptop does not
8219a41dfcSPoul-Henning Kampsupport this function, 255 is displayed.
83179e2bf1SRalf S. Engelschall.It Fl r Ar delta
8407bfccd7SRuslan ErmilovEnable the resume wakeup timer, if the laptop supports it.
8507bfccd7SRuslan ErmilovThis
860227791bSRuslan Ermilovdoes not actually suspend the laptop, but if the laptop is suspended,
87ae47752bSGiorgos Keramidasand it supports resume from suspend, then it will be resumed after
8894d1a201SWarner Losh.Ar delta
8994d1a201SWarner Loshseconds (from when you run this command, not from when you suspend).
90b8d133e0SNate Williams.It Fl s
9107bfccd7SRuslan ErmilovDisplay the status of the APM support as an integer value.
9207bfccd7SRuslan ErmilovThe values
93b8d133e0SNate Williams0 and 1 correspond to the
94b8d133e0SNate Williams.Dq disabled
957a6b5d25SJohn Polstrastate or
967a6b5d25SJohn Polstra.Dq enabled
97afe83a1cSPhilippe Charnierstate respectively.
98ec8f6ad7SJohn Polstra.It Fl t
9907bfccd7SRuslan ErmilovDisplay the estimated remaining battery lifetime in seconds.
10007bfccd7SRuslan ErmilovIf
101ec8f6ad7SJohn Polstrait is unknown, -1 is displayed.
10294d1a201SWarner Losh.It Fl Z
10307bfccd7SRuslan ErmilovTransition the system into standby mode.
10407bfccd7SRuslan ErmilovThis mode uses less power than
10507bfccd7SRuslan Ermilovfull power mode, but more than suspend mode.
10607bfccd7SRuslan ErmilovSome laptops support
10707bfccd7SRuslan Ermilovresuming from this state on timer or Ring Indicator events.
10807bfccd7SRuslan ErmilovThe
1094cdb6a34SPhilippe Charnieroutput of
1104cdb6a34SPhilippe Charnier.Nm
1114cdb6a34SPhilippe Charniertells what your laptop claims to support.
112e46ea891SNate Williams.It Fl z
113f2e366a1SSheldon HearnSuspend the system.
114a13f3190SRuslan ErmilovIt is used by
115a13f3190SRuslan Ermilov.Xr zzz 8 .
1162ccbe549SSteve Price.El
117a13f3190SRuslan Ermilov.Pp
118a13f3190SRuslan ErmilovIf no options are specified,
119a13f3190SRuslan Ermilov.Nm
120a13f3190SRuslan Ermilovdisplays information and current status of APM in verbose mode.
121a13f3190SRuslan ErmilovIf multiple display options are given, the values are displayed one
122a13f3190SRuslan Ermilovper line in the order given here.
12359a3c79dSRuslan Ermilov.Sh NOTES
12459a3c79dSRuslan Ermilov.Xr apmconf 8
12559a3c79dSRuslan Ermilovhas been merged in
12659a3c79dSRuslan Ermilov.Nm
12759a3c79dSRuslan Ermilovand thus
12859a3c79dSRuslan Ermilov.Nm
12959a3c79dSRuslan Ermilovreplaces all of its functionality.
13059a3c79dSRuslan Ermilov.Sh SEE ALSO
131a13f3190SRuslan Ermilov.Xr apm 4 ,
132a13f3190SRuslan Ermilov.Xr zzz 8
13359a3c79dSRuslan Ermilov.Sh AUTHORS
134*01c2b8acSBaptiste Daroussin.An Tatsumi Hosokawa Aq Mt hosokawa@jp.FreeBSD.org
13519a41dfcSPoul-Henning Kamp.Sh BUGS
13619a41dfcSPoul-Henning KampSome APM implementations do not support parameters needed by
137e97407b4SRuslan Ermilov.Nm .
13819a41dfcSPoul-Henning KampOn such systems,
139e97407b4SRuslan Ermilov.Nm
14019a41dfcSPoul-Henning Kampdisplays them as unknown.
14119a41dfcSPoul-Henning Kamp.Pp
14219a41dfcSPoul-Henning KampSome APM implementations cannot handle events such as pushing the
14307bfccd7SRuslan Ermilovpower button or closing the cover.
14407bfccd7SRuslan ErmilovOn such implementations, the system
14519a41dfcSPoul-Henning Kamp.Ar must
14619a41dfcSPoul-Henning Kampbe suspended
14719a41dfcSPoul-Henning Kamp.Ar only
14819a41dfcSPoul-Henning Kampby using
149e97407b4SRuslan Ermilov.Nm
15019a41dfcSPoul-Henning Kampor
15119a41dfcSPoul-Henning Kamp.Nm zzz .
152