yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] goobers:
hrkfdn aic3254 patch in kali kernel

Hello mardock i try apply patch to kali kernel. I try this kernel in my phone. After voice search it start poweroffing. Checked in dmesg poweroffing of aic3254 work good (play music, change volume ....). But it kill phone dialing after dial any number my phone froze and i must pull battery to reboot. In this situation cant take log. :)

I make long search for ****ed_mic_afterboot_enabler and i cannot find which thing it make.

I stay with suspend poweroff in my personal kernel build.
[Desire HD Android Development] mad-murdock:
dear testing community,

just a quick note on progress. kali, hrkfdn and me did some tests and decided to bring #6 to you. it will include hrkfdn's patch along with a init script which fixes the boot issue.

with your feedback on this patch, we will decide if we can get it working with fm enabled, or not.

when i am back home tomorrow, i will create/upload the patch. #5 will not be delete in case the new #6 creates issues.

regards and a nice saturday night

mad
[Desire HD Android Development] kshting:
Yup , you too.
[Desire HD Android Development] Chezbel:
OK, I'll try it as soon as I see it, thanks.
[Desire HD Android Development] Hypercore:
Does anybody know what to do when the "Cell Standy" is using over 40% of the battery?
[Desire HD Android Development] vinnieminnie:
Do nothing, it's normal.
[Desire HD Android Development] kshting:
Or you could try turning off your network. Naa, just kidding. It's pretty much normal.
[Desire HD Android Development] a user:
using your phone?!?
[Desire HD Android Development] gkahd:
+1 on that.

Also status is off even after a call.

#5 works perfect!
[Desire HD Android Development] Hypercore:
But it's at the top of the list. 99% of the time Display is at the top. I can't even see Display in the list. There's only:

Cell Standby: 47%

Phone Idle: 46%

WiFi: 5:

Skype: 3%

Bluetooth: 2% (I haven't even turned Bluetooth on, I never use it).
[Desire HD Android Development] BumAround:
Bring it on, and thanks, mad-murdock!

Can't wait to have all of the best devs to collaborate, yeah! :D
[Desire HD Android Development] vinnieminnie:
It's a bit weird that bluetooth is up there, but cell standby is "supposed" to be up there. CM7 kinda ****s up your battery stats, so it won't be the same as your stock Sense rom's. My battery drain is great, but cell standby is always on top. I just don't ever look at these battery stats, because they never tell the truth.

Btw, will build #6 be different then the fix in PhunkyCow's rom?
[Desire HD Android Development] Drakknar:
Thanks man :)
[Desire HD Android Development] mad-murdock:
It's easy :the data displayed is just wrong and far from any real data. I doubt analyzing this will bring any results.

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] a user:
Battery info on cm7 is buggy. I saw many reports from people having occasional an app shown with very high usage which can't be true. Battery history seems not to be affected but am not sure.
[Desire HD Android Development] mad-murdock:
Battery history reported by apps is fine. Just battery usage is wrong.

Morsed by hitting a plastic pipe with my Desire HD. Excuse typos.
[Desire HD Android Development] RizSher:
Can you please put a link to the hrdfkn thread with the improved fix in the first post?
[Desire HD Android Development] SbTro:
http://xdaforums.com/showthread.php?t=931946

// edit:

when is ready build #6 ?
[Desire HD Android Development] CamoGeko:
Just flashed it, will see how it goes.

So who has tried both fixes and is getting better results with hrkfdn's kernel??
[Desire HD Android Development] GraemeStanding:
I've been using build five and its incredible how much better battery life is. Its almost as if its a different battery!
[Desire HD Android Development] SbTro:
when is ready build #6 ?
[Desire HD Android Development] ghostofcain:
First Rule of Cyanogen? We don't ask about ETA's it's ready when it's ready
[Desire HD Android Development] SbTro:
i have to go in one hour ... and i would like to know if it can be ready in one hour ... but i will wait.
[Desire HD Android Development] Drakknar:
Like Blizzard North Studios used to say: "it is ready when it is ready" :D
[Desire HD Android Development] CamoGeko:
Damn right! The longer the wait the better the results. :p
[Desire HD Android Development] EmptyArea:
Anyone else using goobers patch? I am with good results.

Swyped on transparent XDA app.
[Desire HD Android Development] RizSher:
Well,

I installed Killer-Llama's version 2, which claims to incorporate hrdfkn's patch etc.

Did a Full wipe using the zip he proposes, then upgraded to Killer-Llama, and charged the battery to a full 100% for about 2 hours. After that, even though I was home, I disabled WiFi and let the phone run on cellular data only. There was a marked improvement in battery life.

Before the patch, I was losing 10% per hour throughout the day, during office hours when the phone would be on Cellular data only. After the flash to KillerLlama, I lost circa 20% in 5 hours or so. The difference though was I had disabled Wireless on the phone as I wanted to compare battery use on cellular data.

After 5 hours or so, I switched on Wireless, and there was a marked drop in battery performance, based purely on the graph in Battery Monitor widget. Gonna monitor over the next couple of days, but am pretty sure there is a real and measurable improvement in battery life.
[Desire HD Android Development] Frostyeo:
Hi can I ask If this latch works with older nightly like #5 and #7? :) thanks!
[Desire HD Android Development] ghostofcain:
Whats keeping you from upgrading?
[Desire HD Android Development] undave:
I tried both, and mad-murdock #5 seems to give me markedly better results.
[Desire HD Android Development] kshting:
20% in 5 hrs seems to be still on the high side. You should at least be getting 1.3-1.8% an hr.

When I flashed @hrkdn's kernel fix, it didn't help much as well. My phone's configuration was similar to yours during testing. It seems like @mad-mudocks's fix is doing a better job. I did however got some spikes of 100mA to 200mA during standby, not sure why though, could be due to some emails received during that time frame (not sure exactly). Am quite puzzled as well.

Does anyone know whether changing theme with the built-in theme chooser would cause any unstable battery drain? ???

Thanks
[Desire HD Android Development] Chezbel:
Just curious if you have any real data rather than seems better. For example, with nightly #18 and Mad's #5 my overnight CurrentWidget log shows I only lost 5% in 7 hours. Most of the logged values were 3mA to 6mA.
[Desire HD Android Development] kshting:
@Chezbel, wow, that is a huge improvement. Are you on the original theme or a different theme?

The reason I am asking this is because, when I checked my log this morning, I have spikes of 100-200mA during certain times (as mentioned above), other times they are 3mA to 5mA. So I am wondering whether changing theme has anything to do with it since it does involve some systems files being changed. Am using the blue bionic theme from the market.
[Desire HD Android Development] Chezbel:
I'm using the original theme. I also get occassional spikes, say once an hour or so and I think the max was about 76mA, but I didn't look at the look in great detail. Here, I'll attach my log.
[Desire HD Android Development] kshting:
Your highest is 54mA, definitely way better than mine. I am contemplating to whether do a full wipe or just give it a few more days. Or maybe reverting to original theme again. And again, if changing themes is the culprit, then its major major uncool since I really like the blue!

Full wipe= drag and bummer. sigh...
[Desire HD Android Development] undave:
Sorry, 'seems' is all I can do for the moment. I flashed the hrdfkn update, and had it running for the best part of a morning, while keeping an eye on the current widget logs. It seemed that it wasn't dropping back into the sub-10mA range, so I re-flashed cm7rc2, and then applied Mad's #5.

It's entirely possible that something else was doing was impacting on my tests, and while I have my current widget log file, I'm not sure of the time at which I flashed the different solutions, so that doesn't help much.
[Desire HD Android Development] Chezbel:
I assume changing themes is significantly less hassle than a full wipe :rolleyes: Maybe a good first test is to set your theme back to the original before you go to bed and let CurrentWidget run over night, then you can go back to blue in the morning.
[Desire HD Android Development] kshting:
Haha, yup that would be correct. Sometimes, at times like this, it would be appreciated if @mad-murdock would give his know how opinion on this, after all, he is on line right now.:)

Edit: Slightly off topic: #19 is up
[Desire HD Android Development] zepretender:
I confirm : Mad-Murdoch solution is really better than the other. Really better !
[Desire HD Android Development] RizSher:
I'm going to monitor throughout the day to get some real-life sense of how the battery performs (weekend is so not real life :( ). But with 2 exchange a/c set on Push (Hotmail and my office exchange), I think 20% in 5 hours is pretty good - wouldn't mind an improvement over it, but from what I've read in forums over the last few months, even before these battery drain problems cropped up, 24 hours on constant data was pretty much the upper limit.

Riz
[Desire HD Android Development] odin13:
i confirm it too...4-5ma in standby with the fix from mad-murdock

yesterday i tried the other kernel / fix from hrkfdn but with that fix my standby drain stays around 13-10ma

with the mad-murdock fix my battery shows around 60% after almost 24hrs...

i really love it :D
[Desire HD Android Development] jeey:
Im currently using hrkfdn fix and im at 60% after 26 hours :)

So it all depends i gues, it used alot of power before first charge but after the first 100% charge the drain stabilized (4ma)
[Desire HD Android Development] odin13:
hmmmz...somehow the drain remains around 10-13ma on hrkfdn's kernel/fix, i will give it another try later on with a clean CM install...

good to see that both fixes work :)
[Desire HD Android Development] Fihlvein:
Yes, it's efficient, as long as it's active. But today again after each phone call I notice that idle drain is again over 10mA, so I have to remember to active the fix all the time.

I'm happy though as I know it will be rather soon that a superior solution for activation/deactivation of the chip will be available, just a matter of time. :)

Edit: whoops! This time the constant high idle consumption was due to me not flashing the fix after latest nightly. At least I noticed that nightlies are not automatically backing up the fix. But I guess that was already mentioned.
[Desire HD Android Development] nicopilami:
1*) I really want to thank

- the Cyanogen team for all the Gingerbread releases

- Mad-Murdock for his work, this patch is really amazing.

2*) In my personal case, I noticed this fix works great until I plug the charger into the phone. Apparently this action disables the fix and I have to use the workaround or just reboot the phone to reenable it.

Am I the only one in this case ?

3*) When will the #6 fix be released and available ? I can't wait for it anymore !!! :)

Thanks

Nico
[Desire HD Android Development] mad-murdock:
about delay of #6... its easy: terrible hangover... uploading now
[Desire HD Android Development] mad-murdock:
archive of old bat fix / method:

This thread/patch aims to fix the battery drain all non-sense ace roms currently have. As soon as this is tested and working for everyone without issues, it will be merged into cm7 and probably also to other roms.

update 2011/03/11: sorry for being away two days. was unforseen. whats the status? hrkfdn started developing a own patch to the aic driver. by now, it seems much better than my solution. it still got an issue with fm radio on boot - but once that is figured out, that patch will be superior to my solution and probably make its way to nightly. until then, have fun with #5 - but dont expect further development here.

This patch contains a kernel, which is based on kali's cm7 kernel. in fact, its absolutly the same, just the driver for the AIC3254 dsp chip is changed.

get build #5 here - md5: f7c7b01a47266b26b8a01f2fc853cfbe

http://www.filesonic.com/file/178617251/mad-#5-aic3254pd_signed.zip

phunkycow's mirrors: http://postkreative.eu/mad/mad-5-aic3254pd_signed.zip / http://uberfail.org/mad/mad-5-aic3254pd_signed.zip - thanks phunky!

old work around after boot not needed anymore. just flash and smile.

to get the current power status:

[sven@frink xbin]$ adb shell aic3254pd status
Power status of aic3254 chip: OFF

same in terminal emulator on phone:

localhost / # aic3254pd status
Power status of aic3254 chip: OFF

this is a typical "adb logcat | grep -i aic":

[ 340.841369] aic3254_set_config: enable tx
[ 340.841766] aic3254_config: size = 12
[ 349.698486] aic3254_powerdown: power off AIC3254
[ 349.698638] aic3254_config: size = 32
[ 381.205322] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 0 (OFF)
[ 498.071563] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 0 (OFF)

this is the desired output - since OFF means less battery drain. if you only see ON but never OFF (even though no apps using speaker/microphone), leave feedback.

