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-02-23 07:46

Re: Battery consumption analysis
 
I think the fact that most netbooks with a battery double the size would not be able to last 14 hrs is something to keep in mind. I had a business trip last week, 6am leave and got back at 7pm. all I did was not use the phone, I think I checked my messages like twice as I was in meetings. The phone still had about 2 hours min left on it.

One could easily turn off 3g and im sure that would increase battery life, i notice that my phone draws more power trying to find reception than it would at home on the wifi.

What we really need is an app that optimises on the power consumption, it's nice to have my phone connected all day to such things as facebook, emails and skype but is there no ways this could be optimised?

juise- 2010-02-23 16:15

Re: Battery consumption analysis
 
Quote:

Originally Posted by Spotfist (Post 541518)
still odd that the consumption goes up... I was wondering if it was due to the temperature... we have a heater in the office and it is on and off at different intervals.

I just found this entry on bugs.maemo.org and wanted to link it here. The comments there go in good detail of how the battery percentage calculation works.

Bug 7636: battery level not showing 100% when full

NOTE
The bugtracker is not a forum, so please don't post unnecessary, unrelated or uninformational comments there...

Spotfist 2010-02-23 19:15

Re: Battery consumption analysis
 
ye I read about the battery not chargin to 100%, my concern is how the graph goes up without any charging, the small peaks are from...?

I had a read of the entry in bugzilla, didn't think it was wise to make a comment as I havent been on here long but does anyone remember the old Nokia's and how they had a reserve on the battery? the hpone would die, and u did something like hold the on button whilst holding # and * or something and then the phone would trun on with one bar...? just a thought but could this be something that nokia still builds into the phone hence it always reporting less then 100%?

~phoenix~ 2010-02-23 20:52

Re: Battery consumption analysis
 
here is my graph http://img687.imageshack.us/img687/1...0022320404.png

yes 1 have 3 battery... two of then i chargeing with my 5800XM and one with my n900 every day....

that is stupid that the battry cannot last for at least one day... i need 3 battery when i want to use my phone the whole day.... WTF?..

description to the graph...
at 9am i ve installed batery eye
when playing musik: volume is full, screen off, Offline mode
the mana world is an online game so it uses 3g connection
idle means screen off, 3g connection on, skype & msn conected,
idle wifi means data via wifi, screen off, 3g connection on, skype & msn conected,

btw:
widgets in my desktops:
1: 8 Shortcuts
2 personal ip, personal Dataplan (manual aktualize)
3 6shortcuts to wbpages
4 2 shortcuts to webpages

app i ve installed
Code:

3g/2g selection applet
battery eye
browser switchboard
Extanded A/V Support
Extra protocols for conversations
Fahrplan
Flashlight
Fm-Boost
Headphonedeamon
Htop
Laefpad
Link-local XMPP Protocoll for Conver.
Maemo5
Maepad
mc
Mplayer
Msn protocol plugin
mymenu
mytube
n900fly
nmap
ogg support
openttd
Personal IP
Personal dataplan
petrovic
pigdin extraprotocols bonjour sametime
pigdin extraprotocols for conver.
rootsh
speedy
speccy
tmw
transmission
usbcontrol
vgba
wifi switcher

ist there any app witch is known for draining battery??
my backlight is set to 1[]...

what i´m doing wrong??

greetz phoenix

Sry for my bad english

Thesandlord 2010-02-23 21:03

Re: Battery consumption analysis
 
No phone I know can do that for a whole day... 3G MMORPG, Music, IM, Web connected widgets, thats going to suck a lot of power...

~phoenix~ 2010-02-23 21:15

Re: Battery consumption analysis
 
i´ll try tomorow to let the phone idleing the whole day without im...

means screen off, 3g connected... maybe half day 3g and half day 2g .... and then look whan it says....

btw none of my widgets are web connected....

personal ip is only showing my current ip adress....
personal dataplan is only showing the used up & download megabytes from last reset witch you can also see under settings...
anythi g else are just shortcuts...

les_garten 2010-02-23 21:34

Re: Battery consumption analysis
 
Quote:

Originally Posted by ~phoenix~ (Post 543301)
i´ll try tomorow to let the phone idleing the whole day without im...

means screen off, 3g connected... maybe half day 3g and half day 2g .... and then look whan it says....

btw none of my widgets are web connected....

personal ip is only showing my current ip adress....
personal dataplan is only showing the used up & download megabytes from last reset witch you can also see under settings...
anythi g else are just shortcuts...

You might look over the threads on battery use out there.

slender 2010-02-23 21:46

Re: Battery consumption analysis
 
Quote:

Originally Posted by ~phoenix~ (Post 543301)
i´ll try tomorow to let the phone idleing the whole day without im...

means screen off, 3g connected... maybe half day 3g and half day 2g .... and then look whan it says....

btw none of my widgets are web connected....

personal ip is only showing my current ip adress....
personal dataplan is only showing the used up & download megabytes from last reset witch you can also see under settings...
anythi g else are just shortcuts...

Finding or narrowing possible problems is just dead simple task. Just turn off everything. Off course you can go by simply taking one by one off, but I think that after seeing what idle battery usage should be (read this thread and look pictures) you can first see that the "zero" level is same with others. What this means?

Original battery? Newest firmware?

-reboot phone
-IM offline
-wifi off
-2g only
-fm transmitter off?

Venomrush 2010-02-24 05:40

Re: Battery consumption analysis
 
There's another battery analysis called BatteryGraph
You guys might want to check that out as well.

~phoenix~ 2010-02-24 18:11

Re: Battery consumption analysis
 
i´m turned IM off and my battery is stil @ 38%

slender 2010-02-24 19:00

Re: Battery consumption analysis
 
Quote:

Originally Posted by ~phoenix~ (Post 544691)
i´m turned IM off and my battery is stil @ 38%

I do not understand. Could you please attach picture and clarify.

b666m 2010-02-24 19:21

Re: Battery consumption analysis
 
Quote:

Originally Posted by ~phoenix~ (Post 543261)
ist there any app witch is known for draining battery??
my backlight is set to 1[]...

what i´m doing wrong??

i think you aren't doing anything wrong.

mostly the backlight is very bad to your battery.

i look into battery eye every evening and i had to recognize that the consumption is really good if the phone is just idling (wifi on/off doesn't really as long as you're doing nothing) with backlight off.

when the backlight is kept on things get worse. my graph looks nearly the same like your graph.

playing music with boxes or earphones doesn't consume as much battery as the backlight does. but because i always want to skip the tracks without unlocking my device i keep my backlight on (even it's only at 1) and that's the real battery-eater in my opinion. ^^

slender 2010-02-25 06:19

Re: Battery consumption analysis
 
2 Attachment(s)
Just for reference.Same setup,no im,idle,only wifi connected. Look how different trends.Latest firmware 1.1.1. Something is depleting battery. Nothing special in top. I just run powertop so lets see if its output is different compared to normal idle.

slender 2010-02-25 08:34

Re: Battery consumption analysis
 
2 Attachment(s)
(relates to previous post)
Setup for powertop was following:

- Close all open windows (2g, wifi connected but no accounts online)
- Open x terminal
--> sudo gainroot
--> powertop > filename.txt
- minimize x terminal
- go to desktop
- close keyboard
- lock device with switch
- Leave it on table for 1 minute
- check results

Results (more detailed as attachments)
Before reboot:

Code:

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
    C0 |  4.8% |          |  600 MHz |  1.5% |
    C1 |  0.1% |    0.5ms |  550 MHz |  0.0% |
    C2 |  95.1% |    9.1ms |  500 MHz |  2.0% |
    C3 |  0.0% |          |  250 MHz |  96.6% |
    C4 |  0.0% |          |

IRQ#    | Activity  | Type          | Name
--------+------------+----------------+---------------------------
    12 |      3086 |          INTC | DMA
    56 |        251 |          INTC | i2c_omap
    37 |        222 |          INTC | gp
    86 |        172 |          INTC | mmc1
    57 |        34 |          INTC | i2c_omap
    21 |        10 |          INTC | SGX

Power domain activity breakdown
Domain  | % of time spent in states
--------+---------+---------+---------+---------+----------
    per |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| now:(ON)
  core |OFF:  0%|RET:  0%|INA:  0%| ON: 100%| now:(ON)

Total wakeups  4047

After reboot:
Code:

C#      | Ratio  | Avg/dura | Frequency | Ratio
--------+--------+----------+-----------+--------+
    C0 |  1.7% |          |  600 MHz |  4.3% |
    C1 |  0.0% |    0.4ms |  550 MHz |  0.0% |
    C2 |  4.2% |  11.3ms |  500 MHz |  3.1% |
    C3 |  8.9% |  107.4ms |  250 MHz |  92.6% |
    C4 |  85.2% |  983.3ms |

IRQ#    | Activity  | Type          | Name
--------+------------+----------------+-----------
    56 |        330 |          INTC | i2c_omap
    86 |        157 |          INTC | mmc1
    12 |        156 |          INTC | DMA
    37 |        126 |          INTC | gp
    11 |        69 |          INTC | prcm
    57 |        34 |          INTC | i2c_omap
    202 |          4 |          GPIO | wl1251
Power domain activity breakdown
Domain  | % of time spent in states
--------+---------+---------+---------+---------+----------
    per |OFF:  93%|RET:  4%|INA:  0%| ON:  1%| now:(ON)
  core |OFF:  85%|RET:  8%|INA:  0%| ON:  5%| now:(ON)
Total wakeups  1072

SO. Even I did not see anything running with high cpu in top my device was still using battery at very high rate at idle (previous post). From powertop entry we can see that something is keeping processor in C2 state and waking up it constanlty and depleting my battery.

I do not know what all the terms and devices in powertop mean but i do understand it in generally. I do not know how to reproduce what I experienced. Is there any wiki entry and total breakdown about how you can read it, what you can see from it and when you should report and what report and so on and so on.

juise- 2010-02-25 12:24

Re: Battery consumption analysis
 
Quote:

Originally Posted by slender (Post 545473)
SO. Even I did not see anything running with high cpu in top my device was still using battery at very high rate at idle (previous post). From powertop entry we can see that something is keeping processor in C2 state and waking up it constanlty and depleting my battery.

This is similar to what I have observed sometimes. I also think that I've seen the device to come out of this without rebooting, but my memory may fail.

Edit:
For me, this has already been happening in PR1.1, so it's probably not new to 1.1.1.

Quote:

Originally Posted by slender (Post 545473)
Before reboot:

Code:

IRQ#    | Activity  | Type          | Name
--------+------------+----------------+-----------
    12 |      3086 |          INTC | DMA

After reboot:
Code:

IRQ#    | Activity  | Type          | Name
--------+------------+----------------+-----------
    12 |        156 |          INTC | DMA


It seems that there's some DMA activity going on, which probably shouldn't be happening if the device is idle and no apps are running. I'm not familiar with the OMAP hardware specifics, but this high interrupt rate definitely can prevent the CPU from sleeping.

I think you have a good set of data here, you should consider filing a bug (if this same issue isn't already posted).

~phoenix~ 2010-02-25 21:16

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

Originally Posted by slender (Post 544749)
I do not understand. Could you please attach picture and clarify.

first graph from yesterday (named gestern)
from 8 - 10 with IM Online
rest of the day IM offline...

and the battery was and the end off the day at 38% (9:00pm)

and second graph is from today....
IM off
web surfing from 6-7 & 10 min at 1pm
musik running with fm transmitter.... from 8am - 12am & 1:30pm-4:45pm
from 5pm-5:30pm websurfing
first battery dead...
rest of the day was im online & musik with earphones....

good results for me... now i know what is makeing my battery. empty so fast...

greetz

egoshin 2010-02-25 21:54

Re: Battery consumption analysis
 
One trick which helped me to save around 1/3rd battery -

get one screen (of 4) without any widgets or whatever - just blank (actually, black is preferable) and keep device on it each time then it is not needed.

This helps saving battery because in my pocket case with magnetic claps it may switch ON a screen in my pocket case (KBD has a magnetic sensor, some bug does exist about this problem) for some time. Even w/out magnetic case it saves energy because on each screen wakeup any widget application on this screen is called and if that application has some Internet data (like Foreca weather) then it communicates via 3G/WiFi each time then device is unlocked.

b666m 2010-02-26 22:16

Re: Battery consumption analysis
 
once again:

http://img64.imageshack.us/img64/280...0022623063.png

I.) idle - wlan off - backlight off
II.) idle - wlan off - backlight on
III.) idle - wlan off - backlight off - other desktop as I. and II.
IV.) idle - wlan on - backlight off - same desktop as III.

comparing I. with II. we see that backlight is sucking MUCH battery.
comparing I. with III. we see that changing the desktop may have little to no advantages.
comparing III. with IV. we see that wlan uses some battery but it seems to lower consumption while idling.

edit:
added yellow lines as tangents for idle in I. and III. :)
as you can see... little to no differences ^^

b666m 2010-02-28 00:49

Re: Battery consumption analysis
 
now when i check the postings above... it's no wonder that your battery dies so fast...

listening to music, browsing the web, having im running and backlight always on!?!?!?! ^^

6/7 hours is normal for that usage. (:

edit: with backlight at lowest setting (1 of 5) the battery lasts (idle) only about 15 hours.

~phoenix~ 2010-02-28 13:35

Re: Battery consumption analysis
 
i bought the phone to use it .... when i want a phone witch is idleing all day i rather had bought a stone or a iphone....

btw at the time when i had only nok e71 im was all day on.... musik 4-8 hours a day... and about 20 sms and 2 hour calls per day... and the battery lasted about 3 days.... now when i have n900 to do all that things i use e71 only to make calls and for sms... and the battery last about 6 days....

naja mir egal das n900 ist trotzdem ein geiles teil.... würde es für nichts auf der welt mehr hergeben..... i'm lovin it....=)

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...

afaq 2010-03-09 11:59

Re: Battery consumption analysis
 
The thread goes on. My battery eye graph is as random and inconsistent as others here.

People have said no other device can do IM, Web browsing and Music for this long - but yes they can. Nokia's N97 served me very well in battery life. I often used IM for 2 hours in the morning, and then email and web browsing through the whole day. By midnight I would have usually have about 50% battery left.

With the N900 - one hour of IM would take about 30/40% battery life. That is simply painful. Especially as I have 15 more hours left in the day where il need my phone. Dont always have USB plug in available.

msa 2010-03-09 20:37

Re: Battery consumption analysis
 
in addition to my last post:
i restarted the n900 today 4 hours ago, when the battery was at 50%.
now, 4 hours after restarting, the battery still shows 50%.

so there was definitely somethign going on in the system that drained power.

gamerakel 2010-03-09 22:52

Re: Battery consumption analysis
 
1 Attachment(s)
O_o with this strange power saving function enabled.
start 17:30 öhm 5.30pm. so loooong ;)
(strange i never reload the phone but the curve is raising)

msa 2010-03-10 00:02

Re: Battery consumption analysis
 
Quote:

Originally Posted by msa (Post 561723)
in addition to my last post:
i restarted the n900 today 4 hours ago, when the battery was at 50%.
now, 4 hours after restarting, the battery still shows 50%.

so there was definitely somethign going on in the system that drained power.

another 4 hours passed, battery still shows 50%.

i'll try to observe what triggers the rapid battery loss.

Tizbad2k 2010-03-10 00:17

Re: Battery consumption analysis
 
Just so you guys know, you cannot rely on these battery monitor programs %100. At best it should be used as a rough guideline of how much battery you are using or have left.

oskarmat 2010-03-10 11:15

Re: Battery consumption analysis
 
My sex lasts longer than my N900's battery life - and I am not proud of that

xav 2010-03-12 13:29

Re: Battery consumption analysis
 
This tool is really nice, thanks a lot !
While using it with powertop, I've discovered that my IM accounts were real power suckers. Now I've disconnected them all, and instead of something like 10hrs I run through the whole day with 60% battery left.

So there's a real problem with IM accounts. Too bad, being connected everywhere was the reason for buying an N900 in the first place.

BTW, would it be possible to integrate some powertop functionality into battery-eye ? Also, would it be possible to show (with a differrent color perhaps) when the device it charging ?

Thanks

geneven 2010-03-12 13:40

Re: Battery consumption analysis
 
This is a bummer, but remember -- you can carry an extra battery and it takes about ten seconds to change (plus time to reboot). I am not sure that the very purpose of the N900 is defeated because you might have to spend ten extra seconds sometimes.

Corwin 2010-03-12 15:08

Re: Battery consumption analysis
 
Quote:

Originally Posted by oskarmat (Post 562349)
My sex lasts longer than my N900's battery life - and I am not proud of that

Geez, you mean like half an hour of batterylife?

SCNR :D

blue_led 2010-03-12 20:02

Re: Battery consumption analysis
 
Battery can be monitored better by reading data from fuel gauge chip BQ27200. http://focus.ti.com/lit/ds/symlink/bq27200.pdf
It is connected on i2c bus 2 at address AA and AB ( hard coded on asic but i am not sure !! ) but these addresses are not listed on /sys

I add this to WIKI http://wiki.maemo.org/N900_Hardware_Power_Consumption


All times are GMT. The time now is 02:33.

vBulletin® Version 3.8.8