yashsingh1/xdaforums huggingface dataset:
[Vibrant Q&A, Help & Troubleshooting] bartek25:
You know fat32 fat ext4 jfs rfs are partitons right AND THERE IS ABOUT 8 MORE YOU CAN FORMAT YOUR MEMORY OR EXTERNAL SD

p.s if no1 is correcting me on this that means i am right?
[Vibrant Q&A, Help & Troubleshooting] oka1:
If the data was indexed in a system exclusive method then it could be possible, but consider this how many 2009 Honda parts can you remove and put in a 1011 car........... not many, builders of the phone both hardware and software will never agree so.......... dual boots will be ported methods...... until some awesome dev here figures it out for the rest.........
[Vibrant Q&A, Help & Troubleshooting] bartek25:
dual boot worked for me try it out .

+1
[Vibrant Q&A, Help & Troubleshooting] CrazyCharlie:
Someone else posted about this the other day. Someone has written a bootloader that allows for dual booting different roms but I think it was for an HD2 or something. I'll try to find a link to it.
[Vibrant Q&A, Help & Troubleshooting] CrazyCharlie:
Here it is http://www.xda-developers.com/android/new-dual-boot-now-for-the-hd2/

If you can dual boot Windows Phone and Android on one device surely it's possible to have two different Android ROM's on the same device.
[Desire HD Android Development] mad-murdock:
changelog

#9: remove AicBootFix.apk from app-drawer and list of applications. its secret now!

#8: added final(?) AicBootFix.apk, removed old bootfix, removed suspend/resume messages, added hopes this is the final version without issues

#7: reverted the latest patch of hrkfdn on behalf of himself. this kernel now only contains the first and second spi_aic3254.c patches.

#6: switched to hrkfdn's patches - added aicbootfix - looking forward to keep fm enabled.

#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

archive of old bat fix / method - build #5 - do not use unless you got good reason

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
[Desire HD Android Development] coolacrille:
I don't have a mirror but I'll seed this until you update: torrent.

Thanks a lot, this made me try CM7 :)

EDIT: I see you are updating but, anyway - the torrent is #4.
[Desire HD Android Development] mad-murdock:
#5 might be the last - working on sending the stuff google voice search sends automatic on startup

need feedback: anyone notices, auto-power-down doesnt work anymore after it worked once?

do you need to start voice search again to get power down working?
[Desire HD Android Development] alexmason14:
I'm on cm7, latest nightly. flashed latest version battery fix however even after using voice search, terminal always shows the aic3254 chip as on?
[Desire HD Android Development] dannych:
Good on U!

Sent from my DHD Gingerbread
[Desire HD Android Development] shotgunzo:
Noticed. Activated back on some time later.
[Desire HD Android Development] sonydesouza:
Hey thanks so much for the patch !

However, when i try to enter command in terminal emulator, i have access denied ???

Do you know why ???

But when i tap dmesg | grep AIC3254, i have this after voice search activation :

Result:

<6>[ 366.089080] aic3254_powerdown: power off AIC3254

<6>[ 426.296417] aic3254_powerdown: power off AIC3254

<6>[ 486.500854] aic3254_powerdown: power off AIC3254

<6>[ 546.708404] aic3254_powerdown: power off AIC3254

<6>[ 606.913177] aic3254_powerdown: power off AIC3254

Cheers ;);)
[Desire HD Android Development] alexmason14:
Type in su, enter. Then type in the aic3254 status code.
[Desire HD Android Development] sonydesouza:
Oh thanks a lot ;)
[Desire HD Android Development] shotgunzo:
I can replicate the autoswitching on of aic3254pd by playing music through headphones using the android music player..
[Desire HD Android Development] Frustu:
I don t understand how to apply this patch sorry .... Just flash via CWM 3.0.0.6 and restart ?
[Desire HD Android Development] mad-murdock:
this is what you want to see! dsp chip powers itself down when unused. when you hear a sound, you should see another power off short after.

better do the aic3254pd status command described above
[Desire HD Android Development] dmitrych:
I don't have google voice installed, so I activate power off with built-in voice dialer. Works perfect for me.
[Desire HD Android Development] PoseyBAH:
After google voice search and chipset off:

# logcat | grep -i aic

I/AudioHardwareMSM7X30( 1206): aic3254_configure: sound effect (Original)

I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 1)

I/AudioHardwareMSM7X30( 1206): aic3254_configure: sound effect (Original)

I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 1)

I/AudioHardwareMSM7X30( 1206): aic3254_configure: sound effect (Recording)

I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 1, 1)

I/AudioHardwareMSM7X30( 1206): aic3254: change tx mode to 15

I/AudioHardwareMSM7X30( 1206): aic3254_configure: sound effect (Recording)

I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 1, 1)

I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 1, 0)

I/AudioHardwareMSM7X30( 1206): aic3254: change rx mode to 13

E/HTC Acoustic( 1206): cannot open codec aic3254 device -1

I/AudioHardwareMSM7X30( 1206): aic3254_configure: sound effect (Recording)

I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 0)

E/AudioHardwareMSM7X30( 1206): cannot open codec aic3254 device -1

I/AudioHardwareMSM7X30( 1206): aic3254_configure: sound effect (Original)

I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 0)

I/AudioHardwareMSM7X30( 1206): aic3254: change tx mode to 29

I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 1)

I/AudioHardwareMSM7X30( 1206): aic3254: change rx mode to 29

I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 0)

I/AudioHardwareMSM7X30( 1206): aic3254: change rx mode to 13

I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 1)

I/AudioHardwareMSM7X30( 1206): aic3254: change rx mode to 29
[Desire HD Android Development] Chezbel:
No complaint here, just reporting so others know.

I flashed CM7 RC2, but it was still necessary to flash mad-#4-aic3254pd_signed.zip again after that and use Google voice to enable the power off of the aic3254.
[Desire HD Android Development] shah_jee:
Can someone explain in easy dummy guide style how to turn off voice after patching this fix. Thanks
[Desire HD Android Development] Chezbel:
FYI, things work the same as above for #14
[Desire HD Android Development] Chezbel:
I'm assuming that you used Google search and then clicked the microphone. When you are done speaking it should just turn off. If that doesn't help then can you provide more info about what you did and what problem you see.
[Desire HD Android Development] PiCkLeS:
Then you really need to get connected to irc.freenode.net and enter #teamdesire so we can get the details. Very strange.

//P
[Desire HD Android Development] XpressMe:
can someone post a link to the voice search on market pls
[Desire HD Android Development] Fihlvein:
Wrong, mad-murdock said he was not able to reproduce the issue - dsp switched off after calls as it should. Where did you read that?

Also, have you read all posts in the thread? Many people, including me, are confirming that dsp is successfully switched off after phone calls.
[Desire HD Android Development] kshting:
Hey, you are absolutely right!!! So further to my last post and after reading your post, I quickly made a call and .......

# aic3254pd status

aic3254pd status

Power status of aic3254 chip: OFF

# dmesg | grep AIC3254

dmesg | grep AIC3254

<6>[ 1379.842102] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 1 (ON)

<6>[ 2041.801544] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 1 (ON)

<6>[ 2148.272186] aic3254_powerdown: power off AIC3254

<6>[ 2223.211425] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 0 (OFF)

<6>[ 2388.479125] aic3254_powerdown: power off AIC3254

<6>[ 2528.688781] aic3254_powerdown: power off AIC3254

<6>[ 2628.900085] aic3254_powerdown: power off AIC3254

<6>[ 2749.111206] aic3254_powerdown: power off AIC3254

<6>[ 2855.427764] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 0 (OFF)

I'm with you!!!!
[Desire HD Android Development] 1234568:
Here's what Mad Murdock actually said...

Not many people are posting radio versions and whether they use Desire HD/Inspire.

Very few people are doing this. I dont want to sound like I am telling people off but please post radio version as this may be why people are having different outcomes!
[Desire HD Android Development] PiCkLeS:
Yes I have, and im with mad in #teamdesire @ irc.freenode.net

I might have missed something, but right now all info is good info, so then this track is semi-closed when it comes to find a solution. Nothing more, nothing less.

Im not commenting the second question.

//P
[Desire HD Android Development] EmptyArea:
So to clarify, performing a voice search (or using sound recorder?) will keep the patch running correctly regardless of calls. Otherwise the patch will work until a call is received/made, correct?

Swyped on transparent XDA app.
[Desire HD Android Development] XpressMe:
i Use Radio

Radio_12.41.60.19_26.06.04.14_M

on HTC Desire HD with Nightly 15 Build and it DONT WORKS

Dont swtich back after call :-)
[Desire HD Android Development] zepretender:
Where can I get Voice Search without flashing again the rom ? Thank you
[Desire HD Android Development] gururajkg:
I am using

HTC Desire Hd

Radio : 12.28b.60.140eP_26.03.02.26_m

kernel : 2.6.32.28-cyanogenmod-gb1c6cb6

MOD ; CM7 #15

AIC Patch : #5

After the voice search AIC3254 is "OFF" after any number of calls (in/out) till restart.
[Desire HD Android Development] gururajkg:
you are right, atleast it is my experience wihtmy desire hd.
[Desire HD Android Development] a user:
me using 25th February 2011: Radio_12.28g.60.140f_26.05.05.27_M3 on DesireHD

with cm7 nightly 15 and fix #5 and have/had issues.
[Desire HD Android Development] EmptyArea:
Gapps probably?

Also it's in the market. Might need market enabler but I doubt it.

Swyped on transparent XDA app.
[Desire HD Android Development] 1234568:
So at the moment it looks like the radio might be the problem. Mad said in a previous post (quoted below) which version he was using when he didn't have this problem.

Surely this means that someone with the problem can just flash the same radio as Mad and see if the problem goes away?

If it does we know its the radio!

Any volunteers?

I would volunteer myself but i'm an android noob. Just using logic on this one.
[Desire HD Android Development] 2udCrRAZdK:
Open app "Google Search", touch the microphone on the right. If you don't already have voice search installed, it will prompt you to install google voice
[Desire HD Android Development] Chezbel:
If you look at my post #162 you will see that someone has :)

Here are my results:

- radio_12.28g.60.140f_26.05.05.27_M3 aic3254 = ON

- radio_12.28e.60.140f_26.04.02.17_M2_SF aic3254 = ON

- radio_12.35d.60.140f_26.06.03.24_M2 aic3254 = ON

- radio_12.41.60.19_26.06.04.14_M aic3254 = ON

However, it seems like it's not working the same for everyone.
[Desire HD Android Development] 1234568:
Hmmm... I got all hopeful then. I really thought we could just change radio version and solve the problem. :confused:

When changing radio each time did you just flash it and then test aic3254 status OR did you wipe settings/cache, install fresh rom etc?
[Desire HD Android Development] zepretender:
I use Radio_12.35d.60.140f_26.06.03.24_M2

Ship is OFF after a call or when I stop music... but not always. I don't know why ! Sometime, after a call, it stays ON.
[Desire HD Android Development] Chezbel:
Actually, that's a very good question. Since it was "only" the radio I did not wipe or format anything. I really don't know if that would make a difference or not.

You wouldn't normally reinstall the ROM after you updated the radio though and I didn't reinstall Mad's update because it was still there (if "adb shell aic3254pd status" works it's there).

I don't have time to retest right now with doing format cache and wipe Dalvik each time. Maybe later... but no promises right now.
[Desire HD Android Development] 1234568:
If you get the time to test this later that would be great! If not no worries ;)

I would offer but I only rooted my first android phone recently and this is all new to me. I just don't feel comfortable flashing things like radios on a casual basis yet.

If anyone else is very comfortable with flashing radios/roms here's what I suggest...

1) Flash radio which worked for MadMurdock without the problem.

2) Wipe all settings, Dalvik cache... etc

3) Install CM7 #15

4) Install MadMurdock's update

5) Test if aic3254 chip powers down automatically after phone call

Remember for this test to mean anything you MUST have the problem at the moment! If it works fine for you after these steps it suggests radio version is the problem for all of us here.
[Desire HD Android Development] EmptyArea:
I haven't seen anything that contradicts my last post. It's possible mad was wrong about the radio being the fix but something else is involved.

Can anyone confirm they still get the issue after using voice search then making/receiving a call?

Also try wiping dalvik and fixing permissions and see if it bugs.

Swyped on transparent XDA app.
[Desire HD Android Development] robE9:
i just spoke with a friend and forgot about the "workaround" and still getting only 3-6 mA, using 26.04.02.17_M2 radio from leedroid.
[Desire HD Android Development] ghostofcain:
I'm running 12.28g.60.140fp_26.05.05.27_M3, nightly build #15 and mad #5 fix and aci is powering off after voice calls as expected.
[Desire HD Android Development] Fihlvein:
With RC2 & #5 DSP changed off itself after every phone call.

Flashed #15 and #5, now DSP remains on after phone calls. (wiped cache & dalvik)

Go figure. Radio 26.04.02.17_M2_SF
[Desire HD Android Development] LorD ClockaN:
If I flash RC2 Cyanogen and than this kernel: http://xdaforums.com/showthread.php?t=931946

Can I still use #5 patch for battery or is useles to update to above kernel if patch #5 already uses another kernel??
[Desire HD Android Development] 1234568:
Well this puts holes in the theory that its the radio version. I also noted down all the radio versions people have and haven't had working since build #5.

Work

26.05.05.27_M3

26.04.02.17_M2

26.03.02.26_m

26.06.03.24_M2

26.06.04.14

Dont Work

26.06.04.14_M

26.04.02.17_M2_SF

26.03.02.26_m

26.04.03.30

26.06.04.14_M_Test

26.06.03.24

26.06.04.06

There is a huge amount of overlap here also suggesting its not the radio thats the issue.

Finally people running the same radio, with CM7 #15 and Mad's #5 seem to have different outcomes.

This all seems way too complicated for my basic logic! :confused:

We'll get there though... Mad has been quiet for a while. Maybe he will pop up soon and share some genius with us! :p
[Desire HD Android Development] Tantin:
patch #5 IS another kernel
[Desire HD Android Development] Fihlvein:
Actually, now that I rebooted once more, DSP is switching off after several phone calls. Ah well, I guess mad will figure out something soon enough for all of us. :p
[Desire HD Android Development] Giloux1:
Hey MAD, you make your tests with another Radio than this one recommanded by Kali-: 26.04.02.17_M2.:confused:

It's not logical... or confusing.:o
[Desire HD Android Development] swiftscythe:
Radio 26.06.04.14_M_Test is working for me on CM7#15 and patch#5
[Desire HD Android Development] kshting:
Following my post #180 and #186, I made another call and received a call; and the chip is still off:

# aic3254pd status

aic3254pd status

Power status of aic3254 chip: OFF

# dmesg | grep AIC3254

dmesg | grep AIC3254

<6>[ 4730.970947] aic3254_powerdown: power off AIC3254

<6>[ 4758.280731] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 0 (OFF)

<6>[ 4891.176727] aic3254_powerdown: power off AIC3254

<6>[ 4991.379852] aic3254_powerdown: power off AIC3254

<6>[ 5106.400909] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 0 (OFF)

<6>[ 5376.526763] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 0 (OFF)

So in my case, after flashing CM#15 and latest patch, the chip turns back on when making a call the very first time. But subsequently, after using voice search, the chip remains off when making and receiving calls.
[Desire HD Android Development] zantekk:
I'm using the first patch you've posted in the CM Thread and have to say it's just freakin awesome.

100% @ 7am

85% @ 3pm

with normale usage :)

thx!
[Desire HD Android Development] Rosjer:
@murdock

I can confirm this behaviour on my phone, chip goes off at boot, turns itself on after first call, incoming or outgoing doesn't matter and stays on. Activating voice search and it goes back off, did 5 test calls, 2 out and 3 in, it turned itself OFF every time after the voice activation and stayed off.

Using nightly #15 and patch #5, phone stats in sig.

Sorry i can't provide output as i still have issues with my adb :(
[Desire HD Android Development] gururajkg:
The same Behaviour , i had mentioned previously.:)
[Desire HD Android Development] franklin20uk:
Hi Mad, I think your kernel is really helping.

My battery isn't as efficient as others have reported, but I think its due to my own usage.

in stand-by, the phone takes about just under 1% battery per hour, thats with wifi, gps, 3g all switched all. I have my weather widget update via GPS location every 6hrs, and push gmail turn on.

So I think thats pretty impressive, consider that I might be able to optimize it even more due time.

Many thanks for your hard work buddy!
[Desire HD Android Development] lynxboy:
Just want to confirm the same thing written above and also that I found the rotation lock bug presented itself after a phonecall, when previous to patch #5 I hadn't experienced it.

Regards.
[Desire HD Android Development] deconfrost:
running nightlies #13 with modded libsqlite.so and lowest I ever see is -12mA, everytime i run advance task killer it shows me fancy widget and poweramp are running. aic3254pd status off
[Desire HD Android Development] 1234568:
Good work buddy! Slowly we can piece this all together.

I know you have been busy but did you see the other reports like the one below by kshting? :p

Maybe try a voice search and see if you can replicate this finding with your fresh setup?

Thanks again for all your hard work!
[Desire HD Android Development] Chezbel:
Nice suggestion, thanks! Here is some more information:

- adb shell aic3254pd status --> Power status of aic3254 chip: OFF

- phone call

adb shell aic3254pd status --> Power status of aic3254 chip: ON

This condition persists even after several minutes

- Google voice search

adb shell aic3254pd status --> Power status of aic3254 chip: OFF

- phone call, wait about 20 seconds

adb shell aic3254pd status --> Power status of aic3254 chip: OFF

hooray!

- phone call, wait about 20 seconds

adb shell aic3254pd status --> Power status of aic3254 chip: OFF

hooray!

This appears to function the same way as in kshting's case.

EDIT: I forgot to mention that this was with the really new radio 12.41.60.19_26.06.04.14_M, nightly #15 and mad #5.
[Desire HD Android Development] Walker Street:
Thanks :)

I'm really glad you're working on this Mad Murdock. So I've bought you a beer (or beverage of your choice) courtesy of your donate link.

Great work ! :D
[Desire HD Android Development] 1234568:
Were narrowing it down slowly and you offered conclusive evidence!

Thanks again!
[Desire HD Android Development] c_felge:
Hi,

Same for me here!

Exception: I'm using 12.28e.60.140fP_26.04.02.17_M2_SF

Nightly #15 and mad #5

Rgds
[Desire HD Android Development] russellgee:
After flashing my status is always on, unless I turn the phone on silent or also it seems when it is connected to my laptop. I am using phunkycow's cm7 builds.

Radio: 12.28b.60.140eP_26.03.02.15_M3

Kernel: 2.6.32.28-cyanogenmod-gb1c6cb6
[Desire HD Android Development] RazorHail:
I cant flash it...

always getting error status 7.....

whatever that means....-.-
[Desire HD Android Development] spyz88:
A temporary fix I use is to run a voice search right after every boot. I tried all the scenarios and it always turns off after making a call, playing YouTube, etc.
[Desire HD Android Development] Chezbel:
Can someone with #5 patch try this.

- make sure your wifi is not connected

- make sure "adb shell aic3254pd status" gives Power status of aic3254 chip: OFF

- try connecting your wifi to a place you normally connect

For me I could not connect ... until I did this

- make a phone call, which leaves aic3254 = ON

- then I could connect wifi

I would try this again to make sure it's repeatable, but I need to get some sleep...