yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] hedayat7:
Here is my test result.

Using radio : Radio_12.35d.60.140f_26.06.03.24_M2

1. Reboot

2. Check aic3254 status = OFF

3. Make a phone call, wait 3 minutes.

3. Check aic3254 status = ON

4. Manually turn it off. (type "aic3254pd" on terminal emulator)

5. Check aic3254pd status = OFF

6. Make another phone call, wait 2 minutes.

7. Check aic3254 status = ON.

8. Manually turn it off. (type "aic3254pd" on terminal emulator)

9. Check aic3254pd status = OFF

10. Make another phone call, wait 2 minutes.

11. Check aic3254 status = ON.

12. Open a voice dialer & dial.

13. Make another phone call, wait 2 minutes.

14. Check aic3254 status = OFF.

15. Make 5 call, every phone call, I checked the status and it is OFF. Ok that's great. ;)

After a voice dialer & search, I get automatic aic3254 turn OFF. And then I retest again.

1. Reboot

2. Open voice dialer & search.

3. Check aic3254 status = OFF

4. Make a phone call, wait 30 seconds.

5. Check aic3254 status = OFF.

6. Make another 5 phone call, and every phone called, I check the aic3254 status = OFF.

Found the greatest solution, every reboot, I just need to run a voice dialer and that's all, my aic3254 status will turn OFF automatically after phone call.
[Desire HD Android Development] c_felge:
Just tested it!

I could connect w/o any problems!

No match here, sorry.

Rgds
[Desire HD Android Development] EmptyArea:
Suggestion:

Put long logs into a text file and attach with a description. They make this thread hard to read, I know the info is important...

It was mentioned several times, many posts ago that a voice search will solve the problem even after a call irrespective of radio. This was the same solution as in patch 4, except now this patch ALSO works from the get go until a call is received.

Clearly murdock is now aware and will be working hard. Unless anyone experiences something different lets not flood this thread with confirmations.

Swyped on transparent XDA app.
[Desire HD Android Development] frottage:
Quite right - im sure patch #6 will resolve it
[Desire HD Android Development] hedayat7:
Ya I wish that too. I though that #5 was not using any voice command anymore. But thanks again mad-murdock u've done a great job so far. :-)
[Desire HD Android Development] raecarter82:
Been at work since 1300 hours its now 2100 hours I lost 3 percent average of 2 to 4 mamps! You're my hero mad
[Desire HD Android Development] 007K:
Congratulations, i'm back onto CM :), battery drain problem seems more a less fixed :):)
[Desire HD Android Development] alain57:
flashed it yesteday, and charged it overnight (maybe i should not let it plug in all night ??? )

but at 8am i unplug the phone, go to work don't really use the phone, i have no GSM there, so i also have to nobar app installed (intelligent app that turn the phone in airplane mode for a given time, then turn it back into normal and if there is no signal for a given time, turn back airplane mode)

since 6PM i'm at home, so no plane mod, but i still didn't really use the phone (had no time for it)

now it is almost 0am (11:50 pm in fact) so the phone was unplug since almost 6 hours and i am at 89 percent !!!!!

that is really awsome thanks a lot for fixing the bad battery you are a real hero ^^

i'm using CM 7RC2, the fix and the most recent radio (at the time i wrote this message)
[Desire HD Android Development] dannych:
Since DHD Gingerbread sound driver runs well, is it possible to port it in CM7 and abort DSP?

Just another thought
[Desire HD Android Development] SAPPH1RE:
Hmm, i had a weird problem.. My standby drain is as high as 100ma.. So weird.. Try voice search, still haven't go down.. My phone is very warm rite now..
[Desire HD Android Development] EmptyArea:
Reboot to recovery, fix permissions, wipe dalvik, reboot, check your clock speed, unless using a gov like performance make sure it its dropping right down. Reduce clock speed if you're overclocked. Download quick system info from market to check you haven't got a conflict causing a process to use 100% cpu.

Make sure your torch isn't on and on high...

Swyped on OLD & FULLY FUNCTIONAL xda app.
[Desire HD Android Development] Chezbel:
For me there is a definite issue now connecting to wifi. Sometimes I can connect once after a reboot, but if I disconnect I can't reconnect. I think there are too many variables right now. I will try to narrow it down to a repeatable sequence it possible.
[Desire HD Android Development] gururajkg:
I have also noticed one thing.

After the flash #15 and the battery fix #5, every thing was as told.

AIC3254 was off and the drain was 3-5mA in standby 2G without wifi and data connectivity. This remained same till i recieved a call when the AIC3254 was ON.I had to do the voice search to activate the patch again.

Now AIC3254 is OFF after any number of calls.But the thing is that the drain is never coming down from 13mA in the same condition.

Has anybody else noticed this , check the log of currentwidget.
[Desire HD Android Development] kshting:
Hi,

the chip remains off after calls but current widget is showing 6mA. So not quite sure why this is happening on your side.
[Desire HD Android Development] kshting:
What??? your up and running already? Lets see... your last post was like around 3am :D

Would test my wifi when I get home, could not remember having any issue reconnecting to wifi.
[Desire HD Android Development] gururajkg:
Wifi is not a issue here.It is working fine build #15.

For long time now Mad-Murdock is keeping silence.Hope to get the #6 soon
[Desire HD Android Development] Chezbel:
:) I'm not able to repeat the wifi issue now. I will double check tonight when I'm home in case it is somehow just my home wireless. Also I did so many things to my phone yesterday: #15 nightly, #5 mad, 4 radios, factory wipe, reinstall, oh and gapps-gb-20110307. So even though I was very careful there is a lot of room for odd interactions to occur.
[Desire HD Android Development] kshting:
ooohh... oooohhh..... your 100th post.... Happy Senior Member Day!:p

Yup, would check my aic3254pd status when I get home as well just to make sure the little bagga don't stay awake.
[Desire HD Android Development] kshting:
yup, Likewise
[Desire HD Android Development] Chezbel:
Thanks... and it seemed like only yesterday that I was annoyed that I needed to get 10 posts in order to post in the dev threads. Hopefully most... er some... ok at least 1 or 2 of those 100 posts were of use :)
[Desire HD Android Development] I'm TheQuest:
Hi Chezbel

Well at least 3 at this point in time it seem. :)

Take Care

TheQuest :cool:

PS: now there are 4 :D
[Desire HD Android Development] erbse:
Hi,

Big thx for the fix...now i switched back to cm7 :)
[Desire HD Android Development] Eclectik:
Havent used CM in yonks. Time to give it another go.
[Desire HD Android Development] zepretender:
It work everytime (#5 and RC2)... but today, one call and chip stills ON ! Damned ! What's the matter ?!!
[Desire HD Android Development] c_felge:
Hi,

Known issue! Read above and just switch it back on via voice search! It will switch off after calls from then on! ;)

Rgds
[Desire HD Android Development] zepretender:
I know... but it's the first time in two days that Chip doesn't go OFF after a call !
[Desire HD Android Development] BumAround:
+1

It happens randomly. Sometimes after a call, sometimes after using the gps. Wish that mad-murdock can resolve this somehow.
[Desire HD Android Development] Kiwitje:
I just started voicesearch after it went ON again, then it was still on. In terminal emulator: aic3254pd and chip went off. works for me though.. Only thing is i can't check status on my phone. I get: error opening device.
[Desire HD Android Development] PiCkLeS:
Try running "su" first to login as root, then doing the status.

//P
[Desire HD Android Development] deconfrost:
Mine is still getting no where below 11mA :( jumping from 11mA to anything as high as 210mA while screen was off all day. Even removed poweramp now trying with music player pro installed. Same results. Running apps are just player pro, battery monitor widget, android keyboard and Google service. aic3254pd status = off
[Desire HD Android Development] EmptyArea:
Try in airplane mode.

I use droidwall and turn sync off to prevent spikes.

Swyped on OLD & FULLY FUNCTIONAL xda app.
[Desire HD Android Development] deconfrost:
thanks I'll give that a try later tonight and see how that goes, have to keep phone on during the day. I have no wi-fi no data running, just phone, after wiping dalvik cache with nightlies #13, phone went in to boot loop, tried that twice, same thing both time, restore image without wiping dalvik cache, boot fine, reboot and flashed the patch again, sill work fine, actually see 4mA the first time :) I haven't apply the libsquite.so patch yet. still using PlayerPro instead of poweramp. any battery drain from using DSP?
[Desire HD Android Development] isaacfank:
Prolly already said, but it seems to stay on when headphones with a mic are plugged in. Battery drains and always says on. When the headphones are out it works right.
[Desire HD Android Development] zepretender:
Ok... it seems to be difficult to know what doesn't allow to switch OFF. Hope that mad-murdoch will find it !
[Desire HD Android Development] Kiwitje:
When i look at Battery Monitor widget, it says 1-5mA, but when i look at the history in the app, it is ~50-100. And sometimes 5-10... How come? I'm using CM7 by phunkycow with radio 12.35d.60.140fP_26.06.03.24_M2.
[Desire HD Android Development] deconfrost:
its jumps around very often, mines the same, but im using 26.40.02.17_M2 radio
[Desire HD Android Development] frottage:
I think Mad Murdock must have taken a (well earned) vacation after #5 was released - because previously he was all over this thread and pumping out new patches faster than Charlie Sheen drinks a beer .....
[Desire HD Android Development] 090:
This sound a bit weird but then when I did:

su

aic3254pd status

It gave me:

aic3254pd not found

I tried with console on desktop by "adb shell aic3254pd status" as well, same output.

Any ideas what's wrong here?

Is this because I haven't flashed the fix yet? Can I use ROM Manager to do the flash?

Thanks a lot!
[Desire HD Android Development] Chezbel:
Well, it works at home now so what ever the problem was is gone (hopefully for good), but it would have been nice to be able to explain it.
[Desire HD Android Development] 1234568:
Yeh. Flash the patch and it should work.
[Desire HD Android Development] z0ltrix:
I have developed a widget that displays the status of the aic 3254 chip.

It has a dependency because of which I cannot publish the apk to everyone yet.

I am waiting for mad to come back so that I can show him the dependency and may be we can figure out a way out. :)

The dependency is that the widget requires shell script to be installed. So you must know push, chmod, mount, etc. to configure the script first before you can use the widget.

I hope this helps us in troubleshooting our battery issues. :D
[Desire HD Android Development] frottage:
I cant wait for that to be enhanced - great work
[Desire HD Android Development] kshting:
Looking good!
[Desire HD Android Development] kshting:
Hi,

If you are applying the libsqlite.so from the kernel thread, I would advise not to as I have done the same previously, and it was no where near 3-6mA. Try without the libsqlite.so, thats what I did and battery life was good to me.
[Desire HD Android Development] c_felge:
Boy oh Boy!

That widget would be great!

Thanks in advance!
[Desire HD Android Development] blunatic:
@z0ltrix - superb
[Desire HD Android Development] deconfrost:
yep, using phone without applying libsqlite.so after restore, I got as low as 4mA so far
[Desire HD Android Development] nicopilami:
su
aic3254pd status

Just a small tip for anyone who want to type this command line only once : you can configure Terminal Emulator to type this code by itself when entering the application, just go to the settings and modify the last setting which is something like "command line to execute at first".

Nico
[Desire HD Android Development] c_felge:
Or just download gscript from market, add a new script with aic... and the app on your homescreen.

Just two "clicks".
[Desire HD Android Development] gururajkg:
I tried doing this, but then when the terminal opens it says aic324 is on

again when i type su and the aic3254pd status it says it is off
[Desire HD Android Development] lynxboy:
I've got a feeling HTC have kidnapped mad-murdock to stop him helping users free themselves from the laggy Sense UI, shackles!

Hoping he returns soon.

Regards.
[Desire HD Android Development] Hypercore:
I've installed this on LeeDroid 2.2.2 and got an infinite loop, it says "Activating root access" then reboots again. I had to flash back to LeeDroids Kernel, thank god I had it on the SDCard or I'd be screwed.

What could I have done wrong? Is it not compatible with LeeDroid's rom?
[Desire HD Android Development] angelus249:
Exactly, CM7 kernel is included, which wont work on leedroid or any froyo roms.

this fix will only work on cm7 roms for now

greets
[Desire HD Android Development] Hypercore:
Is CM7 Eclair?
[Desire HD Android Development] Chezbel:
Interesting, I've been using radio_12.41.60.19_26.06.04.14_M and I got pretty good results last night. Here's info from CurrentWidget.

EDIT: Forgot to mention that my wifi was connected all night during this as well.

Here's the top and bottom, the attached file contains the full log.

2011/03/11 01:21:14,-14mA,94%

2011/03/11 01:25:14,-5mA,94%

2011/03/11 01:29:15,-3mA,94%

...

2011/03/11 08:21:15,-4mA,90%

2011/03/11 08:26:14,-5mA,90%

2011/03/11 08:30:14,-4mA,90%

2011/03/11 08:34:15,-4mA,90%
[Desire HD Android Development] hedayat7:
Yes .. :D ..

CM6 is Donut
[Desire HD Android Development] gururajkg:
mad-murdock,please type in a message , just to confirm that you are wtching all this feeds from us.You have been commenting regularly and helping us , kindly get back.
[Desire HD Android Development] Drew442:
I'm running the tweaked libsqlite and the power drain fix. I had to do the old voice search work around though. Back at -5 now.
[Desire HD Android Development] Chezbel:
Geez, why bother the guy? Remember everyone working on this is doing it for free. Maybe he's busy enjoying real life :)
[Desire HD Android Development] mad-murdock:
*types in a message*

i was gone the last two days. unforseen or as they call it (:

now that i am back, i must check latest development, since hrkfdn wrote a patch to the driver, which could solve the problem on another level - but i must make sure, whats the status of it...

whats the status of this thread, i cannot see right now - just got 30 minutes which i must use wisely - will be back in half a day with much more time.

edit: updated opening post with the information i could get
[Desire HD Android Development] kshting:
Glad to know you would be back in action soon. Yes, do see the results that all of us here have posted when you do get back.

Cheers!
[Desire HD Android Development] hedayat7:
Yay maddy is back. Mad, for me,everythings fine if I run voice search first after reboot. Aic3254 will turn off automatically after phone call. Use same radio like yours. :-)
[Desire HD Android Development] mad-murdock:
well, as it seems, hrkfdn made huge progress with his driver patch. as soon as he figured out the last problem, this patch will probably get into cm7 nightlies making my patch here obsolete.

that long, have fun with #5 - there wont be #6 i guess.

sorry for zoltacs widget development getting obsolete, too
[Desire HD Android Development] goobers:
My own patch try ;)

I make same patch as mardock. The diference is that i hooked up poweroff of aic3254 to disable sound right in driver. This means after any sound is played respectivelly stoped chip aic3254 is poweroffed. No need of any daemon. Feel free to test it.

package is here: http://www.ulozto.cz/8238375/kernel-ace-goo-new-v01-zip

thanks to hrkfdn i use his kernel installer.

after boot aic stops after first sound played.
[Desire HD Android Development] igor.tonky:
can you post a diff of the patch please?
[Desire HD Android Development] hedayat7:
more details please.
[Desire HD Android Development] goobers:
Diff is not possible now. I'm not by my computer.

Kernel is cm 2.6.32.28 - same as nightly. Modified one file drivers/sip/sip_aic3254.c. that's all. After ill be back i send diff.

I see i forgot - flash via recovery testsigned. ;)
[Desire HD Android Development] mad-murdock:
great idea calling poweroff after UPLINK_OFF / DOWNLINK_OFF - but afaik hrkfdn changed the overall handling of UPLINK_OFF / DOWNLINK_OFF, since he said, it contained a bug.

btw - the best kernel to fork from is probably kali's github kernel, which is the one used in nightlies: https://github.com/Kali-/htc-kernel-msm7x30
[Desire HD Android Development] goobers:
Ah so. I forked from the same source as Kali. My mistake :). But it woks well. I writed it as fast as possible as ugly but fast solution. My trap is in aic3254_config i'am waiting for calling enable rx with index 29 and size 8.
[Desire HD Android Development] EmptyArea:
http://db.tt/i9LL3hS

Mirror for goobers patch/kernel. Altho looks like it'll be outdated rather quickly.

#please drag and drop into dropbox account our you'll block mine quite quickly!#

Swyped on transparent XDA app.
[Desire HD Android Development] zepretender:
When will we know that this patch is definitly included to CM7 ?

Thank you
[Desire HD Android Development] mad-murdock:
i will write it in big red letters to first post and ask a mod to close this thread. but its not yet done, so my patch still serves a purpose.

edit: trains are boring

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] Chezbel:
Hopefully there is a bar in one of the cars
[Desire HD Android Development] odin13:
thnx mad-murdock for the fix!!!

yesterday i finally flashed cm7 rc2 and thnx to your fix it now actually is up to par with sense roms concerning battery :)

after my first call the chip was back on but since i opened voice search once more it now stays off...

*no wifi problems here

thnx!!!!
[Desire HD Android Development] goobers:
patched kali- msm kernel v02

Here it is.

My spi-patch aplied on kalis kernel 7ffd887. Stops aic3254 chip after any sound out ended. Flashing via recovery. package here - http://www.ulozto.net/8242285/kernel-ace-goo-new-v02-zip

And for players as me ;) patch (contains patch + patched file) - http://www.ulozto.net/8242311/spipatch-zip

For me it working flawlessly CM7 nightly #15 radio 26.06.04.14_M.
[Desire HD Android Development] EmptyArea:
And for players? Please explain.

Also the link isn't working.

Swyped on transparent XDA app.
[Desire HD Android Development] mad-murdock:
power off after sound used would result in mic cut off. imagine you record a video, mic is used, sound not. while recording, you receive a notification - now your sound is cut off?

at least that was my consideration not to do so

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] mad-murdock:
i think he means devs

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] z0ltrix:
Hey no problem. I am learning Android...beginner since Feb. of this year. This was my first hand in developing a widget. I have learned a lot about widget development from this little experiment of mine.

Cheers to you and all devs around here :)

If anyone is interested to see the code, PM me ;)
[Desire HD Android Development] MrBlueEyez:
Anyone knows if this kernel works as well on ARHD 4.0?

It is Gingerbread
[Desire HD Android Development] kshting:
nope, aosp only
[Desire HD Android Development] goobers:
Yes i mean devs.

@mardock - About mic hmm thats true i look on it ...
[Desire HD Android Development] BumAround:
Really hoping that mad-murdock and you can come up with something really really good, guys! Regarding the kernel, why not .37 instead of the .38?
[Desire HD Android Development] goobers:
Ok. I reverted back to my first personal soulution which by my mean don't have impact on functionality. I aded powerdown simply to suspend. As i debugged code of this driver i found that suspend comes really in time when device comes tu suspend not if calling or playing music. Yes it have bad side - powerdown comes by suspend then if i work on device and it is long time which begins for example with phone call whole time aic3254 is powered. For me it is ok.

@mardock - do you have for me any other bad info about this solution? ;)

@mardock - and what error found hrkfdn in handling ? do you know? it is that tx mode newer go down? that is my feeling after debuging. But i cannot find from where is driver called. :(

for "players" (devs) my patch:

modify drivers/spi/spi_aic3254.c

into function spi_aic3254_suspend add lines:

aic3254_tx_config(UPLINK_OFF);

aic3254_tx_mode = UPLINK_OFF;

aic3254_powerdown();

thats all...
[Desire HD Android Development] mad-murdock:
look at this: https://github.com/hrkfdn/linux-htc-ace/commit/b39798021eac9186c46ac7da6322ae13287c819e

if on boot the mic wouldnt get put in a ****ed up state, it would work 100% right now - but since ****ed up state isnt good, we have to look into what happens there.
[Desire HD Android Development] xd4d3v:
is hrkfdn's patch downloadable from somewhere? I'd like to give it a try
[Desire HD Android Development] mad-murdock:
just linked it one post above
[Desire HD Android Development] angelus249:
i guess he meant the expermintel kernel including a batt fix.

hrkfdn posted a testfix in his thread

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

-> post #315
[Desire HD Android Development] BumAround:
@mad-murdock,

so at this point of time, beyond #5 release, what's next? Really look forward to IT.
[Desire HD Android Development] 090:
I check the status of aic3254 after the flashed and it was off. Power drain was good at the rate of 4-5mA.

But then after few phone calls, I checked it again and it always on. Power drain went up to 11-15mA again.

Anyone know how to fix this?

After the flash, do I need to do something else to have it work correctly?

Thanks a lot!
[Desire HD Android Development] mad-murdock:
the superior patch from hrkfdn will be included into nightly as soon as the fm-boot-bug is gone, then this thread will be closed. every other rom dev can take the modified driver from github. problem solved - hopefully forever.
[Desire HD Android Development] mad-murdock:
its a known bug. after a phone call, just start voice dialer for a second - then it will switch off again.

all this will be gone soon with the superior kernel/driver patch
[Desire HD Android Development] Drakknar:
The wrong init status may be a FM radio bug... Hopefully it'll be fixed soon :p
[Desire HD Android Development] mad-murdock:
currently looks like we disable fm radio and enable the modified driver. bat life > fm radio

but its not finally decided yet.
[Desire HD Android Development] Fihlvein:
Ouch. Somebody might be sad, me - I don't mind. ;)
[Desire HD Android Development] babijoee:
me neither. but hopefully you guys can figure out a solution :) keep up the good work
[Desire HD Android Development] xd4d3v:
thanks mad.

can we just download the zip and CWM flash it over your #5?

also, the FM radio is completely down?
[Desire HD Android Development] mad-murdock:
Aehm, no. I cannot give you any hints to the solution of hrkfdn. You have to disable my patch, fm is working, but you need to start voice dial once you booted.

Eveything else is up to you.

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] BumAround:
Contrary to the popular belief, and I don't know why, your fix works better than hrkfdn's kernel for some reasons. Well, at least for my application. :confused: