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)

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


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

vBulletin® Version 3.8.8