Bug 347219 - HAL report for full empty batteries to 100% remaining capacity
Summary: HAL report for full empty batteries to 100% remaining capacity
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: Mobile Devices (show other bugs)
Version: Final
Hardware: x86-64 openSUSE 10.3
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Danny Al-Gaaf
QA Contact: E-mail List
URL:
Whiteboard: marked-ForNext10.3YOU
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-10 07:48 UTC by Tob Sch
Modified: 2008-02-09 13:20 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Screenshot from "KPowersave Informations Dialog" with wrong 100% capacity of travel battery (33.89 KB, image/png)
2007-12-10 07:50 UTC, Tob Sch
Details
Output of command "lshal" (123.63 KB, application/octet-stream)
2007-12-13 22:10 UTC, Tob Sch
Details
Output of command "grep . /proc/acpi/battery/*/*" (2.47 KB, application/octet-stream)
2007-12-13 22:11 UTC, Tob Sch
Details
Screenshot from "KPowersave Informations Dialog" with wrong total battery time (46.69 KB, image/png)
2008-02-08 20:57 UTC, Tob Sch
Details
New Output of command "lshal" (124.10 KB, application/octet-stream)
2008-02-08 20:59 UTC, Tob Sch
Details
New output of command "grep . /proc/acpi/battery/*/*" (2.46 KB, application/octet-stream)
2008-02-08 21:01 UTC, Tob Sch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tob Sch 2007-12-10 07:48:09 UTC
i,

I'm running openSUSE 10.3 x86_64 with the newest patches on a HP Compaq nx6125.


Altough the (second) travel battery is empty, the "KPowersave Informations Dialog" shows it's 100% full.

MyLaptop:/root # cat /proc/acpi/battery/*/*
alarm:                   unsupported
present:                 yes
design capacity:         3948 mAh
last full capacity:      3948 mAh
battery technology:      rechargeable
design voltage:          14800 mV
design capacity warning: 198 mAh
design capacity low:     40 mAh
capacity granularity 1:  100 mAh
capacity granularity 2:  100 mAh
model number:            Travel
serial number:           00005 2007/08/29
battery type:            LIon
OEM info:                Hewlett-Packard
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mA
remaining capacity:      0 mAh
present voltage:         10776 mV
alarm:                   unsupported
present:                 yes
design capacity:         4256 mAh
last full capacity:      4256 mAh
battery technology:      rechargeable
design voltage:          11100 mV
design capacity warning: 213 mAh
design capacity low:     43 mAh
capacity granularity 1:  100 mAh
capacity granularity 2:  100 mAh
model number:            Primary
serial number:           00665 2006/06/28
battery type:            LIon
OEM info:                Hewlett-Packard
present:                 yes
capacity state:          ok
charging state:          charging
present rate:            3001 mA
remaining capacity:      834 mAh
present voltage:         12096 mV
Comment 1 Tob Sch 2007-12-10 07:50:17 UTC
Created attachment 186580 [details]
Screenshot from "KPowersave Informations Dialog" with wrong 100% capacity of travel battery
Comment 2 Danny Al-Gaaf 2007-12-10 11:04:16 UTC
Please provide these information if this happen:
- lshal output
- grep . /proc/acpi/battery/*/*
Comment 3 Danny Al-Gaaf 2007-12-12 11:39:51 UTC
ping
Comment 4 Tob Sch 2007-12-13 22:10:10 UTC
Created attachment 187535 [details]
Output of command "lshal"
Comment 5 Tob Sch 2007-12-13 22:11:36 UTC
Created attachment 187536 [details]
Output of command "grep . /proc/acpi/battery/*/*"
Comment 6 Danny Al-Gaaf 2007-12-14 11:59:20 UTC
Okay, it's not a KPowersave, but a HAL problem. HAL reports for the empty battery:

   battery.charge_level.percentage = 100  (0x64)  (int)

Please try the HAL package from here (and check if this helps):

http://download.opensuse.org/repositories/home:/dkukawka/openSUSE_10.3/
Comment 7 Tob Sch 2007-12-16 11:25:37 UTC
Thanks! That version fixed the bug :-)

When will this rpm-package be released as an official openSUSE 10.3 update package?
Comment 8 Danny Al-Gaaf 2007-12-16 13:51:40 UTC
You can use the HAL from my repo for now, this version should include everything, that go into the next online update next year.
Comment 9 Danny Al-Gaaf 2008-01-30 17:12:23 UTC
submitted package for YOU update for opensuse 10.3
Comment 10 Anja Stock 2008-02-05 14:45:18 UTC
released
Comment 11 Tob Sch 2008-02-08 20:55:44 UTC
I discovered another flaw: when the Primary battery is full and the Travel battery is discharging, the remaining battery time of both batteries (Travel + Primary) is always as big as the remaining battery time of the discharging Travel battery. With former versions of OpenSUSE, this worked, I remember.
Comment 12 Tob Sch 2008-02-08 20:57:42 UTC
Created attachment 193946 [details]
 Screenshot from "KPowersave Informations Dialog" with wrong total battery time
Comment 13 Tob Sch 2008-02-08 20:59:57 UTC
Created attachment 193947 [details]
New Output of command "lshal"
Comment 14 Tob Sch 2008-02-08 21:01:24 UTC
Created attachment 193949 [details]
New output of command "grep . /proc/acpi/battery/*/*"
Comment 15 Danny Al-Gaaf 2008-02-09 13:19:34 UTC
That's o bug, there is no way to calculate the time correctly for both batteries atm.
Comment 16 Danny Al-Gaaf 2008-02-09 13:20:40 UTC
set back to old state.

Btw. if you have a new bug, open a new bugreport and don't reopen existing bugs!!!