yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] [] AL []:
Well since the battery seems THE hot topic of the day (last couple of days really...), here's some more to chew on...

I've been wondering about this for a long time:

what kind of effect the CPU max freqency setting has over the power consumption?

I agree with the logic that the faster a CPU can complete a task and go back to idle, the better is the battery life is. Normal that the more time that a CPU spends resting, the lower the power consumption -> right! trivial for simple 'desktop tasks' maybe..

But what if my CPU has to stay at max frequency for an extended period of time -like when gaming- and it never really has the chance to go back to idle? Is overclocking really going to help my battery or not??

So here's what kind of test I had in mind:

play a game for 1 hour non-stop at my current cpu setting: 300/23-600/36-900/50

and then compare that to another hour of gaming with cpu set at 300/23-600/36-600/36.

[CPU settings changed in boot menu and also verified with SetVsel - everything else, I did my best to keep exactly the same]

So since I had time to kill today and the fact that I've also recently discovered what seems to be my favorite racing game on Android so far, I gave in and did some 2-3 hours of intense gaming in the name of Science...

The game: GT Racing: Motor Academy Free+ from Gameloft.

Available for free (to some..) here on the Android Market.

But if like me, you get Google saying that you can't install a free app on your phone because the location you live in [see 1st pic attached], you might want to read the last line on this page. <- if it's wrong for me to give out the link of this apk here on xda, please tell me and I will remove it - but again: it's meant to be a free app so... ;)

So after all this, what did I find?

Not much and much at the same time...:

Not too much because it took almost the same battery power to play at 600 MHz than it took at 900MHz --> 12%/hr vs 13%/hr.

[look at the 2nd pic and draw you own conclusions on batt temp, power draw and others..this post is getting way too long here...]

Much because this test showed me once again that the Defy on CM7 can run a good game pretty decently even at 600MHz - and that's a full 25% underclocking from stock!! I've barely noticed any drawback when gaming at 600MHz; slightly longer map loadings, but in-game, everything was fine and pretty much lag-free. Impressive!!

So, surprised? have thoughts on this? suggestions for a future tests?

Like that game? --> I sure do!: it beats Ashphalt 5 and NFS Shift easily; it's more like a Gran Turismo for Android. :D
[Defy Android Development] salim_belka2002:
Hi,

i am in 2.3.4.

i cant upgrade to this cayogenmod rc1 2.3.5, my defy tell me:

e:signature verification failed

plz help.
[Defy Android Development] one2wan:
I'm testing battery consumption without overclocking/undervolting, so "disable" in boot menu and no "startup apply" in CM settings.

Specially undervoltage with screen-off underclocking, can it have consequences on deepsleep ?

Report next.
[Defy Android Development] Normano64:
I seems to have a problem with undervolting my Defy with RC1.5.

On stock defy I had stable 300/22 600/32 1000/52 but when I change to that in the boot-menu my battery drains faster.

Anyone else that have the same problem?
[Defy Android Development] gkai:
Your test outcome is a little bit surprising indeed. I have 2 possible explanations for this:

- maybe, even under gaming, the screen is still the bigger power draw. Especially if you played with screen backlight set to a high (or auto, and ambiant light was high). I have the feeling that screen is the largest power except if backlight is set to min (and usable only in darkness), and wifi comes second. CPU comes after, except if it is running at 100%

- gaming is not using your CPU at 100% if CPU is at 900 MHz. Games, even if taxing do not necessarily run CPU at 100% all the time. They go for constant FPS, and it mean that under heavy work (complex scene, flash meory access and scene recompute,...) CPU is taxed, but at other time, it can run idle (even if it does not have time to go to lower freq) because the prescribed FPS is reached easily. Another test, more taxing, would be a non-interractive computation (pi decimals, factoring, anythind math or crypto related) where CPU run at 100% all the time without idling at all...Market have such apps (CPU perf apps), some of them can run in loop. Those ones would be even better test imho...although your gaming test is more representative of real life phone use so I think you have demonstrated that higher CPU freq usually do not lead to lower battery life...

Vsel, on the other hand, should be much more straightforward. Did you run the game at same CPU freq but 2 Vsels? That would be interresting too ;-)
[Defy Android Development] one2wan:
What is clock level when Defy is entering sleep mode ? Too low so undervoltage prevents devices stop ?

Perhaps it's a stupid question but...
[Defy Android Development] Normano64:
I dunno what the clock level is when I lock the phone. When I use 300/22 600/32 and 1000/52 the battery use list shows phone idle as way bigger than Cell standby. Is that a clue of it keep use 600/32 instead of going down to 300/22?
[Defy Android Development] one2wan:
No. I think phone goes to 300/22 and perhaps voltage is too low to stop devices. But it's just an assumption... I'm testing it and will report conclusion next.
[Defy Android Development] [] AL []:
Other than increasing the wifi.supplicant scan interval and maybe removing the boot animation, I don't see much in there that could improve power consumption.

Media tweaks for faster streaming look interesting, but I'd like to find a way to really gauge the improvement before testing it - as fidling with build.prop can be risky and bring undesirable effects sometimes.

Epsylon has already increased the CM7 boot time.

I've tried to change the lcd density before and adw launcher didn't like it too much and on such a small screen, who needs to make things smaller anyway?

I don't think I'll try any of those tweaks really; I'll leave it to Epsylon to decide if any are worth implementing ;)
[Defy Android Development] gkai:
Those looks interresting though:

wifi.supplicant_scan_interval=150

as you said (but I think this will change behavior when looking for a new wifi network only, not when wifi is off or when locked on a good wifi signal already)

Those 2 are related to deepsleep...and given the deepsleep problems, I think thay are worth to try:

ro.ril.disable.power.collapse=1

pm.sleep_mode=1

I will try them...but not today, I tweaked my phone too much for one day already ;-)
[Defy Android Development] :
By using a tool like cpu spy, you can see what is the amount of time spent in each cpu frequency. Maybe you have a wrong value in you overclock.conf.

Post this file so we can see if something wrong : /system/bootmenu/config/overclock.conf.
[Defy Android Development] Normano64:
I've installed CPU Spy now, gonna see what it shows in about an hour.

Attached the file.
[Defy Android Development] Ricardo_Is:
You need Flash Froyo (Nordic 3.4.2-179-2 first, root your device than install 2ndinit to apply RC 1.5.

Search for the FAQ before you install.
[Defy Android Development] [] AL []:
- Screen brightness was set at 12% for both tests - no auto.

- This was done on RC1.5.

- same vsel for f2 and f3 - so not tested higher voltage

OK for backlit that draws a lot but this is a demanding game with a least one finger constantly on the screen and orientation sensors also constantly used;

I'm pretty sure that the cpu was used a lot more that just 'idle' with some peaks; although this was also my first reaction/justification for all this as well...

And on setvsel main menu, it is easy to see how the cpu ramps up so quicly when just sliding one finger on the screen or scrolling up/down... Might be 100% for a fraction of second, but still it shows that frequency is brought up VERY easily.

Have you seen this game in action, the level of texture details and number of polygons to be calculated? I doubt that all that I done at 300MHz...but still, that's what the numbers suggest since freq 2 is never used much with on-demand governor...:confused:

I've reinstalled Setvsel in between tests just to make sure that my 300/600/600 set in bootmenu was effective (and uninstalled it) before starting the second hour of gaming.

Anyway, like you also said, this was meant to test a real-life usage of my phone and to try to get more understanding of it. I've kind of hoped that it could lead to some sort of easy standardized test idea for the recurrent battery drain claims we see here...but no such luck it seems.

I propose that if anyone wants to claim that a nightly is bad/worst on battery than their last build (aside from something major like the suspend bug or alike), it should be advised/mandatory that they back up their words with data -just like logcats for FCs- and especially while making such claims before test driving it for a couple battery charges. ;)
[Defy Android Development] salim_belka2002:
Thnkx, can you tell me the steps one by one am an amateur,

i am not an engineer, i am a begener,

thnkx.

---------- Post added at 07:34 PM ---------- Previous post was at 07:29 PM ----------

Thx,

I tried with many sbfs and roms but its not working, is that it works with this nordic?

with sbf: RSD tell me; Finished-----Pass with black screen,

with rom: after "wipe" e:signature verification failed?

now i am in 2.3.4 with green lens. camera not work?

Plz plz help.

I collect also tell me how step by step am a beginner.
[Defy Android Development] sp8y:
OK an early update from me as I can already see a difference with the 179-2 kernel.

After three hours suspend is not showing up at all in the CPU usage list & also there's no -16 suspend errors in the dmesg. Also CPU Spy showing more time in deep sleep.

The wifi module is still a little slower than the 179-4 but I can live with that for now if the suspend bug stays away - I may try a different wifi module in the future.

Hopefully I haven't spoken too soon & wiil see how it goes overnight :)
[Defy Android Development] Sigma47:
So, just to follow up, I restored my RC1.2 from Nand and have had my phone off the charger for 19 hrs with a total battery drain of 50%...on RC1.5 it would be nearly dead by now.
[Defy Android Development] andyman_187:
Cm7 = awesomeness
[Defy Android Development] Ricardo_Is:
Did you flashed 2.3.4 sbf?!

If yes, sorry but I don`t know if have how to downgrade to Froyo.
[Defy Android Development] memz180:
Hey has anyone tried vlc player on the 110918 nightly and also thanks epy3 for putting it in
[Defy Android Development] warewolf4586:
CM7 looks awesome

but yes battery consumption is even a bit more than stock 2.2 Froyo

and how to install apps to ext partition of card ?
[Defy Android Development] Epsylon3:
i need to check if we can add some command line features to vlc, like windows and linux versions.. like the console interface

for battery issues... the messages in logs are not errors but warnings which could be a normal answer to a setting like usb (adb)...

When these warnings are present the sleep is just delayed of a few seconds... in both cases, a temporary wake up is 'scheduled', for the keep-alive i think...

i dunno why camera module (chip) is always enabled/disabled and if that consume or not battery...
[Defy Android Development] hanu_blr:
SAy that i want to use SEA kernel, am on rc1.5, which means, it has 179-4, just copy the boot and devtree img files required from nightly to say rc1.5, sign and flash as usual ?,

I hd asked this how to change the kernel few pages back, but didnt get any repsonse :(
[Defy Android Development] SteeLx:
my WIFI is not connecting to my MAC network with CM7.1 on Defy :(
[Defy Android Development] [] AL []:
Out of curiousity, I've tried this tweak:

media.stagefright.enable-player=true

media.stagefright.enable-meta=true

media.stagefright.enable-scan=true

media.stagefright.enable-http=true

and it actually made things worst for streaming.

With music videos from Vevo app over wifi for example: frequent buffering w/o tweak: perfect...

One question:

you see any value in raising Dalvik.vm.heapsize from 40m to 64m ??
[Defy Android Development] one2wan:
With overclocking/undervolting "disable" into boot menu and startup apply disabled into CM settings, market is very fast (!!!) and CPU spy gives more than 90% of deep sleep. I can't talk about battery drain because little time and no hard usage for the moment...
[Defy Android Development] kevin_diu:
yes but i havent apply this tweak..
[Defy Android Development] gkai:
Nope, it is not me, but after reading this post, I installed Power tutor and replicated the problem ;-) But read my edit: I think that the "problem" is in fact in the way power tutor (or, probably, all other power estimating tools - including the battery reporting tool included in gingerbread) estimates LCD/screen power usage: it is not a direct measurement, but a simple formula "power = factor * backlight level", with factor estimated from real world measurement (at best - power tutor do not have Defy in it's database, so I guess it use factor from another phone! :-/).

What happen, imho, is that system report the backlight level fixed in classic gingerbread, not the actual backlight set by CM7 auto backlight algorithm - hence the strange behavior observed. I guess this problem is not limited to the defy, but likely present for all CM7 builds...So back to square 1: there is no way to get a reliable measure of LCD power draw...except measuring battery depletion over long period with screen on under various settings (or various ambient lights) to build our own database :-/...
[Defy Android Development] [] AL []:
Oups, yeah sorry: my question was "to all"; i've quoted your post as a reference for the tweak suggestion only.
[Defy Android Development] Quarx:
FM - Don't know

Wipe not necessarily

LauncherPro now works smoothly :)
[Defy Android Development] Peglezn:
I get an error when trying to install

E:cant chown/mod/system/xbin/su

no such file or directory

E:Failure at line 7

set_perm 0 0 06755 system:xbin/su

installation aborted

EDIT: nevermind ...applyed the zip again and it worked
[Defy Android Development] ABC_Universal:
Why? Any improvement is improvement. It's up to you or any user to update or not.
[Defy Android Development] minievya:
good work.

thanks...

i think some one will help you to fix bugs...

just wait.
[Defy Android Development] gkrananth:
doble usb icon not rectified after done beta 3
[Defy Android Development] adi4motion:
thanks man! you are the fastest developer! keep it up
[Defy Android Development] carlonchete:
look at comments on market about new facebook app and a lot of people saying that it gives a lot of fc on diferent terminals.
[Defy Android Development] narta:
Wifi with WPA/PSK draft-n router cant connect :(

Changed channels but no go
[Defy Android Development] Rhyr:
Probably it's related with gingerbread...
[Defy Android Development] r3flux:
Facebook FC Issue

The Facebook FC issue after the latest update is a known issue on many ROMs regardless. It is a fault with Facebook app itself. Zuckerberg better pull up his socks!
[Defy Android Development] adi4motion:
cyanogenmod statistics

umts_jordan	1,504

Quarx you should be a very proud man!
[Defy Android Development] mussio:
can i flash beta 3 over beta 2? do i have to wipe and if so how can i keep my apps & settings?
[Defy Android Development] killskeleton:
While sending an sms from GSM network to CDMA1x network,

the sms will be garbled.

To receive an sms from CDMA1x to my GSM network,

things will not happen.

I'm a ChinaMobile user sent an sms to a ChinaTelecom user.
[Defy Android Development] iHedG:
Pay attention
[Defy Android Development] danielck78:
No more News and Weather Widget in beta3?
[Defy Android Development] viper.:
I cant play videos recorded either with stock camera or lgcamera . beta3 :(

Different songs for contacts still doesnt work..
[Defy Android Development] danielck78:
Market doesnt work for me in beta3.

Do we need to reinstall gApps?
[Defy Android Development] Rhyr:
You must reflash gapps bundle :-)
[Defy Android Development] yiminghung:
Can the new version beta3 working for wireless tether function ??? seen can't working ....
[Defy Android Development] Rhyr:
What about app with chinese characters on beta3?
[Defy Android Development] hailmary:
Hehehe.....
[Defy Android Development] jh20:
i did but didn't work, just black screen :(

the other option (media player?) works fine. so i default to that instead.

for those who are interested, usb tethering works in this nightly :)
[Defy Android Development] memz180:
Mines not black screen it goes in but with a message saying not stable i haven't tested it out yet just asked if anyone has tested it.
[Defy Android Development] remuseu:
i did...not wotking with mkv..it loads and then it just goes to home screen

with avi it takes much more time than rockk player ie

with native videos from the phone camera it plays chopier than the stock player...

so in conclusion it sux :)

ah..also if u add the folder where u have the music and it scans...i get fc after few sec of opening the app...gotta clean cache and then reenter

LE: i tested again with the nightly from 23:58 and it works better...no more macroblocks, and no more fc on media scan
[Defy Android Development] hanu_blr:
Did u try ro.ril.disable.power.collapse=1 ? on that page its set to 1

on this page http://xdaforums.com/showthread.php?t=1227269 its set 0, dont know wat to use ?
[Defy Android Development] sp8y:
I don't know as I haven't tried that before so couldn't tell you how to go on with it.

I just installed the boot nightly to get the different kernel & modules then flashed a newer non boot nightly over it.

---------- Post added at 11:52 AM ---------- Previous post was at 11:43 AM ----------

Right further update now after 17 hours since full charge & reboot.

Suspend has started to show up in the CPU usage list & was sitting fairly low at only 1mins 15secs up until a few minutes ago when it suddenly gained some extra time & now stands at 2mins 17secs.

There are a few -16 suspend warnings in the dmesg but not as many as with the other kernel.

Don't know if it's relevant but the sensor usage in the Spare Parts list shows "Android" as having over 5 hours & "Dialler" over 1 hour (that was a 6mins call) - not sure what that means it may be normal behaviour :confused:
[Defy Android Development] ccav2000:
Beyond the battery issues, I have something else concerning IP renew failure from the WiFi.

Yesterday I was lucky enough to catch WiFi disconnecting while I was using the phone, so I took the DMESG, on the bottom and just right before it disconnect and reconnect, there was this line :

[20855.159057] init: no such service 'iprenew_tiwlan0:tiwlan0'

Something is not right here, init looks for a non-existant service, doesn't find it and WiFi ends up disconnecting immediately after.

The full captured dmesg is here http://pastebin.com/RN6NarBg, using the cm7-110916-1816-NIGHTLY.
[Defy Android Development] Epsylon3:
tx for the report, never seen this one...

edit: fixed for next version...
[Defy Android Development] coolzarjun:
thereing doesnt work

hey eppy3 and other ppl...

im on cm7 rc 1.5

and my problem is that tethering doest work. !!!

neither the usb tethering nor the wifi portable hotspot..

i even tried a third party app...

its stange that it runs the deafult wifi hotspot app first (i see the icon in the notificatioin bar) and then runs itself with some error msgs.

please help.. i use tehtering alot !
[Defy Android Development] :
I have seen in a previous post of yours that you have tested those kernels : 179-6-1 and 179-2. By using 164 kernel for now, does it mean that they are not giving you good results in terms of power consumption?

I am trying an official 164 kernel [2.6.32.9-g050ccf2jfqk83@zch68lnxdroid07#1] (from a french carrier) as you told me.
[Defy Android Development] sp8y:
Damn - got to 22 hours & then upon awakening the phone I noticed suspend had been running & had clocked up 15mins CPU usage so that exercise of using the 179-2 kernel didn't work.
[Defy Android Development] one2wan:
No differences (speed or battery) for me between all these kernels (164,179-x)...

You can take the RC1.5 one. I think battery drain will be solved when devs will find "error -16" (which exists with all kernel+CM7) issue to have a clean deep sleep.
[Defy Android Development] Zerobarat1:
What's the point of adding VLC player straight into the ROM? Are you guys thinking of giving proper mkv support 720p? Though I just tested a 480p video and it runs slower than on Mxvideo player
[Defy Android Development] :
Ok thx a lot for all your tests. It would take me some days...
[Defy Android Development] LeopardSurd:
Camera shutter bug

By the way, there is a bug with camera shutter. Checking the box from CyanogenMod Settings>Sound>Mute Shutter doesnt work.

I use the last nightly

L.E. cm7-110918-2358-NIGHTLY-Jordan.zip
[Defy Android Development] jh20:
may i suggest ppl use the build version instead of just last or latest nightly? for instant if i check the latest nightly now it is still 110918 although today is 20-9-11 (gmt +10 here).

so a few days down the road, i'll have to check the released date of the nightlies to find out which nightly you're referring to, instead of you just simply told us which one? it'll just make thing easier for the reader.
[Defy Android Development] davos.design:
Help

I have installed cyanogen mod (the latest in this topic) after the install ended the phone restarted and started to loading. But for 10 minutes nothing happened, just loading screen. After that i tried to enter the recovery menu but it was the basic motorola menu again so i did a factory data reset and a swipe again after that it stucks on the first screen (the google logo with the motorola and cyanogen logo). I still able to enter the recovery menu. Any ideas?

Thx for helping!

(Ps sorry for the bad english)
[Defy Android Development] memz180:
Start with Nordic II maybe nandorid and flash fixed sbf then install cm7 over it should work fine that's what I did with mine
[Defy Android Development] davos.design:
Thank you but the problem is that after the cyanogen install i only have the stock backup. No nandroid etc. :( so I think i need a proper .zip file what the basic motorola backup recognize as a stock update or something like that.

Is there a way I can install Nordic or Nandroid if i can't pass trough the loading?
[Defy Android Development] zencoran:
Did u first install 2nd-init?? Read the FAQ
[Defy Android Development] memz180:
Sorry forgot to say in custom recovery if you can't get into custom recovery then I would flash a full sbf file of froyo Nordic but then you can't downgrade but who needs to downgrade when you got cm7
[Defy Android Development] davos.design:
Yes, I installed it. And from 2nd-init I installed the cyanogenmod. But its simply disapeard. Now I have the boot logo of the mod (the first one) and i can enter the basic Motorola backup menu but nothing else.
[Defy Android Development] memz180:
So when you boot up the phone you see no blue led at all ? If so then you would have to flash a full sbf file i don't see any other way of getting into a rom at this point
[Defy Android Development] davos.design:
When i power it on first I see the blue led than the green and after that the leds turn off and nothing happens.
[Defy Android Development] abhi897:
I am on CM7 RC 1 right now. I want to install CM7 RC 1.5. But I dont want to loose all the apps I have. If I just use WIPE CACHE, and install RC 1.5, would that work fine? Do I have to wipe anything else?
[Defy Android Development] Dewman4life:
Yes and I normally also wipe dalvik cashe and never have any problems

Sent from my Defy running CM7
[Defy Android Development] memz180:
Yes thats what you need when you see the blue led hit the down volume button this will enter custom recovery from there you can install backups such as nandroids

Then flash the fixed sbf file using RSD lite and it will boot up into froyo and then go back into custom recovery and install cm7 with gapps and it will boot up into it.