yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] Chezbel:
Mad, I hate reporting things that I can't fully describe, but sometimes that's just the way it is. I'm using mad-#4-aic3254pd and I made sure that I saw "Power status of aic3254 chip: OFF" before I left the house. When I came back a few hours later and looked at the CurrentWidget log all my values were in the 11-15mA range. So I checked the status of aic3254pd and it was ON.

I definitely did not reboot or go into recovery. I tried to remember all the apps I had used and test them again, but I couldn't reproduce this. I know I used the camera (no video), sent pics to facebook and sent a few messages. All basic stuff.

Has anyone else seen this with the battery patch? I'll see what happens over night..
[Desire HD Android Development] mad-murdock:
build #5 up - have fun!
[Desire HD Android Development] io53:
Thank you! I'll give you all my "Thanks" tomorrow ;)
[Desire HD Android Development] Chezbel:
That's awesome. As your first post said I just "flashed and smiled". After the install I rebooted and waited for the reboot and then for the screen to turn of. After a bit I saw this

<6>[ 27.601379] aic3254_powerdown: power off AIC3254

and this

Power status of aic3254 chip: OFF

Thanks again for your work! I'm heading to bed so I'll see what happens overnight with the current.
[Desire HD Android Development] mad-murdock:
yeah - thats how its intended (:

i just need feedback, if anyone finds cases where it wont switch off again. in other words: do i have to repeat the initial call under special circumstances, or is it enough to do it just once at boot?

once that question is answered, its time to merge it into cm
[Desire HD Android Development] raecarter82:
Upgraded from #4 to #5 can confirm status off happens on its own without voice call work around excellent work mad have you done a widget because I couldn't find it?
[Desire HD Android Development] franklin20uk:
can I use this on rc2?
[Desire HD Android Development] mad-murdock:
i stopped on the widget. its a nice idea, but checking power status via program call does the job, and in some days hopefully noone will check the power status ever again, since its just considered fixed/solved

i could have used such a widget 2 days ago - but now, well, adb shell aic3254pd status

yes, sure! probably with every nightly. until it its included in the nightlies
[Desire HD Android Development] franklin20uk:
many thanks will give that a go. Will this kernel do any major change for the system settings or its simply a under the hood modification.
[Desire HD Android Development] mad-murdock:
its the same kernel and kernel config each cm7 nightly has - i just modified the aic3254 dsp chip driver a bit - nothing else touched
[Desire HD Android Development] thiagodark:
really thanks man... i was pretty satisfied with "voice dieler, back", but now i can't take it off of my dock! =o)
[Desire HD Android Development] EmptyArea:
Right, finally time to start getting some accurate idling drain figures. Currently I'm getting 5-9ma with ~37ma spikes. I'll let the kernel bed in and give more feedback. But so far EXCELLENT WORK!!!

looks like the spikes have stopped, lows of 3ma.

Swyped on transparent XDA app.
[Desire HD Android Development] alexmason14:
Hmm weird, I am on version #5, however like previously, the terminal reads the chip as on, everytime, however when I use command prompt adb on my pc, usb connected, it says it's off, which I know is true because it stays on 0-3mA during standby.

Eitherway amazing work.
[Desire HD Android Development] robE9:
So the main source of battery drain on CM was only this dps ? or if you manage to make a "shut down - standby for components" thingie like Sense has, there will be even less battery drain? :P anyway very nice :)
[Desire HD Android Development] mad-murdock:
yes, it was obviously only the dsp chip - which is the only new hardware compared to older devices. the screenshot on first page made me belive this morning - i hadnt expected that much to be honest (:

it looks just like the sense based roms - now i must catch those guys who have issues.

next project is to fix about phone -> battery usage wrong stats btw
[Desire HD Android Development] alexmason14:
Mad-Murdock what radio are you using btw?
[Desire HD Android Development] mad-murdock:
28th January 2011: Radio_12.35d.60.140f_26.06.03.24_M2 - TELUS WWE 1.84.661.1 from http://xdaforums.com/showthread.php?t=877295

but i just noticed, there are new radios around. will test Radio_12.41.60.19_26.06.04.14_M_Test - HTC Ace Gingerbread S Generic 2.16.0.0 now....

oh - be warned - if you have higher than 26.04 in second part of filename, make sure to be s-off since it fixes the loophole. with s-off installed, nothing can happen.
[Desire HD Android Development] starbase64:
Hi,

i have 2mA with Radio_12.41.60.19_26.06.04.14_M

with friendly greet

starbase64
[Desire HD Android Development] 1234568:
I dont get anything like the 4mA other users are reporting. About 10-15 mA probably when sleeping.

I'm running 26.04.03.30

Is anyone else having luck with this kernel?
[Desire HD Android Development] thiagodark:
yep, between 2mA and 5mA, just perfect!
[Desire HD Android Development] io53:
I got ~3-4mA with 3G and 1mA in airplane mode.
[Desire HD Android Development] mad-murdock:
what does status tell you?
[Desire HD Android Development] franklin20uk:
I think your kernel does help slightly.

It can go as low as 2mA on standby, and average between 5-10mA

And may be its my imagination, it seems it doesn't peak as high as it used to be as well when the phone is in use.

I will report in a couple of days and see how it improves the phone practically.

Many thanks for your hard work!
[Desire HD Android Development] mad-murdock:
5-10 tells me, the patch is working, but you have a lot running in the background. no patch light system is 11-15.

with patch usually 1-5 with an average of 3-4 ... check your background tasks, try disabling them for testing.

k9 in poll pulls far more power than in push mode for example.

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] EmptyArea:
Delete post
[Desire HD Android Development] Rosjer:
hmmm i can't seem to get my logcat, using the adb command from OP i only get not recognised command prompted :( any ideas?
[Desire HD Android Development] mad-murdock:
get latest adb from android sdk

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] mad-murdock:
this isn't nightly thread. please stay on topic

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] raecarter82:
Please delete
[Desire HD Android Development] Rosjer:
did update my SDK earlier today, got revision 10 of SDK tools atm, do i need to reinstall the full SDK for the new adb?