note: unmodified kernel cannot keep track of power status and init status. flash on non official cm7 roms on your own risk (:

measurements with battery monitor widget showed, for cm7 the battery drain drops from 11-15mA to 1-5mA to the level, sense roms in standby reach.

regards

mad

changelog

#5: no need to use workaround anymore - modified power daemon and kernel driver take care of it. just flash .zip file once - will add itself to cm's auto backup facility.

#4: stoped logcat spam. opened an own thread, since cm7-ace-nightly started beeing the wrong place now.

#3: addind missing wifi module of #2

#2: added kernel and status - decreased ioctl time from 60s to 20s

#1: initial release
[Desire HD Android Development] 1234568:
It's good to hear you have been enjoying yourself. Thanks for the new fix!
[Desire HD Android Development] raecarter82:
So effectively this is an issue on all kernels mad?
[Desire HD Android Development] mad-murdock:
its not yet inside cm7, since its not done yet. i wont upload work in progress (:

it will be merged to cm7 as soon as all issues are solved. until then, flash this zip after flashing any nightly/rc
[Desire HD Android Development] mad-murdock:
updated workaround:

current needed work around: after each boot, use build in voice dialer once. press back as soon as its loaded. it just needs to run once and initilized the dsp the right way. no need to repeat until next reboot.
[Desire HD Android Development] Chezbel:
And that's definitely appreciated! I was just reporting in hopes of stopping hoards of questions.
[Desire HD Android Development] Fihlvein:
Opening Sound Recorder also works.

I have always recorded 1 sec and then exited, don't know if the recording part itself is needed.
[Desire HD Android Development] mad-murdock:
tonight

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] Rosjer:
Flashed your battery fix, straight after flashing #14 without reboot in between, opened voice search and confirmed on terminal aic3254pd chip was off. checking every hour and so far it stays off.
[Desire HD Android Development] alexmason14:
Left DHD overnight with your patch, works like a dream! 0mA average on standby, rarely above, for 10hours! WOW, Cheers murdock!
[Desire HD Android Development] raecarter82:
Right I'm.going for it rc2 and battery fix
[Desire HD Android Development] EmptyArea:
Think I'm waiting on #5...

Swyped on transparent XDA app.
[Desire HD Android Development] raecarter82:
I mean on cm7 I tried it at rc1 but the battery was terrible yet I really liked it now I'm doing it
[Desire HD Android Development] exsky:
what does it mean?
[Desire HD Android Development] Rey-619:
same here.. but i have to say i just using the files without kernel on my miui build
[Desire HD Android Development] mad-murdock:
maybe that's the reason. do you have contact data of the miui guys? they should add it to kernel, too, once its done

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] exsky:
I have installed CM7 14...
[Desire HD Android Development] kramerty88:
Mad, for some reason the chip switches on again when enabling airplane mode. After that I have to do the voice trick again to switch it off... Is that supposed to or?

Using nightly#13
[Desire HD Android Development] Rey-619:
im using the kernel of cattleprod from here:

http://xdaforums.com/showpost.php?p=11750935&postcount=66

my chinese is very bad :rolleyes:

i dont now how to contact them :/ but this would be very nice if someone could andvise them ^^

www.miui.com this is all i have ore www-miui-dev.com MarkHUK has an good wire to them
[Desire HD Android Development] itscro:
Is anyone else getting a failed signature check in Clockwork? I've tried downloading from all 3 mirrors.
[Desire HD Android Development] mad-murdock:
should be signed, but never tested it. does the md5 match from first post?

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] mad-murdock:
new screenshot. will add this and the other to first post once back home

http://db.tt/rSKVhKa

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] hedayat7:
Hi mad,

I noticed sometimes have suspend and resume when I query from dmesg grep aic. I don't know maybe if this is the cause of some unknown spikes.

https://lh4.googleusercontent.com/_...AAy4/bqpDo_FSMiM/s400/snap20110314_233854.png
[Desire HD Android Development] os91:
I am getting a weird error when I try to install. MD5 matches up. but i get "Error in /sdcard/mad5... installation aborted" does this have to do with my rom I am using? I am using Ultimate Droid 3.1.1.
[Desire HD Android Development] Frustu:
Wow sounds good mad !!! I wait then i try it , just flash like old updates and run google voice search right?

Thank you for your work !!!!!!!!!!!
[Desire HD Android Development] mad-murdock:
#6 up - happy testing - hope we get good feedback and can use hrkfdn's patches without disabling fm...
[Desire HD Android Development] GraemeStanding:
Getting the "Installation aborted." message here. Looking forward to testing this out! :D
[Desire HD Android Development] mad-murdock:
no google voice search workaround should be needed anymore - but yes, just flash like old updates after each nightly (:
[Desire HD Android Development] zepretender:
Installed over #5 ... hope it will work !
[Desire HD Android Development] Frustu:
Thank you for answer mad now i donload and flash it on new CM7N19
[Desire HD Android Development] mad-murdock:
removed the mirror, which isnt working!
[Desire HD Android Development] LorD ClockaN:
Do we need to remove old #5 patch or just update with new on??

SO no workaround with this one? JUst boot the phone and thats it?

And we can0t check the status with aic3254pd status anymore?

Great work!
[Desire HD Android Development] mad-murdock:
you can check the status with the new method on post #1

also, i just upload build #7 which reverts the latest patch by hrkfdn (as he hisself suggested on irc)
[Desire HD Android Development] LorD ClockaN:
you haven't answered if we need to remove #5 first?
[Desire HD Android Development] arielext:
No need to undo #5 or is that done by the install script? Happily going to test this new build! Thx a million for all the hard work
[Desire HD Android Development] Chezbel:
Awesome excuse... it's about the only one I would accept :)
[Desire HD Android Development] mad-murdock:
didnt i? busy me (: no, you dont have to remove #5 - #6 and #7 got removal functions for old versions, removing the files from file system and from custom_backup_list.txt

tricky, hu?

i will add this info to first post...
[Desire HD Android Development] os91:
I am still running into problems. Is this only for nightlies?
[Desire HD Android Development] c_felge:
Just tested #6.

And I get this.

Doesn't look like the one in #1.

Something wrong with it!

Still ON.

Rgds
[Desire HD Android Development] mad-murdock:
#7 is up!

if you get install errors, make sure the download isnt corrupted. md5sum makes sure. oh and yes, this should only work on cm7 builds (latest rc's and nightlies) and close connected roms.
[Desire HD Android Development] mad-murdock:
it says "powerdown" just like it should.

the handling is different from older versions - you cannot use a shell command to get status anymore. but thats okay - overall its an improvment (: just get used to the new log output - until this is finally solved and noone will look at the logs anymore
[Desire HD Android Development] kshting:
Is #7 on its way now??

Edit: yup, It's up.
[Desire HD Android Development] LorD ClockaN:
Download #7 not 6

edit:

just tested it and it looks that it's working for now.. Powering off I mean!
[Desire HD Android Development] Banger242:
Just installed #7........the message in recovery tells me that it it successfully installed #6 so should I assume that it is a typo in the update script......?
[Desire HD Android Development] mad-murdock:
yeah - typo - i should remove that number, since i will 100% forget to update it every time....
[Desire HD Android Development] sonydesouza:
Gonna test this build 7 !

Report soon !

Thanks To Kali, Murdock and hrkfdn for this hard work !

Cheers ;)
[Desire HD Android Development] mad-murdock:
it seems my aicbootfix is "gone" after first phone call - then you need to workaround with voice dialer once - after that, no further workaround needed (i hope)

need to figure out a way to switch profile on boot time to fix this in #8 - but lets get some more feedback first (:
[Desire HD Android Development] kshting:
Just flashed #7 and this is my result, seems pretty ok. Haven't received or made any calls yet, it's passed midnight over here, anyway,

# dmesg | grep -i aic | tail -n 15

dmesg | grep -i aic | tail -n 15

<6>[ 330.957275] aic3254_config: size = 8

<6>[ 330.957824] aic3254_set_config: disable rx

<6>[ 330.957824] aic3254_powerdown: power off AIC3254

<6>[ 330.957855] aic3254_config: size = 32

<6>[ 344.879760] aic3254_ioctl: index 13 for 40047313

<6>[ 344.879760] aic3254_set_config: table(0x40047313) index(13)

<6>[ 344.879760] aic3254_set_config: enable rx

<6>[ 344.879791] aic3254_config: size = 15

<6>[ 344.880340] aic3254_config: size = 11

<6>[ 348.508941] aic3254_ioctl: index 29 for 40047313

<6>[ 348.509338] aic3254_set_config: table(0x40047313) index(29)

<6>[ 348.509765] aic3254_config: size = 8

<6>[ 348.511932] aic3254_set_config: disable rx

<6>[ 348.512695] aic3254_powerdown: power off AIC3254

<6>[ 348.513092] aic3254_config: size = 32

Did play some ringtones before this.
[Desire HD Android Development] xd4d3v:
used hrkfdns 66 version, and had a standby of 32ma for half a night. weird!

let's see how this one goes.

thanks mad
[Desire HD Android Development] Chezbel:
#6 powers down the aic3254, but #7 does not seem to do that. I've attached 2 screen shots with the results of running the scripts from post 1.

#6 screen shot is on the left and #7 screen shot is on the right.

EDIT: These were taken just after reboot. I didn't make any phone calls or use any apps except Drocap and Gscript

EDIT: I apologize, it may be necessary to wait 20 seconds or so before running the script in order to see the power down.

(should this post stay here or is it better for it to be deleted?)
[Desire HD Android Development] c_felge:
That's true I guess.

Just tested it on #6 and #7. After flashing and rebooting aic i off.

But after a phonecall or using fmRadio aic doesn't turn back off.

Here is what i got after a call. on #7.

No 'powerdown'

Sorry mad

ps: the voice dialer workaround still works and it stays off after it.