maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Battery consumption analysis (https://talk.maemo.org/showthread.php?t=43748)

Spotfist 2010-03-03 19:40

Re: Battery consumption analysis
 
does anyone know how I can get hold of the graph data in txt? also has there been any final verdict on why the battery doesn't charge to 100% or why in my previous graph the are mini peaks during the day when not even charging?!?! i get them often, surely there has to be an explenation for this???

fnordianslip 2010-03-03 19:56

Re: Battery consumption analysis
 
Quote:

Originally Posted by Spotfist (Post 554554)
does anyone know how I can get hold of the graph data in txt? also has there been any final verdict on why the battery doesn't charge to 100% or why in my previous graph the are mini peaks during the day when not even charging?!?! i get them often, surely there has to be an explenation for this???

Like a capacitor, it would probably take an infinite time to charge the battery to 100%.

The reason that peaks occur whilst not charging is probably due to a fluctuating load causing a change in current drain, therefore causing a change in voltage drop across the internal resistance of the battery.

I hope this helps :)

Spotfist 2010-03-03 20:28

Re: Battery consumption analysis
 
hehe thanks the first part I think i understand, like an exponencial curve i assume the second bit am not sure about but will take your word as I know no better ;) any ideas on how to get my hands on the raw data? I would like to perform some analysis so as to gain a better understanding for battery life.

is such a shame it cannot be linked to the applications running at the time...

b666m 2010-03-03 23:28

Re: Battery consumption analysis
 
1 Attachment(s)
Quote:

Originally Posted by Spotfist (Post 554617)
any ideas on how to get my hands on the raw data?

mhm... using the line from desktop command execution widget for reading the current load in mAh:

Code:

hal-device bme | grep battery.reporting | awk -F. '{print $3}' | sort | awk '$1 == "current" { current = $3}; $1== "design" {print current "/" $3}'
if you want to store it in a file use > (overwrites) or >> (appends).

possible script:
Code:

#!/bin/bash

# creating endless loop
while [ 1 ]; do

  # print date and time
  echo -n $(date) >> /home/user/MyDocs/battery_raw.txt
  # print some text in between
  echo -n " - mAh: " >> /home/user/MyDocs/battery_raw.txt
  # print "current/full-charge"
  echo $(hal-device bme | grep battery.reporting | awk -F. '{print $3}' | sort | awk '$1 == "current" { current = $3}; $1== "design" {print current "/" $3}') >> /home/user/MyDocs/battery_raw.txt

  # sleep some time (in seconds) - for example 5 minutes
  sleep 300

done

this should make a file called battery_raw.txt (extension txt just for easy use in windows ^^) which you can copy over to your pc when the phone is connected via usb. (:

the battery_raw.txt file should look something like:
Code:

Thu Mar 4 00:24:06 CET 2010 - mAh: 1022/1265
Thu Mar 4 00:24:11 CET 2010 - mAh: 1022/1265
Thu Mar 4 00:24:16 CET 2010 - mAh: 1022/1265
Thu Mar 4 00:24:21 CET 2010 - mAh: 1022/1265

for test/preview purposes i changed the sleep time to 5 seconds ^^
(and yep... you could write all commands in one line... but i wanted to comment what the commands are doing *g*)

copy the battery_raw.sh over to your phone - for example in the documents-folder.
then you can open xterm and run it via
Code:

sh MyDocs/.documents/battery_raw.sh
minimize it and it will make one line every 5 minutes :)
(of course you can change the sleep time *g*)

edit: attached the file ^^

shadowjk 2010-03-03 23:37

Re: Battery consumption analysis
 
I think the battery gauge is separate from battery charger and somewhat unaware of eachother.

That said keeping a Li-Ion battery fully charged through trickle-charging is dangerous, so the charger stops once the battery is full. It tops up the charge periodically though. In real terms the charge level could vary by as much as 10 percent.

And on top of that the battery gauge making some informed guesses about battery's charge level.

BTW, if you only charge halfway, for example, you'll see the battery gauge adjusting its guess upwards for several minutes after you disconnected charger :)

Spotfist 2010-03-04 07:48

Re: Battery consumption analysis
 
thanks b666m but is there anyway to get the data from battery eye as it already has a number of weeks worth od data... surely the data file must be somewhere...?

b666m 2010-03-04 15:45

Re: Battery consumption analysis
 
Quote:

Originally Posted by Spotfist (Post 555102)
thanks b666m but is there anyway to get the data from battery eye as it already has a number of weeks worth od data... surely the data file must be somewhere...?

/home/user/.config/battery-eye/
there should be a sqlite db. maybe this contains the data. (:

cjsegninir 2010-03-08 12:19

Re: Battery consumption analysis
 
I have noticed my battery doesn't charge completely (Which is normal), but what worries me is that about 10% is drained quickly after charging.

For example, yesterday I put my phone to charge when it was about 10% battery (Around 11pm). I woke up this morning at 6am as usual. Before unplugging checked the battery and was 97%. Unplugged and went to do my stuff. About half an hour later, took the phone to check emails, battery was 90%. Browsed a little (about 15-20min) and it went to 85%.

Take in account I have my wifi disabled when not in use (I have the Wifi switcher), I don't use bluetooth, I have the brightness permanently in the second square, I don't have a data plan and I use the phone under GSM (no 3G here).

Does it happen to you too?

Apart from it, I have to charge battery every night. I consider I'm not a heavy-heavy user. I make/receive a couple of calls, send around 5sms, browse 20min in the mornings, maybe 30-1hr music and 30min games during the day, taking some notes or putting something under the calendar and 1-2hrs of games/browsing/IM in the evenings.

oskarmat 2010-03-08 15:47

Re: Battery consumption analysis
 
Quote:

Originally Posted by cjsegninir (Post 559768)
I
Apart from it, I have to charge battery every night. I consider I'm not a heavy-heavy user. I make/receive a couple of calls, send around 5sms, browse 20min in the mornings, maybe 30-1hr music and 30min games during the day, taking some notes or putting something under the calendar and 1-2hrs of games/browsing/IM in the evenings.

and that's the mostyou can get... unfortunately, the battery life of the n900 is ridiculously short. If you try a heavy usage (music, browsing, emailing and IM at the same time) it dies in 2 to 3 hours.
It's really bad, battery technology just doesn't keep the pace of devices development

msa 2010-03-09 10:01

Re: Battery consumption analysis
 
great app! cant wait for it to go to extras.

anyway, i observed something strange.
the last few days i noticed how my batteylife improved. i remember not charging the phone for nearly 2 days and the battery still having some energy left (and i was thinking "wow the battery vastly improved, maybe it needed some loading-cycles to fully expand its life")
now yesterday i put it on the charger because the battery was dying and it was fully charged again at around 10pm. thats when i took it off the charger.
today i wake up at 10:30am and the battery is nearly gone completely. right now, only the 1pixel red line on the bottom of the battery is to be seen. i didnt do anything with my device the last 12 hours, it was just sitting on my desk.

i wonder what suddenly triggered this heavy consumption...


All times are GMT. The time now is 21:46.

vBulletin® Version 3.8.8