EDIT: Doublechecked my adb is revision 10, latest SDK, still getting: grep is not recognised as an internal or extarnal command :(
[Desire HD Android Development] EmptyArea:
V. Sorry murdock, I take it that implies it cannot be related to this patch. As I didn't have it before.

Swyped on transparent XDA app.
[Desire HD Android Development] mad-murdock:
maybe i miss read your question. you sure those things don't happen without patch?

disable it by flashing nightly again. no wipe needed.

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] mad-murdock:
note: after using phone for any calls, power down is disabled again. usual voice search enables it again.

not sure how to bypass this yet. needs further investigation tomorrow. good night

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] Fihlvein:
Sorry, but that is not entirely true. I make several calls through the day and did not have to launch any mic recording application seperately, still my consuption is in 1-4mA range.

Edit: I just tested it, right after phone call status was on, after a while the status of DSP chip went back to off. Maybe I didn't get what you tried to say (once again) :p
[Desire HD Android Development] Fihlvein:
Hey hey hey... just flashed #5 and noticed the toggling of dsp chip happens automatically without starting any mic application. Also tested that dsp was activated during phone call, but was disabled after call ended.

So at least for me this fix is completely invisible after flashing, as it's also backed up during flashing new cm7 rom.

Absolutely fantastic mad!
[Desire HD Android Development] 1234568:
My status was coming up as ON indicating a problem. After a restart though it seems to be behaving. I get about 7ma when sleeping which isn't as good as some other people but its still a big improvement! Thanks!

I will check battery usage tomorrow morning and post findings...
[Desire HD Android Development] earhog:
I flashed via recovery but Im not sure if it is working correctly. I received no notifications when I restarted my phone, when I try to get my status via terminal emulator it responds with cannot find local host. Im also still in the 10-15 range battery drain wise.

I am not sure what I did wrong, flashed #5 via recovery and everything went smooth there.

I am on CM7 RC2 HTC Inspire
[Desire HD Android Development] Chezbel:
Here's part my currentwidget from overnight using patch #5 and nightly #14. I didn't use the phone at all during that time. The aic3254pd status still showed OFF.

Here's the first and last hours in order to keep the post somewhat short, but the middle hours are basically the same:

2011/03/09 02:26:10,-4mA,93%

2011/03/09 02:28:35,-4mA,93%

2011/03/09 02:30:43,-86mA,93%

2011/03/09 02:32:43,-6mA,93%

2011/03/09 02:34:44,-5mA,93%

2011/03/09 02:37:04,-5mA,93%

2011/03/09 02:39:44,-13mA,93%

2011/03/09 02:41:44,-3mA,93%

2011/03/09 02:43:44,-4mA,93%

2011/03/09 02:46:00,-3mA,93%

2011/03/09 02:48:43,-6mA,93%

2011/03/09 02:50:44,-4mA,93%

2011/03/09 02:52:44,-4mA,93%

2011/03/09 02:54:44,-3mA,93%

2011/03/09 02:56:45,-4mA,93%

2011/03/09 02:59:44,-5mA,93%

2011/03/09 03:01:44,-4mA,93%

2011/03/09 03:04:43,-3mA,93%

2011/03/09 03:06:44,-3mA,93%

2011/03/09 03:08:44,-3mA,93%

2011/03/09 03:11:43,-4mA,93%

2011/03/09 03:13:44,-3mA,93%

2011/03/09 03:15:45,-3mA,93%

2011/03/09 03:18:44,-3mA,93%

2011/03/09 03:21:43,-3mA,93%

2011/03/09 03:23:43,-4mA,93%

.

.

.

2011/03/09 07:42:43,-6mA,90%

2011/03/09 07:44:44,-4mA,90%

2011/03/09 07:46:44,-3mA,90%

2011/03/09 07:49:43,-5mA,90%

2011/03/09 07:51:44,-9mA,90%

2011/03/09 07:53:44,-6mA,90%

2011/03/09 07:55:44,-5mA,90%

2011/03/09 07:57:45,-3mA,90%

2011/03/09 07:59:45,-4mA,90%

2011/03/09 08:01:45,-5mA,89%

2011/03/09 08:04:43,-5mA,89%

2011/03/09 08:06:44,-3mA,89%

2011/03/09 08:09:44,-5mA,89%

2011/03/09 08:11:44,-10mA,89%

2011/03/09 08:13:44,-6mA,89%

2011/03/09 08:15:44,-25mA,89%

2011/03/09 08:18:15,-4mA,89%

2011/03/09 08:20:45,-5mA,89%

2011/03/09 08:22:55,-7mA,89%

2011/03/09 08:25:15,-6mA,89%

2011/03/09 08:27:43,-3mA,89%

2011/03/09 08:29:43,-15mA,89%

2011/03/09 08:31:44,-3mA,89%

2011/03/09 08:33:44,-4mA,89%

2011/03/09 08:35:44,-3mA,89%

2011/03/09 08:37:44,-3mA,89%

2011/03/09 08:40:20,-4mA,89%

A few posts back people were asking about radios. I'm running 12.28g.60.140fP_26.05.05.27_M3
[Desire HD Android Development] 1234568:
In terminal emulator first type "su"

Then type "aic3254pd status"

It will then say "Power Status of aic3254 chip: OFF/ON"

I was confused by this as well but I got there through trial and error. Hope this saves you some time.

Edit: I thought this was Desire HD (Ace) specific... but you are using the Inspire. Maybe someone else can confirm this?
[Desire HD Android Development] BumAround:
Fantastic!

Been running build #4 on phunkycow's Irksome Jalapeno with the test radio 12.28g.60.140f_26.05.02.15_M, and wow!

Short question: just flash the #5 on top of #4 like that?

Thanks
[Desire HD Android Development] earhog:
thanks that command worked... Well it said status is on so Im not doing something correct...

The inspire uses the same roms as the Ace.. Its just the US version of the Desire
[Desire HD Android Development] franklin20uk:
Does android assistant works on gingerbread? When I was on stock rom it extend at least 1/3 of battery life.

"k9 in poll pulls far more power than in push mode for example" what does that mean?
[Desire HD Android Development] earhog:
I redownloaded the file and flashed again, now working correctly. Thanks for the help
[Desire HD Android Development] snesa:
one question can i use this kernel on miui rom
[Desire HD Android Development] Chezbel:
Is anyone persuing this? I'm not particularly interested in the miui ROM, but since I'm in Taiwan I could probably get one of my colleagues to help with the language aspect. I don't see any way to contact miui other than signing up on their forum and posting a message about the battery patch and referencing this thread...
[Desire HD Android Development] snesa:
Just instaled MIUI 1.3.5 Rey's Custom Rom [08.03.11] v5.2 and its updated to Battery Fix to #4 and aic3254 chip is off test it my self in telminal ....hope this finally ends battery drain.
[Desire HD Android Development] renzg:
Just flash latest 5. without open any voice application, status of AIC3254 is OFF
[Desire HD Android Development] Walker Street:
Just flashed #5 on CM7 (compiled as of a few minutes ago). Thanks for your efforts on this Mad Murdock. I'm watching Juice Plotter with hope.
[Desire HD Android Development] gururajkg:
Is the #5 now included in the #15 whichis up, or will have to flash it separately.

Anyhow i will do the flash immediately after the #15.
[Desire HD Android Development] Chezbel:
You can just test it and find out. Anyway, I will test it myself and let you know soon unless someone else posts about it first...
[Desire HD Android Development] russellgee:
The only possible way for me to get OFF is by having the phone on silent.
[Desire HD Android Development] Chezbel:
FYI for anyone wondering. After flashing nightly #15 it was still necessary to flash

mad-#5-aic3254pd afterwords to get the battery fix. I suspected this would be the case since Mad didn't post otherwise.
[Desire HD Android Development] hedayat7:
after change notification sound, the status turn on and never off ..

i wonder if we can change it off manually ..
[Desire HD Android Development] shah_jee:
This new build 5 works well. Build 4 I was getting 14 maH on standby. Now its 4maH in 6.5 hours of sleep. Thanks
[Desire HD Android Development] hedayat7:
work for me too after it can not change to off automatically when change notification sound (choose from zedge) .

anyway it's not a big deal, i can finally change it off manually. :)
[Desire HD Android Development] mentalcase:
This has worked wonders for me so far. Flashed 5 today and it brought my draw from 8-10mA to 2-3mA. I can also confirm it works for the inspire and does not break sound.
[Desire HD Android Development] Chezbel:
I'm using mad-#5-aic3254pd and it works fine for me. When I change the notification the aic3254pd turns on because it has to in order to play a sound. But after about 20 or 30 seconds it turns off again, at least for me.
[Desire HD Android Development] mad-murdock:
that's actually a great idea. but wait till its bug free. build #6 will try to fix the never-off-after-call issue. i hope its the last issue...

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] mad-murdock:
about auto backup:

