#48 Capacity calculations wrong with two batteries

open
Danny Kukawka
None
5
2008-06-04
2008-03-21
Anonymous
No

I've got a shiny new Dell Latitude D630 with a second battery. After
installing Fedora 8 I noticed two problems with kpowersave 0.7.3:

- An empty battery shows as 100%. The laptop first discharges the
second battery down to 10%, then uses up most of the first, and
finally runs on both at once. ACPI shows only one battery as
"discharging", the other as "charged", even in the last phase, when
the remaining 10% are drawn out. Battery 2 is empty before number
1. As soon as "remaining capacity" reaches 0 mAh, kpowersave
reads it as "100%".
Full ACPI readout is something like
# cat /proc/acpi/battery/BAT0/state
present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            1677 mA
remaining capacity:      1061 mAh
present voltage:         11222 mV
# cat /proc/acpi/battery/BAT1/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            1 mA
remaining capacity:      0 mAh
present voltage:         10252 mV

That results in an overall charge of slightly more than 50%, so of
course the system won't be shut down in time...

- The time remaining is calculated for only the battery marked as
"discharging", so while the other one is still full, only half the
real value is displayed.

Discussion

  • Logged In: NO

    me too i have the same problem please if there is any fix??

     
  • Danny Kukawka
    Danny Kukawka
    2008-06-04

    Logged In: YES
    user_id=1138349
    Originator: NO

    I assume this was a HAL bug I already fixed with a commit to git (15-01-2008) which HAL version do you use?

     
  • Danny Kukawka
    Danny Kukawka
    2008-06-04

    • assigned_to: nobody --> stoppel22