Go to file
sommerfeld b8de140e4e Prototype ACPI Control Method Battery driver.
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
2002-03-24 03:46:10 +00:00
bin PR/16010: Andreas Gustafsson: wait is not interruptible. 2002-03-22 19:50:42 +00:00
crypto handle RTM_NEWADDR correctly. PR 15693. sync w/kame 2002-03-22 03:58:43 +00:00
dist When checking that a potentially-unsigned enum is >= 0, assign it to an int 2002-03-18 20:26:50 +00:00
distrib remove now-unnecessary files 2002-03-24 00:16:05 +00:00
etc add audio device 2002-03-23 09:06:50 +00:00
games PR/15878: Ed Ravin: fortune all frees junk pointers. Fixed, free structure 2002-03-12 15:20:14 +00:00
gnu Fix sparc64 so locals and args can be accessed correctly. 2002-03-22 03:33:08 +00:00
include Add VIS_HTTPSTYLE and strunvisx (From FreeBSD) 2002-03-23 17:39:05 +00:00
lib make sure this compiles cleanly and works. 2002-03-23 23:39:18 +00:00
libexec Split the notion of building Hesiod, Kerberos, S/key, and YP 2002-03-22 18:10:19 +00:00
regress moved tmftcheck(3) down one level, and add a regression test for vis(3) 2002-03-23 17:42:20 +00:00
sbin Add -q flag, for use with -w and -f, which suppresses output after a set. 2002-03-24 00:11:00 +00:00
share some typos 2002-03-23 22:36:45 +00:00
sys Prototype ACPI Control Method Battery driver. 2002-03-24 03:46:10 +00:00
tools Use fixed-type in ecoff structures, so that elf2ecoff will produce proper 2002-03-23 17:13:45 +00:00
usr.bin Handle patches in which diff(1) has added lines saying 2002-03-24 01:56:20 +00:00
usr.sbin typo 2002-03-23 22:31:36 +00:00
build.sh Crank up robustness. 2002-03-21 10:54:50 +00:00
BUILDING Add a -B option to set the BUILDID for the build. This also causes 2002-03-14 18:33:04 +00:00
BUILDING.mdoc Add a -B option to set the BUILDID for the build. This also causes 2002-03-14 18:33:04 +00:00
Makefile Split the _SUBDIR assignment into two assignments so you can do things 2002-03-11 07:49:24 +00:00
Makefile.inc Set RELTOP to '.' if that's where we are. 2000-05-06 15:05:15 +00:00
UPDATING <bsd.lib.mk> needs a new install(1) 2002-03-19 14:42:41 +00:00