q Tn APM daemon, .Xr apmd 8 , making requests of the current power status or placing the system either into suspend or stand-by state. The .Nm tool is only installed on supported platforms.
p With no flags, .Nm displays the current power management state in verbose form.
p Available command-line flags are: l -tag -width "-f sockname" -compact t Fl a Display the external charger (A/C status): 0 means disconnected, 1 means connected, 2 means backup power source, and 255 means unknown. t Fl b Display the battery status: 0 means high, 1 means low, 2 means critical, 3 means charging, 4 means absent, and 255 means unknown. t Fl d Do not communicate with the APM daemon; attempt instead to manipulate the APM control device directly. t Fl f Ar sockname Set the name of the socket via which to contact .Xr apmd 8 to
a sockname . t Fl l Display the estimated battery lifetime in percent. t Fl m Display the estimated battery lifetime in minutes. t Fl S Put the system into stand-by (light sleep) mode. t Fl s Display if power management is enabled. t Fl v Request more verbose description of the displayed states. t Fl z Put the system into suspend (deep sleep) mode. .El
p The .Nm zzz variant of this command is an alternative for suspending the system. With no arguments, .Nm zzz places the system into suspend mode. The command line flags serve the same purpose as for the .Nm variant of this command.
p This command does not wait for positive confirmation that the requested mode has been entered; to do so would mean the command does not return until the system resumes from its sleep state. .Sh FILES
a /var/run/apmdev is the default UNIX-domain socket used for communication with .Xr apmd 8 . The .Fl f flag may be used to specify an alternate socket name. The protection modes on this socket govern which users may access the APM functions.
p
a /dev/apmctl is the control device which is used when the .Fl d flag is specified; it must be writable for the .Fl d flag to work successfully.
a /dev/apm is the status device used when the socket is not accessible; it must be readable to provide current APM status. .Sh SEE ALSO .Xr acpi 4 , .Xr apm 4 , .Xr apmd 8 .Rs .%A Intel Corporation .%A Microsoft Corporation .%T Advanced Power Management (APM) BIOS Interface Specification .%N Revision 1.2 .%D February 1996 .Re .Sh HISTORY The .Nm command appeared in .Nx 1.3 .
p The .Tn APM specification first appeared in 1992. The last update to the standard was made in 1996 - the same year when it was superceded by the .Tn ACPI 1.0 standard. Thereafter power management on IBM-compatible personal computers has relied on .Tn ACPI , implemented in .Nx by the .Xr acpi 4 subsystem. The .Xr acpi 4 provides an emulation layer for the legacy .Nm .