[REF] Battery Drain Benchmarks

What has been your experience? (Select two options)

  • Deep Idle has saved power

    Votes: 191 45.7%
  • Don't know

    Votes: 127 30.4%
  • Deep Idle has used more power

    Votes: 29 6.9%
  • Undervolting has saved power

    Votes: 109 26.1%
  • Don't Know

    Votes: 149 35.6%
  • Undervolting has used more power

    Votes: 17 4.1%

  • Total voters
    418
Search This thread
B

bedalus

Guest
Spreadsheet of the Battery Drain Data
BATTERY DRAIN BENCHMARKS

VIDEO of how it's done! (Do NOT try it yourself!)

NEW: Lab study done by nathanson666 see here and featured on the XDA's portal and twitter here.

Summary of Results

#1 - With screen on, if the processor is Idle, 100MHz saves the most power.

#2 - Regardless of your choice of governor, even with extreme undervolting, you are not going to be able to increase your battery life by more than 2%. (Click here for explanation.)

For the instability introduced by UV, it seems a 2% increase in battery life isn't really worth it! REMEMBER rebooting uses so much power, a single one would more than undo any savings made by UV.

#3 - The most power saving governor is Ondemand. If you need a high performance governor, use smartassV2, which offers some battery savings.

#4 - This is one point that everyone ought to know, but I'm including because many people seem to believe in myths: if the screen is off, and the CPU is not active, neither deep idle nor UV will have any impact on battery life.

#5 - The matr1x kernel by mathkid95 mainly saves power through UV of the INT voltages. You may need to raise these if you have freezes/reboots with your phone (in addition to raising the ARM voltages). I found that a maximum of 1 mA can be saved through INT UV, regardless of whether the CPU becomes idle (or with screen off in deep idle), so this is a constant saving. However, it is a very small saving, and doesn't apply if the phone is asleep. Remember, reboots cost more juice than UV can ever save.

#6 - If you have an amoled display, black saves a great deal of power. After that, red. If you have a black and red theme, this is saving you power!

#7 - If you are determined to UV, I found that my phone would become unstable with UV settings that were fine when the battery was fully charged. So check what UV your phone can handle when your battery is nearly empty. Again I say: Because of the high likelyhood and massive battery drain that comes with a reboot, I highly recommend you DO NOT USE EXCESSIVE UV. Also remember, even with extreme UV, you will not increase battery life more than 2%

#8 - I found that with bluetooth or GPS preventing the TOP=OFF state, there was no additional power saving from Deep Idle, i.e. the TOP=ON state does not save power.

#9 - Kernels with the 65 fps hack will cause the screen to drain about 10% more power compared to the usual 56 fps.

#10 - Conservative does not save power! For further details and exceptions, refer to my new thread: here.

#11 - This is just general advice: if you are having very poor battery life, have you tried turning auto brightness off? And if you've got no reception, you might as well be in airplane mode, because searching for reception also eats battery.

#12 - If your phone can't handle OC (or UV for that matter) it's because components in general are built to cost, which means factoring in tolerances, and every chip is made as cheaply as possible within the specified tolerances. Outside of those tolerances, whether your chip can cope or not is unfortunately down to the whether you got lucky with the individual device that dropped off the manufacturing line.

ARM document on A8 fault tolerance: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0344k/Babhjhag.html

In fact I measured how UV in particular can cause errors, and saw in action the A8 using MORE power to correct the errors. From my spreadsheet:

At 100Mhz
mV 1500 4.92mA
mV 950 2.83mA (default mV)
mV 800 2.58mA (UV saves some power)
mV 750 2.96mA (Extreme UV uses MORE power)

Same test but with Deep Idle enabled:
mV 1500 1.91mA
mV 950 1.49mA
mV 800 1.29mA
mV 750 1.49mA (Same result again but with DI enabled)
Referenced from my spreadsheet starting row 41.

Recommended reading: http://everything2.com/title/wafer+yield

Stock voltages for reference:
ARM
1000MHz @1250mV
800 MHz @1200
400 MHz @1050
200 MHz @950
100 MHz @950

INT
1000MHz @1100
800 MHz @1100
400 MHz @1100
200 MHz @1100
100 MHz @1000

Summary of Power States by tchaari (thanks!)

After research, and some explanation from Steve Garon, it is clear that Deep Idle & CPU Idle are two completely different things:
1) Three main CPU states are implemented in the standard android kernel: NORMAL, IDLE and SLEEP
2) Ezekeel added an intermediate 4th state: Deep IDLE. This saves more power but only when the processor has a background task to run while screen is off. Bedalus proved here that it really saves a considerable amount of power in particular cases (e.g. music playing when screen is off). A minority of users are reporting some slight instabilities with it, but they may in fact be caused by things other than deep idle.
3) The CPU IDLE backport is a replacement of the standard android kernel drivers used to put the CPU in idle/sleep states by the new ARM methods integrated in the linux 3.2 kernel. This backport is theoretically supposed to improve battery life (with just the basic 3 CPU states). It is 100% stable but no power saving has been shown either in bedalus' amp meter measurements, or Harbb's overnight drain tests.

Where did the other benchmarks go?

All ICS ROM Benchmarks: this thread

Kernel Features and Benchmarks: this thread

CPU Governors and I/O Schedulers: this thread

Power Saving Governors: this thread

Thanks to all the developers, and a big shout out to: Harbb for his dedicated testing; tchaari for his motivation, great ideas and inspiration; jcolinzheng for the idea to test Deep Idle at fixed frequencies (genius); aLNG for links to interesting and useful articles; Steve Garon for demystifying esoteric kernel technicalities and his excellent kernel itself; everybody else who helped; and of course Ezekeel for making Deep Idle work, and for a stimulating debate!
 
Last edited:
B

bedalus

Guest
Harbb joined in doing specific battery tests, using the phone's battery graph. This is based on the phone's own readings (State of Charge or SoC for short). It's not very accurate for an instant reading, but over time, it does become more and more accurate. Therefore, Harbb conducted some very long (10 hour) tests. To improve accuracy further, he waited for the level of charge to drop to around 80% before each test. This eliminates the another source of inaccuracy, that the first 10% of the battery tends to deplete rather quickly (due to normal wear and tear over its lifetime). In fact, I use Ezekeel's Battery Life eXtender (BLX) to stop the phone charging early (at a user defined level: I prefer 90%) to help slow the deterioration of the battery's maximum capacity by preventing heat damage caused as the battery tries to absorb the final dose of charge above 90%.

Harbb's Data
Harbb's spreadsheet

Here's a summary of Harbb's 10 hour test findings, in order of best battery drain:

- 15% - SmartassV2 with DI
- 16% - Conservative with DI
- 21% - Lazy with DI and SOMF
- 23% - Lazy with DI
- 36% - Conservative
- 39% - Lazy
- 39% - Lazy with CPU IDLE
- 44% - Lazy with Eugene's DIDLE
- 48% - Lazy with Eugene's DIDLE and SOMF

[where DI means Ezekeel's Deep Idle, and SOMF indicates that Screen Off Max Freq was enabled]

Power Misconceptions
1st Misconception:
There is a misconception about about 200MHz using the same power as 100MHz because the voltage is the same. There is an approximate formula for CPU power consumption:

CPU Power Draw = C x F x V^2 (where C=capacitance, F=frequency, and V^2=Volts squared)

Capacitance is a constant, so we can ignore it. Let's fill in the values for the lowest and highest frequencies:

100 MHz V=0.95 so V^2=0.9025

1000 MHz V=1.25 so V^2=1.5625

So this shows we have roughly an extra 70% power drain due to the voltage increase. However, the maximum frequency is 10 times the minimum, i.e. a 900% increase. So the dominant factor in CPU power drain is in fact the frequency. Roughly speaking, the frequency has 13 times more influence over the power drain than the voltage.

Therefore, the governor that keeps the frequency as low as possible for as long as possible will save the most power. This appears to be consistent with Harbb's finding that conservative saves the most power.

2nd Misconception:
Some people say that if they UV they can play a game on their phone for an extra hour. The most you can get from UV is 2% extra battery life (and it is not worth the reboot risk).

See post #4 for calculations based on the actual measurements taken from the phone.

Here is a more academic proof using the same formula from the 1st misconception:

CPU Power Draw = C x F x V^2 (where C=capacitance, F=frequency, and V^2=Volts squared)

Capacitance is a constant, so we can ignore it. Let's fill in the values for just the highest frequency with the stock voltages and then an extreme undervolt:

1000 MHz V=1.25 so V^2=1.5625 (stock volts)

1000 MHz V=1.2 so V^2=1.44 (the most UV my phone can handle with a fully charged battery)

This is an 8% saving. Happily, this exactly matches what I measured in the real test (see cell F62 in the spreadsheet).

Remember, only the CPU is saving 8%, the screen being on uses about 4 times as much power as the CPU even at its highest frequency. This reduces the power saving to at most 2%.

I am of course assuming the screen is on. For most users, this is correct, as their processor will not be under a heavy load unless the device is in use, and this almost always means the screen is on. If anyone can think of any circumstances where the CPU is under a heavy load, but the screen is off, and show that this happens to all users a high enough proportion of the time to be relevant to this calculation, please let me know. [/far fetched caveat]
 
Last edited:
B

bedalus

Guest
Testing Methodology

Two videos are available, and note, a circuit diagram of test now linked within the battery benchmark spreadsheet. I've decided to share it publicly as I've now set up and run this test three separate times, with no major problems. So I've reclassified it from utterly reckless, to merely dangerously stupid. Do not under any circumstances try this with your own phone! You have been warned!

You cannot trust battery monitor widget. (More on that in the 4th post)

Here's a way to test Deep Idle without rewiring your phone:
Note - SOMF means Screen Off Max Frequency

Setup must be identical (apart from SOMF). Install battery monitor widget, set history update rate to 10 minutes (not particularly to monitor the battery, but just to act as a timer). Set to run without widget. Turn off all radios, turn off sync, turn off location services, put in airplane mode. Turn off any of Ezekeel's mods excepting (Deep Idle of course). Set up your music app to play the same song on a loop. Make sure all volumes are down. Phone must be in mute. Turn of auto-brightness just in case. Morfic told me that to avoid the problem of the battery not reporting itself properly you can begin both tests with the same charging procedure: charge while off overnight. In the morning bump charge for exactly one hour. Disconnect, boot, start music immediately. Power button to screen off. Leave phone for 48 hours (should be enough time to auto power off).

After the first test, check the history from battery monitor widget to see how long the phone was on for.

Repeat again but with SOMF set to on.


***

Here's more on metering the amps:
REMEMBER I ADVISE THAT NO ONE SHOULD ATTEMPT THIS.
If you're thinking this is something you'd like to try, you'll need:
1) An analogue multimeter or pure ammeter because a digital one will be difficult to read with constantly changing amps.
2) Two battery caddies with space for 3 AA batteries each.
3) Six rechargeable batteries. Use rechargable ones because the volts are a bit less, 3*1.35=4.05 - close enough to the spec 3.7
4) Lots of cables with crocodile clip ends
5) Some fine copper wire

If you're thinking of soldering something onto your battery, DON'T - you may accidentally make a short circuit that will be difficult to undo, and cause the battery to explode. Plus the heat of the soldering iron certainly won't do it any good. And don't solder anything onto your phone contacts, just carefully twist a few strands of copper wire around them, so they can be easily removed. REMEMBER I ADVISE THAT NO ONE SHOULD ATTEMPT THIS.

[Q] Why do I need 6 AA batteries when 3 would provide enough volts?
[A] My multimeter inserts a 600 ohm resistor into the circuit (yours may be less, and if so you will need different calculations to convert to amps). This resistor allows the multimeter to evaluate the amps by measuring the voltage drop across it. But the resistance will cause your phone to starve of power. Running a parallel battery to the phone will prevent it crashing when the voltage supply isn't sufficient for things like screen on+cpu max frequency+sdcard IO... This parallel supply should run directly to the phone, not through the multimeter. It can be disconnected when the screen is off, and will not harm the phone. Remember to reattach it before powering on your screen, or it is likely your phone will crash. I would advise to start with fully recharged batteries, and not connect the USB charger.
[Q] Won't the amps read half of what is actually being drawn?
[A] Yes, but you'll get the correct reading if you unhook the parallel battery.
[Q] Might I also be able to do that when the screen is on?
[A] Yes, but I recommend that you do that with everything possible powered off, wifi, 3G... etc... screen brightness minimum. Set your screen timeout to never, so that you have control over it with the power button. Always reconnect your parallel battery before changing from screen on to screen off, and visa versa. (Due to large power spike)
[Q] I want to try this. Should I?
[A] No, no-one should try this.
 
Last edited:
B

bedalus

Guest
Miscellaneous

[Q] You claim you cannot increase battery life using UV beyond 2%. Justify yourself!
[A] When the processor is in use (i.e. not asleep or idle) UV does save a tiny amount of power. I tested with the most extreme UV my phone could handle. With a high performance governor, e.g. smartassv2, extreme UV would reduce CPU drain by 13%, or about 7 mA. With a governor that keeps the CPU frequency low, CPU drain would be reduced by about 18%, or 4.6 mA (weighted - see the spreadsheet starting cell H88).

Remember, these savings are limited to the processor, and only when it is active. For most users, this will mean the screen is on. For comparison, the screen on minimum brightness displaying black uses 9mA. On max brightness, displaying white, it uses 690mA. Let us assume some median value, ~350 mA.

A saving of 4.6 mA out of at least 350 mA (screen) plus 20 mA (CPU)
= 1.2%

A saving of 7 mA out of at least 350 mA (screen) plus 50 mA (CPU)
= 1.8%

So, regardless of your choice of governor, even with extreme undervolting, you are not going to be able to increase your battery life by more than 2%.

Articles and Documents
Diane Hackborn's article on the formula that produces the dodgy Android OS usage statistic in the battery menu:

https://plus.google.com/105051985738280261832/posts/FV3LVtdVxPT
(note, this bug is fixed as of Android 4.0.4)

Data sheet for the fuel gauge chip:
http://www.maxim-ic.com/datasheet/index.mvp/id/6621

Link to great article on SOC (State of Charge) http://www.mpoweruk.com/soc.htm >>> explains all the reasons why I don't trust battery monitor widget and the phone's own battery stats.

Great article on the difficulties of accurate metering (thanks aLNG):
http://low-powerwireless.com/blog/d...t-schemes-for-battery-powered-devices-part-1/

In the article DUT stands for Device Under Test

The implication is that DMM [Digital Multi Meter] voltage drop readings (to measure amps) take hundreds of milliseconds, a will miss instantaneous battery savings above this time window. However, I am using an analogue meter, the the needle responds to all current. Due to the mass of the needle, there is inertia to overcome, which provides a form of averaging.

Quote from the article:
"a GSM cell phone can have current pulses of 2 amperes that last approximately 500μs while the power amplifier is on and transmitting, and then drop back down to the milliampere level for the remainder of the 4.5 ms GSM cycle."

500μs is 0.5ms, so is 1 tenth of the 5ms GSM cycle. 2 amps at 1/10th of 5ms = average of 200 mA

When I ran the test with my equipment, GSM broadcasting uses at least 170 mA - see row 36. I think this is a nice proof that the analogue multimeter beats the digital multimeter hands down for dynamic amps (i.e. changes happening below the millisecond level.) I'm also very satisfied that my result is close to the result stipulated by the article. It improves faith that my readings are accurate.

[Q] What could add inaccuracy to the readings?
[A] The dBm scale assumes a resistance of 600 ohms, but the resistor has 3% accuracy which means it could be as high as 618 ohms, or as low as 584 ohms.
[A] Also, the scale is very small, so I've read the needle to the nearest fifth of a dB

Other articles (thanks aLNG)
A study of the mA drain of various components of a smartphone
http://www.usenix.org/event/atc10/te...rs/Carroll.pdf
An ARM presentation on unifying power management procedures in the kernel
http://elinux.org/images/0/09/Elce11_pieralisi.pdf
 
Last edited:
B

bedalus

Guest
UPDATE: Undervolting the CPU tested (using nstools ARM+INT)
UPDATE: impact of different screen colours tested (amoled)
UPDATE: Running apps tested.

Please note, the running apps draw power for lots of different reasons, access RAM, CPU, I/O, Graphics, all use power, what's being displayed also uses power, eg a brighter 3D scene vs a darker 3D scene. But it does give an overall idea of what Amps might be pulled when you are using the phone normally.
 
Last edited:

mobile_pc

Senior Member
Jan 3, 2012
223
40
Thanks for your hard works :) I'm impressed with the systematic research.

Many things just the theoretical possibility? just something we created in our minds...
 

polobunny

Senior Member
Oct 25, 2011
6,223
2,312
Montreal
I have undervolted and overvolted in GB with direct impact on the battery life. The fact your undervolting tests show absolutely no difference in battery drain make me think the settings aren't even applied.

Also this part of your spreadsheet seems to be a bit lacking. What frequency voltages were changed? 100MHz? 200Mhz? All?

The smallest voltage I've seen stable for 100MHz ARM seems to be 825mv, for example.

Cheers
 
B

bedalus

Guest
I have undervolted and overvolted in GB with direct impact on the battery life. The fact your undervolting tests show absolutely no difference in battery drain make me think the settings aren't even applied.

Also this part of your spreadsheet seems to be a bit lacking. What frequency voltages were changed? 100MHz? 200Mhz? All?

The smallest voltage I've seen stable for 100MHz ARM seems to be 825mv, for example.

Cheers

The frequency information is there in the first column, eg 400/400 means the min and max settings were both 400. If you're not changing frequencies you can get it down very low.

Yes, perhaps nstools is defective. However, i did get an instant reboot with the lowest setting. Want me to do a repeat in GB?

For kernel benchmarks and more, see here: http://goo.gl/mpeHI
 

italia0101

Senior Member
Nov 9, 2008
3,803
1,358
So undervolting does nothing? That seems strange ...

Also what about using juice defender? Worth it ?
 
Last edited:
B

bedalus

Guest
I have undervolted and overvolted in GB with direct impact on the battery life. The fact your undervolting tests show absolutely no difference in battery drain make me think the settings aren't even applied.

Also this part of your spreadsheet seems to be a bit lacking. What frequency voltages were changed? 100MHz? 200Mhz? All?

The smallest voltage I've seen stable for 100MHz ARM seems to be 825mv, for example.

Cheers

Okay, I went ahead and tested Gingerbread (carbon, ICS themed Oxygen 2.3.1, android 2.3.7) using franco's last kernel for GB. Starts at row 329.

Neither extreme undervolting nor overvolting had any impact on the battery drain.
 

italia0101

Senior Member
Nov 9, 2008
3,803
1,358
Juice defender is a battery saving app that basically d/cs the data and wifi when screen is off and reconnects when screen is on... also when screen is off it uses schedules to turn wifi/data on to receive stuff and sync
 
B

bedalus

Guest
Juice defender is a battery saving app that basically d/cs the data and wifi when screen is off and reconnects when screen is on... also when screen is off it uses schedules to turn wifi/data on to receive stuff and sync

Sounds sensible enough to me!

Sent from my SNES
 

