yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] sepp.:
CM10-20130326-NIGHTLY-mb526

Thank you Quarx: This time Wifi calibration on the devices works like a charm - :good:
[Defy Android Development] cyrusct82:
Yes you are right. Only in 18.03 the bp panic is implemented.:confused:
[Defy Android Development] Quarx:
Ah, i'm forgot add panic_daemon binary...
[Defy Android Development] gkkovacs:
According to my observation with Better Battery Stats, Android OS shows otherwise not shown kernel wakelocks, in my case USB. USB seems to have a problem waking up the phone too much, even if it's not plugged in at all.

You can download Better Battery Stats freely from here, and make an observation yourself:

http://xdaforums.com/showthread.php?t=1179809

My battery stats are attached (these are CM10-20120217 with JellyX kernel, but I had the same results with Quarx kernel.)
[Defy Android Development] sepp.:
What I see in dmesg

<6>[14440.688110] suspend: enter suspend
<6>[14440.688690] PM: Syncing filesystems ... done.
<7>[14440.766510] PM: Preparing system for mem sleep
<4>[14440.766845] Freezing user space processes ... (elapsed 0.02 seconds) done.
<4>[14440.796325] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[14440.798400] PM: Entering mem sleep
<4>[14440.798736] Suspending console(s) (use no_console_suspend to debug)
<3>[14440.817840] wl1271_sdio mmc2:0001:2: can't keep power while host is suspended
<3>[14440.817932] pm_op(): platform_pm_suspend+0x0/0x54 returns -22
<3>[14440.817962] PM: [COLOR="Red"]Device mmci-omap-hs.2 failed to suspend[/COLOR]: error -22
<3>[14440.817993] PM: Some devices failed to suspend
<7>[14440.864135] PM: Finishing wakeup.
<4>[14440.864624] Restarting tasks ... done.
<6>[14440.888092] suspend: exit suspend, ret = -22 (2013-03-26 17:09:57.433929336 UTC)

I looked at jordan-kernel/drivers/base/platform.c but got stuck quite fast in platform_legacy suspend with the call to (platform driver)->suspend. Can not figure out what mmci-omap-hs a device is :confused:
[Defy Android Development] sevenrock:
100% correct :) Here I explained that:

http://xdaforums.com/showpost.php?p=38259651&postcount=15579

But still I am using a self-compiled ROM because I need

some changes for OpenVPN:

http://xdaforums.com/showpost.php?p=39287340&postcount=15893

@Quarx: Please check if you can commit it to your repo.
[Defy Android Development] navinshark:
New Bui

Same here, Data folder is blank. But so far wifi is working fine, also wifi tethering is works fine ( I have tested 10 times back to back switched on and off, no problem).
[Defy Android Development] itayze:
Hi guys.

Any kernel recommended for defy to complemante this rom?
[Defy Android Development] hackergnome:
it's included in the ROM.
[Defy Android Development] itayze:
I have n4 and my friend is a bit jealus with the franco kernel..
[Defy Android Development] sepp.:
and with WIFI and mobile data switched off:

<6>[21080.184600] suspend: exit suspend, ret = 0 (2013-03-26 19:00:36.538360592 UTC)
<6>[21080.286193] mmc1 set to BYTE mode
<4>[21080.302978] mmc1: Deferred resume completed
<6>[21080.910888] suspend: enter suspend
<6>[21080.911224] PM: Syncing filesystems ... done.
<7>[21080.989288] PM: Preparing system for mem sleep
<4>[21080.989837] Freezing user space processes ... (elapsed 0.02 seconds) done.
<4>[21081.020294] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
<7>[21081.022369] PM: Entering mem sleep
<4>[21081.022705] Suspending console(s) (use no_console_suspend to debug)
<4>[21081.028656] Powering off wifi
<7>[21081.031036] vfp_pm_save_context: saving vfp state
<6>[21081.031311] PM: Resume timer in 12 secs (396951 ticks at 32768 ticks/sec.)
<6>[21093.149841] Successfully put all powerdomains to target state
...
<6>[21371.427703] PM: Resume timer in 27 secs (908328 ticks at 32768 ticks/sec.)
<6>[21373.953979] Successfully put all powerdomains to target state
<6>[21373.954986] wakeup wake lock: cpcap-irq
<4>[21373.957244] Powering on wifi
<7>[21374.083740] PM: Finishing wakeup.
<4>[21374.084228] Restarting tasks ... done.
<6>[21374.114807] suspend: exit suspend, ret = 0 (2013-03-26 19:05:30.543334954 UTC)

looks ok for me
[Defy Android Development] HammDefy:
When you disable WiFi, the Defy goes into DeepSleep.

btw.: How can i activate Swapfile ? on older Builds swapper 2 was ok and activated swap(file). On actual build, it won't...
[Defy Android Development] z3ro-grav1ty:
Re-installing 2nd-Init puts my phone in bootloop (stuck on red M) symbol. Is there any other way of changing the bootmenu/custom recovery? However when I re-installed 2nd-Init, I could use my sd card again. So I believe that when I install a custom ROM (Quarx//Paranoid) it changes my bootmenu to touchscreen and screws with my custom recovery.

Any help would be appreciated because I would love to use any further stable releases when they come :)

EDIT: Should I follow these steps to see if that will help me? http://oldwiki.cyanogenmod.org/wiki/Motorola_Defy:_FAQ#SD_Card

These are for the normal defy (I have defy+) and are from the old cyanogenmod wiki.
[Defy Android Development] migueldefy:
defy camera

please help improve video recording on camera this videp was taken with last Feb 07.03 build +4.2 camera app , its a total mess , i only uploaded cause of the heli crash lol , if my device is wrong please tell me how to make it work thanks

[YOUTUBE]http://www.youtube.com/watch?v=dQHAgRRlMnM[/YOUTUBE]
[Defy Android Development] z3ro-grav1ty:
Original Thoughts:

Re-installing 2nd-Init puts my phone in bootloop (stuck on red M) symbol. Is there any other way of changing the bootmenu/custom recovery? However when I re-installed 2nd-Init, I could use my sd card again. So I believe that when I install a custom ROM (Quarx//Paranoid) it changes my bootmenu to touchscreen and screws with my custom recovery.

Any help would be appreciated because I would love to use any further stable releases when they come :)

EDIT: Should I follow these steps to see if that will help me? http://oldwiki.cyanogenmod.org/wiki/Motorola_Defy:_FAQ#SD_Card

These are for the normal defy (I have defy+) and are from the old cyanogenmod wiki.

I've sort of found a round about way of doing it...

Each time I want to update I need to reinstall 2nd-Init because that downgrades my CWM and the downgraded version is the only one able to read my sd card. It's a pain but at the moment it's all I've got.

I'll post this link again to see whether people think I should try this: (I'm on defy+ and this is for defy from the old cyanogenmod wiki)

http://oldwiki.cyanogenmod.org/wiki/Motorola_Defy:_FAQ#SD_Card
[Defy Android Development] ccav2000:
Another thing I noticed regarding the WiFI affecting power management, even if the WIFI is not connected to an Access Point but it just enabled, it still won't allow the device to enter deep sleep. I tried to set it to disconnect after 15mins in the WiFi settings, which it did, but still kept the device fully awake with the same errors in DMESG. Such behavior is very bad from a driver of a mobile device.

EDIT: Found this page where there some explanation about the WLAN suspend problem, they mention that MMC_PM_KEEP_POWER must be set in the kernel, I have no idea if it is set in ours.
[Defy Android Development] Quarx:
MMC_PM_KEEP_POWER not implemented in 2.6.32. I'll backport some things for wl12xx power managment.
[Defy Android Development] roytam1:
when in doubt, redo from sbf :)
[Defy Android Development] z3ro-grav1ty:
I fully agree. It's just that I don't want to keep doing that every time I want to update anything. It seems whenever I install any Custom ROM it updates my CWM, and it can't mount my sdcard. As soon as I install 2ndInit my phone goes into bootloop but my CWM has downgraded from which I can safely install from my sdcard.

I was just hoping I don't have to reinstall 2ndInit all the time :( it seems like no one else has this problem
[Defy Android Development] sepp.:
Quarx, in core.c you did put in mmc_power_save_host

mmc_power_off(host);

//Quarx FIXME Pleaseee
//Allow to restart wifi
mmc_reinit_host(host);
//
return ret;

just before the end of the function

Why not:

int mmc_power_save_host(struct mmc_host *host)
{
int ret = 0;
....
mmc_power_off(host);

//Quarx FIXME Pleaseee
//Allow to restart wifi
//	mmc_reinit_host(host);
//
return ret;
}
EXPORT_SYMBOL(mmc_power_save_host);

int mmc_power_restore_host(struct mmc_host *host)
{
int ret;

mmc_bus_get(host);

//Just an uneducated guess by sepp.
mmc_reinit_host(host);

if (!host->bus_ops || host->bus_dead || !host->bus_ops->power_restore) {
.....
}
EXPORT_SYMBOL(mmc_power_restore_host);

And as I said: just a guess
[Defy Android Development] roytam1:
What's filesystem your SDcard using?

BTW it is good to have a small(1,2GB-ish) FAT32 card only for updating ROM :)
[Defy Android Development] z3ro-grav1ty:
I have an 8 GB SDCard, and I formatted it to Fat32 as soon as this problem started. One suggestion I've received is to take the working CWM and bootmenu (from 2ndinit v2.3) and make it a .zip file for me to flash after each install but I don't know how to do that or if it would work.
[Defy Android Development] d3xt3r:
wifi

do we still have to delete the wifi folder after the 26032013 rom, or itll run normally??
[Defy Android Development] frullewulle:
building instructions

@ sevenrock:

For compiling your own rom, do you still apply that linaro script that is mentioned in readme https://github.com/Quarx2k/android_device_moto_jordan-common or is that deprecated?

and do you still apply these patches?

http://xdaforums.com/showthread.php?p=38203061#post38203061
[Defy Android Development] roytam1:
Try plug it to PC and format with HP USB Disk Storage Format Tool.

My 16GB SanDisk C10 works with cwm recovery. :)
[Defy Android Development] Quarx:
Because, after power ON from OFF state, "resotre_host" called after "probe", and fails with -110error.

OpenVPN changes added.
[Defy Android Development] ccav2000:
Some more things I found about wl1271 suspend issues: http://www.spinics.net/lists/linux-wireless/msg65445.html

This is a basic patchset from 2011, could be updated by now, not sure.
[Defy Android Development] aperture:
do i still need to do this for 26.03?

thanks :)
[Defy Android Development] FaulFels:
Depends on what ROM you came from.

If you priviously installed a ROM with the new WLAN driver: NO

If you come frome an older ROM: Try if it works without. If not – there are Problems – you have to delete the folder.

(But be aware inside that folder is a file called wpa_supplicant.conf where all your WLAN passwords are stored in. Maybe it's better do backup that file before…)
[Defy Android Development] aperture:
Thanks! I coming from 20130220.. so I guess I need to delete that folder...
[Defy Android Development] tagada51:
Instead: After first boot: remove /data/misc/wifi and reboot.

You must write: Turn off wifi, After first boot: remove /data/misc/wifi and reboot. Turn on wifi.
[Defy Android Development] sevenrock:
Hi,

I never used Linaro stuff. Btw, Quarx removed the file today.

No. The only patch currently used by me is the /dev/tun-permissions patch,

but it was committed to Quarx today, so I can again use his ROM when

the WLAN power save problem is fixed.
[Defy Android Development] Male_zvire:
I flashed from 07-Mar-2013 to 26-Mar-2013, wipe cache, dalvik & battery stats andy my phone have problems with deep sleep. This night - from 100% charged to 4% only 7hours, about 50% deep sleep, about 50% 300MHz (CPU Spy info).

How i can fix it?
[Defy Android Development] Bleak3993:
+1 to this, the battery drain is higher than previous builds, today I disconnected the phone at 6.20am fully charged, using just wifi network and without gaming, just some music and web browsing, around 11am, the battery left was around 30%. btw I'm using custom automatic brightness settings for saving battery
[Defy Android Development] sepp.:
20130326 will not go to sleep if WIFI is switched on
[Defy Android Development] labsin:
New wifi driver is working good. Much better connection than before.

However, I can't ping any site on my PC when wifi is enabled on my phone (sound weird indeed)

Because of that, sites don't load an i can do almost nothing.

If there is a connection (like I am measuring the download speed) than it keeps working with the same speed.

When I disable the wifi from my phone, I can again ping sites. So I think the phones wifi signal could be very strong.

This is with my phone in front of the PC. If I move more than 4m away, the problem is solved.

The Phone doesn't have any issues with connecting.

My PC runs Ubuntu, I'm now going to test it with other PC's in the house.
[Defy Android Development] comishi:
I also have this problem. I´ve two pc´s, one with windows 7 and the other with vista, an open wifi network, and when I enable wifi on my phone i can browse so fast than before, but i can´t use internet on any computer!

How to solve it?
[Defy Android Development] Male_zvire:
I have WiFi & Mobile datadisabled. Here is attached screen of my last battery ussage. First few hours is everything OK, but then...

Biggest battery usage have OS Android (53%), standby mode (15%) and Display (9%)... :(
[Defy Android Development] sepp.:
I assume you have done a clean install:

what is the result of

top -n 1

when the drain starts to get heavy
[Defy Android Development] sevenrock:
Here is a patch which, I hope, fixes a compile error using latest Quarx git:

--- hardware/ti/wlan/mac80211/compat_wl12xx/include/linux/compat-2.6.34.h 2013-03-27 17:38:35.247546006 +0100
+++ hardware/ti/wlan/mac80211/compat_wl12xx/include/linux/compat-2.6.34.h 2013-03-27 20:33:35.569714455 +0100
@@ -268,7 +268,6 @@
{ return 0; }

#define MMC_PM_KEEP_POWER (1 << 0) /* preserve card power during suspend */
-#define sdio_set_host_pm_flags(a, b) 0

#define rcu_dereference_protected(p, c) (p)
#define rcu_access_pointer(p) ACCESS_ONCE(p)

The error message fixed by my patch:

In file included from /home/android/cm10/hardware/ti/wlan/mac80211/compat_wl12xx/drivers/net/wireless/wl1251/sdio.c:25:0:
/home/android/cm10/jordan-kernel/include/linux/mmc/sdio_func.h:169:12: error: expected identifier or '(' before numeric constant

The same bug occured with a Sony ROM.
[Defy Android Development] gkkovacs:
1. Download and install Better Battery Stats (free edition on XDA)

http://xdaforums.com/showthread.php?t=1179809

2. Charge your phone fully, then reboot

3. Wait a few hours with wifi and mobile data disabled

4. Start Better Battery Stats, and create screenshots:

- Other, Boot

- Kernel wakelocks, Boot

- Kernel wakelocks, Unplugged

If you upload them here, the devs can see which driver keeps your phone awake. In my case it's USB.
[Defy Android Development] Pacquix:
even with the last build I got a wifi problem: I deleted the wifi directory and it worked, then I pasted my old saved hotspots in the conf file, then it did not start. I had to delete the last hotspot and reorder the others from 1 to 10 to start it again, but it stopped working again after 1 day

edit: reduced to 8 to let it work again...

edit2: by the morning, it stopped again...
[Defy Android Development] niimand:
i ve noticed in bootmenu, when i tried to change bst_sleep_wakeup_freq value, it opened bst_awake_ideal_freq

isnt it anyhow connected with our huuuge drain problem? i have it too

edit: added screenshot
[Defy Android Development] NeoPreacher:
i recognized when the "system don´t response" comes up on startup, you need to kill "android os" in preferences -> apps manually and reboot. because it needs huge battery (i always thought it isn´t really a bug) .
[Defy Android Development] Pekempy:
I get about 10 hours battery life on average using this ROM. First screenshot is from Battery Widget Reborn app.

"Screen" seems to use most for me. I'll get BBS to find out what drivers..

Sent from my Bayer MB525 running SJB and using the XDA Premium app.
[Defy Android Development] niimand:
wondering

in bootmenu - in upper right corner it says 73% and when i reboot my battery says 24%... how is that possible?

anyway my phone is draining very very fast, but it stays on 1% very very long time.. what to do with it? thx
[Defy Android Development] Antiga Prime:
From what I understand, the bootmenu and the actual OS use different methods to calculate the actual percentage of the remaining battery charge, not sure if that is the real explanation for this though. Regarding your other issue, that is because since you have just done an install, your phone doesn't have a proper measurement for the current charge, so you should NOT charge it until it turns off by itself. I guess this sets some sort of marker indicating where/when the actual charge does in fact run out. Then charge it until it is charged to %100 (and in fact, I even leave it about 40 to 60 minutes more on the first charge), and delete the battery stats before unplugging your phone.

I do this with the first charge every time I install a rom, and it's what works for me in most cases.
[Defy Android Development] cheuslacerda:
guys need help

when I press the home screen flashes but not back to the home screen, anyone had this problem?
[Defy Android Development] dab512:
Great! Wifi now stable.
[Defy Android Development] Anton111111:
Updated to the 26/03/2013 build, remove /data/misc/wifi and reboot. Wifi connect fast and have good signal. But internet doesn't work. I downgrade to old rom and wifi with internet works very good. Updated to the 26/03/2013 build again. And have same problem with wifi :(
[Defy Android Development] nostupidthing:
26/3 build is good, wifi is good, internet is good also, battery life is not so good though, android system consumes lots, maybe usb debugging has to be enabled like before?
[Defy Android Development] ajojohn:
Latest build

26/3 seems smooth,wifi is fine. and only problm wit huge battery drain by OS.NO deep sleep wen wifi on:confused:

wer i can find The calibration tool ??
[Defy Android Development] pgreed:
? Battery calibration tools? - on the google play!
[Defy Android Development] Yudin_2k7:
On 26.03 build wi-fi always on, battery consumption above 50% by Android OS process. Battery life approx. half a day, very sad. Does anybody know the reason?
[Defy Android Development] sevenrock:
Just a wild guess, could this commit be responsible for the Wifi power consumption?

https://github.com/Quarx2k/jordan-kernel/commit/5fdacccb5c7c94b67429e66b3f8305fdd36dacb6
[Defy Android Development] ccav2000:
Not quite. Our kernel requires back porting of MMC_KEEP_POWER for power saving to work. Until that happens power saving cannot be enabled. I posted about this a while ago.
[Defy Android Development] tagada51:
Have you turned off wifi before removing /data/misc/wifi ?

For me, this solved the problem.
[Defy Android Development] sunnysays:
I am still facing the wifi problem in 2603 build i am not able to connect to wifi ... i have removed /data/misc/wifi folder after the first boot and rebooted the defy... i didnt solve it... so i flashed back to 0703 build... can anyone tell what are the new features included in 1803 build compared to 0703 build?
[Defy Android Development] bone101:
AW: [JB] CM10 Android 4.1.2 for the Defy(+)

My mp3 music stops again while listening after 1 day 13h uptime

Remount sdcard solved theproblem

Im on 26.03.2013 build

Here is catlog of errors :

http://db.tt/b1c8qVEy

I hope it helps

mb525 red lense
[Defy Android Development] javlada:
I think the reason is quite obvious. The new WiFi driver prevents system from going to deep sleep.
[Defy Android Development] rachit2588:
Wifi direct

After hitting this new update 26th Mar13

high battery drain (cause : New Wifi Drivers :good: )

Did somebody tried wifi direct ?
[Defy Android Development] sepp.:
Workaround - No depp sleep with Wifi on 0326

Hi

Great Rom :good:

For my usecase the only thing is getting no sleep when Wifi enabled causing too much battery drain

My Workaround:

Use Lama / create an event / On Screen on -> turn Wifi on / create a second event that fires with a delay (i.e 5 mins or so )/ On screen off -> turn Wifi off
[Defy Android Development] j814wong:
Can someone tell me how well the GPS works on a scale of 1-10? Will it work sufficiently well while constantly moving? I need to be able to use the phone with apps like Strava or MapMyRide.
[Defy Android Development] TheBirdOfHermes:
Hey.

Does this ROM support Hebrew?
[Defy Android Development] z3ro-grav1ty:
Sorry if I'm not much help. I uploaded screenshots of all the languages from my current ROM (17/02/2013). I've attached it as a .zip.

But I'm really unsure.

Sorry.
[Defy Android Development] TheBirdOfHermes:
Yea, the photo before the last confirms it supports.

One last question, that's probably been asked dozens on times - how to install it? x)
[Defy Android Development] K3n H1mur4:
Search function is your friend. There is a guide on one of the boards, probably the Defy general discussion one.
[Defy Android Development] TheBirdOfHermes:
Alright, thanks mate!
[Defy Android Development] z3ro-grav1ty:
Glad they helped :) I just gave you the lot because I wasn't sure if it was there or not. As for installation there are multiple guides but I also recently made this txt file for myself, but really anyone can use it :) Just ignore the line with the Bootmenu/CWM patch, that's something that I have to remember to do :)
[Defy Android Development] TheBirdOfHermes:
Hey. Thanks again but I am have troubles installing.

