git: 9front

ref: b143811a53bf25824e74b7e6e6c2ee7af8c7a954
dir: /sys/man/8/acpi/

View raw version
.TH ACPI 8
.SH NAME
acpi \- Advanced Configuration and Power Interface
.SH SYNOPSIS
.I (in plan9.ini)
.B *acpi=
.PP
.B aux/acpi
[
.B -H
]
[
.B -m
.I mountpoint
]
[
.B -s
.I service
]
.SH DESCRIPTION
.I Aux/acpi
presents at
.I mountpoint
(default
.BR /dev )
an interface to the ACPI. If a
.I service
is specified, the interface will be
posted at
.BI /srv/ service 
as well.
.PP
With the
.B -H
option,
.I aux/acpi
will turn off the power immediately.
.PP
The directory contains the following files.
.TP
.B battery
Contains one line for each battery in the system.  Each line lists 12
fields: the percent charge remaining, power unit used (mW or mA),
remaining capacity, last full charge capacity, design capacity,
warning and low capacity values,
.BR "mV"
separator, present voltage, design voltage, approximate time of charge
left as
.BR hh:mm:ss ,
and the status (a string, one of
.BR unknown ,
.BR critical ,
.BR discharging
or
.BR charging ).
.TP
.B cputemp
Each line provides a current temperature reading of a specific CPU.
.TP
.B pmctl
Writing
.I power off
to
.B pmctl
will turn off the power.
.SH SOURCE
.B /sys/src/cmd/aux/acpi.c
.SH SEE ALSO
.IR reform (1)
.SH BUGS
ACPI itself.
.SH HISTORY
.I Acpi
first appeared in 9front (October, 2016).