tchaari

Senior Member
Dec 27, 2011
1,124
1,104
Some reserves

2 - If you use NStools to undervolt, don't bother. No gain to be had from undervolting either ARM or INT voltages. I tested this to the extreme. Check the spreadsheet, near the bottom. (Tested in both ICS and GB).

First, I want to thank you for all your efforts in the benchmarks especially for the battery drain. However, I kindly have some reserves on this. Maybe undervolting does not save so much power at idle but at higher loads, energy can be surely saved. Besides, maybe the energy saved is too minimal for your analog multimeter and it can't be noticed on it.

This is the theory :
The switching power dissipated by a chip using static CMOS gates is C·V2·f, where C is the capacitance being switched per clock cycle, V is voltage, and f is the switching frequency,[1] so this part of the power consumption decreases quadratically with voltage.
source : http://en.wikipedia.org/wiki/Dynamic_voltage_scaling


And this a more practical reference about a study made by tom's hardware on AMD Athlon clock, voltage and power consumption. I think it can be generalized (at a smaller scale) for our ARM processor in the nexus S:
It’s only when we change the voltage that we're able to significantly save more power--about 13 watts lower consumption, or a total of 20 watts compared to running without power management. That's a savings of 25%.
source (you may also read the entire article. It is very significant):
http://www.tomshardware.com/reviews/processor-power-management,2453-9.html


Other scientific papers and studies can be also found stating that undervolting saves power.

Kind regards.
 
Last edited:

t3xboar

Senior Member
Dec 21, 2007
136
16
montreal
I also appreciate all the hard work you have done for testing, on both kernels and everything, but im going to "gingerly" throw my hat in with tchaari here...

The only way to actually test battery drain would be to attach a multimeter and let it drain all the way on every test, using every kernel, and every setting - multiple times to omit false positives. Obviously this is beyond the acceptable timeframe it would actually take to accomplish. anyone would go insane sitting there waiting. :rolleyes: :D

there are nuances here that will affect results regardless how carefull one is. the program itself might suck juice, your kernel/gov choice affects how the program runs too...also the status of your battery makes a difference. is it past it's half cycle life? etc..then the multimeter is another massive factor. there are many many different types not saying yours is bad, but over the years as an electrician ive played with some that are $20 as well as $2000 - and they are a far cry from each other even though they both do the exact same functions!

The undervoltage is a prime example. there are so many factors that will affect the results it's unusual to see your sheet having barely any differences - when we know that undervolting does actually save you battery under loads.

so it's nice to see a massive sheet like you did, as it does give a good start point reference - but it should be used not as chipped into stone law either.

Thanks for taking the time to give a great, no excellent base line to work off of though and preform more intense testing if people would like to go that far. :)
 
Last edited:
B

bedalus

Guest
there are nuances here that will affect results regardless how carefull one is. the program itself might suck juice... then the multimeter is another massive factor. there are many many different types not saying yours is bad, but over the years as an electrician ive played with some that are $20 as well as $2000 - and they are a far cry from each other even though they both do the exact same functions!

What program? I'm playing a loop of silence in the music app to keep the processor awake.

The multimeter I'm using isn't fancy, but even if it's reading 10% down, it's doing it for all readings, so it's a fair comparison.

The undervoltage is a prime example. there are so many factors that will affect the results it's unusual to see your sheet having barely any differences - when we know that undervolting does actually save you battery under loads.

What makes you say we know this? I want to get to the bottom of this, so i need to see a concrete source.

Tchaari posted the capacitance times volts squared times frequency formula. I know this, and when I adjust the ARM voltage by more than half a volt, i expect to see this:
0.8x0.8=0.64
1.5x1.5=2.25
That should be 3.5 times as much power use.

Now, double the power in the dB scale is a difference of ~3dB. 3.5 times ~5dB. And I can notice a change of 1/5th of a dB on my multimeter's scale. There was no change. Here is how i tested.

Start music. Go into nstools, set ondemand with min and max at the same frequency. Go to volt, select the lowest possible voltage for that freq and exit. Screen off, measure amps. Screen on, nstools, volts, highest volts this time, exit, screen off, measure amps. Result: identical.

Seriously, if you have a background in electronics, have a go yourself (NO ONE SHOULD TRY THIS THEMSELVES) and get back to me.

In theory, it should save power, but it isn't. I'd love to be able to say why. At this point i don't think it's a problem with nstools, because i got a crash the second i put the volts to minimum when i was testing on Steve's kernel in ICS.

Sent from my SNES
 
Last edited:

Harbb

Senior Member
Dec 20, 2011
1,108
421
Sydney
As contradictory as some of these results may (or may not) be, bedalus is in the right with his methodology as far as i can see. Though at this point nothing should be set in stone. Not yet at least.
 
B

bedalus

Guest
A few people saying with UV that they get more screen on hours, up from 3 to 6 hours. I'll check amps pulled (with both UV and OV) with screen on next.


Sent from my SNES
 

tchaari

Senior Member
Dec 27, 2011
1,124
1,104
A few people saying with UV that they get more screen on hours, up from 3 to 6 hours. I'll check amps pulled (with both UV and OV) with screen on next.
That is a good idea bedalus but it seems that undervolting gain is very minimal instantly. In a long period, it can make some difference in battery life...
I have also many doubts about how sensitive your amps-meter is? Since we are dealing with small values in our case, maybe a more sensitive device can measure some difference that yours can't...
Anyway, your work is very interesting and as Harbb said : At this point, nothing should be set in stone yet.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 42
    Deep Idle tests

    Hello Everyone,

    I would like to present some tests that I conducted to see if the deep-idle and screen off max frequency features really do save power when used and exactly how much power is saved.

    I measured the power used by the phone during the playback of a song under four conditions: DIDLE off SOMF off, DIDLE off SOMF on, DIDLE on SOMF off, and DIDLE on SOMF on.

    The results are shown below. With deep-idle enabled and SOMF enabled the phone used the least amount of power.
    WVwPv6L4


    The technical details
    I have access to equipment that allows recording voltage measurements from multiple channels at 1kHz. So I set up a test circuit that allowed me to measure the power consumed by the phone while it is in use.

    To do this I placed the phone in series with a resistor and plugged the whole circuit into a DC power supply set at 4.3V. Also, to see when the songs started playing I took a pair of headphones, cut off one of the speakers, and exposed the wire. I connected these to the headphone jack of the phone. The test circuit is shown here:
    p3o7DLOE

    I used Air Kernel v3.3 and KANGY 11. I had airplane mode enabled during the tests and WIFI and Bluetooth were off. I used Lazy governor with 100MHz min and 1000MHz max and default voltages. I used the default music player app and played the same song on repeat. The song is called Mr. Sunshine by Laszlo (not that it makes a difference.)

    The procedure I followed was:

    1. I set up the parameters for the experiment ie. DIDLE and SOMF
    2. Shut down the phone
    3. Started recording voltage
    4. Turned on the phone
    5. Waited for the phone to boot and for the screen to timeout automatically.
    6. Woke the phone up, set the song to play in a loop, then let the screen timeout automatically.
    7. waited for approximately 20 mins.
    8. stopped the music
    9. set up the parameters for the next experiment.
    10. shut the phone down and stopped recording.

    After recording the data for the 4 sets of parameters I extracted the data and analysed it. First, I plotted the speaker voltage across time. This allowed me to see when the song started and stopped. I manually marked the points by hand using a set of rules. I did this for every song in each experiment and for every experiment. An example of the data is in the link below. The data looks so dense in the plot because that is for a very long time and there are 1000 data points for every second.
    2g6HFfJL

    I ignored the first song because it started playing while the screen was still on and I only wanted data from when deep idle could be active. I ignored the last song because it was always cut off and I only wanted to compare complete songs. To find the song start and stop markers I looked at the data much more closely. It's easier to see the actual end and beginning of two songs if we zoom into the data a lot, like in the figure below (in reality I zoomed in even more.)
    Ai4YNeCS


    Then I plotted the power used by the phone. I took the voltage at the power supply and subtracted the voltage at the phone to get the voltage across the resistor. Earlier I measured the resistance of the resistor to be almost exactly 1. I found the current going through the resistor (and consequently the phone because they are in series) using the equation V=I*R. I multiplied the current going through the phone by the voltage across the phone because P=V*I to get the power. An example of the power data is in the link below. Again it's pretty dense but it's just a figure.
    3NB38p3A

    An interesting thing to compare is the power plot above to the power plot below. Both plots are for deep idle on but the plot above is for SOMF off and the plot below is for SOMF on. The SOMF on plot has much higher variability in the power usage during the song playback because the phone always jumps from idle to maximum cpu frequency. The SOMF off plot has less variability because the cpu governor ramps up the frequency more slowly. Nevertheless, SOMF on saves more power likely because of the race to idle.
    oLejyhgl


    So then I extracted segments from the power data that corresponded to times when a song was playing. I took the average value of those entire segments. (So for each song in every experiment I have one average power value.) Then to compare, I took the average over all songs for each experiment. (So for each experiment I have a single average power value.) The exact results are below:

    DIDLE: no SOMF: no 194.5413mW average power
    DIDLE: no SOMF: yes 314.7844mW average power
    DIDLE: yes SOMF: no 133.747mW average power
    DIDLE: yes SOMF: yes 126.4452mW average power

    For those who are super keen I zipped up all the data, figures, and scripts used to analyze everything and make the figures here:
    http://db.tt/mBSJkT2m
    It's all matlab code so if you have matlab you should just be able to run it. It should also work on free matlab clones like gnu octave (but it will be much slower).

    I hope this clears things up about deep idle and SOMF. It really seems like both are good things. Ask away if you have any questions!
    4
    Moment of truth. I have deepidle running on my kernel. I had couple of SOD but they dont count, it was my fault as I forgot removing coresight from my config.

    If anyone wants a copy of my test kernel let me know...

    Sent from my Transformer TF101 using Tapatalk
    4
    The problem with deepidle is not so much the fact that it works or not. To me the main problem is the stability. SODs, reboots, the fact that it doesn't work when GPS is on or that it has trouble with gtalk video makes it just pointless to me...
    If deepidle was 100% stable I would have it in my kernel.

    Deep Idle is stable for me and many others. Please stop spreading such nonsense.
    3
    After finding interesting results in a 1 hour test (with the same ratio, so far), I did do a repeat or Ezekeel's 10H test, threw the phone in a drawer for 10 hours in airplane mode, no mods, 100/1000/no OC, etc etc, playing music. The results, i suppose, speak for themselves. I will add some more results as i get them, and possibly test out the 3.2 cpuidle backport. Note that this testing relies on the battery percentage, so feel free to interpret the results however you like in that regard.

    For those interested, you can have a look at the spreadsheet here. Note i also rebooted both times soon afterward and got a similar % result (lost about 1% both times). Opinions, thoughts and criticism welcome.
    3
    I noticed that too Steve, thanks for elaborating a bit on it since i didn't really think anything of it. Lazy, to my understanding, is a slightly(?) modified ondemand, setting the option for SOMF and a minimum limit before changing frequencies. I'm not aware of anything else as i don't understand governor code, but i did use lazy for comparison purposes throughout so far.

    All the high quality options in voodoo are enabled, no bass boost and a flat eq all round, however i HAVE enabled the speaker "better sound" setting. Unsure how all of this could be effecting cpu results, but i will keep all of them the same and have been so far.

    As working deep idle, so far at least, tends to like high frequencies, i may keep them on lazy. I will however test out conservative on the no DI test. Also, be prepared for initial Eugene's deep idle results in the next 2 hours, assuming all goes well.