summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2008-12-08 02:37:08 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2008-12-08 02:37:08 +0000
commit19d49bd49b7d0ad2cf0d12640132b21dc3e30b1c (patch)
tree18d65a14af5161e38fce21391f443b5fa42e6a27 /share
parent4130873e132ccdc8e71a1431e270a5651a87288a (diff)
downloadFreeBSD-src-19d49bd49b7d0ad2cf0d12640132b21dc3e30b1c.zip
FreeBSD-src-19d49bd49b7d0ad2cf0d12640132b21dc3e30b1c.tar.gz
Add facilities to pmu(4) to interrogate battery status on Apple PowerPC
laptops. This includes battery presence detection, charging status, current and voltage readouts, and charge level indication. The sysctl interface is somewhat ACPI-like.
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/man4.powerpc/pmu.425
1 files changed, 22 insertions, 3 deletions
diff --git a/share/man/man4/man4.powerpc/pmu.4 b/share/man/man4/man4.powerpc/pmu.4
index 463a52e..4a876bb 100644
--- a/share/man/man4/man4.powerpc/pmu.4
+++ b/share/man/man4/man4.powerpc/pmu.4
@@ -69,13 +69,32 @@ The
driver provides power management services in addition to an
.Xr adb 4
interface. The following sysctls can be used to control the
-power management behavior.
+power management behavior and to examine current system power and
+thermal conditions.
.Bl -tag -width indent
.It Va dev.pmu.%d.server_mode
Restart after power failure behavior (1 causes system to reboot after power
-cut, 0 causes system to remain off)
+cut, 0 causes system to remain off).
+.It Va dev.pmu.%d.batteries.%d.present
+Indicates whether the relevant battery is inserted.
+.It Va dev.pmu.%d.batteries.%d.charging
+Indicates whether the battery is currently charging.
+.It Va dev.pmu.%d.batteries.%d.charge
+The current battery charge, in milliamp hours.
+.It Va dev.pmu.%d.batteries.%d.maxcharge
+The battery's self-reported maximum charge, in milliamp hours.
+.It Va dev.pmu.%d.batteries.%d.rate
+The current into the battery, in milliamps. While the battery is discharging,
+this will be negative.
+.It Va dev.pmu.%d.batteries.%d.voltage
+Battery voltage, in millivolts.
+.It Va dev.pmu.%d.batteries.%d.time
+Estimated time until full battery charge (or discharge), in minutes.
+.It Va dev.pmu.%d.batteries.%d.life
+Current fraction of the battery's maximum charge, in percent.
.Sh SEE ALSO
-.Xr adb 4
+.Xr adb 4 ,
+.Xr acpi 4
.Sh HISTORY
The
.Nm
OpenPOWER on IntegriCloud