From: Matthew Garrett <mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Battery info given in mW, should be mA
Date: Sat, 5 Jul 2003 16:40:08 +0100 [thread overview]
Message-ID: <20030705154008.GA18878@srcf.ucam.org> (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?
--
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
reply other threads:[~2003-07-05 15:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030705154008.GA18878@srcf.ucam.org \
--to=mjg59-1xo5oi07kqx4cg9nei1l7q@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox