yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] gkai:
Thanks for those infos

I have exactly the same kernel as you (coming from CM 1.5) and have selected the same baseband. No change, still no deepsleep except in airplane mode.

But I have noticed something strange: Whathever baseband I choose and install using the Defy baseband switcher included in the Rom, settings/about phone/baseband version always report

EPU95_U_00.59.01

Baseband switcher really change something related to baseband (to check, I have deliberately choosen a 850-2100 MHz baseband which do not work in Belgium, and got no signal), but does it change all the files and in particular the firmware?

So to other european Defy owners: What is the baseband reported in settings/about phone/baseband version (or other tool that report this info), and does it change for you when you select a new baseband with Defy baseband switcher?

Thanks for these infos.

BTW, I have found on the net that the "no deepsleep except in airplane mode" is a common problem on custom kernels on many devices, probably linked to mismatch between kernel and baseband (radio firmware). But on Defy, we do not use custom kernels, so if there is a mismatch I guess it is from my own firmware and could be present from the start, even before I installed CM7 :(
[Defy Android Development] ccav2000:
@gkai:

The baseband reported in phone -> about is a fixed string somewhere in the system props. The Baseband Switcher just changes the baseband files and it does work. I'm in Greece using the generic Central Europe baseband and don't have sleep issues (as long I don't use WiFi, but that is an entirely different problem).
[Defy Android Development] lukassek:
New nightlies have Android 2.3.7? My phone shows me that...

Ok, now I found more about it, so it is not so strange for me now...

I have just one think to say... Thank you guys for keeping us up to date... :)
[Defy Android Development] ccav2000:
Yes, but the differences between 2.3.5, 2.3.6 and 2.3.7 are minimal, no big deal.

---------- Post added at 09:51 AM ---------- Previous post was at 09:36 AM ----------

Looking at Quarx's git I think he may be trying to debug the deepsleep issue.
[Defy Android Development] Proda:
Hi guys,

Can anyone make Update.zip file with only these 3 apps?

CarHomeGoogle.apk: http://www.multiupload.com/YER0KRAORI

Maps.apk: http://www.multiupload.com/GJMUNSSMY0

(optional) QuickContactWidget.apk: http://www.multiupload.com/D4UJ3H17LR

I don't need whole Gapps.zip, just CarHome and since there are no Maps in CM i'd like that too plz. QuickContactWidget is optional.

I posted similar post to Cmiui but no answer there, so I'm posting it here, since this is the base ROM for all Miui Roms...

Tnx all...
[Defy Android Development] gkai:
Thanks for the info! Is it correct to say that baseband switcher change the whole radio firmware, i.e. with the same baseband 2 phones have exactly the same OS subpart controlling the radio of OMAP system-on-a-chip?

If it is the case (and, contrary to what I though first, after some googling about android radio, I think it is), then the fact that with exactly the same kernel and same baseband as european user have no (or moderate) deepsleep issues, I (together with henel321) have so much trouble.

I had a new idea: maybe it is linked to my network provider and my sim: I had changed my sim to a newer one, but obviously I am still with the same provider (Mobistar from belgium). From thread on deepsleep issues on other phones, I have tried a few other things: disable automatic time from network (no luck), removed Stk.apk (no luck), airplane mode (work, but not practical...people should be able to phone me ;-) )...but users report that the problem is sometimes provider related and it can dissapear when roaming or with other provider. This would explain why the problem is so uncommon, and why it may be present on stock rom too. I will try to get a sim from another network provider to check this back home, and will report my findings...
[Defy Android Development] ccav2000:
@gkai

If you can borrow a SIM it's the easiest way, if not, buy a cheap prepay package.
[Defy Android Development] chab7:
Hey ppl!

In baseband switcher watch not only the text (central europe, europe, etc.) but the version numbers too.

In EMEA section there's a Cent.Eu.HongKong etc. with 3.4.x and UK 4.5.1-85.

This one is for Froyo (and UK GB).

In APAC section Cent.Eu.Ger.etc. has 2.51.x version number which is for Eclair!!!
[Defy Android Development] ccav2000:
I have the one that appears third in the list, Cent.Eu.HongKong etc. with 3.4.x and UK 4.5.1-85 and no problems radio related.
[Defy Android Development] chab7:
Yes, that's why I'm saying. I use that one too. (Hungary)
[Defy Android Development] henel321:
I've always had deep sleep, BUT, it has been less than before and as other people have reported I have simply crazy amounts of battery going to Phone Idle and Cell Standby.

