yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] donP73:
about call-ringtone problem

I would like to remind everyone (about the problem concerned with the call-ringtone), that audio drivers have been a big problem since the beginning of the development of JB for our Defy.

The workaround by maniac103 (included in the 2012-07-18 nightly ) and nadlabak (inserted in 2012-07-23 one) have never been a definitive solution, but temporary IMHO...

but I am not aware that they have been superseded by other more specific driver. The audio buffer that fills up too quickly and doesn't empty remains a problem, more and more as it takes a lot of RAM (also RAM management seems still immature to me, because after a few hours of use, the system is no longer able to free up RAM automatically stopping applications no longer in use, as was the case on Gingerbread).
[Defy Android Development] Cauan Dick:
I'm at 31.21 build. When someone try to call me, I can hear the ring but when I answer the phone I can't hear the another people.

Any solution?
[Defy Android Development] paulle:
it seems logical that this could be the reasons for the ringtone problem, especially because the ringtone problem is showig up after a few days of usage and after reboot it's fine for another few days.
[Defy Android Development] bone101:
Catlog of an rom compiled from Quarx repo anno 28.12.2012 with linaro.sh script , zram from 18.11 build

No ringtone or audio bug here

http://db.tt/pw6p9ye7

Cheers

MB525 red lense
[Defy Android Development] donP73:
try more

Tell us if still so good after 36-40 hours of real use without rebooting... :confused:
[Defy Android Development] nostupidthing:
wipe clean.

---------- Post added at 06:06 AM ---------- Previous post was at 06:01 AM ----------

are you referring to the ring status not maintained (ring+vibrate becomes ring after reboot)?

or the ring disappearing/stopping/hanging bug?
[Defy Android Development] bone101:
Will try and report back

MB525 red lense
[Defy Android Development] srijithn:
sometimes i can feel the vibration and ringtone., but the phone remains locked.,

The power button has to be pressed twice to view the caller and pick the call.

i have some doubts .,

1. Can Defy have USB OTG using any scripts or kernel change also may be HDMI capability., :p

2. In GB(2.3.7) roms, there was a feature to use back camera for video calls (Skype/gtalk) .. Can this be brought back to CM10. :confused:

3. Why is CM10.1 thread stagnant., Is it that we cannot have it in Defy (eventhough u hav taken care of additional features in ur ROM) :D

Lost Motorola Defy original earphones -- What is the model name if to be purchased locally ?
[Defy Android Development] lief.erl:
My phone is acting weird, it will reboot itself randomly. I suspect, it usually occurs when I am about to receive a call.

Is there anyway I can trace the problem and report back with more informed results/symptoms? From what I understand, logcats show only current information. So how can I capture the state just before and after the reboot?

Sent from my MB526
[Defy Android Development] ofmb:
see my previous posts about that issue .

now my next goal is to catch last_kmsg before it get erased due to 2ndboot
[Defy Android Development] gkovacsp:
Tasker can perform a regular reboot, nothing is forced like pulling the plug.
[Defy Android Development] Harishsudharsan:
Missing Camera and Gallery

I have the MB525 green lens.

When I install 30.12 and 31.12 build the camera and gallery app is missing. Even though I reset the phone, install gapps and gapps-picasa. The camera app only appears in the 23.12 build AFTER I install the gapps-picasa zip. I am using gapps-jb-20121011-signed.zip. Any ideas?
[Defy Android Development] defy_plus:
battery

i use 4-5 games - is it better to turn off goo servises for best battery or they use it somehow? and for faster loading what should I clear?
[Defy Android Development] lief.erl:
I know this discussion doesn't belong here but just to make it clear for other XDA users.

I think tasker's help message is the ultimate authority over this confusion.
[Defy Android Development] maury1234:
Has you data ever been corrupted because of rebooting issues? :p
[Defy Android Development] Cocolopes:
Is there any way to fix the ringtone problems?

from the (M)ATRIX...
[Defy Android Development] YetAnotherForumUser:
Other than a daily reboot, none that I know - yet. That's why I'm looking into the cause and solution... and also why I posted those logs for others to peruse, as many eyes make most bugs shallow according to gospel.
[Defy Android Development] leoneiva:
Rollback to Android 2.3

My defy is extremely unstable running CM10.

It freezes and restarts many times.

Every single call the dialer freezes. It makes me crazy.

When running some games it restarts.

When running some aplications it restarts.

Quarx CM10 is like an alpha release.

CM10 is on the road since July and still unstable.

How to rollback to android 2.3 safely?

Is there another stable rom? How about Epsylon3? I see Epsylon's rom isn't receiving updates.

Epsylon is doing a good job. Thanks!

Thanks!!!!
[Defy Android Development] cyrusct82:
No one tried to change battd.

No one gives a feedback? :confused:
[Defy Android Development] tushar9989:
@leonieva

Well I guess there is some problem with your phone cause when i upgraded to CM 10 by Quarx other than a few bugs it is quite stable and much better than stock IMO
[Defy Android Development] YetAnotherForumUser:
Which release was the first to exhibit ringtone problems?

Without setting off a storm of 'me too' posts I'd be interested to know which release was the first to exhibit the ringtone bug. Especially is the bug appeared somewhere between different 2nd-boot releases.

I suspect the bug is caused by some DMA-related issue in the kernel. Once the bug has started to appear it becomes impossible to use more than one DMA-enabled device (sound, block device access, WLAN, others?) at the same time. Removing the WLAN driver on a phone which has been up long enough to exhibit ringtone problems seems to cause a deadlock - the UI is still responsive but block device access seems to be impossible.

On a phone which has not been up long enough to exhibit the ringtone bug these problems do not occur. My phone happily 'cat'ed the whole contents of my 32 GB sdcard to /dev/null (generating close to 6 million interrupts on INT 12 in the process) while ringing, accessing the wireless network and showing it all through USB and adb.

Before that I had to reboot the phone after I unloaded the tiwlan_drv module to see whether this would make any difference. After unloading the module all block device access became impossible as described above. This of course means I have to wait until the ringtone bug appears again before I can continue debugging... alas. More later...
[Defy Android Development] ofmb:
i'd say it's november end commits are the one to blame.

something on wlan waking up causes it to happen.

ad hoc? https://github.com/Quarx2k/android_...mmit/bb682a792a456ffaed82db3abb80258f0df2e370

any reason for buf not to end with \0 ...?
[Defy Android Development] paulle:
the bug appeared in one of 2nd-boot releases, but i don't remember which release it was.
[Defy Android Development] irekd:
In my opinion the bug appeared after installing 17 November build and each next build has it. Of course I install every build Quarx is being released to find out about it's features/improvements, but after a few days when ringtone bug appears again, I get back to 9 November build, which is for me the most stable and has the best battery life.
[Defy Android Development] ofmb:
i'm sure it didn't exist (in it's deadly form ..) on nov 17-18
[Defy Android Development] donP73:
In my experience: 17 Nov doesn't present ringtone bug, 18 Nov DOES :thumbdown:

That was the reason someone of us thought the cause was Linaro toolchain ..
[Defy Android Development] ziporpor:
My first installation of the ROM was the one of the 28.11 and the bug definitely already appeared there.
[Defy Android Development] gkovacsp:
11.17 did not have the ringtone bug yet.
[Defy Android Development] cmadle:
Still on 11.09: no ringtone bug, no problem with battery, stable for me
[Defy Android Development] slon11:
+1

First 9.11. after this .........long,long nothing............and eventually Slim Defy 3.1.2. :D

PS: i was happy that on 9.11 will be not jump of battery ,unfortunately i made titanium backup and durring this battery jump from 55% to 50% i hope that was only once .......
[Defy Android Development] farsight73:
This CM10 for Defy has one issue spreading to other systems related bugs..the overall memory management. The way its memory handling in holding, release and fetching like in gingerbread. If only this can be ironed out, we would have CM10 running like bullet train..

Sent from my awesome rooted Defy: 2.3.6 XDA premium
[Defy Android Development] walkunder:
Tried to stick with 12-31, although there are some bugs (e.g., ringtone, slower speed, not perfect Apollo) but it gives the phone totally different feeling and I do not experience any battery drain.

However, one day when I wake up in the morning, I found the phone is down. Apparently there was a battery drain during the night. After I put on the charge, the phone boots okay and runs normally. But I later found that google map is not able to acquire GPS signal anymore, even though the system indicates a fixed location.

Tried several times of cleaning application setting, wiping cache, reboot. Nothing did work. I have to restart from SBF and now on the way back to CM7.

This is a strange event.
[Defy Android Development] xdaid:
Even the 17-11 does, BTW it was confirmed by you too :)
[Defy Android Development] ofmb:
i've had few steps that always worked for me to reproduce reboot on ringtone.

but it doesn't happen anymore..!!

so to fix ringtone bug try this :

enable bluetooth and use tethering .

since then it didn't appear even when i tried real hard .

i'll sure update this post if it does happen .

UPDATE : STILL HAPPENS :/
[Defy Android Development] ASHOKVARATHAN:
does supercharging drains the battery? :)

sent from my defy the unbeatable
[Defy Android Development] niksy+:
It has no effect on the battery life, it remains the same! Furthermore, I've been using the same ROM (22/12) for a while now and have NOT had the ringtone bug appear yet. I Supercharged it right after the flash and I'd say it helps :silly:
[Defy Android Development] bharaththeunique:
doesnt quarx kernel support ext2 sd partitions???phone doesnt boot at all with a partitioned 32 gig card.
[Defy Android Development] gkkovacs:
31/12 battery drain and touch problems

With 22/12 and earlier builds, only some of the basebands showed battery drain.

For example, my (red lens) CEE Defy was losing 4-6% hourly with wi-fi on with the 3.x basebands, but only 2-3% with the 2.x ones.

Now, with 31/12, there no difference, every baseband exhibits high (5-7% hourly) battery consumption, and the touch bug (hard to hang up a call, sometimes only the second or third press registers) is back. Also the file manager bugs (unable to change root mode, and capacity graph not working) are back as well.
[Defy Android Development] AlexGraves:
Guys, please allow me to confirm something about this ringtone bug.

The sound delay / stuttering does not just happen to the incoming call ringtones, correct?

I was using build 22.12 on my green lense defy & sound bug occured practically everywhere... Ringtone, notification, even camera shutter sound.

Now I'm back to build 09.11 installed over 22.12 with only cache & dalvik wipe.

Now camera shutter sound is responsive once again without any delay.

I will try it out for the next 3 days without reboot to see if the stuttering ringtone would re-appear or not.

Sent from my Nex7
[Defy Android Development] bone101:
I think my phone is rebooting sometimes if i get a call

MB525 red lense
[Defy Android Development] Kayant:
That's weird because there is a init.d script to load it up at boot - https://github.com/Quarx2k/android_...blob/jb_2ndboot/prebuilt/etc/init.d/05mountsd

Also I have a formatted card with ext2 and swap and it boots fine for me..... Try get a logcat to narrow down the issue.
[Defy Android Development] bharaththeunique:
That's weird...its 2 am here...will catch the log in a couple of hrs...

But even for log, it doesn't even get past moto logo...so log from bootmenu will do??

sent from my awesome DEFY+

current ROM: cm9 latest
[Defy Android Development] Kayant:
yh that should do.... adb logcat -v long > Problem.txt and hit enter ----> Plug in your phone to computer ----> Switch your phone on -----> Grab log and upload and lets see what's happening ;)
[Defy Android Development] bharaththeunique:
ummm...i think since daemon isnt initialised, adb logcat stuck on waiting for device. and phone stuck on moto logo. Even if i repartition card without formatting, i.e. remove the ext2 partition phone boots normally. In phone presently cant access bootmenu/ recovery:confused::confused:
[Defy Android Development] imachine:
Ok, I flashed on the rom from 2012-12-31 for mb526 on my mb525.

Then, I flashed the ics_red_lense_battery_fix_working.zip

Now, my phone says I have 100% battery when the system is on, but Bootmenu says 0%. When plugging in the charger while phone is off, white light comes up, no charging is occuring, no battery icon pops on the screen as it used to with old roms.

I wiped battery stats, but the phone still doesn't charge. Obviously, the battery is physically at 0-1% and so the phone doens't work.

The worst part is the phone, when it decides to start while on the charger, boots into OS! Instead of booting into battery charging mode. And then it says it's 100% again (which it obviously isn't).

What is going on? Does this rom feature a new battd? Does it need a new red_lens_battery_fix ?

Can someone also please make bootmenu able to charge this stupid phone, Motorola really shot itself and it's clients in the foot with this "feature" of charging only a non-empty battery.
[Defy Android Development] soyusado:
You don't have to flash that zip file, because the 2ndboot nightlies are for both devices MB525 and MB526.

Make a factory reset and then flash only 1231 build.

Cheers.
[Defy Android Development] YetAnotherForumUser:
Enable USB debugging (ADB) in Settings->Developer options. Attach phone to USB or charger. Does it charge now?
[Defy Android Development] imachine:
Ok cheers, Imma have to do the mcgyver trick once again because the battery is depleted.

The kind request for making the BootMenu able to charge the phone stands.
[Defy Android Development] TJKV:
Hmm then it might be the stock kernel that is janking up because of ext2 before 2nd boot can load the custom kernel and the proper driver. If you are using BL7 try using the other root sbf, I believe the EU version. If some other BL you can try some other stock kernel, hopefully others won't trip up... If I'm right that is :P
[Defy Android Development] :
Same here on green lens defy.
[Defy Android Development] trurl3:
31/12 - really weird things with battery level: just after unplugging from charger, during one call battery level drops to 0! Phone switched off automatically. After reboot there was 45% of battery... something is cheating charging level of battery. Additionally the battery drain is quite heavy.
[Defy Android Development] woodman:
Battery drain issue / RAMDISK file ?

Since a few last builds, with my experience and with my readings on this thread, I can say as many other members that there is a bug with battery life. It's 100% sure with green lens. Not sure with red lens. It consumes 3% / h instead of 1% / h (average values with the same installed applications for all tests).

It's the same behaviour as before RAMDISK file was fixed by Quarx on the begenning of november (there was a USB management bug). Is it a regression with RAMDISK file or another bug with another origin ?

I can't test CM10 anymore because of this. I need my phone has a good battery life, so I'm back on CM7 since few weeks before of this bug (hmm, I could (re)use 11.09 CM10 build...I could (re)try, but not very useful 'cauz it's not the last build)

I'm not crying, i'm just trying to understand... Is some people has already sent logcat files to help fixing this ? If not, is it useful ? I have to learn about logcat before I can help...

Thanks Quarx, thanks all of you on XDA !
[Defy Android Development] mothy1025:
Kindly Change your batteries and get new one
[Defy Android Development] Walking dead:
you can try replacing kernel 18.11 there is no battery drain problem on the kernel I have now only 0.5% per hour in standby using it for 4 days.

please don't post things like this like replacing batteries and phones we are here for for making best out of our phones and not for recommendations for new ones.

sorry for naming ur post but I have seen many like this.

thank u
[Defy Android Development] mothy1025:
First understand,I didn't ask any of our members to change their phones.The old batteries will have the problem. Quarx fixed battery problem few builds before with new battd file after that many user with good battery doesn't have battery issue.i had battery problems after replacing it i didn't any battery issue.My battery life was great with the latest build.So enough of crying about battery problems.Kindly change old batteries.We all know that we are here for making best out of our phone.So better don't remember me,what for everyone is here.
[Defy Android Development] Krokogator:
New build is out, check mirrors.

Tapatapped from my Google powered Defy
[Defy Android Development] tnsantos:
Any changelogs?
[Defy Android Development] woodman:
Nooo, it's not because of a worn battery! I have replaced mine 6 months ago. Before december builds, this issue didn't exist....(excepted during november : RAMDISK issue)

It's soooo easy to answer this kind of thing and not trying to understand people having issues....

---------- Post added at 03:37 PM ---------- Previous post was at 03:28 PM ----------

I repeat : it's not because of the battery.

With the same user apps with every builds :

- With my 6 months old battery and CM10 october or november builds : 0.5 or 1% per hour

- With my 6 months old battery and CM10 december builds :3% per hour

- With my 6 months old battery and CM7 builds : 0.5 or 1% per hour

what else do you need to understand ?

PS : I have a Green lens Defy
[Defy Android Development] miziel:
+1! ;)
[Defy Android Development] Krokogator:
07.01 booted properly, works nice

So far no changelog.

Tapatapped from my Google powered Defy
[Defy Android Development] premaca:
OP is already updated with changelog
[Defy Android Development] paulle:
same here.
[Defy Android Development] Krokogator:
Changelog for 07.01:

Again fix root permissions on CMFileManager, fix battery when ADB disabledl, again some fixes which can cause ringing problems.

Tapatapped from my Google powered Defy
[Defy Android Development] AlexGraves:
Wait a minute... Some fixes which can CAUSE ringing problems?

So there will be possibility of ring tone problem still exist in the 07.01 build?

Sent from my Nex7
[Defy Android Development] :
gonna try it out, hope I dont get the ringing bug ^^ read over a few pages in here and its known why it is caused but still no patch for it right?

EDIT: NO more ringing bug ^^ congratulations Quarx!
[Defy Android Development] Krokogator:
Yup, he doesn't know what causes this problem so he keeps trying and we are here to test it and let him know if the problem still exists :p

Tapatapped from my Google powered Defy
[Defy Android Development] Persechini:
How did you test the bug without having the ~48h without reboot?
[Defy Android Development] :
my bug appeared from the first moment after setting everything up (google play my apps etc..), now I just called myself and the bug is not there
[Defy Android Development] YetAnotherForumUser:
Phone exhibits ringtone problem but alas... new build...

My phone just started exhibiting the ringtone problem again but since there is a new build it does not really make sense to continue testing the 20121231 build, especially given the following changelog:

Revert "use linaro toolchain for kernel" …

This reverts commit 2a8c65e.

Given the obscure nature of this bug - I have not really found anything in the changelogs between the second half of november 2012 and now which can be clearly linked to the observed behaviour - there is a real chance that the cause lies somewhere in the toolchain.

As an aside, the problem does not seem to be sound-related, the missing ringtone is just one of the more observable faces of this bug. It also affects the vibrator when the phone is on silent+vibrate - it only vibrates once, then it stays silent for the duration of the incoming (unanswered) call. It affects any filesystem access leading to stalls for the duration of the incoming (unanswered) call (to try, just run (in a remote shell) 'ls -lR /sdcard/' while calling your phone and watch all output stall). Even when the phone is set to silent ring (no sound or vibrator).

I also notice a high number of spurious interrupts on INT 12:

# cat /proc/irq/12/spurious
count 96359
unhandled 0
last_unhandled 0 ms

I'll install the latest build and continue testing in 1.5 days...
[Defy Android Development] Auris 1.6 vvt-i:
Back to 20121231... My phone rebooted and hung several times and battery's dropping like crazy at rates of 10-12%/hour...
[Defy Android Development] paulle:
it's curious, because with the same phone and software we have so different experiences. in my case boot, no reboot (till now), battery consumption

2% /hour without drops and no rintone bug for now (but this happens normally in my case after 2 or 3 days). mb525 green lense 13-01-07-build

(without tweaking anything)
[Defy Android Development] lief.erl:
Has anyone of you experienced "no usb detection" problem.

I am on 23.12 build and decided to update to 07.01.13, but when I connected my phone to pc it was not recognized at all. It started getting charged as if connected to a wall socket. I even tried with different cable but same result.

How can I solve this problem?
[Defy Android Development] vic160890:
You just have to unplug and re-plug it.. it should work afterwards.
[Defy Android Development] lief.erl:
That is a very good battery consumption rate but it could be low because of various factors-

light usage

no overclocking

ambient temperature :confused:

etc

---------- Post added at 11:11 PM ---------- Previous post was at 11:09 PM ----------

When I said "I even tried with different cable but same result", doesn't it already mean I re-plugged it - at least twice.

BTW I am not even getting that notification to switch between - charge only and usb mount. Is there anyway I could have disable USB connection?
[Defy Android Development] slon11:
pull out SD cart put to the computer directly make copy ,then make format ,next make backup ,and put to the phone. Maybe will be works :D or make copy and make format but from telephone level not computer
[Defy Android Development] YetAnotherForumUser:
When something like that happens it would be interesting to see what processes the thing is running. Drop to a shell and see what top and ps have to say, check /proc for interesting info, check dmesg, etc.

Given that the experiences with the same distribution on the same hardware often differ so much, I'd wager that the bad experiences usually are caused by bad interactions between installed software and/or configuration parameters. While these still can point at actual bugs in the distribution, it is not necessarily the case. Some parts of Android (eg the media scanner) are rather flaky and have a tendency to børk on data. This would show up in top...

So... next time:

top -n 1|head
[Defy Android Development] ktmbikerman:
070113 working well so far for me. I have all memory tweaks disabled though.
[Defy Android Development] phobos_1984:
+1
[Defy Android Development] ktmbikerman:
Spoke too soon... had a reboot too. Using latest Jelly X kernel now.