Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,656 Members 52,299 Now Online
XDA Developers Android and Mobile Development Forum

Graphical Analysis on Battery (3G vs WiFi, Black vs White, etc)

Tip us?
 
RogerPodacter
Old
#1  
Senior Member - OP
Thanks Meter 396
Posts: 5,578
Join Date: Apr 2010
Location: Los Angeles, CA
Default Graphical Analysis on Battery (3G vs WiFi, Black vs White, etc)

I was able to add some real time graphing to the battery calibrator app where the current draw thru the battery is sampled every 2 seconds. This gives a very fine tuned accurate picture of what the battery is doing. note the battery driver had to be edited to allow for current readings taken at a faster sample rate, so all that work was done initially.

This first test is the phone switching from connected to 3G to switching over to wifi. notice the extreme difference between the spikes and then how smoooth it levels off around the 14 second mark. shows how much battery is saved using wifi (i'll come to this more later).

Switch from 3G to WiFi data by RogerPodacter

The second image is just showing the phone left completely idle 3g data, but with the screen on, min brightness, and timeout set to never. curious to see those regular periodic blips of current draw. notice -170mA is about spot on for the black amoled screen showing all black color like that. and this shows how efficient 3g data is during idle when no data transfer is taking place. This graph view is what was displayed during this time, mostly black.

Idle 3G Connection, Screen on Min Brightness by RogerPodacter, on Flickr

the next screen shot shows switching from screen brightness at minimum to maximum brightness, but showing the same black graph image. notice the slight increase, but it stays dead flat still. it switched at the 36 second mark.

Switch from Min to Max Brightness, Showing Black by RogerPodacter, on Flickr

This screen shot shows what happens to amoled when displaying a fully white image at maximum brightness. the power draw goes thru the roof! it started at the 16 second mark. i used the app "dead pixel detect" to display solid full screen colors, this one showing white.

Displaying a Solid White Screen by RogerPodacter, on Flickr

Same as above, but now switching back to the black graph view, the current drops down to normal. Swtich happened at about the 15 second mark.

White Color Max Brightness by RogerPodacter, on Flickr

The next screen shot shows why wifi gives so much better battery life. this shot shows receiving a new gmail email message over 3g data connection. right at the 20 second mark the email comes in, and the current draw spikes over -500mA. when the same email message is received while connected to wifi, there is not even a spike at all, it stays flat.
Receive Email over 3G by RogerPodacter, on Flickr

This is due to the much faster latency that comes with wifi. on 3g, the 200ms ping time, each direction to and from the server, all while the radio is fired up, is what causes the spike. now think about that happening all day long with all your google services constantly talking to their servers.

This next one shows loading a web page with a light color, and scrolling around. I loaded a thread here at XDA with the stock browser, without invert color turned on. look at the enormous spikes.

Load and SCroll Light Color web page by RogerPodacter, on Flickr

And finally, this is loading and scrolling the same web page, same thread, but with invert color option turned on, so the color was basically black and dark. (For these last 2 web page tests, i forgot to turn the screen brightness back from max to minimum brightness. oh well.).

Load and Scroll Dark color web page by RogerPodacter, on Flickr

If anyone wants more test comparisons done, just post your request. For the above tests, i didnt think things out too much, so i'd like to really do things over and show more/better scenarios of how power draw is effecting our phones' battery.
Past projects
Github
My N1 Battery Project

Phone: Nexus 5
ROM: stock rooted
Recovery: CWM Touch
The Following 6 Users Say Thank You to RogerPodacter For This Useful Post: [ Click to Expand ]
 
erikiksaz
Old
#2  
Senior Member
Thanks Meter 100
Posts: 789
Join Date: Mar 2010
Location: Los Angeles
Interesting! Thanks for taking the time to put this together.
 
RogerPodacter
Old
#3  
Senior Member - OP
Thanks Meter 396
Posts: 5,578
Join Date: Apr 2010
Location: Los Angeles, CA
I had one more, from today. Watch what happens when i go and read a topic on the engadget app (entire white colors) while i was outside at max brightness. power draw sky rockets up, then back down when i return to the black graph view.

Browse the White color Engadget App by RogerPodacter, on Flickr
Past projects
Github
My N1 Battery Project

Phone: Nexus 5
ROM: stock rooted
Recovery: CWM Touch
 
fyid
Old
#4  
Member
Thanks Meter 2
Posts: 33
Join Date: May 2010
great data - can you check some apps, like words with friends & weather channel (background widget). words with friends tops out my cpu for no good reason.
 
RogerPodacter
Old
#5  
Senior Member - OP
Thanks Meter 396
Posts: 5,578
Join Date: Apr 2010
Location: Los Angeles, CA
Quote:
Originally Posted by fyid View Post
great data - can you check some apps, like words with friends & weather channel (background widget). words with friends tops out my cpu for no good reason.
how exactly would you like it tested? i've never used words with friends, and i never installed the weather channel widget either. the second one might be harder to test. is there a way to tell it to initiate its update or data transfer or whatever it is that it does?
Past projects
Github
My N1 Battery Project

Phone: Nexus 5
ROM: stock rooted
Recovery: CWM Touch
 
zeus_chingon
Old
#6  
Member
Thanks Meter 16
Posts: 95
Join Date: Apr 2010
Location: Houston
The current graph is a lil bit confussing. Is the rightmost the oldest plot? and the leftmost is the most recent?
 
RogerPodacter
Old
#7  
Senior Member - OP
Thanks Meter 396
Posts: 5,578
Join Date: Apr 2010
Location: Los Angeles, CA
Quote:
Originally Posted by zeus_chingon View Post
The current graph is a lil bit confussing. Is the rightmost the oldest plot? and the leftmost is the most recent?
The right direction is older and the left is more recent. The full current graph only shows in seconds, around a minute or so. So this is like a true profile of all power, in real time, going thru the battery's resistor, and hence device power draw. So its great to see exactly what different tasks do to power behind the scenes.

I've been doing many more tests just for fun. My overall discovery is that the screen is bad, real bad, and there's a disproportionate difference between min and max screen brightness. Min is really good, but max is so far off the charts bad that its horribly power hungry. So I'm practicing keeping locked at min brightness. Then comparing things like CPU usage loading a web page in the background, then over WiFi then 3g, etc.

I'm enjoying seeing the bad offenders.
Past projects
Github
My N1 Battery Project

Phone: Nexus 5
ROM: stock rooted
Recovery: CWM Touch
 
OJ in Compton
Old
#8  
Senior Member
Thanks Meter 49
Posts: 315
Join Date: Aug 2010
Thanks for posting these, you're just as helpful here as you were on the S60 boards @ hofo
 
Jack_R1
Old
#9  
Senior Member
Thanks Meter 948
Posts: 4,305
Join Date: Aug 2009
Excellent analysis to visually confirm what has been known and constantly overlooked by people complaining about their battery life: the 2 major power-hungry things in the phone are the display and the 3G data - when it fires up.

You could also show GPS power draw, to have a good comparison between values. I'd guess that running Google Maps on full brightness during the day over cellular data will show near the maximal power draw possible from the device.
Wiki on this forum exists for a reason. PLEASE READ THE WIKI BEFORE ASKING QUESTIONS.
Glacier (MyTouch 4G / Panache) Wiki
Nexus One Wiki
Nexus One FAQ.


[Lockscreen MOD] Trackball/trackpad wake-sleep toggle for Sense ROMs - [Nexus One], [MyTouch 4G]
[MOD]NoClock for Sense ROMs
[MOD] Change WiFi hostname

[MOD]Gallery3D with high-res patch, for stock and HTC cameras
 
RogerPodacter
Old
(Last edited by RogerPodacter; 20th March 2011 at 09:45 PM.)
#10  
Senior Member - OP
Thanks Meter 396
Posts: 5,578
Join Date: Apr 2010
Location: Los Angeles, CA
Quote:
Originally Posted by Jack_R1 View Post
Excellent analysis to visually confirm what has been known and constantly overlooked by people complaining about their battery life: the 2 major power-hungry things in the phone are the display and the 3G data - when it fires up.

You could also show GPS power draw, to have a good comparison between values. I'd guess that running Google Maps on full brightness during the day over cellular data will show near the maximal power draw possible from the device.
Good ideas, I'll do a gps test next. I've already done it but with no screen shots, and I can say it really puts I high load on the battery by far.

I also just now did a 3g phone call test, and it was higher than I thought it would be. I'll post the screen later.

I'm now a huge proponent of min screen brightness. If you can use min brightness then do it. If that's too dim during the day then 40% gives the best combo of still usable with decent power. But auto brightness, or max brightness which will happen in sun light, is just totally off the charts bad. And when loading a web page outside at max brightness, the power is thru the roof.

So I'm now locking my screen at 40%.

Edit: I also did color comparisons. Full screen of white, red, blue and green. Nothing too crazy but still cool.
Past projects
Github
My N1 Battery Project

Phone: Nexus 5
ROM: stock rooted
Recovery: CWM Touch

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes