maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   N800 Battery Meter (https://talk.maemo.org/showthread.php?t=7590)

qwerty12 2008-03-18 19:35

Re: N800 Battery Meter
 
I see what you mean. I think kcbatt algo needs updating?

Quote:

Nokia-N800-51-3:~# kcbatt
retu-adc #8: 385 batt: 19% [= ]
battery LOW, recharge suggested
Nokia-N800-51-3:~# battery-status
[Mar 18 19:31] 8.4%
Nokia-N800-51-3:~#
I would place my bets on kcbatt being incorrect :( because my n800 runs out of batt quickly (due to my habit of using 44hz for mmc & disabled power freq scaling).

Edit look at this:
Quote:

Nokia-N800-51-3:~# kcbatt
retu-adc #8: 334 batt: -2% [ ]
battery LOW, recharge suggested
Nokia-N800-51-3:~# battery-status
[Mar 18 19:40] 7.6%
Nokia-N800-51-3:~#
-2%?

KotCzarny 2008-03-19 15:52

Re: N800 Battery Meter
 
reason for kcbatt was to make a util to show retu-adc value (percentage was added as a quick and dirty estimation) have you looked at my plots? (yellow is battery, pink is strictly related to charging status) http://mrrau.dyndns.org:23280/n800/kcbatt/batt2gp.png
i could have made it to show fixed 100% above certain value, and fixed 0% below other, but i wanted to have util that can show me how really that value fluctuates over time (with and without load). i'm still doing battery rundown tests, that's why no updates to algo..
last 2 plots are without wifi and with locked screen/keys, observe how quickly #8 drops under load and after getting back to idle it goes up a little (on 16/03 i made a skype call that lasted ~1h), another observation is ending part of the curve on 7/03, i have chosen 340 as a 0% in a rough guess and 570 as 100% (during charging it goes over 600, but drops quickly to ~570), and 400 is ~20% (that's when i print 'recharge suggested') i can make an update version with max set to 560 and min to 400, but what i would really like is a log of the battery rundown from anyone else (to see how batteries of different ages compare). and remember, every % is just an estimation

KotCzarny 2008-03-19 16:44

Re: N800 Battery Meter
 
i have made a little update to kcbatt, comments are welcome (changed min/max to 390/560, added params -be,-bf to set them on cmd line) please test and report what values work best for you (here or on irc)

KotCzarny 2008-03-20 20:39

Re: N800 Battery Meter
 
yet another update (v0.2.3), this one brings oversampling and timing estimate (algo is still linear and very conservative :), v0.2.4 looping mode (-l) for continuous operation

Sky_mac 2008-04-29 01:35

Re: N800 Battery Meter
 
My battery meter icon no longer shows the up and down movement indicating it's charging. Then after awhile it (the icon) disappears from the task bar altogether. However, it still seems to be charging. When I click on the icon (while it's still showing) the text says "charging". And when the N800 is powered off all indications of charging are as normal.

Anyone else had this problem?

sondjata 2008-04-29 02:21

Re: N800 Battery Meter
 
It happened to me for a while some time ago. After a few restarts it started working as expected.

Starcruiser1229 2008-04-29 05:31

Re: N800 Battery Meter
 
Hmm, sounds interesting. I too find the battery meter to be more or less crazy. One thing I have found is that, for me, the number of days remaining for standby * 10 is generally about the same as the battery life estimated by battery-status (ie 9 days = 90%), which I use for quick and dirty estimations.


I would love a desktop applet that uses the script above or battery-status for more reliable numbers.

Also (and I am sorry for the side-track), but has anyone played around with the different cpu scalers? I was wondering if there was any real effect on battery life by changing to a more agressive scaler? I figured out how to switch them (I wrote a quick script), but their effects on the battery use are beyond my ability to determine....

Patrick

qwerty12 2008-04-29 05:52

Re: N800 Battery Meter
 
Quote:

Originally Posted by Sky_mac (Post 175805)
My battery meter icon no longer shows the up and down movement indicating it's charging. Then after awhile it (the icon) disappears from the task bar altogether. However, it still seems to be charging. When I click on the icon (while it's still showing) the text says "charging". And when the N800 is powered off all indications of charging are as normal.

Anyone else had this problem?

Refresh the gtk icon cache.

Benson 2008-04-29 13:04

Re: N800 Battery Meter
 
Quote:

Originally Posted by Starcruiser1229 (Post 175843)
Also (and I am sorry for the side-track), but has anyone played around with the different cpu scalers? I was wondering if there was any real effect on battery life by changing to a more agressive scaler? I figured out how to switch them (I wrote a quick script), but their effects on the battery use are beyond my ability to determine....

Patrick

By more aggressive, you mean chopping frequency quicker at idle? We use ondemand by default, which is the best for that. There's also conservative, which is slower in slacking off, but doesn't seem to really help performance. Performance and powersave, of course, just peg it at maximum or minimum; and null sets it to 400000, even when the maximum drops to 333000 in order to boost the DSP.

Sky_mac 2008-04-29 23:44

Re: N800 Battery Meter
 
How do I go about refreshing the gtk icon cache?


All times are GMT. The time now is 06:52.

vBulletin® Version 3.8.8