1 .\" $NetBSD: apm.8,v 1.18 2008/04/30 13:11:01 martin Exp $
3 .\" Copyright (c) 1996 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
36 .Nd Advanced Power Management control program
50 communicates with the Advanced Power Management daemon,
52 making requests of it for current power status or to place the system
53 into a suspend or stand-by state.
56 tool is only installed on supported platforms.
60 displays the current power management state in verbose form.
62 Available command-line flags are:
63 .Bl -tag -width indent -compact
65 Put the system into suspend (deep sleep) mode.
67 Put the system into stand-by (light sleep) mode.
69 Display the estimated battery lifetime in percent.
71 Display the estimated battery lifetime in minutes.
73 Display the battery status. 0 means high, 1 means low, 2 means
74 critical, 3 means charging, 4 means absent, and 255 means unknown.
76 Display the external charger (A/C status). 0 means disconnected, 1
77 means connected, 2 means backup power source, and 255 means unknown.
79 Display if power management is enabled.
81 Request more verbose description of the displayed states.
83 Set the name of the socket via which to contact
88 Do not communicate with the APM daemon; attempt instead to manipulate
89 the APM control device directly.
94 variant of this command is an alternative for suspending the system.
97 places the system into suspend mode.
98 The command line flags serve the same purpose as for the
100 variant of this command.
102 This command does not wait for positive confirmation that the requested
103 mode has been entered; to do so would mean the command does not return
104 until the system resumes from its sleep state.
107 is the default UNIX-domain socket used for communication with
111 flag may be used to specify an alternate socket name.
112 The protection modes on this socket govern which users may access the
116 is the control device which is used when the
118 flag is specified; it must be writable for the
120 flag to work successfully.
122 is the status device used when the socket is not accessible; it must be
123 readable to provide current APM status.
128 Advanced Power Management (APM) BIOS Interface Specification (revision
129 1.1), Intel Corporation and Microsoft Corporation