View Single Post
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#935
Originally Posted by pali View Post
I created new battery status area plugin (based on old MAG version). It work with BME or with bq27x00_battery kernel driver. It is like original Nokia version, plus display percentage, remaining time and capacity.

Please test it and write if this can go to CSSU :-)

Source: https://gitorious.org/~pali/communit...applet-battery
DEB: http://atrey.karlin.mff.cuni.cz/~pal....0-1_armel.deb
Works for me on my testing device, on CSSU-thumb, 2.6.28.10-cssu3 kernel, BME it required "killall hildon-status-menu" after installation. At first I thought it would display percentage on the icon and was disappointed, but after a second discovered that it displays this data after opening hildon-status-menu Great it's even localized! it says "Battery" and "hours" in my language, that's nice

One question: how is the remaining time calculated? my testing device is usually just running for a few days with very little usage (0.5-1h daily at max), it was running for something around 3 days now, your widget says: "Battery: 53%, 692/2387 mAh, 3 hours" - why only 3 hours? Do you have a thread here or a bugtracker to report such issues?

edit: command
Code:
hal-device bme
returned
Code:
...
battery.remaining_time = 10800 (0x2a30) (int)
...
and I see in https://gitorious.org/~pali/communit...plet-battery.c (lines 205-231) that this is the value that you're treating as value in seconds. So either bme is wrong or interpretation of this value is wrong. By the way, nice reuse of strings from osso-clock, mediaplayer and osso-display when you took days from osso-clock, didn't it also have hours? and, side note (don't take it personally, as it's not aimed at you) - by looking at lines 129-163 i was suprised how lamer-ish the displayed graphics is

edit 2: "hal-device bme" returned exactly the same value of battery.remaining_time on my second n900 (10800). I need to say that both have similar percentage, thought (testing one has still 53% while the other one has 45%).

edit 3: the second device uses cssu stable, kernel 2.6.8.10-power51 (that's what uname -r says, but that's the "r1" version).

Last edited by misiak; 2012-11-07 at 01:39.
 

The Following 6 Users Say Thank You to misiak For This Useful Post: