battery time remaining reported incorrectly
Bug #182369 reported by
Brian Neltner
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-power-manager (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gnome-power-manager
My Dell Latitude d520 has the standard primary battery, and an additional battery in the media bay. In Feisty, it gave an accurate report on time remaining. In Gutsy, while the battery percentage is reported accurately as the sum of the charge remaining over the sum of the total capacity, the time remaining is wrong. In fact, somewhat entertainingly if I look at the Power History "Estimated Time Remaining", it has a slope of taking about 20 minutes to drop by 10 minutes of estimated remaining time.
Thanks,
To post a comment you must log in.
Hello,
I believe I've identified the problem.
In the gnome-power-manager source code, it seems to be asking HAL what remaining_ time' is. However, this
the value of the property 'battery.
value only exists if the battery is currently being discharged. My
batteries discharge asymmetrically (media bay first), so it only reports
the time remaining for the media bay battery instead of taking the raw
power usage and dividing it by the raw total capacity like it should.
I'd try to actually fix this in the code, but while I can read code
reasonably well, I don't understand the overall architecture of the
power manager and the modification is probably best left to someone more
familiar with the code. I believe the problems lie in gpm-cell.c.
Thanks,
Brian
On Sat, 2008-01-12 at 18:30 +0000, Brian Neltner wrote:
> Public bug reported:
>
> Binary package hint: gnome-power-manager
>
> My Dell Latitude d520 has the standard primary battery, and an
> additional battery in the media bay. In Feisty, it gave an accurate
> report on time remaining. In Gutsy, while the battery percentage is
> reported accurately as the sum of the charge remaining over the sum of
> the total capacity, the time remaining is wrong. In fact, somewhat
> entertainingly if I look at the Power History "Estimated Time
> Remaining", it has a slope of taking about 20 minutes to drop by 10
> minutes of estimated remaining time.
>
> Thanks,
>
> ** Affects: gnome-power-manager (Ubuntu)
> Importance: Undecided
> Status: New
>