b8de140e4e
ACPI defines two different battery device interfaces: "Control Method" batteries, in which AML methods are defined in order to get battery status and set battery alarm thresholds, and a "Smart Battery" device, which is an SMbus device accessed through the ACPI Embedded Controller device; this driver knows how to attach to the former sort of device. As a total kludge, since we haven't wired things up to sysmon/envsys yet, we report battery status through a once-per-minute kernel printf, so don't use this driver yet if you want your disk to spin down. Motivated by and tested on Sony PCG-R505TL laptop, which has nonfunctional APM. configure as: acpibat* at acpi ? Sample output: acpibat0 at acpi0: ACPI Battery acpibat0: Sony Corp. LION acpibat0: Design 38480mWh, Predicted 38480mWh Warn 120mWh Low 0mWh acpibat0: discharging: 15112mV cap 25480mWh (66%) rate 16849mW ... acpibat0: discharging: 15224mV cap 25070mWh (65%) rate 18405mW ... acpibat0: discharging: 15200mV cap 24310mWh (63%) rate 13771mW ... acpibat0: charging: 15768mV cap 23330mWh (60%) rate 20388mW |
||
---|---|---|
.. | ||
acpi | ||
arcbios | ||
ata | ||
bi | ||
cardbus | ||
dec | ||
ebus | ||
eisa | ||
hpc | ||
i2c | ||
i2o | ||
ic | ||
ieee1394 | ||
ir | ||
isa | ||
isapnp | ||
mca | ||
microcode | ||
mii | ||
mscp | ||
mvme | ||
news | ||
ofisa | ||
ofw | ||
pci | ||
pckbc | ||
pcmcia | ||
podulebus | ||
qbus | ||
raidframe | ||
rasops | ||
rcons | ||
sbus | ||
scsipi | ||
std | ||
sun | ||
sysmon | ||
tc | ||
usb | ||
vme | ||
wscons | ||
wsfont | ||
xmi | ||
auconv.c | ||
auconv.h | ||
audio_if.h | ||
audio.c | ||
audiovar.h | ||
aurateconv.c | ||
ccd.c | ||
ccdvar.h | ||
clock_subr.c | ||
clock_subr.h | ||
clockctl.c | ||
cninit.c | ||
cons.c | ||
cons.h | ||
DEVNAMES | ||
ld.c | ||
ldvar.h | ||
Makefile | ||
md_root.c | ||
md.c | ||
md.h | ||
midi_if.h | ||
midi.c | ||
midisyn.c | ||
midisynvar.h | ||
midivar.h | ||
mm.c | ||
mulaw.c | ||
mulaw.h | ||
radio_if.h | ||
radio.c | ||
radiovar.h | ||
rnd.c | ||
rndpool.c | ||
sequencer.c | ||
sequencervar.h | ||
vnd.c | ||
vndvar.h |