Reference

pmu(4)

Apple PMU99 Power Management Driver

NAME

pmu – Apple PMU99 Power Management Driver

SYNOPSIS

To compile this driver into the kernel, place the following lines in your kernel configuration file:

device adb device pmu

DESCRIPTION

The pmu driver provides support for the Power Management Unit (PMU) found in Apple Core99 hardware. This includes late G3 laptops, all G4 machines, early G5 desktops and all G5 XServes.

The Apple PMU controller is a multi-purpose ASIC that provides power management and thermal control, as well as an ADB bus for the internal keyboard and mouse on laptops.

HARDWARE

Chips supported by the pmu driver include:

  • Apple KeyLargo PMU

  • Apple K2-KeyLargo PMU

SYSCTL VARIABLES

The pmu driver provides power management services in addition to an adb(4) interface. The following sysctls can be used to control the power management behavior and to examine current system power and thermal conditions.

dev.pmu.%d.server_mode

Restart after power failure behavior (1 causes system to reboot after power cut, 0 causes system to remain off).

dev.pmu.%d.batteries.%d.present

Indicates whether the relevant battery is inserted.

dev.pmu.%d.batteries.%d.charging

Indicates whether the battery is currently charging.

dev.pmu.%d.batteries.%d.charge

The current battery charge, in milliamp hours.

dev.pmu.%d.batteries.%d.maxcharge

The battery's self-reported maximum charge, in milliamp hours.

dev.pmu.%d.batteries.%d.rate

The current into the battery, in milliamps. While the battery is discharging, this will be negative.

dev.pmu.%d.batteries.%d.voltage

Battery voltage, in millivolts.

dev.pmu.%d.batteries.%d.time

Estimated time until full battery charge (or discharge), in minutes.

dev.pmu.%d.batteries.%d.life

Current fraction of the battery's maximum charge, in percent.

SEE ALSO

acpi(4), adb(4), led(4)

HISTORY

The pmu device driver appeared in NetBSD 4.0, and then in FreeBSD 8.0.

AUTHORS

The pmu driver was written by Michael Lorenz ⟨[email protected]⟩ and ported to FreeBSD by Nathan Whitehorn ⟨[email protected]⟩.

History