After downgrading to 110817 with Boot179, which didn't make a difference I tried build #14 from the official CM builds. I still have ~45 % Phone Idle and Cell Standby and far too much time in 300 MHz instead of deep sleep but at least I have 45% battery left after 20 hours, so it is an improvement.

I'm starting to suspect my issue is related to the fact that my provider (three, 3) has done some major upgrades on their base stations in the Stockholm area which makes my phone transmit at far to high outputs all of the time, because at the same time as my battery runs out really quickly I have NEVER had reception this good.
[Defy Android Development] russtyd:
111002-1446 definitely has the deepsleep problem - 3 hours on 300Mhz, 0 on deepsleep despite the phone being in standby (with wifi enabled) for almost all of those 3 hours... back to 110928-2257 again at deepsleep looks to be working again :)

Edit: Just tried 111004-1128 at that also suffers from the deepsleep problem :(
[Defy Android Development] mineIsAlreadyTaken:
I'm on 111002-1446 an my phone enters the ds state as it should. Is it maybe wifi related? My wifi has been off.
[Defy Android Development] sp8y:
OK for anyone having deep sleep / suspend issues it might be worth trying an app called betterbatterystats (available on xda for free or on the market for a fee) http://xdaforums.com/showthread.php?t=1179809

I've been using this instead of spare parts since I've gone back to froyo & it takes the data that spare parts uses but then breaks it down into separate processes - eg instead of just showing as Android Services it shows the actual breakdown.

This may be of help to determine what the potential cause is, maybe a wakelock - wish I had started using this when running CM7.

Anyhow just to add my Defy is running great now since going to official UK Froyo yesterday - suspend showing only 3seconds in the last 3 hours & no high usage issues at all - will continue to test over the coming days.
[Defy Android Development] chhanga:
having best batt with 110927 so far 50hrs 32% left mod usage
[Defy Android Development] nosklo:
No, I don't use windows to flash my sbf files. I use flash_sbf linux tool. I found it to be more reliable and also provides more feedback.

EDIT: it also works on mac.
[Defy Android Development] lupodrillo:
solves the problem of proximity sensor during calls?

I disable the vibration during calls but the phone vibrates when you move from the face and during the notifications.
[Defy Android Development] pl4yeR:
I'm going to try 110927, to see if deepsleep works with wifi enable in this nightly. October's nightlys suffer from the deepsleep problem for me too.

Mi boot version is bootwifi3, could this be related with the issue? could somebody tells me what's the difference between this version and 179-4 one?

Thank you in advance.
[Defy Android Development] ofmb:
Recent info about the bootloop after 20110927 nightly:

It seems like the lockscreen bug is back!

I can see in logcat these lines which are very suspicious:

E/AndroidRuntime( 2151): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy

E/AndroidRuntime( 2151): android.view.InflateException: Binary XML file line #213: Error inflating class android.widget.Button

E/AndroidRuntime( 2151):	at android.view.LayoutInflater.createView(LayoutInflater.java:518)

E/AndroidRuntime( 2151):	at com.android.internal.policy.impl.LockScreen.<init>(LockScreen.java:336)

E/AndroidRuntime( 2151):	at com.android.internal.policy.impl.LockPatternKeyguardView.createLockScreen(LockPatternKeyguardView.java:655)

E/AndroidRuntime( 2151):	at com.android.internal.policy.impl.LockPatternKeyguardView.<init>(LockPatternKeyguardView.java:366)

here's the full logcat http://pastebin.com/raw.php?i=WDK75LAb

BTW - it's not the "calendar+new ring lockscreen" as i previously thought: i deleted calendar.db and removed the exception.

EDIT1: What's that file? res/drawable-hdpi/ic_emergency.png ?? could that be the reason for the bootloop?

EDIT2: It appears here:

https://github.com/CyanogenDefy/android_frameworks_base/tree/gingerbread/core/res/res/drawable-hdpi/

and here

https://github.com/CyanogenDefy/and.../layout/keyguard_screen_sim_pin_landscape.xml
[Defy Android Development] marhensa:
is it safe now to use high class sd-card on cm7 (sdcard fix)?

i wanna buy a new one..
[Defy Android Development] ofmb:
yes, sdcard working flawlessly since 20110830 nightly

---------- Post added at 06:17 PM ---------- Previous post was at 06:10 PM ----------

Finally FIXED IT!!

steps:

1. recovery, mount data, start adb server

2. run in adb the command

adb -d pull /data/data/com.android.providers.settings/databases/settings.db

3. open settings.db with sqlite editor (i use forefox addon :p ) and edit

settings->lockscreen disable to 1

4. run in adb the command

adb -d push settings.db /data/data/com.android.providers.settings/databases/settings.db

5. restart phone!!

NOW I'm sure it's the lockscreen!

errrrrr
[Defy Android Development] russtyd:
I didn't ever update to the bootwifi3 version, so I'm on 179-4... guess that eliminates that from the puzzle?
[Defy Android Development] [] AL []:
Good that it worked, but what did the fix solved exactly?

The logcat errors only or any other symptom(s)?

Wouldn't using the "Toggle Lockscreen" power widget (and unselecting it) fix this as well? ...at least more easily. There are also quite a few other lock options under CM7 settings/Lockscreen menu...

The ic_emergency.png file is simply a little green phone pic; probably the one in the phone dialer (the 'Show dial button' option in preferences) or one that would be displayed on the status bar (in a state where the phone is in emergency calls only mode for example).

I edited my phone's status bar icons from png files in the exact same directory [res/drawable-hdpi/] within the theme's apk.
[Defy Android Development] gkai:
News on my suspend problem (no deepsleep except in airplane mode)....

As I said, the last idea I had before going back to square one (reflash a froyo sbf and reinstall everything from scratch) was to test another mobile provider from Belgium. My sim card is company provided and from mobistar (mobi*).

I just did it, and boy should I have tried this a loooong time ago...

First boot after inserting a proximus sim, unlock, reset cpuspy, screen off, screen on, and bam, deepsleep was achieved. Woooohooo! ;-)

Now it become even more interesting: I still had a pre paid mobistar sim card from a phone I buy in august this year (phones are never simlocked in Belgium, it's illegal here, but when you buy a phone in a network provider shop they often give you a free prepaid car with 5-10€ charge - hoping that you will stay on their network after). Simcard was never used, so still uninitialized. I inserted it in my phone, initialized it, made a test call to check that it was on the network and working all right. Then cpuspy reinit, screen off, screen on....and.....enter deepsleep allright again!!!

Put my company simcard again - hoping for a faulty insertion that caused a bad contact maybe...but no luck, no deepsleep with this simcard...

Now this is a huge step forward: I have ruled out an hardware defect on my phone, some problem from my kernel or baseband, an incorrect installation that somehow persisted accross nandroid restore, CM7 boot nightlies and eveb CM7 release candidates...

It is not even the mobistar network, or at least not always...which explain I was a little bit alone in never achieving deepsleep, not only achieving it unreliably.

It is the simcard. Problem is I have changed it for a newer one not so long ago, and the old one had the same problem with deepsleep, so I think it is not a simple matter of a faulty sim. It is more probably linked to some config or limitation mobistar have for company sim (for example, they set the phone number of the simcard over the air, they can activate or de-activate data if my company demand it, and so on. I think it is linked to this, and this is bad news because for solving the problem, I will have to speak to mobistar itself :-( :-( Well, first step is to check with other smartphone users in my company if they have the same issues, and maybe change again to a newer simcard...Gosh, solving this will not be easy nor funny, but at least it is not Defy nor CM7 related...

Thanks for all that helped me, and I hope my reports can help others having such problems: When the suspend seems linked to your phone radio and dissapear in airplane mode, check with another sim (knowing that even with the same provider, depending on contract type, things can change tremendously :-/)
[Defy Android Development] [] AL []:
Boy! am I glad to hear that some light has been shed on this -and I quote:- "(no deepsleep except in airplane mode)" problem. Hehehe!

I guess that my post of yesterday deserve a +1 ;)

As for solving it with a carrier, though job and good luck indeed.
[Defy Android Development] gkai:
It sure does Al, thanks again!
[Defy Android Development] ofmb:
I've had a bootloop so couldn't use the settings app.

After those steps it is now fixed
[Defy Android Development] [] AL []:
Np, I'm glad to help.

Thanks for the thanks:)

The quote of the day goes to chamonix, the dev of the betterbatterystats app mentioned by Sp8y:

"This app is still under development and may contain bugs. If you find one you can keep it;)".
[Defy Android Development] ofmb:
Have you tried playing with different basebands ?
[Defy Android Development] ofmb:
Pay attention here

http://xdaforums.com/showpost.php?p=18106882&postcount=29

could be the next big thing
[Defy Android Development] andyman_187:
Quick question, do i still need to update to a bootwifi3 nightly BEFORE installing the latest nightly, or is the latest nightly already bootwifi3? Is there any advantage over 179-4? Im currently on rc1.5(and loving it!) TIA!

Sent from my MB525
[Defy Android Development] chab7:
No need those if you love rc 1.5

I use latest nightly (official 17 now) right after 2.2 cee, and everything is fine.
[Defy Android Development] Epsylon3:
the bootwifi3 is made to fix the problem with some mimo routers (openwrt)

the rc1.5 contains the original wifi module and the tweeked tiap_drv one for tether

---------- Post added at 12:59 AM ---------- Previous post was at 12:53 AM ----------

right, was in my plans to tweek that... a hid mode exists in our kernel (for mouse/keyboards) which allow a usb host mode (5V output on usb)

but maybe we need an opensource "usbd" (usb service) to allow that..
[Defy Android Development] ofmb:
lets start by having an easy way to output 5V for LEDs, fans and other dealextreme junk :P
[Defy Android Development] hailmary:
Yeahh thats awesome..another cool stuff for defy...

Btw the latest nightly didnt gave bootloop or any crap su/busybox message now.

Running smooth now.
[Defy Android Development] AkkiandDefy:
I have in my town max 4-5, but you're in LA so 11 are normal :D
[Defy Android Development] mick711:
Thanks for this update !

After one week in Beta3 Ouah :eek: !

Just can it's possible to translate basebandeswitcher in english or other langue because it's in chinese and why not change icon .

Just can it's possible for update just install zip of Beta3 when the phone have Beta2 installed or it's necessary to WIPE ?

Thanks
[Defy Android Development] AkkiandDefy:
Need not to Wipe
[Defy Android Development] Rhyr:
If you have beta2, wipe it's not necessary, but you must also reflash gapps package.

For baseband switcher app, if someone give me the text strings in english, i can translate in italian and french, if it's usefull...
[Defy Android Development] walter79:
wipe is not necessary.
[Defy Android Development] walter79:
BETA 3

Phone now charge if powered off. I can see battery symbol.
[Defy Android Development] dnsdenis:
I've upload the BETA 3 to other mirror :

http://www.filesonic.com/file/803745734/update-Beta3-cm7.0.0-20.04.10-Defy.zip
[Defy Android Development] RDELEON774:
How do you do that? I have boot menu 0.5.1 installed and have it set to auto boot on 2nditit. But

I don't understand what 2init. is lol I'm sorry
[Defy Android Development] breezasib:
Has the libgps.so that Quarx posted improved GPS for anyone?
[Defy Android Development] AkkiandDefy:
Look on Page 123 my first post, that works 100% and fast

Sent from my CM-7 Defy with XDA Premium
[Defy Android Development] tronic:
hello market d'ont run please help.problem solve with gapp
[Defy Android Development] AkkiandDefy:
Install google apps zip

(First Page)

Sent from my CM-7 Defy with XDA Premium
[Defy Android Development] xdamage:
Help bricked @ bootscreen

So I'm not new to putting roms on my defy I've used all here on xda, but when I followed instructions on pg. 72 I flashed the nordic sbp (presumably fixed?) installed 2ndinit and wiped/applied as a zip. Now Im stuck at red M logo I tried stock reccovery wipe and flashing sbfs, I came from JB3 liquidarc any ideas?:confused:
[Defy Android Development] breezasib:
Beta3 is much improved for me. Love how smooth launcher pro is in this build.

Thanks for your hard work Quarx
[Defy Android Development] mick711:
I just make a zip you can flash with custom recovery ;)
[Defy Android Development] edition-:
I just reinstalled beta3 because the new gpslib broke my gps.

With the new beta3 the GPS is better and i just fixed the wrong location with "GPSFix" (search on market)

Now my gps locks in about 5 seconds, and i didn't used the new lib.
[Defy Android Development] AkkiandDefy:
Right! The same I wrote in Page 123 but nobody except 3-4 people don't care and ask again...
[Defy Android Development] Jygar:
Quarx!

You are the man.

Installed Beta 3.

Launcher faster.

Camcorder works beautifully.

GPS seemed to lock me instantly (was on wireless so don't know if this had something to do with it)

Anyone else noticed FB4A now crashes on messages?
[Defy Android Development] kirpeace:
Led flash does not work in video recording
[Defy Android Development] adi4motion:
for me it does (green lens)
[Defy Android Development] [] AL []:
Oh!, here's something that I meant to post here a long time ago and then I forgot about it... Or was it that found it a little off-topic?:confused:

USB Host mode on Motorola Droid

How To Add a USB Keyboard to an Android Phone

Apparently, the Moto Droid is compatible with USB-OTG (USB on-the-go) and an only need an easy-to-make "micro USB dongle" plugged in at boot time to toggle it on... Droid and Defy are sibblings and that trick might very well work for us as well. Edit: and it seems that it does: see that post on the same thread.

Anyhow, I couldn't find a car charger cable anywhere here either and I wondered if just a regular cable would do it as well (for the dongle I mean-since they remove the resistor on the mini board..) and which pins should then be soldered together..

Then would come the drivers issue...remember that time when we had to download a driver everytime we had to plug a USB memory key in a new computer?: fun-fun!

But yes, very promising...
[Defy Android Development] [] AL []:
Good to know; I'm downloading cm7-111004-1128-NIGHTLY right now then; a first for me since RC1.5...since some of the bootloops/no deepsleep issues seems to be gone and I'm done with the theming...

Bah!! ... since I've talked about it a few times already, why not share with you guys -right?

If you want to see what I did: get a transparent statusbar/pane, some nice looking power widgets and status bar icons and a neat sandclock "running" animation, you can try to install the attached theme.

[Credits go to xda users kevin2516 the author of GingerBluB theme and MrDSL author of Mixer8 theme and krd_medico for the tweaked SystemUI.apk.]

WARNING: this [the transparent statusbar through SystemUI replacement] will work on RC1.5 ONLY. As I've just tried it on 111004 nightly and noticed some icons display bugs (battery indicator, gps statusbar icons and others). A new tweaked SystemUI.apk will be needed. So be warned!!. (and sorry for that) But my theme still work on the nightly np...:cool:

But first

, do a Nand backup of your build [/U] [or at least keep a copy of your original SystemUI.apk] and you will

have to put the systemUI.apk attached on the first post here on the root directory of your SD card and push it through terminal

doing:

su
cd /sdcard/
mount -o remount,rw /system/
cp -f SystemUI.apk /system/app

The above command will probably just crashed the system. Press Force Close or even pull the battery out and reboot. Now, go to RootExplorer and fix permission for SystemUI.apk to rw-r--r-- [in system/app] and Reboot your device again.

[Later Edit: you could also skip the above by just try replacing the SystemUI.apk within in the RC1.5 zip and flash it again]

After making the update [and if you're using ADW launcher],

make sure to turn off Wallpaper Hack.

It’s under Settings->ADW Launcher->System Preferences->Wallpaper Hack

Install my theme apk and finally, choose it by selecting 'GingerBlurB' in the ThemeChooser app.

But be warned: I get a display bug on the theme selection screen where the theme preview is almost invisible and squeezed in between two of the CM7 default themes. Just slide sideway slowly until you see the name and hit apply.

Enjoy and tell me how you like my changes ;)

Perfect timming: phone fully charged and nightly downloaded...time to test!
[Defy Android Development] [] AL []:
Well, it seems that the StatusBarService.smali file changed too much from the RC1.5's one [probably in part due to the new ring lock] and I can't seem to find where to add the (-0x3) transparency anymore in order to get a transparent statusbar...

You guys (Ep3, Quarx and Maniac) plan on offering that option in CM7-Jordan one day?

Could you guys please help me mod the SystemUI.apk to get the transparent statusbar back?

So far, 111004-1128 runs great, but I already miss that...

Thanks a bunch.
[Defy Android Development] matchung:
line 2209, almost all nightlies locate same offset/line
[Defy Android Development] [] AL []:
Thanks, I did change that line using the patcher tool from this thread but the resulting statusbar_patch.zip or SystemUI.apk still give me a black statusbar on the latest nightly...

If you have this working, could you please share it with me?

Thanks.
[Defy Android Development] Sigray:
The new nightly is under 100mb... What missing?
[Defy Android Development] ccav2000:
Use the search next time, it has been already mentioned that the new nightlies do not include the kernel and the devtree anymore.
[Defy Android Development] Sigray:
Sorry.. What does it mean?
[Defy Android Development] pl4yeR:
Same issue here. Octobers nigthlys suffer from deepsleep problem with wifi enable on my defy. Back to 110927 and deepsleep its working with radio and wifi on!

110927 is android 2.3.5... i'll give another try to 2.3.7 in some days
[Defy Android Development] marhensa:
okay, my microsd Transcend 16 GB Class-10 is coming,

lets see if it's working fine, so far so good.
[Defy Android Development] matchung:
my teamgroup 16GB@CLASS10 works fine
[Defy Android Development] marhensa:
on froyo and previous cm7 (before 30 sept) it didn't works so well,

it often caused hangs.

any idea what files which responsible to fix it?

so maybe it could fix official froyo high-class sdcard problem too..
[Defy Android Development] matchung:
http://db.tt/xnzWUaVu