yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] sp8y:
Yes I'm losing the battle here on this one.

After trying most things posted on the internet I suddenly realised that it started to appear when the new gapps package came out (end of August) so installed the previous gapps & it was all OK with minimal Android OS/suspend usage for 21 hours then it came back & just started to run until a reboot stopped it.

Has been bad since last night (20% battery loss & over 1 hour CPU usage by the suspend process - today even with wifi off & only data on it still showed up.

Google reckon it's a dodgy driver :confused:
[Defy Android Development] ccav2000:
Hmm, Google apps? But why only with WiFi in my case? Will try reverting them anyway, for the heck of it.
[Defy Android Development] sp8y:
Don't know - it's almost got me beat as I've tried loads of things.

I'm still running the old gapps but the bug has returned every day since -but on a brighter note the old market is much better.

I'm now trying with the cpu settings disabled in the boot menu just to rule that out for me - think you tried this a few days ago - no improvement for you then.

I just did a full wipe, sbf flash & reinstall CM7 only a few days after the 2nd init went crazy so it's a recently clean set up.
[Defy Android Development] wizwin:
Tried DEFY BaseBand switcher? I did not change anything after flashing 1.5 but the last time I had issues with signal drop it helped.

Also make sure all steps in the FAQ are followed.
[Defy Android Development] Epsylon3:
the new market has a problem, i dont have tested that on stock rom to compare.. could be related to cyanogenmod.. but this problem is not new... and happen on multiple update/install

nothing special in logs...
[Defy Android Development] wizwin:
New gapps with old market app

I have re-packaged the new Google apps package 'gapps-gb-20110828-signed.zip' with the old Market app (Vending.apk) from 'gapps-gb-20110613-signed.zip'.

Named it 'gapps-gb-20110828-old-market-signed.zip'

Updated using Stable Recovery and it worked for me, so sharing the same here.
[Defy Android Development] Cocolopes:
Is there any chance to make this?

xdaforums.com/showthread.php?p=17582887#post17582887
[Defy Android Development] russtyd:
Hi Epy3... can you tell me which in build the mmcfix was implemented (I think it was 110831) and I'll restore back to the nandroid I have from before then (I have a backup dated 110830)? .... at least I'll prove to myself if no-one else :)

Is there anything which would get logged when the sd card is being written to (ie, would a logcat help in any way)? Its just weird that the card's proven capable of 10Mb/s, just no longer when accessed through the Defy....
[Defy Android Development] soueumesmoaki:
Any chance of that not working? :'(

EDIT:

yep.. still not working... i tried all 3 ways on doing that(editing sys.prop, that cmd line)... but i'm still only able to do it with defy multitouch enabler... something that i think shouldn't be necessary, right?

btw... do you think that the fact that those files are already edited should compromise the result?
[Defy Android Development] chab7:
+1 for this request. Nice notification widget bar.
[Defy Android Development] Cocolopes:
It would be nice to have that...I only made the image in photoshop...LOL!
[Defy Android Development] memz180:
I had a problem with the new gapps market just downloaded the new market from the net and it works perfect every single time if anyone needs it just pm me
[Defy Android Development] [] AL []:
Market v3.1.3;)
[Defy Android Development] wizwin:
Is this one different from the one packaged in new gapps zip?

The one packaged in new gapps is also v3.1.3 but it does not load the my apps screen at times (stays white) and it is pretty hungry for bandwidth (CPU/Network).

But if this one is different I would like to give it a try. :)
[Defy Android Development] [] AL []:
Well, I can't tell you if it is any different really. But all I know is I've posted that link and this one here on August 25th and 3 days later the gapps was updated - coincidence?

I've been using that vending.apk since that time and I had no issues at all with the Market. And yes, it's nice not to have to go to recovery to install/re-install it.

Also, that means that I have no need for installing gapps since I'm not using Talk and (if needed) Maps can be found on the Market. That saves a lot of un-needed crap on my phone as gapps has quite a few apks/services included.

And this way, I've never experienced the infamous 'Suspend bug' or lack of device deep sleep yet also...
[Defy Android Development] ntldr:
Battery life low

Hi,

With RC 1.5 the battery life has decreased severely :( What can I do? I didn't use the phone too much yesterday.
[Defy Android Development] TL@:
I've installed this rom yesterday, very happy with it. It's running for over 24 hours and still more then 50% battery (been playing with it a lot)

One thing I can't figure out, there's no ENTER (carriage return, line feed, however you want to call it) in the messaging program (I like to use new lines in texts to make all a bit clearer in a text) in stead there's a smiley button. Is there a way to get rid of the smiley button?
[Defy Android Development] ntldr:
I use SlideIT Keyboard and its layout is independent of the OS and its settings.
[Defy Android Development] one2wan:
I have bug since 0916-0114 flashing : I lose network type icon (2g,3g,h) in notification bar ! (but data works...)

Wifi icon appears if I enable it. No issue with zip apply or (dalvik) cache wipe.

Help please !!! :(

In log, I have some ResourceType warnings if I change theme (perhaps it can help you to solve my pb...) :

"Skipping entry 0x7f040005(6,7 or 8) in package table 0 because it is not complex!"
[Defy Android Development] delerium82:
I see that you use 3G, so it is normal - 3G uses more battery life.
[Defy Android Development] marhensa:
yep, using wifi (if there's any) is helping a lot to safe battery life..

not only cm7 os, not only defy, most smartphone drains its battery fast on 3G connection.
[Defy Android Development] sp8y:
Looking at the screenshot the Android OS usage seems a little high although not as high as I can have when I have a suspend issue - have a look in

>spare parts

>battery history

>other usage

>CPU usage & see if there a process called suspend using more than just a few minutes.
[Defy Android Development] ccav2000:
Using the older gapps package fixed nothing regarding the Android OS using too much battery when on WiFi. The problem must be elsewhere.
[Defy Android Development] sp8y:
Yep same here - I'm now running with the overclock settings disabled & it's been OK for 16 hours but that can change quite quickly with this issue.
[Defy Android Development] ntldr:
The "suspend" process doesn't show up in that list. However, Gallery seems to be on top of it... How can I disable Gallery from connecting to the internet? I don't want to link it to my picasa.
[Defy Android Development] sp8y:
Not sure if we should start a separate thread for the Android OS/Suspend bug but I've just been looking through some dmesg logs & I'm not sure if it's just how the reporting is listed but the suspend -16 report is always preceeded by the "fun cam suspending".

Here's a snippet of log:

<6>[23737.959472] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------

<6>[23737.959503]

<3>[23737.974304] pm_op(): platform_pm_suspend+0x0/0x54 returns -16

<3>[23737.974334] PM: Device alarm failed to suspend: error -16

<3>[23737.974365] PM: Some devices failed to suspend
[Defy Android Development] ccav2000:
I posted that same log some time ago, no one knows exactly why it happens.
[Defy Android Development] marhensa:
Settings / Account & sync / Google / Uncheck Picasa syncing.
[Defy Android Development] ccav2000:
In other news, the Gerit Code review had lots of commits merged today, I suppose included in the next nightly whenever it appears. Nothing too interesting for the DEFY from what I can see.
[Defy Android Development] ntldr:
Thanks a lot!
[Defy Android Development] Passa91:
Drop the Task Killer for starters!

Secondly - that's pretty good battery life if you're on 3G. How many hours display usage do you have? I hit 20-30% after 16h away from the plug and 2-3h display usage and I'm pretty happy with it.
[Defy Android Development] ntldr:
Uninstalled task killer. Do you think this is depleting my battery?

Display usage: 1h 4 m. I don't know if since the last reboot or on battery.

Another question: what's the recommended setting for USB debugging - enabled or disabled?
[Defy Android Development] Frunobulax:
Oh well. From weeks to now the phone became extremely unreliable.

I'm experiencing constant reboots, and losses of signal that only fixes itself (briefly) when I restart the Defy.

And yes, I tried both using BaseBandSwitcher (the last version avaliable around here) and not using it at all.

[edit] OK, now that's ridiculous.

I just woke up, and went to see the Defy charging. It had an icon indicating it was in USB Debugging, but it was deactivated in the options!

And also, all my desktop is messy, like the dpi changed... over the night.

[edit] Rebooted it and it's back to "normal". What the...?!

By the way, I'm using 110916-0114.
[Defy Android Development] ccav2000:
Never had such symptoms. If you already tried a wipe and still persists, go back to official Froyo to double-check for hardware faults.
[Defy Android Development] [] AL []:
...or you could also delete the MediaUploader.apk in /system/app and it would remove the upload to Picasa option from "share" altogether.

You might be interested in reading my previous post on "optional" sytem apks.
[Defy Android Development] chab7:
In new Defy+ rom (4.5.3-109walter) contains new official FM app (not the MS2 version) and it works good, RDS works good too.
[Defy Android Development] marhensa:
"it works good"..

it works good on cm7 (you put it on cm7)

or it works good on defy+ rom?
[Defy Android Development] chab7:
On Defy+ rom. I just mentioned, maybe it would work here too.
[Defy Android Development] LeopardSurd:
I tried one from Walter. It doesnt work with CM7> FC
[Defy Android Development] neogsantos:
mine is rebooting a lot too =/

And it has begun about 3 or 4 weeks and I don't know what to do hahaha

Think I'll need to bring the phone to tech assist
[Defy Android Development] maniac103:
Can you post the logcat for that FC? Did you also copy the dependencies (FMRadioServer.apk, JNI libraries)?
[Defy Android Development] walter79:
Here is the signed FM-Radio app from 4.5.3-109 rom.
[Defy Android Development] maniac103:
I've tried it, and it seems to depend on some Moto jar libraries (no problem) and on some drawables in Moto's framework (which causes LeopardSurd's FCs). This is certainly fixable, but before doing that effort, may I get some screenshots of the new FM app to see whether it's actually worth the effort? Thanks.
[Defy Android Development] chab7:
Here it is ;)
[Defy Android Development] sp8y:
OK that didn't work as the suspend bug returned.

The scenario today was using wifi in the house then turned it off (no data enabled either apart from background data) & went out for 30mins upon return the suspend was showing 6mins CPU usage.

So I've now frozen/renamed a few apps like google talk to see if there's any difference but to be honest I think I'm just trying things that really have nothing to do with the bug - seems more dev based in my opinion & that's too complicated for my knowledge on Android.
[Defy Android Development] ccav2000:
On battery for many hours now, WiFi on for about 96% of the time, Android OS consumes about 25% of the overall consumption.
[Defy Android Development] sp8y:
Hmmm yours sounds worse than mine as I can go sometime with Android OS showing only 4% then when suspend kicks, which could be many hours later, if I don't reboot it then goes up to 25-30%.

It's got me beaten!

So it's looking like regular reboots & regular update to recent nightly builds just in case a fix is there until some clever person finds out the root cause.
[Defy Android Development] LeopardSurd:
Beautiful indeed! But not in theme with CM. I can help make the interface more CM, less glossy. But I can edit only the interface. I dont know programing/code etc.
[Defy Android Development] chab7:
My dream is CM7 with themed like Defy+ 4.5.3, but I am not involved in developing, I am just a user.

However CM7 is still the greatest rom for daily use.
[Defy Android Development] floydz:
Can anyone confirm in which sbf+nightly works the Wifi Tethering?

I cant get it to work since the Wifi Ap built in CM7 was introduced.
[Defy Android Development] LeopardSurd:
I agree with you but CM is CM so the basic theme must be like it should. I can edit all the interfaces of the programs for CM7 to look like a CM app but I really dont know how to recompile them back.

Sometimes simpler is better.
[Defy Android Development] UEman:
Use this theme http://xdaforums.com/showthread.php?t=1021507
[Defy Android Development] coolzarjun:
Help.. Sharp battery drains.. Battery falls from 60% to 38 % in like 10-12 minutes.. Any way to solve this..

Rc1. 5 had this problem.. So 110911 bootwifi nightly on which I'm on also has it.. Someone help please.. I data/factory rested many times :/
[Defy Android Development] derbestimmer:
GREAT HINT MAN! it really seems to be working! i reformatted my 32gb class4 microsd with 64k blocksize and the lagging in wide rec vids is finally gone! i even increased the bitrate to 8mbit and everything is still smooth. something is strange though: now i only get about 5-6 mb/s at writing benchmark (sd tools). before the format it was 11-13 mb/s. i didn't recognize any speed decrease though. so everything seems to be ok, i guess.
[Defy Android Development] Ricardo_Is:
Haven't this drop problem.

Go to recovery/advance/wipe battery stats.

After that, charge your battery and use a battery calibrate app.
[Defy Android Development] chab7:
Not exactly the same, but many steps closer ;) Thank you for this. I will try.
[Defy Android Development] 2Pints:
Is there anywhere to find out the difference between each nightly?
[Defy Android Development] mick711:
Hello

I use with beta2 BT Switch and work fine with copilote with my scalarider, but with last nightly don't work .

Can it possible do add audio switch to BT for GPS sound ?

thanks

EDIT : sorry work i just don't start correctly : Enable BT connect BT Headset Run GPS Music player and run BTaudio Switcher ON ^^
[Defy Android Development] nosklo:
github commits is a good place to start
[Defy Android Development] Sigma47:
Battery drain!!!!

Thanks to the devs for their hard work. I am running RC 1.5 and cell standby is consuming a lot of battery. I was getting a 1.5-2 days outta RC 1.2 but am lucky to get 1 with RC1.5. I have also noticed significantly more drain during calls with RC1.5 a 34 minute call took my battery down 16%, which I believe is over twice what the advertised spec would be for the defy (600 min talk time?). So, I restored RC1.2 and will wait until the wrinkles are ironed out. Thanks again to all for their hard work.
[Defy Android Development] soueumesmoaki:
Greetings... HOW THE HELL DO YOU ALL DO THAT? all i got with my battery is 16/17 hours... he is always with wifi and 3g on... but today for example... i'm with 12:36 battery, and still has 57%. but all my phone did was keeping on 3g during my class, and when i was at a friend's house... at home it's always wi-fi on Oo

is there any config/hint on battery to make it works better or you do turn off mobile data or something like??

sorry for the post, but i'm really impressed on the battery time i see ppl saying over here :)
[Defy Android Development] thomsch:
Someone notice that nightly 14/9 doesnt change the boot logo? This is intencionaly? I love the Google Logo.
[Defy Android Development] [] AL []:
Please fix that link: it re-directs to some annoying ad site.

Maybe this link?: https://github.com/CyanogenDefy
[Defy Android Development] Epsylon3:
ive added the first vlc beta in today's nightly... it is just a test... will not stay in the future builds

http://git.videolan.org/?p=vlc-ports/android.git;a=tree;f=vlc-android
[Defy Android Development] Epsylon3:
nighlies doesnt change logo... only Boot builds and RC
[Defy Android Development] thomsch:
thx for the info !
[Defy Android Development] sebx_g1:
Hmm ... fellows I wonder why battery live in android systems are such unpredictable thing ... for example on default settings for CM7 RC1.5 governor ondemand cpu speeds 300-600-1000 battery life is far worst than on governor smartass settings 300-600-900 but this governor uses only deepsleep ,300 and 900 cpu speeds , very little use of 600 - deepsleep and 900 levels are used most. Phone is very fast (1850 in quadrant benchmark) and used as usually battery last twice as before -what is strange on 3G it start use less power than on WIFI. Maybe to many speed levels is not good , this smartass governor seems very good for me . My advice is guys check it out .:cool:

I found on the net some description of smartass governor from its maker : " smartass governor – is based on the concept of the interactive governor.

I have always agreed that in theory the way interactive works – by taking over the idle loop – is very attractive. I have never managed to tweak it so it would behave decently in real life. Smartass is a complete rewrite of the code plus more. I think its a success. Performance is on par with the “old” minmax and I think smartass is a bit more responsive. Battery life is hard to quantify precisely but it does spend much more time at the lower frequencies."

Other expanations : http://xdaforums.com/showthread.php?t=843406
[Defy Android Development] teamet:
The smartass governor relies on current CPU load. If load rises the cpu will go to full power, and then aggresively go back to the minimum power state when load falls..

In practsis this gives good benchmarks, but doesn't give a stable FPS as the CPU goes to the minimum powerstate from time to time..

Used it for a couple of weeks and then went back to the ondemand governor.. It gives the performance/battery for various loads - at least to my mind
[Defy Android Development] sebx_g1:
Yes in a basic words it works probably in that way ,but in my opinion it is nice method . As I sad my batery lasts twice as long than on ondemand governor ,and there is no visible drawbacks for me . I use phone as normal ,even harder and it can work longer and still very fast :-)
[Defy Android Development] :
Hi guys,

I have tested my defy without sim card this morning and guess what... The network is still in use. Does it seem normal to you?

My defy only lasts around 20h so I have been doing a lot of tests to try to find out what is going on. It seems like a network problem. I have tested many bands but results are the same or worse (bad reception).

Any ideas?
[Defy Android Development] businessman9:
without sim card you could still make some emergency calls like 911 or somthing...
[Defy Android Development] TJKV:
ADWLauncher crashes

So I have been having a lot of crashes with ADW recently. I managed to catch one using catlog, attached it here. I opened the txt file, it was an unreadable mess without any spaces, new lines or any kind of formatting. But a quick search for "launcher" took me to the relevant bit...

Any help would be much appreciated :)

