2 .\" Copyright (c) 2008 Nathan Whitehorn <nwhitehorn@FreeBSD.org>
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 .\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
18 .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
22 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
23 .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24 .\" POSSIBILITY OF SUCH DAMAGE.
33 .Nd Apple PMU99 Power Management Driver
35 To compile this driver into the kernel,
36 place the following lines in your
37 kernel configuration file:
38 .Bd -ragged -offset indent
45 driver provides support for the Power Management Unit (PMU) found in Apple
47 This includes late G3 laptops, all G4 machines, early G5
48 desktops and all G5 XServes.
50 The Apple PMU controller is a multi-purpose ASIC that provides power
51 management and thermal control, as well as an ADB bus for the internal
52 keyboard and mouse on laptops.
54 Chips supported by the
67 driver provides power management services in addition to an
70 The following sysctls can be used to control the
71 power management behavior and to examine current system power and
73 .Bl -tag -width indent
74 .It Va dev.pmu.%d.server_mode
75 Restart after power failure behavior (1 causes system to reboot after power
76 cut, 0 causes system to remain off).
77 .It Va dev.pmu.%d.batteries.%d.present
78 Indicates whether the relevant battery is inserted.
79 .It Va dev.pmu.%d.batteries.%d.charging
80 Indicates whether the battery is currently charging.
81 .It Va dev.pmu.%d.batteries.%d.charge
82 The current battery charge, in milliamp hours.
83 .It Va dev.pmu.%d.batteries.%d.maxcharge
84 The battery's self-reported maximum charge, in milliamp hours.
85 .It Va dev.pmu.%d.batteries.%d.rate
86 The current into the battery, in milliamps.
87 While the battery is discharging,
88 this will be negative.
89 .It Va dev.pmu.%d.batteries.%d.voltage
90 Battery voltage, in millivolts.
91 .It Va dev.pmu.%d.batteries.%d.time
92 Estimated time until full battery charge (or discharge), in minutes.
93 .It Va dev.pmu.%d.batteries.%d.life
94 Current fraction of the battery's maximum charge, in percent.
103 device driver appeared in
111 driver was written by
112 .An Michael Lorenz Aq Mt macallan@NetBSD.org
116 .An Nathan Whitehorn Aq Mt nwhitehorn@FreeBSD.org .