public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Ferenc Wagner <wferi@niif.hu>
To: Alexey Starikovskiy <aystarik@gmail.com>
Cc: linux-acpi@vger.kernel.org
Subject: Re: battery: current a factor of 10 off? [fix confirmed]
Date: Mon, 24 Nov 2008 10:31:25 +0100	[thread overview]
Message-ID: <87myfpii6q.fsf@tac.ki.iif.hu> (raw)
In-Reply-To: <492A5B64.1080306@gmail.com> (Alexey Starikovskiy's message of "Mon, 24 Nov 2008 10:44:36 +0300")

Alexey Starikovskiy <aystarik@gmail.com> writes:

> Ferenc Wagner wrote:
>
>> Alexey Starikovskiy <aystarik@gmail.com> writes:
>>
>>> Alexey Starikovskiy wrote:
>>>
>>>> On Fri, Nov 21, 2008 at 3:33 AM, Ferenc Wagner <wferi@niif.hu> wrote:
>>>>
>>>>> on my ThinkPad R50e the current_now reading seems something like 10
>>>>> times the actual value.  [...]
>>>>
>>>> Good catch.  ACPI battery interface report its state either in mW
>>>> or in mA, and discharge rate in your case is reported in
>>>> mW. power_supply interface does not have such a parameter, so
>>>> current_now parameter is used for all cases. But in case of mW,
>>>> reported discharge should be converted into mA.
>>>>
>>>> Please test the attached patch.
>>>
>>> This patch should be better -- no integer overflow.
>>
>> Thanks, this patch really fixes the issue (tried on 2.6.28-rc6).
>> Hope to see it soon in Linus' tree!
>
> Great! Do you want to be memorized by "Tested-by:" line?

Feel free to quote me if you see fit.

>> Btw. that kernel gives me two ACPI warnings on boot:
>
> These issues are already known, and second even has a patch lurking
> somewhere in this list... So no action required.

Glad to hear.  Thanks for the good work!
-- 
Cheers,
Feri.

  reply	other threads:[~2008-11-24  9: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
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 [this message]
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=87myfpii6q.fsf@tac.ki.iif.hu \
    --to=wferi@niif.hu \
    --cc=aystarik@gmail.com \
    --cc=linux-acpi@vger.kernel.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