EDIT: Forgot to attach the file before posting :$
[Defy Android Development] gkai:
An update: I just tested the same kernel with latest nightly - still no deepsleep...but here it become interresting: If I go in airplane mode, de-activating all radios, it goes into deepsleep alright:

<6>[ 5240.600219] request_suspend_state: sleep (0->3) at 5082278442217 (2011-09-18 14:02:29.050964252 UTC)

<6>[ 5247.315673] suspend: enter suspend

<6>[ 5247.316223] PM: Syncing filesystems ... done.

<7>[ 5247.381835] PM: Preparing system for mem sleep

<4>[ 5247.382110] Freezing user space processes ... (elapsed 0.03 seconds) done.

<4>[ 5247.417266] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

<7>[ 5247.418975] PM: Entering mem sleep

<4>[ 5247.419311] Suspending console(s) (use no_console_suspend to debug)

<6>[ 5247.421569] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------

<6>[ 5247.421569]

<3>[ 5247.441497] pm_noirq_op(): platform_pm_suspend_noirq+0x0/0x38 returns -11

<3>[ 5247.441528] PM: Device power.0 failed to suspend late: error -11

<3>[ 5247.441711] PM: Some devices failed to power down

<6>[ 5247.443420] wakeup wake lock: ehci_pm

<7>[ 5247.467864] PM: Finishing wakeup.

