View Single Post
Posts: 458 | Thanked: 783 times | Joined on Jan 2010 @ France
#531
Originally Posted by pali View Post
This values are exported by HAL, not by my program/module, so I cannot change it. And it is correct, see specification battery.charge_level of HAL. BME has bad values (it use its own values which is not correct for HAL).

Do not create duplicate messages!!! (Remove duplicate from other threads!)
Ok, so let me give you more informations :

The values reported are BAD when fetched with the command (you can trust me on that) :

Code:

lshal -u /org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0
How can you explain the 'battery.charge_level.percentage' reported as '0' in the example with a 25% charged battery properly reported by the other command :

Code:
lshal -u /org/freedesktop/Hal/devices/bme
Since I also use the 'battery' applet v0.4 you patched to reflect values from the backported driver, I can afirm the values are FALSE ...

Easy to verify step by step, if I modprobe -r bq27x00_battery then on the desktop, after some seconds for the applet refresh, the value revert back to the bme value and report properly 25% of battery available, if I modprobe the backported driver then, the applet refresh and show 0% of battery available ...

I have installed the v47 since you released it, and no problem until today.

So the question is : What I have made today ?

Answer, here is how I triggered this BUG :

I have a desktop battery charger, and yesterday night I have omitted to charge my N900, so this morning I have powered off the N900 because I have no more battery power and the device reported 2%.

Then I have replaced the battery by the one fully charged by my desktop charger some days ago, and during today the problem occur ...

Since the problem occur, the value reported for parameter 'battery.charge_level.percentage' is '0' and this is the value used by the applet 'battery' you patched ...

How can you explain, today, my applet reported 0% battery available during all the afternoon ?

It look like bme values reported take care of this scenario (changing physically the used battery by one fully charged) where the new driver does not ...

So there is really a bug when we fetch information from the backported driver ...

A++

Last edited by colin.stephane; 2011-06-04 at 22:19. Reason: Clarification on step by step procedure to track the problem ...