public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Ferenc Wagner <wferi@niif.hu>
Cc: linux-acpi@vger.kernel.org
Subject: Re: battery: current a factor of 10 off?
Date: Thu, 20 Nov 2008 23:31:52 -0200	[thread overview]
Message-ID: <20081121013152.GA18318@khazad-dum.debian.net> (raw)
In-Reply-To: <87skplx6ho.fsf@szonett.ki.iif.hu>

On Fri, 21 Nov 2008, Ferenc Wagner wrote:
> on my ThinkPad R50e the current_now reading seems something like 10
> times the actual value.  Documentation/power/power_supply_class.txt
> says it's in uA, and a tipical discharge value is around 15259000,
> that is, 15 A on my system.  At the same time voltage is 11756000,
> that is, 12 V, which sounds reasonable, but then the power is 15*12 VA,
> ie 180 W, which is insane.  However, the numerical derivative of
> energy_now gives 18 W, which is both reasonable and consistent with
> the assumed factor of 10 error in current_now.  Is this possibly a bug
> in 2.6.26.6?  During a quick glance over battery.c nothing obvious
> jumped at me, but I'm no expert on this.

You could also patch in tp_smapi and compare with the data you get from both
drivers.  If they are both wrong, you need a BIOS/EC firmware update.  If
there is none, we will need DMI quirks on both drivers to work around the
issue.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

  reply	other threads:[~2008-11-21  1:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-21  0:33 battery: current a factor of 10 off? Ferenc Wagner
2008-11-21  1:31 ` Henrique de Moraes Holschuh [this message]
2008-11-21  4:09 ` Alexey Starikovskiy
2008-11-21 14:41   ` Alexey Starikovskiy
2008-11-24  1:43     ` battery: current a factor of 10 off? [fix confirmed] Ferenc Wagner
2008-11-24  7:44       ` Alexey Starikovskiy
2008-11-24  9:31         ` Ferenc Wagner
2008-11-26 22:27     ` battery: current a factor of 10 off? Len Brown

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=20081121013152.GA18318@khazad-dum.debian.net \
    --to=hmh@hmh.eng.br \
    --cc=linux-acpi@vger.kernel.org \
    --cc=wferi@niif.hu \
    /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