Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
V@no
Old
#1  
V@no's Avatar
Senior Member - OP
Thanks Meter 111
Posts: 1,124
Join Date: Sep 2007
Arrow Estimated power consumptions

I was playing around with some .xml files and found power_profile.xml in framework-res.apk
My understanding system uses this file to guesstimate how much this or that used the battery.
So according to that file the most power consumption part of the phone is the radio, then screen and third is gps followed by active wifi.
This actually proves my previously observations that the traffic via radio (cellurar/wifi) is the battery killer and cpu running at lowest 192mhz vs 1500mhz is not that of a big difference.

Code:
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
    <item name="none">0</item>
    <item name="screen.on">74.5</item>
    <item name="bluetooth.active">9.9</item>
    <item name="bluetooth.on">9.7</item>
    <item name="screen.full">232.8</item>
    <item name="wifi.on">26.7</item>
    <item name="wifi.active">99.5</item>
    <item name="wifi.scan">66.9</item>
    <item name="dsp.audio">0.1</item>
    <item name="dsp.video">0.1</item>
    <item name="radio.active">550.0</item>
    <item name="radio.scanning">7.9</item>
    <item name="gps.on">100.6</item>
    <array name="radio.on">
        <value>2.0</value>
        <value>5.1</value>
    </array>
    <array name="cpu.speeds">
        <value>192000</value>
        <value>384000</value>
        <value>432000</value>
        <value>486000</value>
        <value>540000</value>
        <value>594000</value>
        <value>648000</value>
        <value>702000</value>
        <value>756000</value>
        <value>810000</value>
        <value>864000</value>
        <value>918000</value>
        <value>972000</value>
        <value>1026000</value>
        <value>1080000</value>
        <value>1134000</value>
        <value>1188000</value>
        <value>1242000</value>
        <value>1296000</value>
        <value>1350000</value>
        <value>1404000</value>
        <value>1458000</value>
        <value>1512000</value>
    </array>
    <item name="cpu.idle">3.37</item>
    <array name="cpu.active">
        <value>407.8</value>
        <value>420.0</value>
        <value>426.9</value>
        <value>432.5</value>
        <value>438.4</value>
        <value>442.5</value>
        <value>448.0</value>
        <value>457.3</value>
        <value>466.4</value>
        <value>473.9</value>
        <value>484.5</value>
        <value>494.7</value>
        <value>505.8</value>
        <value>515.6</value>
        <value>524.9</value>
        <value>534.3</value>
        <value>544.1</value>
        <value>552.4</value>
        <value>566.8</value>
        <value>581.1</value>
        <value>595.8</value>
        <value>603.0</value>
        <value>608.8</value>
    </array>
    <item name="battery.capacity">1830</item>
</device>
 
aquariuz23
Old
#2  
aquariuz23's Avatar
Senior Member
Thanks Meter 79
Posts: 829
Join Date: Mar 2011
Location: Clifton, NJ
This may be off topic, im not sure..still a bit tired from working till 3 AM lol, but do u guys all live in an area blanketed with LTE or not? The reason I ask this is because I think this is one of the primary reason for our phone draining battery really fast. I believe that when the phone is searching for an LTE connection and can't connect to one, it waste much more battery doing so than when it is actually connected to one.

I live in northern jersey, where most of the area is not covered by LTE yet. I work in NY however and most of the area is already under LTE coverage. I notice that I waste much more battery in NJ than when I am in NY at work. Im not saying that with LTE connected I am saving 20-30% more battery, but I can say that I see the percentage drop slower than when it's searching for one.

We really need to somehow be able to turn off LTE when we don't need it or not in range of it. I believe we can save more battery by turning it off, just like in Verizon's phones.


Motorola Atrix 4G > Unlocked BL!! > GingerBlur 2.3.4 > Navalynt's Mod (v1.4) > Tenfar's CWM Recovery Mod > CM7

LG NITRO HD P930 >> Root via SuperOneClick v2.3.2 >> Bytecode64's CWM v.5.** >> KernelPan!c's v0.3
 
theoski
Old
#3  
Member
Thanks Meter 8
Posts: 70
Join Date: Aug 2007
I live in an area of good LTE coverage speeds from 25 to 50 down and the battery still drains giving tops of 4.5 hours of heavy use. Although when the screen is off the baterry drains is less noticeable so the drain is somewhere between LTE and IPS screen.

Sent from my LG-P930 using xda premium
 
V@no
Old
#4  
V@no's Avatar
Senior Member - OP
Thanks Meter 111
Posts: 1,124
Join Date: Sep 2007
Well, considering this file is what I think it is, the radio scanning consumes 7.9 points, so yes, it would make sense if it drains additional battery.
 
aquariuz23
Old
#5  
aquariuz23's Avatar
Senior Member
Thanks Meter 79
Posts: 829
Join Date: Mar 2011
Location: Clifton, NJ
wait, GPS on uses over 100 points??? Isnt dat kinda high?


Motorola Atrix 4G > Unlocked BL!! > GingerBlur 2.3.4 > Navalynt's Mod (v1.4) > Tenfar's CWM Recovery Mod > CM7

LG NITRO HD P930 >> Root via SuperOneClick v2.3.2 >> Bytecode64's CWM v.5.** >> KernelPan!c's v0.3
 
scott0
Old
#6  
scott0's Avatar
Senior Member
Thanks Meter 85
Posts: 709
Join Date: Dec 2011
is that the code that generates the details for this?
 
gte460z
Old
(Last edited by gte460z; 3rd January 2012 at 02:55 AM.)
#7  
Senior Member
Thanks Meter 46
Posts: 195
Join Date: Nov 2010
Location: Boston

 
DONATE TO ME
Quote:
Originally Posted by aquariuz23 View Post
wait, GPS on uses over 100 points??? Isnt dat kinda high?
By GPS on, I think it means, when the GPS is being used (when the icon appears in the top bar) not when the setting is enabled.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Job Interview Prep: Phone Screen Part 1 – XDA Developer TV

XDA Developer TV Producer Jayce has been very busy creating videos to help … more

Auto Test Your Android Apps with Robotium

You’ve just finished coding your very first app, but before you release it to the wild, you … more

Open Source CPU Info App for Windows

So you’re playing with your shiny new Windows 8 tablet PC, when one of your like-minded geeky … more

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more