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