* Battery info given in mW, should be mA
@ 2003-07-05 15:40 Matthew Garrett
0 siblings, 0 replies; only message in thread
From: Matthew Garrett @ 2003-07-05 15:40 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
/proc/acpi/battery/BAT1/info gives me, amongst other things:
design capacity: 3500 mWh
last full capacity: 3500 mWh
According to the manufacturer, it's supposed to have a capacity of
3.4mAh. Running at 10V, that gives somewhat more than 3500mWh. The
numbers being returned look like they should be in mAh. Looking at
battery.c, the code for choosing which unit to display looks reasonable.
In my dsdt, I have:
Name(PBIF,Package(0x0D){
0x01,
0xFFFFFFFF,
0xFFFFFFFF,
0x01,
0xFFFFFFFF,
0x96,
0x7E,
0x04,
0x04,
"BAT1",
" ",
" ",
" "
})
which would suggest that the "default" for the dsdt is to provide this
in Watts. I'm guessing that the information in this is supposed to be
overwriten by information from the battery (since I do get reasonable
values), but I'm not sure where that's happening or what information is
actually being provided by the battery. Is there any way I can verify
that the battery itself claims to be measuring capacity in Watts, or
track down where it's getting this idea? Is the current code behaving
sanely elsewhere?
--
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-05 15:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-05 15:40 Battery info given in mW, should be mA Matthew Garrett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox