yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] hastarin:
No worries. I've given up hoping that posts here would be relevant to just my kernel changes. It seems it's becoming the default thread for kernel issues. :(

The problem is without people testing the default EVO autobuilds it's hard to tell if it's something I changed or if it's in the main tree. That's why I mostly ignore the posts now. ;)

You're correct. The only battery related change I can see is that the TS now gets a bit more current to help prevent freezes. It's only a few mA though and whilst it might mean a bit more drain with the screen on, it shouldn't affect charging.

No. I just updated my changes based on those from huanyu and michyprima.

More info here:

http://gitorious.org/~hastarin/linu...mmit/56aad1fd46fa288477406ef92ff7cab9ca0e72e3

I have no idea on the battery driver. It seems we only have the option of FAST/SLOW/OFF in terms of charging. I'm experimenting with a change to let the battery FAST charge to 100% instead of 99% That doesn't seem to have helped. It stopped taking charge at 99% anyway it seems, or it was taking it very slowly. I may revert that code yet, or put the other version I was trying of switching to a SLOW charge at 99%

Either way I won't be releasing another kernel with my changes until I've done more testing myself.

As to why rebooting in to WM "fixes" things, my best guess is that when you reboot in to WM it adjusts the offset for the ACR (Accumulated Current) values which boosts the indicator to 100% Ie I'm guessing WM is adjusting the offset based on the "health" of the battery, whilst the driver in the kernel doesn't. But that is VERY MUCH just a guess.

NOTE: Not everything I've committed to my git tree is in the released kernel. Sorry for any confusion there.
[HD2 Android SD Development] sorin129:
Hastarin I'm a big fan of you. Thanks for all your work.
[HD2 Android SD Development] dneto:
hastarin,

I'm having the same problem with 7.6. Using normal until 7.5 with Mdeejay FroYo Sense 3.1, i think this Build is PPP, not RMNET.

Any suggestion?
[HD2 Android SD Development] hastarin:
Thanks. :)

Only the usual. Check you've installed the modules correctly and check your APN settings.
[HD2 Android SD Development] mfish123:
Observation / Fix regarding standby drain and switching kernels

I just tried huanyu kernel found here: http://www.multiupload.com/ZJQ4LSZDY8

The scroll lag is worse with huanyu but the standby battery drain indicated by current widget is better <8 ma (with only data on). BT WIFI and GPS off. With 7.6 I get 30 - 60ma.

Here is the sequence: I was running 7.6 and then switched to huanyu kernel by copying files to phone and then rebooting. I then used setcpu to autodetect the cpu after rebooting with huanyu kernel installed. I then copied the 7.6 files back to phone and rebooted back to 7.6 and have NOT done an auto detect with setcpu once rebooting back into 7.6. I'm now getting <8ma in standby with 7.6 back on there!!

Maybe it has something to do with rebooting and some of the code in the other kernel is staying in memory. Maybe the setcpu autodetect with huanyu running. I've been logging it with current widget for 20 minutes back on 7.6 and consistently getting under 8 ma in standby.

I had a similar thing happen in the past. I had scroll lag with 7.1 and was using 4.1 as my daily driver. Battery drain better in 7.1 than in 4.1. Using same procedure as above I went from 4.1 to 7.1 back to 4.1. Now that I've seen the same phenomenon twice a light bulb went off.

Hopefully some of those that know more than me can use this info to keep tweaking things.
[HD2 Android SD Development] famewolf:
Auto Brightness App in Market

Those having problems with the light level may want to look at the Auto Brightness app out in the market.it's free..it adjusts light level based on battery but also has a "night mode"...more info here:

http://www.appbrain.com/app/auto-brightness/battery.brightness
[HD2 Android SD Development] hastarin:
Maybe it's not related to the kernel at all. I get 6-8mA standby with my kernel, and always have.

The ONLY thing you've indicated that might affect battery drain is your SetCPU profiles. NOTE: I do NOT use SetCPU with my more recent kernels.

I do still run Autokiller on the "Optimum" profile, but it's probably not needed either.
[HD2 Android SD Development] famewolf:
Hastarin, you may want to take a look at "watchdog" which doesn't act as a normal killer but WILL notify you of apps that use an excessive amount of cpu....allows whitelisting etc....

http://www.appbrain.com/app/watchdog-task-manager-lite/com.zomut.watchdoglite
[HD2 Android SD Development] ghis1:
I've tried your new Kernel 7.6 on two different builds and my signal strength seems to be so bad that I can't really use it... The version 4.1 doesn't seem to have that problem, so I guess that I'll stick with previous versions unless there's a way to fix this... I'm using radio 2.12.50, but I doubt it would really be the problem since the old version of the kernel is fine... anyways thanks
[HD2 Android SD Development] mfish123:
Very good point - that's why you're the man making this all happen. It sounds the fact that I did not use setcpu on my latest swtich to 7.6 is what did the trick and nothing else. It wouldn't have mattered what kernel was install previously.
[HD2 Android SD Development] hastarin:
Thanks, as you probably know Autokiller just tweaks the thresholds that the oom manager kicks in at.

I do, rarely, use System Panel to manually kill anything I consider to be misbehaving since I know what I'm doing with it. I guess that app might help bring such things to my attention but someone as prone to tweaking and monitoring as I am atm probably won't get much out of it. :p
[HD2 Android SD Development] RobertsDF:
@ hastarin,

I'm having this same problem with 7.5. Most of the time the signal is fine but quite often it will drop to two bars and then loose signal completely. It then takes 30 seconds or more to get a signal again. I missed at least three calls over the last 24 hours because there was no signal.

I know I missed them because I have voicemails from them. but my phone doesn't show any missed calls. I've never had this problem with any other kernal. Any idea why?

I'm on AndroidMedaUltimate and radio 2.15.
[HD2 Android SD Development] hastarin:
No idea sorry. I have heard mixed reports for 2.15, perhaps try 2.14 instead.

Also you may want to try my Alternative version instead. Perhaps the overclocking/undervolting/AXI is causing you issues.

I'm on Telstra here which, whilst more expensive, has great coverage. I've driven for 30 mins through the outer suburbs here without loosing connection via 3G.
[HD2 Android SD Development] pappadj:
I have been told that Hastarin doesn't work well with Cyanogen based Roms and that EVO PPP is what what you want to use with Hastarin. Darkstone and HyperDroidSense for instance.
[HD2 Android SD Development] RobertsDF:
I'll try both your suggestions and see if that fixes the problem. Thanks!
[HD2 Android SD Development] hastarin:
Just to clarify the only issue I know of with CM6 builds that have been PPP enabled is with Bluetooth not working. Perhaps there are others but that's the only one I'm currently aware of.
[HD2 Android SD Development] m_segura420:
sorry hastrin for this unrelated questiion but this is the only thread i seen word of this exoverclock where can i get more information on how to obtain this ?
[HD2 Android SD Development] hastarin:
As far as I know, unless you're going to build your own kernel you can't. I'm not going to release a kernel with it built in and I am pretty huanyu and michyprima haven't and won't either.

If you want to build your own kernel see the FAQ in my signature.
[HD2 Android SD Development] CR5N:
Hi Hastarin,

Been using mattc1.8 unchanged for a while which was ok. Used your 7.5 since you released it and very impressed. I have noticed that the notification LED is working (green blink). This is the best combo I have used and I have not run WM on this phone for weeks.

Many thanks for your work, appreciate the effort you put in.

Sent from my HD2
[HD2 Android SD Development] Dominion99:
@Hastarin

I don't know if this related to the kernel, but in previous kernel build my bluetooth phonebook was not transfered at all, I upgraded to 7.6 but also update to Mdeejay eVo Sense Warm v1.1 Warm build (was using 1.0 warm) In their changelog is nothing stated about bluetooth, I have only seen some kernel changes that relate to bluetooth. That is why i ask is this changed/fixed in the kernel somehow.

Because with the combination now the phonebook is transfered finally! The only thing that was annoying me is finally fixed, however the contacts are transfered strange (the displayname, and additional comma's).

How can I change the behavior of what is transfered via bluetooth, cannot find any settings within bluetooth that can change this

Thanks for your time and keep up the fantastic work you are doing on the kernel
[HD2 Android SD Development] Dominion99:
Also noticed something else, the InCall volume is very, very loud I can sometimes hardly keep the phone to my ear. Pressing the volume down does not work. It is not even at the minimum. But it won't change or go down.

Is there anywhere else where i can change this in call volume?
[HD2 Android SD Development] m_segura420:
not quite ready to tackle that just yet but i would like to update the kernel with new commit for higher overclocking speeds how would i go about doing that ?
[HD2 Android SD Development] santu001:
I must say that now after a couple of days, i'm really loving this kernel.

I get really good battery life, even with setCPU + profiles and taskkiller, mostly arround 5ma. Maybe because i did the charging solution. (taking the battery out for more then a minute) It now gives me 100% every time i charge.

I do always boot with backlights on.

I still have to go into airplane mode to get stabile data, but that's just once.

After always been on michyprima with most builds, i'm now a hastarin addict.:D

Mainly because you're always updating your kernels and giving people feedback on this threat. And least of all, your kernel...

Keep up the good work, and thanks for that.;)
[HD2 Android SD Development] Frakatchoo:
Finally 7.6 is not stable for me, lot of randoms reboots (FroyoStone 3.1, Radio 2.14). 7.5 is nice, but i have a Wifi error.

Will try it under FroyoStone 3.2...
[HD2 Android SD Development] dneto:
haha sorry boss. :D

My data plan was gone. :P Sorry! :p:o

Now is working well. Just sometimes a little freeze in data, music skipping. :D Almost perfect.
[HD2 Android SD Development] hastarin:
If you're getting random reboots you should try my Alternative kernel. Your phone/battery probably can't handle the overclocking/undervolting.

Sent from my HTC HD2
[HD2 Android SD Development] dbh369:
Just an update, running 7.6 for a day now, and I've noticed a few things. I seem to have a lot more Edge and a lot less 3G/H. In some ways this has been good as it keeps the data connection alive instead of dropping it as much. This is really hard to be definite about since weather, changing seasons, and all can affect reception in these less well covered areas, but FWIW.

I do still get dropped data connections. In some cases, I can quickly restore by long-press hangup and turn data off, then on. In some cases though, this doesn't affect the data connection, and I can't even apparently enter airplane mode. Then only a restart will work to restore data. The latter case *may* be related to another program I run, I'll do more testing on that.

Lastly, I still have my intermittent BT headset issue, where I can answer calls wtih BT no problem, but initiating them I only sometimes get audio through my BT.

I appreciate the work, and am loving the updates. Wifi works great, flash, still a little music skipping but I usually stream music so thats ok. And I really appreciate the 'customer service' (i.e. responses on the thread) too, thanks! :D

PS: donated to KD, thanks again for the great work
[HD2 Android SD Development] Spirit81:
Hi,

I am using 7.6 version with Mdeejay eVo Sense 1.7, I like that rom, everything is smooth and nice, but I can't switch between GSM only and GSM/WCDMA auto.

after I seclect GSM only, menu goes in grey and stop on that.

Now I tried using code *#*#4636#*#* and when i go in settings, network mode is GSM only, but on taskbar I have "H"

Do You know maybe where could be problem? Is it kernel or ROM?

thx for help
[HD2 Android SD Development] noellenchris:
Hastarin, if you find some time, could you build a kernel with this in it?

http://appanalysis.org/download.html

Here is a video also about it.

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

thanks for your work!
[HD2 Android SD Development] jmmmmm:
I'm concerned now. Who ever developed Angry Birds knows everything about me now! :eek::eek::eek:

But seriously... I want TaintDroid (please don't confuse that with wanting taint... No one wants that). :)
[HD2 Android SD Development] fallenangel408:
7.5 to 7.6...

7.5 worked great! i tried the new 7.6 and get problems with my tmobile carrier(ie when i pull out of my pocket after awhile it says no service...then after few seconds i get service?!?!?) ive tried diff radios...and reinstall, same thing guess i go back to 7.5 BUMMER i liked the new 5m camera feature and flash is working on time, any advice thanks and BLESS!
[HD2 Android SD Development] hicube:
If you are using the same build as I am. What I find helpful with the dropped data connection is to change the settings in phone info.

Try typing * # * # 4636 # * # * in call screen and go under phone information, change setting to " gsm auto ".

________________________

Tmous stock rom v 3.14

Radio v 2.14
[HD2 Android SD Development] anush.isaac:
Hi Hastarin, All,

First let me thank you again for your great Kernels, I am a fulltime user of your Kernels..

I recently updated to your r7.6 and I would like to ask you a few questions

1) I was using SetCPU profiles with your previous Kernels, but I saw somewhere that you told its not required so I stopped. Should I actually have SetCPU profiles to see better Battery life?? Also what is your take on Advanced Task Killer??

2) I am currently on the latest Radio 2.15.50.14, is this Radio fine or would your recommend me to downgrade to 2.14. (I am using mattc leo 1.8 with Energy Win Mo ROM)

3) Anything in the Kernel that would ease the data drops??

I know that different configurations work differently for different people but it would be great if you could confirm....

I will update my performance results.. Thank you
[HD2 Android SD Development] dbh369:
Dropped data fixed?

I am using the new wrapper http://xdaforums.com/showthread.php?t=794309 and so far have had NO data drops today in my office where it often crashes. I did NOT change the CDMA preferences, and am using task killer and SetCPU and 'stock' DNS.:D

Some comments in the thread indicate more mumbo jumbo needed, but this was sufficient for me.

BTW, this isn't a kernel fix so please follow up on the referenced thread.

Editted: 36 hours straight without a drop now!
[HD2 Android SD Development] rafpigna:
Hello

no problems here with 7.6 from 24h

Just a question: how is the Notification LED supposed to work?

I means: my HD2 is in standby and I receive an SMS or a mail or a dropped call. The LED shoudl blink until I not delete the notification? Because in my case it blinks just one time.... :rolleyes:
[HD2 Android SD Development] sydneybelinda:
For me this Kernel seems to have fixed my biggest annoyance - Waking up.... The phone now seems to wake up and sleep correctly when you press the end button.. You no longer have to hit it a few times or wait a few seconds for it to wake up.. WOOHOO... thaniks! :)
[HD2 Android SD Development] oworsnop:
I was hoping updating this kernel would mean the same for me but.. no joy!

May I ask what build you are using?

Cheers
[HD2 Android SD Development] themadproducer:
Talking about Led Notifications, I could not get them working without 3rd party apps.

I had them working at one point with previous builds of Froyostone/Hastarin but even then, they behaved rather flaky.

I have tried the app "Blinker" once again, which worked in the past but not now. I also just finished trying "Missed Reminder" and had some success. I set to blink every 5 seconds for SMS using Green LED. I have noticed from past testing, that you even if it initially worked, if left for a few hours, the blinking would either cease, stay on full or behave erratically. Not sure this time around but unfortunately power consumption in standby is between 55-60ma which is not acceptable anyway. (compared with 5-8ma) So I will not be using this app.

So for now, now LED notifications. Ideally, I would like the blink to be extremely short, like a super fast pulse with 3-5 seconds between blinks and hopefully resulting in minimal battery drain.
[HD2 Android SD Development] hastarin:
The kernel should have no affect on the radio unless undervolting the CPU is also somehow undervolting the radio. I've suggested to a few people with signal issues to try my Alternative kernel but haven't had any feedback to know if this may be the case.

Thanks for donating to them! :D

I'm afraid that it looks like more than just a kernel change. It would involve an ext2 formatted SD card (which would need NAND) and a suitable build as well.

That and I'm not nearly as paranoid as most people. :)

Apps already tell you what they want access to when you install them. If you're paranoid don't install anything that has more access than you'd like.

I can't see how the kernel can affect radio/signal. That should be controlled by your radio version. Particularly between 7.5 and 7.6 If you'd gone between a normal kernel and my undervolted one I'd suggest trying the Alternative instead.

1) SetCPU will have minimal (probably not noticeable) impact on battery life. The default setting of 245 Min and 1113 Max with the interactive governor will only "speed up" the CPU when it needs to for getting something done. Due to AXI it will also switch to a lower clock speed when the screen is off. Using SetCPU may actually prevent that (I'm not sure though).

Advanced Task Killer - Simple, DO NOT USE IT! CPU power is used to launch an application. By killing an application you're actually using power to free it, and power again to launch it. Unless the app is actually a problem application and chewing CPU for some reason, you should not need to kill it.

I use System Panel to monitor my application manually and occasionally kill something I don't want running anymore (eg a game with adverts that won't let me quit it).

If you feel you MUST run some sort of "task killer" then I'd recommend AutoKiller Memory Optimizer. I currently run it on the Optimum setting, though it really shouldn't be needed either. I just feel better with a bit more free memory.

2) Some people have found 2.15 is more prone to data disconnects and signal issues. It depends where you are and what your providers coverage is like. If you're having issues by all means try 2.14 I find it works well for me so I've stuck with it for now.

3) Data drops are a combination of Radio and PPP with this kernel. There have been no "fixes" I've seen for data issues. gauner1986 is the one working on the wrapper code and has requested more logs (logcat | grep -i ppp) from those getting disconnect issues. There is a thread by noellenchris with more information.

It's not currently working. Sadly it just flashes once as the notification arrives atm. gauner1986 was looking in to it but couldn't see an easy fix.
[HD2 Android SD Development] sorin129:
Hastarin just wanted to let you know how i fixed my data drops. with this fix here:

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

so it was not the kernel because now after the fix i'm still using your kernel and no data drops all day. That is amazing. I never had that before. Now I can say that my phone works just as good as my Nexus One. everything perfect. everything works 100%. :) I don't think I will change anything else on my phone in till nand comes out and is stable.

Thanks again for your work and all the devs out there
[HD2 Android SD Development] hastarin:
Possible fix for BT on CM6 builds with EVO kernels

It seems with more recent CM6 based builds getting BT working with the EVO kernel may be as simple as modifying the init.rc to remove "--enable_lpm" from service hciattach. This is an example of the changed section courtesy of Cass: http://pastebin.com/LX1Wj7ec

NOTE: This requires an init.android that correctly creates /dev/ttyHS0 I've attached the one Cass is using.

To save too much fiddling you could perhaps use the rootfs.img from darkstone. Get it here: http://www.multiupload.com/HF6P5O71SX

I'll be PMing a few CM6 builders a link to this post. Hopefully we will shortly see CM6 builds that work just as well as Sense with the newer EVO kernels like mine!

NOTE: I do NOT use a CM6 build, so I'm just relaying information from #htc-linux-chat
[HD2 Android SD Development] jgocela:
You're probably right since I installed it on another build and works perfectly.
[HD2 Android SD Development] drizztzou:
With latest 2.6 kernel, I have one question regarding the battery life:

I use currentwidget for several hours and it always shows 3mA~7mA, but battery life is dropping like 1.5% an hour (the phone is in standby), the battery should have 1230mAH which means if the 3mA~7mA value is true, battery life should drop less than 0.5% an hour when in standby, did I misunderstand anywhere?
[HD2 Android SD Development] sydneybelinda:
I am using the MDeeJay Evo Sense 1.7 Build. This build is really fast too..
[HD2 Android SD Development] illuzi0n:
v1.8 has been released btw ..

im using MDeejay Froyo HD 3.6 build works flawlessly with it aswell ;-)
[HD2 Android SD Development] RobertsDF:
Willing to try this. where does the init.android file go? also where is the init.rc file?
[HD2 Android SD Development] RobertsDF:
I went back to radio 2.14 and also switched to your alternate version. So far my signal problems seem to have been fixed, but I'll keep you updated.
[HD2 Android SD Development] hastarin:
The post is more for the guys building CM6 based builds. If you have to ask you're probably better off waiting for one of them to update their build. ;)

Thanks for the feedback. I'd be curious if you find it stays good for a few days if you then change one of the two things (either the radio or the kernel) again to try and isolate the cause.

Ie if it has indeed fixed your problem I'm curious if it's the OC/UV/AXI kernel or the radio that was causing it.
[HD2 Android SD Development] Reignzone:
This is pretty interesting... and I'd love to see this progress. Considering, I am one of the few that actually keeps a CM6-based build on my SD card, just in case I'm feeling dangerous. ;)

Anyway, if this is eventually fixed, that would be wonderful!
[HD2 Android SD Development] RobertsDF:
Haha, ok. I'm starting to learn making builds but just barely so far.

I'll see how it goes over then next couple days and then try that out.
[HD2 Android SD Development] PSH:
I have no luck with recent kernel.

With both 7.5 and 7.6 I have wifi error.

Only sticking with 7.4 I have wifi working.
[HD2 Android SD Development] hastarin:
Unless you're failing to update the modules I can't see why.