Reply
Thread Tools
Posts: 478 | Thanked: 101 times | Joined on Feb 2010
#141
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's Avatar
Posts: 670 | Thanked: 359 times | Joined on May 2007
#142
Originally Posted by Spotfist View Post
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
__________________
Class .. : Lame hacker & beardy boffin
Humour . : [#######---] Alignment: Apathetic anarchist
Patience : [####------] Weapon(s): My cat, my code.
Agro ... : |#---------] Relic(s) : N900, MacBookPro, NSLU2, N800, SheevaPlug, Eee-901, Core2-Quad, PS3
"In theory, theory and practice are the same. In practice, they're not."
--
Beware of extras-devel.
 
Posts: 478 | Thanked: 101 times | Joined on Feb 2010
#143
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's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#144
Originally Posted by Spotfist View Post
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 ^^
Attached Files
File Type: zip battery_raw.sh.zip (421 Bytes, 79 views)

Last edited by b666m; 2010-03-03 at 23:37.
 

The Following User Says Thank You to b666m For This Useful Post:
Posts: 1,258 | Thanked: 672 times | Joined on Mar 2009
#145
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
 
Posts: 478 | Thanked: 101 times | Joined on Feb 2010
#146
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's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#147
Originally Posted by Spotfist View Post
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. (:
 
Posts: 113 | Thanked: 26 times | Joined on Feb 2010 @ Port of Spain, Trinidad & Tobago
#148
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.
 

The Following User Says Thank You to cjsegninir For This Useful Post:
Posts: 41 | Thanked: 39 times | Joined on Jan 2010 @ ireland
#149
Originally Posted by cjsegninir View Post
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
 

The Following User Says Thank You to oskarmat For This Useful Post:
msa's Avatar
Posts: 909 | Thanked: 216 times | Joined on Nov 2009 @ Bremen, Germany
#150
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...

Last edited by msa; 2010-03-09 at 10:04.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 22:17.