In recovery mode, I only have the following options :

reboot system now

apply update from sd card

wipe data/factory reset

wipe cache partition

That's all I have. and in every guide they say to wipe dalvik through advanced mode or something which I done find and to "install from zip card", I only have "apply update from sd card" .

When I wiped using 2 options I got and I try to install the CM10 rar file through apply update option and fails and installation is aborted.

How can I solve this? Why I dont have the other options?
[Defy Android Development] Kayant:
That's because you are using the stock recovery you need a custom recovery to install roms.......

First you need to root if you haven't already

install this app http://xdaforums.com/showthread.php?t=1032212

This will help you install CWM recovery then wipe data, wipe dalvik cache and install the rom of your choice

If you're ensure of any thing there are lots of good guides in the general section.

Also If you need more help use the FAQ linked in the OP of this thread...... This is a development thread it's not meant for these kind of things
[Defy Android Development] Male_zvire:
Now i make wipe all (data, cache, dalvik, batery stats), reflash 23.06, lastest GApps. Without efect :(

Copy of "top" command is in attachment terminal.txt

I dont have Boot option in XDA version of BBS. Screens are attached...

Screens of battery usage: phone is untouched, WiFi & data off, good signal (not 3G)... and battery is dead in 7 hours

Thanks 4 any help.
[Defy Android Development] kapil_dheer:
In the options of bbs, you can do dump to file.....this will dump all relevant data on root of sdcard.....also save logcat and dmesg from the same and upload.....
[Defy Android Development] Male_zvire:
BBS dump & dmesg dump attached, but i cant get logcat dump, because "Unable to open log device '/dev/log/main': Permission denied" error...
[Defy Android Development] sepp.:
It seems your phone never gets to sleep (according to the dmesg):

What build are you on ?

I would try

Boot into recovery

wipe cache

wipe dalvik cache

reinstall zip

reinstall gapps

wipe cache

wipe dalvik cache

reboot

I had the same situation once and it helped
[Defy Android Development] kapil_dheer:
I read the bbs dump instead......see for how much time the phone enters deep sleep.....just 31 sec.

Majority of time it remains at 300mhz. Log of kernel wakelocks also shows something related to kernel.

Was that a clean install.....as sepp already said, a wipe could be of help:)