xref: /freebsd/usr.sbin/apm/apm.8 (revision a13f319046ffbdd834dff00d1e257339b6820f31)
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.\"
1297d92980SPeter Wemm.\" $FreeBSD$
13414a35e6SNik Clayton.\"
14a13f3190SRuslan Ermilov.Dd December 22, 2009
151fdc1899SRuslan Ermilov.Dt APM 8 i386
1619a41dfcSPoul-Henning Kamp.Os
1719a41dfcSPoul-Henning Kamp.Sh NAME
18a13f3190SRuslan Ermilov.Nm apm
1919a41dfcSPoul-Henning Kamp.Nd control the APM BIOS and display its information
2019a41dfcSPoul-Henning Kamp.Sh SYNOPSIS
21e97407b4SRuslan Ermilov.Nm
22d7f9c2f2SJeroen Ruigrok van der Werven.Op Fl ablstzZ
23d7f9c2f2SJeroen Ruigrok van der Werven.Op Fl d Ar enable
24d7f9c2f2SJeroen Ruigrok van der Werven.Op Fl e Ar enable
25d7f9c2f2SJeroen Ruigrok van der Werven.Op Fl h Ar enable
2694d1a201SWarner Losh.Op Fl r Ar delta
2719a41dfcSPoul-Henning Kamp.Sh DESCRIPTION
28490d5836SPhilippe CharnierThe
29490d5836SPhilippe Charnier.Nm
30490d5836SPhilippe Charnierutility
3119a41dfcSPoul-Henning Kampcontrols the Intel / Microsoft APM (Advanced Power Management) BIOS and
3219a41dfcSPoul-Henning Kampdisplays the current status of APM on laptop PCs.
3319a41dfcSPoul-Henning Kamp.Pp
34a13f3190SRuslan ErmilovThe options are as follows:
3519a41dfcSPoul-Henning Kamp.Bl -tag -width indent
36e46ea891SNate Williams.It Fl a
3707bfccd7SRuslan ErmilovDisplay the current AC-line status as an integer value.
3807bfccd7SRuslan ErmilovThe values
39b3d2f94eSWill Andrews0, 1 and 2 correspond to the
40e46ea891SNate Williams.Dq off-line
41b3d2f94eSWill Andrewsstate,
42e46ea891SNate Williams.Dq on-line
43b3d2f94eSWill Andrewsstate or
44b3d2f94eSWill Andrews.Dq backup power
45e46ea891SNate Williamsstate, respectively.
4619a41dfcSPoul-Henning Kamp.It Fl b
4719a41dfcSPoul-Henning KampDisplay an integer value reflecting the current battery status.
4819a41dfcSPoul-Henning KampThe values 0, 1, 2, 3, correspond to the
4919a41dfcSPoul-Henning Kamp.Dq high
5019a41dfcSPoul-Henning Kampstatus,
5119a41dfcSPoul-Henning Kamp.Dq low
5219a41dfcSPoul-Henning Kampstatus,
5319a41dfcSPoul-Henning Kamp.Dq critical
5419a41dfcSPoul-Henning Kampstatus,
5519a41dfcSPoul-Henning Kamp.Dq charging
5619a41dfcSPoul-Henning Kampstatus respectively.
57d7f9c2f2SJeroen Ruigrok van der Werven.It Fl d Ar enable
58e46ea891SNate WilliamsDisable/enable suspending of the display separately from a normal suspend
59d7f9c2f2SJeroen Ruigrok van der Wervenusing the boolean value for
60d7f9c2f2SJeroen Ruigrok van der Werven.Ar enable .
61d7f9c2f2SJeroen Ruigrok van der WervenThis feature seems to not work on many different laptops,
62d7f9c2f2SJeroen Ruigrok van der Wervenincluding the Libretto 30CT and 50CT.
63d7f9c2f2SJeroen Ruigrok van der Werven.It Fl e Ar enable
64d7f9c2f2SJeroen Ruigrok van der WervenEnable or disable APM functions of the computer,
65d7f9c2f2SJeroen Ruigrok van der Wervendepending on the boolean
66d7f9c2f2SJeroen Ruigrok van der Werven.Ar enable
67d7f9c2f2SJeroen Ruigrok van der Wervenargument.
68d7f9c2f2SJeroen Ruigrok van der Werven.It Fl h Ar enable
69d7f9c2f2SJeroen Ruigrok van der WervenDepending on the boolean value of
70d7f9c2f2SJeroen Ruigrok van der Werven.Ar enable ,
71d7f9c2f2SJeroen Ruigrok van der Wervenenable or disable the HLT instruction in the kernel context switch routine.
72d7f9c2f2SJeroen Ruigrok van der WervenThese options are not necessary for almost all APM implementations,
73d7f9c2f2SJeroen Ruigrok van der Wervenbut for some implementations whose
74d7f9c2f2SJeroen Ruigrok van der Werven.Dq Pa Idle CPU
75d7f9c2f2SJeroen Ruigrok van der Wervencall executes both CPU clock slowdown and HLT instruction,
76f062eac4SRuslan Ermilov.Fl h Cm false
77d7f9c2f2SJeroen Ruigrok van der Wervenis necessary to prevent the system from reducing its peak performance.
78d7f9c2f2SJeroen Ruigrok van der WervenSee
79d7f9c2f2SJeroen Ruigrok van der Werven.Xr apm 4
80d7f9c2f2SJeroen Ruigrok van der Wervenfor details.
8119a41dfcSPoul-Henning Kamp.It Fl l
8207bfccd7SRuslan ErmilovDisplay the remaining battery percentage.
8307bfccd7SRuslan ErmilovIf your laptop does not
8419a41dfcSPoul-Henning Kampsupport this function, 255 is displayed.
85179e2bf1SRalf S. Engelschall.It Fl r Ar delta
8607bfccd7SRuslan ErmilovEnable the resume wakeup timer, if the laptop supports it.
8707bfccd7SRuslan ErmilovThis
880227791bSRuslan Ermilovdoes not actually suspend the laptop, but if the laptop is suspended,
89ae47752bSGiorgos Keramidasand it supports resume from suspend, then it will be resumed after
9094d1a201SWarner Losh.Ar delta
9194d1a201SWarner Loshseconds (from when you run this command, not from when you suspend).
92b8d133e0SNate Williams.It Fl s
9307bfccd7SRuslan ErmilovDisplay the status of the APM support as an integer value.
9407bfccd7SRuslan ErmilovThe values
95b8d133e0SNate Williams0 and 1 correspond to the
96b8d133e0SNate Williams.Dq disabled
977a6b5d25SJohn Polstrastate or
987a6b5d25SJohn Polstra.Dq enabled
99afe83a1cSPhilippe Charnierstate respectively.
100ec8f6ad7SJohn Polstra.It Fl t
10107bfccd7SRuslan ErmilovDisplay the estimated remaining battery lifetime in seconds.
10207bfccd7SRuslan ErmilovIf
103ec8f6ad7SJohn Polstrait is unknown, -1 is displayed.
10494d1a201SWarner Losh.It Fl Z
10507bfccd7SRuslan ErmilovTransition the system into standby mode.
10607bfccd7SRuslan ErmilovThis mode uses less power than
10707bfccd7SRuslan Ermilovfull power mode, but more than suspend mode.
10807bfccd7SRuslan ErmilovSome laptops support
10907bfccd7SRuslan Ermilovresuming from this state on timer or Ring Indicator events.
11007bfccd7SRuslan ErmilovThe
1114cdb6a34SPhilippe Charnieroutput of
1124cdb6a34SPhilippe Charnier.Nm
1134cdb6a34SPhilippe Charniertells what your laptop claims to support.
114e46ea891SNate Williams.It Fl z
115f2e366a1SSheldon HearnSuspend the system.
116a13f3190SRuslan ErmilovIt is used by
117a13f3190SRuslan Ermilov.Xr zzz 8 .
1182ccbe549SSteve Price.El
119a13f3190SRuslan Ermilov.Pp
120a13f3190SRuslan ErmilovIf no options are specified,
121a13f3190SRuslan Ermilov.Nm
122a13f3190SRuslan Ermilovdisplays information and current status of APM in verbose mode.
123a13f3190SRuslan ErmilovIf multiple display options are given, the values are displayed one
124a13f3190SRuslan Ermilovper line in the order given here.
12559a3c79dSRuslan Ermilov.Sh NOTES
12659a3c79dSRuslan Ermilov.Xr apmconf 8
12759a3c79dSRuslan Ermilovhas been merged in
12859a3c79dSRuslan Ermilov.Nm
12959a3c79dSRuslan Ermilovand thus
13059a3c79dSRuslan Ermilov.Nm
13159a3c79dSRuslan Ermilovreplaces all of its functionality.
13259a3c79dSRuslan Ermilov.Sh SEE ALSO
133a13f3190SRuslan Ermilov.Xr apm 4 ,
134a13f3190SRuslan Ermilov.Xr zzz 8
13559a3c79dSRuslan Ermilov.Sh AUTHORS
13659a3c79dSRuslan Ermilov.An Tatsumi Hosokawa Aq hosokawa@jp.FreeBSD.org
13719a41dfcSPoul-Henning Kamp.Sh BUGS
13819a41dfcSPoul-Henning KampSome APM implementations do not support parameters needed by
139e97407b4SRuslan Ermilov.Nm .
14019a41dfcSPoul-Henning KampOn such systems,
141e97407b4SRuslan Ermilov.Nm
14219a41dfcSPoul-Henning Kampdisplays them as unknown.
14319a41dfcSPoul-Henning Kamp.Pp
14419a41dfcSPoul-Henning KampSome APM implementations cannot handle events such as pushing the
14507bfccd7SRuslan Ermilovpower button or closing the cover.
14607bfccd7SRuslan ErmilovOn such implementations, the system
14719a41dfcSPoul-Henning Kamp.Ar must
14819a41dfcSPoul-Henning Kampbe suspended
14919a41dfcSPoul-Henning Kamp.Ar only
15019a41dfcSPoul-Henning Kampby using
151e97407b4SRuslan Ermilov.Nm
15219a41dfcSPoul-Henning Kampor
15319a41dfcSPoul-Henning Kamp.Nm zzz .
154