i was stupid. the aic3254pd is backed up, but i cannot prevent the new rom from flashing a new kernel. so auto backup cannot work. sorry (:

looking into a new day off work. good for you i cannot work anymore and got plenty of time...

Swyped with cyanogenmod 7 powered HTC Desire HD. Excuse typos.
[Desire HD Android Development] Locster126:
I'm not sure how I did it but I flashed the rc2 with the patch and at first it was ok, chip off but after the reboot it turns off but goes back to resume/suspend.

Now if I turn on voice search I get high standby drain and the reason I believe is this:

ERROR: aic3254_config 3254 power down procedure, flag 0x24=0x00(0x88)

ERROR: aic3254_config 3254 power down procedure, flag 0x26=0x00(0x11)

and then literally every 5 secs

spic_aic3254_suspend

spic_aic3254_resume

my dmesg is FLOODED with this message now

Edit : reflashed the patch but still same problem. Didn't touch voice search this time.....
[Desire HD Android Development] Chezbel:
OK, remind me when you believe it is ready for general use. And if a native Chinese speaker wants to do this instead I won't complain...
[Desire HD Android Development] Johnny T:
Getting the exact messages with #5 here too. :-/ (CM7 #14)

But adb does say:

Power status of aic3254 chip:OFF

Will check current/drain in the morning.
[Desire HD Android Development] Rosjer:
I can confirm same happening for me, after flashing #5 it went chip: OFF automaticly, had average -3mA drain over night, did a call this morning and chip is back ON, voice activate and it's OFF again.
[Desire HD Android Development] 1234568:
Morning. I just checked battery usage overnight and it was a constant 4-5 mA all night long. Status of chip is still off and after sound auto off still kicks in.

That's battery fix 5 on CM7 #13

Lets hope these problems people are reporting are an easy fix!
[Desire HD Android Development] raecarter82:
Just some feedback when I got up this morning after my phone having a full charge whilst I was asleep the status was on? Did the voice call trick it is now off again
[Desire HD Android Development] dr.m0x:
Had to toggle silent mode to get chip to switch off.
[Desire HD Android Development] kshting:
Hi Locster126,

Yes I had the same issue here. What happened was when I used voice search the second time, the drain was back to those days without the fix. However, when I checked aic3254pd status, it is off, :confused:. And getting almost the same output as you did with dmesg | grep. So not quite sure what is the complication here.

I hope our kind @mad-murdock would be able to figure this out.
[Desire HD Android Development] mad-murdock:
i used latest (leaked) gingerbread radio tonight - and it had very high bat drain - Radio_12.41.60.19_26.06.04.14_M_Test - HTC Ace Gingerbread S Generic 2.16.0.0 - didnt work well for me...

i am back to my old and tested:

28th January 2011: Radio_12.35d.60.140f_26.06.03.24_M2 - TELUS WWE 1.84.661.1
[Desire HD Android Development] 1234568:
Like I said it was working fine. I then made a call to test what other people are reporting and sure enough I lose auto off. Then tested the idea that toggling to silent helps and I'm back to status off.
[Desire HD Android Development] Chezbel:
Same for me. I tried changing the notification sound but that did not cause the aic3254pd to power off. I had to use Google voice to get the power off.
[Desire HD Android Development] Locster126:
Funny enough my aic is powered on and when I try voice search all I get is "connection problem"... so can't use voice search to try to power it off now.,..argh just bout to go work and my battery is down 74% already....
[Desire HD Android Development] dapimp011:
I flashed patch yesterday evening. Power status of aic3254 chip was OFF

Checked again this morning, and now is on. Here is log.

Restarted phone and again OFF.

export PATH=/data/local/bin:$PATH
$ export PATH=/data/local/bin:$PATH
$su
# aic3254pd status
Power status of aic3254 chip: ON
# aic3254pd status
Power status of aic3254 chip: ON
# logcat | grep -i aic
I/AudioHardwareMSM7X30( 1214): do_aic3254_control (1, 1, 1)
I/AudioHardwareMSM7X30( 1214): aic3254: change rx mode to 29
I/AudioHardwareMSM7X30( 1214): do_aic3254_control (1, 1, 0)
I/AudioHardwareMSM7X30( 1214): aic3254: change rx mode to 13
I/AudioHardwareMSM7X30( 1214): aic3254_configure: sound effect (DualMic_Phone)
I/AudioHardwareMSM7X30( 1214): do_aic3254_control (0, 175, 0)
I/AudioHardwareMSM7X30( 1214): aic3254: change rx mode to 1
I/AudioHardwareMSM7X30( 1214): aic3254: change tx mode to 1
I/AudioHardwareMSM7X30( 1214): do_aic3254_control (0, 1, 1)
I/AudioHardwareMSM7X30( 1214): do_aic3254_control (0, 1, 0)
I/AudioHardwareMSM7X30( 1214): aic3254_configure: sound effect (Recording)
I/AudioHardwareMSM7X30( 1214): do_aic3254_control (0, 175, 0)
I/AudioHardwareMSM7X30( 1214): aic3254: change rx mode to 11
I/AudioHardwareMSM7X30( 1214): aic3254: change tx mode to 15
I/AudioHardwareMSM7X30( 1214): do_aic3254_control (0, 1, 1)
I/AudioHardwareMSM7X30( 1214): aic3254: change rx mode to 29
I/AudioHardwareMSM7X30( 1214): aic3254_configure: sound effect (Recording)
I/AudioHardwareMSM7X30( 1214): do_aic3254_control (1, 175, 1)
I/AudioHardwareMSM7X30( 1214): do_aic3254_control (1, 1, 0)
I/AudioHardwareMSM7X30( 1214): aic3254: change rx mode to 13
I/AudioHardwareMSM7X30( 1214): do_aic3254_control (1, 1, 1)
I/AudioHardwareMSM7X30( 1214): aic3254: change rx mode to 29
[Desire HD Android Development] mad-murdock:
i just tried to look into the "doesnt turn off after phone call" thing.

well, yesterday (with the leaked gingerbread radio) i noticed the same behavior.

but today (with downgraded radio again), i cannot reproduce this.

so - if someone experiences non-turn-off-after-whatever issues, please also report your radio and if its ace or inspire you are using. i have a feeling no fix is needed - just some radios are crap.
[Desire HD Android Development] Fihlvein:
Funny, as I don't seem to have noticed anyone even reporting this. Has many people reported it? I'm using the "recommended" radio and as I described yesterday, no issues what so ever regarding calls & dsp chip status.
[Desire HD Android Development] hedayat7:
hi mad-murdock ,

i'm using Radio_12.35d.60.140fP_26.06.03.24_M2

there is a letter P , may I know is the radio different than yours ?

btw, i'm having the "non switch off after phone call" problem too. but i can turn off if go to silent mode. :)
[Desire HD Android Development] vinnieminnie:
You've got the same radio.

Radio thread says:

[*] 4th January 2011: Radio_12.28e.60.140f_26.04.02.17_M2_SF - HTC WWE 1.72.405.3 R2 - Credits to brolee83

Note: Once flashed, this radio will show up as 12.28e.60.140fP_26.04.02.17_M2 or 12.28e.60.140fU_26.04.02.17_M2

MD5 Checksum: aea59efafc7327000a44ee902046c355
[Desire HD Android Development] mentalcase:
I'm experiencing the issue. Running 12.39.60.19p_26.06.04.06_M on an Inspire.
[Desire HD Android Development] lampz:
Is this for cm7 only? Cant flash with arhd lee or core?
[Desire HD Android Development] a user:
#5 still NEEDS the workarround in my case. if i don't start the voice search and quit it i have a constant 13ma drain.

so in my case #5 did not fixed it as claimed.

sorry to say so :(
[Desire HD Android Development] little-x:
Bug report:

Rotation/gravity sensor stopped after a phone call

flash back to #4 until it get fixed
[Desire HD Android Development] mentalcase:
I think this may be a problem with cm7 and not the fix. I had this issue intermittently before flashing the drain fix.
[Desire HD Android Development] igor.tonky:
ace, fix#5, nightly#15, radio 26.06.04.14(gb test).

works as advertised: off on boot, turning off after music, voice search or voice calls.

two days before that i was on fix#1, nightly#13, radio 26.06.04.06 - same thing, everything was switching off correctly, after initial voice search on boot(required for fix#1).
[Desire HD Android Development] xanadu:
On my DHD #5 seems to be OK out of box:

2011/03/09 00:04:39,-4mA,100%

2011/03/09 00:09:54,-1mA,100%

2011/03/09 00:12:09,-3mA,100%

2011/03/09 00:18:19,-4mA,100%

2011/03/09 00:19:39,-3mA,100%

2011/03/09 00:29:31,-4mA,100%

2011/03/09 00:34:41,-5mA,100%
[Desire HD Android Development] igor.tonky:
can't reproduce here.

please provide phone model, cm version, radio version and logcat.
[Desire HD Android Development] nicopilami:
battery drain fix included on #15 ?

I've seen on "Nightlies post" that your "battery drain fix" was included on #15, can you confirm this, and if the file we are talking about is the last version of this fix ?

Thanks

Nico
[Desire HD Android Development] a user:
on mine not. its constantly draining 13ma. and after starting/quiting voice search it gets to what you posted.

EDIT: odd! i rebooted and flashed the fix a second time and now it seems to work.