]> git.lizzy.rs Git - plan9front.git/blob - sys/man/8/acpi
merge
[plan9front.git] / sys / man / 8 / acpi
1 .TH ACPI 8
2 .SH NAME
3 acpi \- Advanced Configuration and Power Interface
4 .SH SYNOPSIS
5 .I (in plan9.ini)
6 .B *acpi=
7 .PP
8 .B aux/acpi
9 [
10 .B -m
11 .I mountpoint
12 ]
13 [
14 .B -s
15 .I service
16 ]
17 .SH DESCRIPTION
18 .I Aux/acpi
19 presents at
20 .I mountpoint
21 (default
22 .BR /mnt/acpi )
23 an interface to the ACPI. If a
24 .I service
25 is specified, the interface will be
26 posted at
27 .BI /srv/ service 
28 as well.
29 .PP
30 The directory contains the following files.
31 .TP
32 .B battery
33 Contains one line for each battery in the system.  Each line lists 12
34 fields: the percent charge remaining, power unit used (mW or mA),
35 remaining capacity, last full charge capacity, design capacity,
36 warning and low capacity values,
37 .BR "mV"
38 separator, present voltage, design voltage, approximate time of charge
39 left as
40 .BR hh:mm:ss ,
41 and the status (a string, one of
42 .BR unknown ,
43 .BR critical ,
44 .BR discharging
45 or
46 .BR charging ).
47 .TP
48 .B cputemp
49 Each line provides a current temperature reading of a specific CPU.
50 .TP
51 .B ctl
52 The
53 .B ctl
54 file currently does not provide any functionality.
55 .SH SOURCE
56 .B /sys/src/cmd/aux/acpi.c
57 .SH BUGS
58 ACPI itself.
59 .SH HISTORY
60 .I Acpi
61 first appeared in 9front (October, 2016).