Skip to contentSkip to conversation

Battery info given in mW, should be mA

DISCUSSION Matthew Garrett 1 participant 1 message Jul 5, 2003 ACPI

lore
Share & tools
lore
#0 lore raw

/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?

Signature · 8 lines
Matthew Garrett | [email protected]


-------------------------------------------------------
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