<4>[ 5247.468353] Restarting tasks ... done.

<6>[ 5247.484924] suspend: exit suspend, ret = 0 (2011-09-18 14:02:35.935699366 UTC)

<6>[ 5248.498718] suspend: enter suspend

<6>[ 5248.499023] PM: Syncing filesystems ... done.

<7>[ 5248.561401] PM: Preparing system for mem sleep

<4>[ 5248.561889] Freezing user space processes ... (elapsed 0.03 seconds) done.

<4>[ 5248.596710] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

<7>[ 5248.598388] PM: Entering mem sleep

<4>[ 5248.598693] Suspending console(s) (use no_console_suspend to debug)

<6>[ 5248.600952] fun cam_misc_suspend ------------- MOT CAM _ SUSPEND CALLED ---------

<6>[ 5248.600952]

<7>[ 5248.619293] vfp_pm_save_context: saving vfp state

<6>[ 5286.235260] Successfully put all powerdomains to target state

<6>[ 5286.236083] wakeup wake lock: cpcap-irq

<7>[ 5286.271179] PM: Finishing wakeup.

<4>[ 5286.271453] Restarting tasks ... done.

<6>[ 5286.348693] suspend: exit suspend, ret = 0 (2011-09-18 14:03:14.581817633 UTC)

and CPU spy indicate that deepsleep is getting used (a first on this kernel! :-) ).

So it seems that it is something linked to radio. Only radio I use when deepsleep is prevented is 2G (I force GSM to save bettery life, as I do not have 3G nor any data plan). I will test if letting network on auto improve things....

Edit: confirmed: as soon as airplane mode is activated, phone is able to go into deepsleep.

Kernel used is tagged WIFITEST3, if I remember correctly, it uses new radio module(s) that were said to be better on battery...but I guess they also prevent the deepsleep of the kernel. I deepsleep can be re-activated with those module(s), I think battery life should be great!
[Defy Android Development] :
Hm yep, sounds obvious now that you say it...

Is there some french people in here : which baseband do you use?
[Defy Android Development] :
Did you try to set the default parameters back to ADW ?
[Defy Android Development] warewolf4586:
works great

How to install apps to Ext partition

in terminal when I type:

a2sd reinstall

it says:

a2sd not found
[Defy Android Development] one2wan:
I'm on Orange and use 164-005 Orange baseband with lastest nightly (but still on 164 kernel [2.6.32.9-g050ccf2fdc376@zch68lnxdroid12#1], it's my choice...). Ask me everything if that can help...
[Defy Android Development] kevin_diu:
Is it help us to improve battery life?

http://xdaforums.com/showthread.php?t=1151608
[Defy Android Development] :
Thx but, where did you find this kernel? I don't see any boot164 on the repo...
[Defy Android Development] one2wan:
I've just taken boot and devtree from official 164 sbf and put them into RC1.5 to test...
[Defy Android Development] TJKV:
Hmm good idea, I'll try it with default setings for a couple of days. Thanks!
[Defy Android Development] sp8y:
OK with the recent talk about kernels & deep sleep etc. I thought I would change kernel back to the 179-2 that was included in the nightly of 110817-1717.

I originally wasn't too keen on this one as the wifi was a bit slower than the 179-4 modules but thought I'd go back & retry to see if there's any difference for the suspend bug.

So now I have the kernel from 179-2 110817-1717 & running the nightly of 110916-1816 on top. I haven't changed any wifi modules as yet so will give this a try for the next day & report back.