yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] chn110:
60mA standby battery drain and possibly real solution

On two new builds with 8.5.1 kernels (desire_hd2 and JAWS_MIUI), I was always getting 60+ mA standby drain. Tried numerous things, including turning on airplane mode and killing off and uninstalling suspicious apps. Nothing helped, until these two steps:

- Turn bluetooth on, then off

- Turn GPS on then, start an app that uses the GPS, wait until it syncs, then close the app. GPS can be left on at this point.

After this, it's consistently 6-9mA standby!! So here goes the theory -

WM may have left some device on (e.g., bluetooth and GPS) when when we start Android using Haret which does not perform device power down. Once in Android, the kernel does not power down those devices since it didn't think they were on. So we are left /w the 60+ mA drain. After user turning them on/off manually, it's at this point the kernel does an actually device power down and we are getting a good standby current. This also explains why booting Android quickly before WM is fully loaded helps to get good current some of the time (before wm had a chance to turn on those devices)

Would suggest devs to take a look of the kernel startup code to see if some device should be powered down at kernel init in order to avoid this 60+ mA drain. Also why are we still running CLRCAD.exe before haret? Can it be put in to kernel as part of the device initialization code?

PS: in MIUI bt has to be turned off to avoid the 60+ mA drain. In desire_hd2 it can be left on after on/off toggle. It looks like MIUI leaves bt deivce in some none power saving state when turned on.
[HD2 Android SD Development] hastarin:
Sounds positive. Let's hope you're in the same situation in 48hrs :)

Sent from my HTC HD2
[HD2 Android SD Development] warrington:
Same thing happened to me on the same build as yours (MDJ 2.3 and hastarin 8.5.1), BUT i don't think it's a build or kernel issue. I actually think that it's a Task Killer issue. Do you use Advanced Task Killer or any sort of task killer product? You will need a fresh reinstall of your system now and try working on it without a task killer. So far, my phone is doing ok (MDJ Clean Sense 2.4 + Hastarin 8.5.1) and i did not install any task killer anymore. Try it out too and see if it works for you
[HD2 Android SD Development] shree.cse:
I am currently using 8.5.1 kernel with new cam on Mdeejay Hd 4.3 build. It is more faster and stable than default kernel. Other than this I have a problem, my notification Led is not working even at the time of charging and the keypad led lights stays On all the time the screen is On.

Not the big issue with notification led, because Led me know is properly working. I just want to turn off the keypad led lights after a time out.

Thank you!
[HD2 Android SD Development] jmmmmm:
Interesting... I have all radio devices disabled in wm so when it boots it never turns any of that stuff on. You might want to try that.
[HD2 Android SD Development] iosub:
How do you turn off GPS on wm ?

Iosu
[HD2 Android SD Development] hastarin:
hastarin r8.5.3

I'm trying out cedesmith's desire HD build for now.

I thought I'd release an updated kernel (very minor updates) in a format that should be compatible with his builds.

You can get it here:

http://www.multiupload.com/XY1GCAQ6FE

Changes from r8.5.1 include the following.

Release r8.5.3 - 06/12/2010

- EXPERIMENTAL support for extended battery users (NOT for daily use yet)

See http://bit.ly/eDLk0g for more information

- REMOVED initrd.gz & haret.exe (by now all recent builds are updated anyway)

- REMOVED LeTama's new PPP wrapper and aussiebum's suggested ppp options

The latest builds incorporate these changes anyway, and you can get them from

the original thread - http://bit.ly/92IBH6

- Modified package to suit cedesmiths initrd.gz - http://bit.ly/foZ1j3

- Trimmed changelog to only include recent changes

- Yet another smd_tty patch test

Release r8.5.2Beta - 04/12/2010

- Another variation on the smd_tty patch to see if it prevents crash loops

- Fixed a typo in 99complete file
[HD2 Android SD Development] shree.cse:
Does this kernel supported to use with Mdj's desire HD 4.3 build with normal battery?
[HD2 Android SD Development] hastarin:
Yes it's just setup to auto install with cedesmith's build. It can still be installed on other builds.
[HD2 Android SD Development] shree.cse:
I've tried 8.5.1 with MDJ's 4.3 HD build, It is fast but the notification LED doesn't even work while Charging and the Keypad LED lights stays on until the screen is off.

The Same situation is repeated again with the 8.5.3 kernel also.

Can you please check this issue once?

I don't have this issue with any of the MDJ's kernels.

Thank you!
[HD2 Android SD Development] hastarin:
Did you install the liblights file I included?

Sent from my HTC HD2
[HD2 Android SD Development] shree.cse:
Sorry, I just installed it. Now its fine. Thank you!
[HD2 Android SD Development] Frakatchoo:
Having the same pb with 8.5.1 Kernel (i'm using extended battery).
[HD2 Android SD Development] gear_rus:
Help the poor newb

Sorry, maybe noobish question:confused:, but please help me with this, someone, i'm running out of places to ask in... http://xdaforums.com/showpost.php?p=9618916&postcount=7511:o No matter how much i read, i cant get past it, but im sure something in your lates kernel causes this issue, help is greatly appreciated, THANKS:)
[HD2 Android SD Development] Macelangelo77:
Hi Hastarin,

Thanks for another update of your kernel :)

Just to make sure, it's still just the root folder and zImage that need to be copied?

The change of folder structure raises a few questions, hope you don't mind:

There's an init.kernel.sh script in the root folder (which looks partially like the script below), but will it be run?

I noticed the update folder with the update.kernel.sh script inside, will these be required too when not using cedesmith's build?

In the update.kernel.sh in the update folder I noticed permissions for the modules are now changed to 644 instead of 755 like in the previous readme.txt. Does this only apply to cedesmith's build or is this for all Desire HD builds?

I tried his build three times today, but couldn't get it stable, unfortunately. I saw others having trouble with corruption (process com.android.acore crashing), so finally I gave it a rest and now I'd like to update 8.5.3 on MDJ Froyo HD 4.3.

Sincerely,

Mac
[HD2 Android SD Development] wheeliemonster:
Hello All.

I can't remember when the behaviour of the auto backlight changed but with the later kernels and builds it seems that the screen won't go down to a dim enough level. ie. the lowest level is still quite bright. I know this has solved the pseudo-sod that people were having but I liked to have my screen a lot dimmer. I don't know if it's a kernel thing or lights.htcleo.so or liblights which controls this? Could someone enlighten me as to what controls this and then possibly post an old lights or liblights file if it isn't a kernel-controlled thing..?

Thanks guys.
[HD2 Android SD Development] Perez827:
New Alternative Kernel

Hi Hastarin

Can you by any chance upload a Alternative Kernel for 8.5 for those of us who keep getting random reboots?

Thanks
[HD2 Android SD Development] noellenchris:
which build are u using, I had the same issue, and had to replace the other lights.xxxx.so files also from a newer build. I was using cm6 based from pongsters build and pulled the files from mdj's everyday cm6 build. Then it worked great.
[HD2 Android SD Development] Perez827:
Thanks for your work

A little something. Maybe you can get 2 beers!!

Confirmation number: 4UC03941Y34752017
[HD2 Android SD Development] slbenz:
Hastarin, been going from your 8.5.1 kernel to Mdeejay's 7.6 beta3 kernel on his Froyo HD 4.3 build. At first I thought his kernel may have a slight advantage on smoothness and max battery drain but now I think otherwise. Seems over time your kernel is the most stable with little, if any, lag and more consistent battery drain. Your kernel still shows the fine characteristics of NOT spiking in battery use when the phone is in standby mode. I noticed that the 7.6 beta3 kernel has spikes every 10-15 minutes at around 100mA. Yours doesn't spike much beyond 25mA once an hour. Also, call quality and signal quality is better with your kernel. I am wondering if it would be beneficial for me to go with your 8.5.3 kernel? Your 8.5.1 kernel and Mdeejay's Froyo HD 4.3 build works great for me. Great job you do as always.
[HD2 Android SD Development] hastarin:
Yes copy the root folder and zImage.

The init/update scripts will not be run by other builds. That's why the README has the same instructions for installing on older builds.

Permissions are more appropriate as 644, but I can't guarantee they'll work with other builds.

Thanks for the donation. :)

There should be no need for an Alternative kernel now. I released it because it didn't have overclocking/undervolting, but they are both optional in my current kernel and should not be responsible for random reboots unless you're using SetCPU or undervolting things yourself.

If you're getting random reboots your best bet is to learn how to use andlog and see if you can catch it in Windows Mobile to get the output from dmesg. Without that to debug there is really not much I can do. Sadly the only ones I've seen where folks have this problem (only 2 people have shown logs) show the phone going to sleep as the last thing in the log which doesn't help track it. :(

NOTE: I have not had a random reboot in months.

If you see CPU usage hitting 100% due to smd_tty it might be worth trying 8.5.3 Otherwise I wouldn't bother. It's not a huge upgrade, and may still not fix that problem, that's why I haven't updated the first post with it.
[HD2 Android SD Development] cezzarmicu:
lights.htcleo.so / led notification

Hi Hastarin,

I would like to ask if there's already a newer lights.htcleo.so that comes with your kernel?

When using mdeejay's HD build with its default kernel (smartass governor 7.6), the build gets a bit laggy specially while scrolling through pages, but the led indicator works perfectly (it blinks green for messages, etc, and green/orange for low bat indication). However, the led stops working when I use your 8.5.1 release - but on a positive note, the build gets to run much smoother :)

Thanks ;)
[HD2 Android SD Development] Perez827:
Awesome thanks for the response. I will look into that and see if I can find the issue behind these reboots. I'm currently trying mccm 2.0 desire hd build and haven't had a reboot yet , Although its too early to come to any conclusion. Thanks for your work, you and the devs have definitely helped unleash the true potential of this phone. Keep it up.
[HD2 Android SD Development] wheeliemonster:
I'm using a build based on michy's v2 nightly but using a passion nightly system from about a week ago. I'll have a look at mdj's everyday cm6, thanks. Much appreciated.
[HD2 Android SD Development] chris-m:
hello hastarin ;

I am a fan of your work, I would like to ask you for a small favour, you please integrate the patch for boost the sound of some db. thank you friendly. :)
[HD2 Android SD Development] noellenchris:
I attached the files you can use. You'll have to put them in a folder on you sd card from wm. Android/root/system/lib/hw just extract them on your computer and use activesync to transfer them to the above folder and then boot into haret. You can delete them from the folder after that. I think it was the sensors.xxxx.so file that I replaced but you can use all the ones I zipped up for you.

Chris
[HD2 Android SD Development] GeoMil:
If I am having data issues, should I apply LeTama's Wrapper, or is this already incorporated in the kernel?

Cheers
[HD2 Android SD Development] vhaakmat:
Where to go from here?

Hi,

I have an HTC HD2 (Southeast Asia) and loaded Android 2.2 from mdeejay version 2.6.32.15.S6.1-g3d3a701.

Baseband: 15.42.50.11U_2.15.50.14

What next version should I use?

Thanks

Vince
[HD2 Android SD Development] wheeliemonster:
Chris, you are a legend. It works exactly as I want it to. Thanks for your time and effort.

Regards

'monster

PS. And thanks to posting this message of thanks, I have achieved the status of Senior Member. I must be too old for this!!! :)
[HD2 Android SD Development] Panda_Face:
The charging LED...

Through my process of changing kernels, builds, and setup of Android on my HD2, and finally getting it where I want it, I've noticed my top speaker LED isn't behaving properly. It doesn't turn Amber when I plug it in to charge and it does not blink when i have a notification, it turns on to the solid green color and stays that way until I clear the notifications.

Does any one know how to fix this problem -- Amber color while charging and blinking while there are notifications?

Thanks in advance!:)
[HD2 Android SD Development] slbenz:
Hastarin, thanks for the reply. I will keep it on your 8.5.1 kernel. Works great!
[HD2 Android SD Development] Salvestro:
Can i use this kernel with MCCM HD 2.0? THANKS ;)
[HD2 Android SD Development] frits141:
Using Hastarin 8.5.3 with MCCM HD v2.0, Very fast! FYI; Quadrant 2050!
[HD2 Android SD Development] Frakatchoo:
There a recursive problem when i change the normal battery to extended battery and vice-versa, I have a lot of application forcing to close on startup (Super User, Smart Keyboard, Folder Organizer, ...), this makes the phone unusable ! Any idea ???
[HD2 Android SD Development] bigsapp1:
Hastarin I been running your r8.5.2beta since release and it is great. No more random reboot issue. Should I try r8.5.3?
[HD2 Android SD Development] hastarin:
If you're talking about my r8.5.3 I did say the extended battery support was EXPERIMENTAL. That said, I haven't had a corrupt build like it sounds like you have.

My guess would be you aren't shutting down correctly between changing batteries. Make sure the phone has definitely shut down, or use the reboot option and wait for the vibrate before removing the battery.

Well I did manage to crash smd_tty still (though without the kernel tweaks I include) so I'm trying an alternative patch again in r8.5.3 It's up to you. It depends how easy you find it to upgrade. :)

The problem here is mdeejay has gone with the new LED drivers. They work but you loose the auto brightness. I've decided that partially working LEDs (boot with the cable in) and a responsive auto brightness is what I want for now so when switching between our kernels you'll need to change the lights.qsd8k.so file (or whatever it's called in your build).

I was hoping the guy that did the new LED driver would get the auto brightness issue fixed so I could release an update with both, but sadly he hasn't done so.
[HD2 Android SD Development] Frakatchoo:
I'm talking about the 8.5.1, and yes my phone is really shut down when i'm changing the battery.
[HD2 Android SD Development] hastarin:
Why I said that is the screen goes black on shutdown/reboot for quite a while before the phone is actually off/reboots. If you're in a dark room you'll notice it.

If you're using a build that is mounted without sync (async) you might want to try a different initrd that's mounted with sync again.

If you're undervolting/overclocking, don't.

If none of that applies/works then I'm afraid I have no ideas.
[HD2 Android SD Development] Frakatchoo:
I'm using "MDJ FroYo Sense Clean v. 2.4", any problem with this build ?

I'm going to format my SD and re-install all android folders, using the last 8.5.3, and keep you informed.

I have see new builds, and i search for the best "clean" htc sense build, any proposition ? Thx ++
[HD2 Android SD Development] nobnut:
Kind of a workaround but this will sort your LED issues right out.
[HD2 Android SD Development] Panda_Face:
Thanks for the insight and workaround! It's too bad he hasn't developed for the auto brightness yet, I need that as well. And the workaround is making my LED's dance! Again thanks to both of you Hastarin and Nobnut :)
[HD2 Android SD Development] rafpigna:
@hastarin

I just made my own rom based on htc desire stock. I'm using your 8.5.1 kernel.. all seems to work but App2SD not. I means some apps (like angrybirds or google sky map) doenst installa unless I unmount the Sd.

did you know if I have to apply some tweak to some component/file of the build to have app2sd working?
[HD2 Android SD Development] fallenangel408:
help!?!?

so i went to write text message from my message tab and i clicked the person icon on the right side of who to send to, and it said contacts or es explorer? i accidentlly hit always es explorer...i want it to be my pic gallery but i cant change it?!?! how do you change it after you set it :confused: thanks!

*also i get at least once a day that i recieve a message when phones locked and keys blink, led blinks but screen only black wont do anything have to take battery out and reboot?!?!? any ideas? it also does it on calls every now and then?! if its anything to do with sync i only have my weather able to auto sync, nothing anything else
[HD2 Android SD Development] sorodrigo:
8.5.3 has a bug in the extended battery does not indicate the correct percentage and the battery runs out quickly.

not 100% compatible with the sense of desire hd

is error in the battery charge

I think the errors are driver compatibility extended battery
[HD2 Android SD Development] hastarin:
No idea sorry.

Like I said. The support for extended battery is EXPERIMENTAL and Alpha!

If you follow the included instructions (charge to full in Android) you'll find it will actually last quite a while before shutting down, but the percentage is totally wrong. It will spend most of it's time below 10%

I'm aware of this, but not much I can do about it for now. The amount of time to change this driver to work correctly is more than I have. You'll notice the Desire HD does NOT have an extended battery available. Unless HTC release an Android phone with the same battery monitor chip and extended battery support we may never get it.
[HD2 Android SD Development] hastarin:
r8.5.1 Downloads by version

Folks I thought I'd share some data with you.

I wanted to graph the downloads of the various versions to get an idea of how many people are using which versions to decide if I bother continuing to build the other versions. Obviously this doesn't include builds that come with my kernel as it's only those that Multiupload has logged.

So here it is:

I guess there are quite a few of us out there using Android on the HD2!

My conclusion is that I'll continue to release the other versions, at least for the short term.
[HD2 Android SD Development] hastarin:
r8.5.3 versions released

I just released various versions of r8.5.3

Enjoy folks.
[HD2 Android SD Development] hd945157206:
first haha download try............ thank you
[HD2 Android SD Development] nghj:
the link for r8.5.3_oldcam is wrong. its the same with r8.5.3_eb_oldcam - http://www.multiupload.com/X6ZTQ9S2ER
[HD2 Android SD Development] atoore:
Thanks for adding the old cam EB support hastarin, Im really appreciated. :D
[HD2 Android SD Development] Kazz88:
Kernal

hi is it the same as before? jus copy the fles to the root of the android folder?
[HD2 Android SD Development] hastarin:
Thanks the correct link is:

http://www.multiupload.com/KTF4ULINT3
[HD2 Android SD Development] leaskovski:
Good question. I see the installation procedure has been removed from the readme, so does that mean we have to install it differently?

I guess we still copy the root folder across, but what about the update folder?
[HD2 Android SD Development] santu001:
Thanks for your update.

After being a dedicated Hastarin fan, i switched to mdj since his s3.

But now i'm back to yours, which at the moment is better IMO.

Now updating from 8.5.1. to 8.5.3...

Booting up Android..

Wow, i never seen such a fast bootup, also your kernel is much smoother then MDJ's latest versions. Great work

Just one question?

I'm using MDJ Froyo 4.4 and i only updated zImage and the modules using root explorer from your kernel. I've found that charging led didn't work(v8.5.1), Allthough it charged fully (through pc usb). Do i need to copy your version of lights? or anything else for that matter?

Not that big a deal, just curious.

Anyway a big thank you for all your efforts and sharing that with the community.;)
[HD2 Android SD Development] hastarin:
Sorry folks. I meant to put some info up and forgot about it.

I'll update the first post shortly.

Yes, backup your existing one first though. If I ever update to the new LED driver it will be needed.

You can do it yourself. See the undervolting link in the features section of the first post. If you want more than that I'm afraid you'll have to look elsewhere. I won't be releasing a kernel with voltage over 1.35V
[HD2 Android SD Development] hastarin:
HOWTO Install the kernel

I forgot I'd taken the information out of the README.

You can follow the information on the Wiki or the following...

All builds

Optionally backup your /system/lib/hw/lights.*.so (typically lights.qsd8k.so) file using an app like ES File Explorer

The modules and lights.qsd8k.so file should be copied in automatically. If they aren't you may need to install them manually using adb shell, or an app of your choice.

Your lights file might be called something other than lights.qsd8k.so If that's the case you may need to rename it after it's installed. You can run the following commands to rename it (eg with GScript Lite). I tried adding them to the update script but unfortunately getprop doesn't return a valid value at the time the script is run.

mv /system/lib/hw/lights.qsd8k.so /system/lib/hw/lights.`getprop ro.board.platform`.so
chmod 0644 /system/lib/hw/lights.`getprop ro.board.platform`.so

Builds based on cedesmith's new initrd.gz

Extract the files to the build folder (ie where you have haret.exe, etc)

Optionally delete the devs folder

Reboot (not hot reboot)

Optionally run the lines shown above to rename the lights file or do it manually. Probably not needed for most builds.

Other builds - these have a rootfs.img

Encourage your build author to update to the new initrd :D

Extract the files to a temporary folder

Copy the zImage and root folders to your build folder

Reboot (not hot reboot)

Optionally run the lines shown above to rename the lights file or do it manually. Probably not needed for most builds.

Make sure you run the following 2 lines on startup (they tweak kernel memory so PPP is more stable). You can do it manually with GScript Lite or edit an appropriate file (eg 99complete) for your build.

echo 8 8 > /proc/sys/vm/lowmem_reserve_ratio
echo 8192 > /proc/sys/vm/min_free_kbytes
[HD2 Android SD Development] santu001:
Thans Hastarin's. That did the trick. LED working now.
[HD2 Android SD Development] cncheng:
Thanks for the new builds.

Downloading...
[HD2 Android SD Development] lukesan:
Hastarin, super.

About the EB version should we report something back that might be of use for you?
[HD2 Android SD Development] hastarin:
No thank you.

The eb versions use the old driver with my old eb patch.

The non eb versions have my EXPERIMENTAL patch, but I'm well aware it's not working properly.
[HD2 Android SD Development] ala380:
Thanks for your continued work hastarin. I'm looking forward to testing this out for the smd_tty patch since I have the memory issue. I'll let you know how it goes :)
[HD2 Android SD Development] :
The newer 8.3 says "update'. So do we not replace the whole root folder on the sd card? I normally delete the root and zimage and then copy over the new one. But idk with this one.

Sorry. And thanks.
[HD2 Android SD Development] anthnhlt:
Desire HD

Is the 8.5.3 that was released on 12/9/10 the same as the 8.5.3 that was released on 12/6/10? Which version would be compatible with the Desire HD builds? When I try to use the old_cam version, I get menus in the camera but a black screen. When using the 12/6/10 version of 8.5.3 nothing special was done. Just copy and paste into the Android folder.