yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] warrenb213:
marc and i found the reason behind the issue here real quick today.

a fix for something ended up being a bit too vicious. lol
[HD2 Android NAND Development] theslam08:
Good observation, I have setcpu installed and didnt even notice O_O....ayayay. Changed to interactiveX (from performance) and bam, the numbers changed. Yup, should fix the 2 hour batt drain issue lol, thanks!
[HD2 Android NAND Development] Tsumi:
Good to know, perhaps we'll see an update soon? Thanks for all your great work!
[HD2 Android NAND Development] mike2nl:
That means that marc can look now to these settings, so as i am. I hope there is something to find.
[HD2 Android NAND Development] marc1706:
The cpu is scaling fine. For some reason the device starts having a 85% cpu load after a while.
[HD2 Android NAND Development] Sneakyghost:
Interesting read here :D

Currently on TBD 3.2 and while a lot of people there suffer from the high drain I actually observe the lowest ever (on TBD) standby figures (2-6 mA) and sort of alright values when in use. I use smartassV2

I also have problems with wifi waking up occasionally.

I could not test hidden wifi access.

Sent from my TBD Runny 3.2
[HD2 Android NAND Development] manu33xtro:
hi all, i'm using TBD with clk and i have not problem with battery drain... maybe just an issue with magldr ?

And to say that's wifi hotspot doesn't work anymore : i can get a very good connection but impossible to get internet !! i tested it with my pc and tablet and same problem...

And when you want to move to wifi for 3G, impossible to get 3G except when to set airplane mode...

thanks for the rest.

edit1 : don't know why but i installed magldr version of dansta rom and now it works in wpa2 mode... well sorry for maybe false news in clk mode but i don't have much time this night to test again in clk mode. maybe tomorrow but dansta confirm it works...

thank you a lot for your hard job for us
[HD2 Android NAND Development] marc1706:
First post has been updated with a new version. :cool:
[HD2 Android NAND Development] vhjc:
So, no more WiFi hotspot without 3rd party app? Is this the thing why the high battery drain was?

---------- Post added at 07:26 PM ---------- Previous post was at 06:27 PM ----------

Well, yes, I tried it an it gave me a hot reboot :(

I hope you can fix it any time soon.

Keep the great work!
[HD2 Android NAND Development] Tsumi:
Great, nice work. Battery drain/CPU usage issue solved, seems a bit faster than 1.5 but slower than 1.6.

On the 1.6 build, I noticed in terminal emulator that nearly all of the zram memory was used, while 1.7 uses about half.

I know there was a response in here about using zram and a swap partition at the same time, but is there any benefit to doing so? And if there is, what is the best settings to use?
[HD2 Android NAND Development] ahlok_hk:
v0.1.7 with TBD 2.6 MAGLDR

Hidden wireless network connect ok.

wifi_tether_v3_1-beta11 sharing ok with "Nexus One" device profile and "enable routing fix".

Thanks marc!
[HD2 Android NAND Development] Minnesinger:
Well, after having v0.1.7 on my phone for well over an hour, I'm delighted to report there are no problems whatsoever. Great work -- thanks very much.

Quick, if not instant, WiFi connection which holds after stand-by and reboot. CPU scaling works as configured. After a 10 minute rest, the phone wakes to ~70*F and the draw is 3-5 mA. Even during/after heavy use, the phone stays within acceptable CPU load, temperature, and power draw.

Perhaps of note to some: I did encounter repeated freezing in Titanium Back-up. (Yes, a legitimate, paid-for Market version, fwiw...) The program would index the OS applications without issue, but when I would go into the 'Back-up/Restore' tab, the device would freeze, necessitating a reboot. After confirming the freezing was isolated solely to TB, I uninstalled the app, then re-installed from Market and that seemed to solve the issue. Though, at risk of introducing a red herring, the re-installed version was an updated version (4.7.5) from the one previously uninstalled (4.7.4).

I haven't enabled the zram script yet. I think I'll run the current set-up for a day before throwing a new wrinkle in the mix.

Once again, thanks for your fine work and timely corrective efforts.

Cheers
[HD2 Android NAND Development] marc1706:
No more HTC hotspot. 3rd party apps should work though. ;)

The problem was that the 0.1.6 kernel caused android to fill up zram. Once that was full it constantly tried to free it causing high cpu loads.
[HD2 Android NAND Development] gkillerx:
Why is that ? I use this feature a lot and had no problem with it what so ever? Offcourse this drains the battery but I always have my charger with me...

Anyway what 3rd party app do you advice?
[HD2 Android NAND Development] jerryhou85:
This one works on lots of builds. Some chefs cook it into their ROMs.

http://code.google.com/p/android-wifi-tether/
[HD2 Android NAND Development] radar-a:
the cLK package of version 0.1.7 contains the initrd.gz for the TBD Runnymede Rom ￼. Could someone make it for RCmix3D ROM.

Wysłane z mojego HTC HD2 za pomocą Tapatalk
[HD2 Android NAND Development] HannoSLM:
i can confirm as well that 0.1.7 is running great: very fast without any issues. May be it is placebo effect, but looks faster than 0.1.5 - less lag when unlocking the device and faster opening of all apps.

thanks for the amazing work
[HD2 Android NAND Development] ak100:
There was any problems with it? 3rd party apps works, but why dont use stock app for it?
[HD2 Android NAND Development] zhengxiong:
Very great Kernel, 3D performance, great!
[HD2 Android NAND Development] jerryhou85:
Since the stock app has been not working for quite a long time and makes some ppl confused?
[HD2 Android NAND Development] marc1706:
The bcm4329_204 driver caused issues with hidden SSIDs, wpa encrypted networks and raised the standby battery drain from 5 mA to 19 mA on my phone.

The stock app was working in 0.1.6 but as you can see there are too many issues with the wifi driver I used in 0.1.6.
[HD2 Android NAND Development] mlkjuggalo:
thanks for the new kernel v0.1.7 is really nice looks to be very fast every thing works just fine for me and not sure if everyone else is getting this but i have checked my phone about every half hour and i'm seeing 1mA while phone sleeps all i can say is all your kernels keep getting better and better keep up the good work and thank you for all the time you put in to them :)
[HD2 Android NAND Development] peter_fuchs1:
wlan proxy

Hi Marc!

Thank you, for your work!

I think, I found an issue:

The wlan proxy works only for the webbrowser.

It doesn't work for sync communication (web-widget,...)

Thx a lot

peter
[HD2 Android NAND Development] vhjc:
So, you think it's possible to switch to the bcm4329_204 driver with v0.1.7? I don't use hidden SSIDs or wpa encryption, and I don't mind having a drain of 19mA, it's not that much.
[HD2 Android NAND Development] mike2nl:
Hi marc,

Thank You very much for your hard work. It is amazing for what i have read until now.

One question about the USB to PC connection:

- Have someone tested this connection?

- If the 'Please insert Disk' message away?
[HD2 Android NAND Development] Tigermoto:
I think that is an Error in our ROM bro, not the Kernel
[HD2 Android NAND Development] dude0316:
Yes go back to version 0.1.6 Cheers
[HD2 Android NAND Development] djtheraven:
Hey Marc how far are we from a high quality working camcorder?

Sent from my HD2 using Energy Sensation XL Sense 3.5 and XDA Premium App!
[HD2 Android NAND Development] NRGZ28:
That's funny.. I've actually PMed him about working together to find a solution. Let's see what he has to say :)
[HD2 Android NAND Development] doraemon6688:
Isnt 3rd party tethering Adhoc only? So you can't connect another android phone to it. The built-in Hotspot works like a router, so anything can connect. I'm still on 0.1.6 because of this. My ROM works great and I only have a 6ma battery drain, so not bad.
[HD2 Android NAND Development] Cheech1976:
It seems to me that performance-wise 0.1.5 was better than the actual version, and since with 0.1.6 there was a problem with zram, i think there is still something wrong with it.

I have flashed the 100MB Zram script from the first page, and everytime i run the command zram_stats, the phone shows exactly the same values as it had right after booting and after sitting there for a few hours with a little usage in between.

The figures should change, even a little, shouldn´t they?

Just checked, it says it has a priority of 20 but 0 in use.

All the other figures are the same, quite low (f.e. average compression ratio 1%)

All of this is an uneducated guess and by no means any criticism, i love the job you are doing :)
[HD2 Android NAND Development] Dunc001:
Something wrong in your setup then, working perfectly here:

num_reads 978

num_writes 2083

avg_compr_ratio 39%
[HD2 Android NAND Development] Cheech1976:
I think i´ll try fixing permissions (i didn´t have to do that for ages, maybe it´s time again ;) ) and look it up once it has rebooted.
[HD2 Android NAND Development] schlei:
I think the camcorder issue is a big problem it is marked as working but it is far away from working good !

the camcorder is still unuseable for everyday use. :(:(:(
[HD2 Android NAND Development] bipinsen:
How to uninstall zram script?

Great work, Marc! I do believe your kernel is the best I've ever tried! :D

Just a quick question - I've flashed the zram script, and am trying it out. If I decide not to use it, how do I uninstall it? Any quick pointers would be great!
[HD2 Android NAND Development] Dunc001:
Just use Root Explorer or ES Explorer (with system writeable in settings), navigate to /system/etc/init.d and delete the 131zram script (or move it to your sd card in case you want to put it back). Reboot and you won't be using zram any more.
[HD2 Android NAND Development] bipinsen:
Perfect! Thanks Dunc! Its been going well so far!
[HD2 Android NAND Development] Minnesinger:
Can confirm everything you've reported. My system reflects the exact figures you cite -- even after intentionally loading up RAM w/ multiple apps. Thinking out loud - and let me emphasize 'thinking out loud' - our common denominator is NRG's ROM. His changelog from 01.13 states "changes to system bins to make ROM run faster": I'm wondering if the changes to the bins he implemented may, at some level, be in conflict with zram? Dunno...
[HD2 Android NAND Development] mike2nl:
Hi Tiger,

thanks to wake me up...it was not for coredroid and not for this kernel, aaargh. I was sleeping for 90%. I am busy with some other stuff for ICS, some new things. Now i have to write it again in the right thread, Sorry for my OT posting...
[HD2 Android NAND Development] bipinsen:
Yep. Same values. But then why does my phone seem faster? Is it just an illusion, or did zram make *some* difference?
[HD2 Android NAND Development] Daekin:
well...I have not checked if the script in OP is updated, but there was a typo which prevented ZRAM from being enabled....

look in your ROM and find the line in init script that says: swapon ...

and replace it with busybox swapon ...

because swapon command is not recognized unless you make a symbolic link to it manually :)

EDIT: just checked manually in my ROM with 0.1.7 kernel...

everything is working flawlessly
[HD2 Android NAND Development] Cheech1976:
I´m redoing everything right now, i still had a swap partition which i was actually using all the time because i thought that messed something up as well, so now i reformatted my sd card and go from there.

If I typed "free" it showed 356 mb swap of which 0 was used (i didn´t include any swap enabler or some such), zram_stats was showing the 100mb, so my guess was the swap partition has to go.

I will definitely look up your hint as soon as i´m there :)
[HD2 Android NAND Development] Minnesinger:
After enabling, and now disabling zram (file delete - reboot) I'm once again experiencing high battery drain. Not as bad as previous, but noticeable. Could account for the enhanced speed... ?
[HD2 Android NAND Development] Cheech1976:
Ok, Daekin :)

Took me a while to figure out that the best way to look at the script was on the pc anyway, had me going there for a second :D

Actually you are right, if this is the line you were referring to with the swapon vs. busybox swapon, the line goes line this:

So this won´t work, and this

will work?
[HD2 Android NAND Development] Daekin:
yest that will work....

and to your other post: I have stumbled upon that too...but you can have both if you want more space as a reserve...but you need to set proper priorities + order of enabling so that ZRAM is used first (hint: look at my ROM....;) )
[HD2 Android NAND Development] sudeep6258:
Love the kernel.. I have been using it on TBD rom.. I have an issue.. To sort the same I believe I have done my level best. The problem is battery drain when I use Wi-Fi or Edge.. Whenever I switch it on.. the standby drain is more than 50mA at all times.. I even used a class 10 and class 4 sd card.. but to no avail.. I have no clue why this is happening :( is there anything or any clue that you could provide/suggest..
[HD2 Android NAND Development] :
0.1.7 marc kernel with 1.5Ghz OC attached if anyone is still interested..

As usual, auto-detect bootloader (works with cLK 1.5.x.x also) and use at your own risk...

Tested working on magldr Haldric Sense 3.0
[HD2 Android NAND Development] Cheech1976:
The battery drain of the newest 0.1.7 kernel is still somewhat erratic it seems.

Yesterday throughout the day the build, respectively the battery drain was fine, went from 100 to 45% from 10 am to 10 pm, but then (although the phone lay idle and didn´t do anything), i had a drain of about -60ma for 3 hours and at about 2 am the phone shut down.

I have the zram-scripts activated, i think this should be taken into account.

I just reflashed the 0.1.5 kernel and hope this "phenomenon" won´t reoccur.
[HD2 Android NAND Development] jskenderi:
I'm also experiencing high battery drain with 0.1.7. Overnight I've lost something like 30% of battery. I was not able to detect the cause.

I reflashed 0.1.5 and have no problems at all.

That was just for the record, otherwise a great Kernel! Thanks Marc!
[HD2 Android NAND Development] bipinsen:
I thought you said zram scripts were not working on NRGs roms? Did you manage to get them working?

I installed the zram script. Saw it wasn't doing anything, and deleted the script from the init.d folder. I didn't delete any other file. In the last two days, my battery drain has consistently been between 13 - 50mA while sleeping. Not catastrophic, but nowhere near the 2-3mA I'm used to.

I notice Marc's been pretty quiet on this issue.
[HD2 Android NAND Development] aeropilot:
I too flashed the zram fix, and later removed it. And that also resultet in high battery drains, 10-18 in standby. So i reflashed the ROM, still with 0.1.7 kernel, and my drain is 3-5 now.
[HD2 Android NAND Development] Lavell7298:
Excellent Modified Kernel!

This modified kernel seems to work pretty well. I have my phone running at 1.152GHz. The ROM is much snappier than ever. I really like this kernel!:)

I do have a question. The file is labeled as version 0.1.7. But during the flashing process, the version was listed as 0.1.5. Do you by chance know the actual version of this modified kernel? If so, please share this information.
[HD2 Android NAND Development] Cheech1976:
This high battery drain for several hours i was talking about was before i got zram to work, that is correct, i should have explained it better. Zram was activated that time but actually was not working.

In the meantime i found why zram didn´t work with NRG´s build, the script 74tweaks had set swappines to 0, i changed it to 65 (and the same in the 131MBZram script) and now it works.

Right now my phone is charging, i will look at the battery drain once that load is finished as well, which should be sometime tomorrow evening (and if the battery drain is high, i might know tomorrow morning :D )

-13mA battery drain should be the max in my opinion, i find -50mA way too much, that charge would never last even 12-14 hours.
[HD2 Android NAND Development] essi_baba:
please tell stories about the overclocking ,Kernel in 1.5GHz stable?

battery draining ? and other parts on rom work perfectly?
[HD2 Android NAND Development] bipinsen:
I could not figure out a way to get rid of the zram install completely, so I've done a reinstall of the rom. Charging the phone up to 0mA charge, battery calibrate, and then see if I can get back down to 2-5mA.
[HD2 Android NAND Development] Cheech1976:
The weird thing is, that it was fine for the first 10-12 hours, normal drain when actually using the phone and nice low battery drain during idle state. But all of a sudden it started having -60mA drain for several hours until the battery died.

I´m giving it one more go, since i made a clean flash this morning, but with properly activated zram scripts.

For uninstalling the zram scripts you would have to delete the file 131MBZram in /system/etc/init.d folder and the files "compache","handle_compcache" and "zram_stats" in the /system/bin folder.
[HD2 Android NAND Development] jskenderi:
Thanks, but it's not working for me. Anything over 1190MHz makes my HD2 unstable. UC works (96MHz). Maybe it can help to reduce power drain.
[HD2 Android NAND Development] stumbleine:
I'm using 0.1.5 version cause it's less laggy than 0.1.7 with TBD ROM for me.

Is there any version with more oc capabilities for this one? I've used my phone at 1,5ghz with other kernels without issues, but I though it was not possible with those new Kernels.

Thanks in advance.
[HD2 Android NAND Development] :
I forgot to update the version in the update file but the actual version is as listed in settings>software>kernel. The actual version is 0.1.7 :cool:
[HD2 Android NAND Development] Lavell7298:
Question for you. Is it possible for you to modify version 0.1.5 in the same matter? I ask because as I went out to work today, I experienced a very high battery drain. Of course, this is an issue with the kernel itself before modification. Since v0.1.5 is the most stable kernel to date, I would think that v0.1.5 would definitely benefit from the mod.
[HD2 Android NAND Development] carl1961:
It is already OC back a few post when 1.5 came out,

EDIT: found it

http://xdaforums.com/showpost.php?p=21382046&postcount=317
[HD2 Android NAND Development] stumbleine:
Thanks.

I've flashed it and it works but it hangs when I push it forward 1,19ghz

Is there anything I can try?

Voltages or changing other things...

I know its not really necessary to go beyond those frequencies, but as I've used it before and it was quite stable, I'd like to use it with this great kernel.

Greetings.
[HD2 Android NAND Development] bipinsen:
Any updates? :)
[HD2 Android NAND Development] Cheech1976:
Up until now it is excellent with 0.1.7.

At home i have the problem that once in a while i receive the faintest UMTS-signal over a very good GSM-signal, and with the default setting of WDCMA preferred i get huge battery drain during those times, the phone selects the UMTS-signal over the GSM-signal only to loose connection and reconnect to GSM and this goes on and happens especially over night in my bedchambers :D

So i have set it to GSM only, which in itself lowers the battery consumption quite a bit.

That and actually not using the phone too much have brought me 18 hours and stil 53% battery left.

Idle standby is great from -2mA to -6mA, seldomly it is something around -10mA.

I don´t know if the unusually high battery drain was due to the build i was using 0.1.7 with at the beginning, or maybe the fact that the scripts conflicted with each other once in a while thus leading to this high battery drain (131MBZram with swappiness set to 60 vs. build-own script which set swappiness to 0)
[HD2 Android NAND Development] Quak:
If I don't use 3g Phone Internet data connection (WiFi o no data) my battery drain is very good!

but if I Use 3g Phone Internet data connection my battery drain is very fast!!!!!

HD2 EU - 1.7 kernel - ROM: Team Blue Droid V3.3 - Magloader - 1 gb ext4
[HD2 Android NAND Development] Cheech1976:
I´d say that would depend on the 3G signal quality you are having at the place you live, my problem is the connecting 3G, loosing 3G, connecting G, finding 3G, connecting 3G, loosing ... ... ...

Did you try the same with the 0.1.5 kernel?
[HD2 Android NAND Development] Cheech1976:
I hope this post is attached to the post above ;) - No it didn´t, i had hoped this would be attached to the post above. Sometimes it does, sometimes it doesn´t? I have yet to find out how that works :D

24 hours, with 1 hour and 15 minutes of talking on the phone and right now i am left with 3% battery, so i think it is safe to say, that this kernel has no battery drain issues? For me at least :)
[HD2 Android NAND Development] marc1706:
I'm quiet on this issue since I can't reproduce it. It would be good to know which process is using up unusual amounts of the battery. Please check if there are some programs in the battery stats that are using up more battery than they should.
[HD2 Android NAND Development] dude0316:
I actually went back to 0.1.5 and have the same results as I did with 0.1.7 for me the high battery drain has been traced down to an app called fringe. I'm sure there are quit a few apps that can cause high drain. Marc please don't let any of this stress you out. You Gota just ignore those with no clue . Donation comming in just a few days from me taxes due back anytime now. You and a few others are on my list. So please keep your intrest in this and Marc your da man. Cheers
[HD2 Android NAND Development] carl1961:
akmd

My most battery drain is /stsem/bin/akmd

can anyone explain what that bin file is most needed for?

using cpu plus
[HD2 Android NAND Development] marc1706:
I think this will answer your question: http://xdaforums.com/showthread.php?t=850636
[HD2 Android NAND Development] gkillerx:
Wifi hotspot is still not working great... I use a 3e party app and it isn't working, it starts and there are no errors but the DHCP server isn't working, well my laptop isn't receiving any IP adres. Am I the only one?

But wifi tethering is working (ad-hoc mode) but I want a AP not an ad hoc.
[HD2 Android NAND Development] carl1961:
Thanks marc1706 , I removed /system/ CheckinProvider.apk , DFPI.apk, GSD.apk, HtcCOTAClient.apk,

HtcDMC.apk, and LMW.apk, I'm sure I can remove more, but my CPU usage went from 38% to 2%. I'm using marc 1.7 kernel , l refuse to believe it's the cause of battery drain , I will check my initd.gz for anything that might cause excess cpu usage

from my HTC X315e using xda premium
[HD2 Android NAND Development] pee-wee:
I'm using wifi tethering 3.1beta11 set to auto (not ad-hoc) and work with no problem

Sent from my HTC HD2
[HD2 Android NAND Development] Minnesinger:
ZRAM Mem_Overhead?

Curious question: What is 'mem_overhead' in reference to as listed in zram_stats?

Now that I've had zram working on my device for a day and a half, I've been watching the values simply to get a feel for what zram *does* (or perhaps, *does not*.) In any event, most of the stats are self-explanatory, but I can't quite wrap my brain around what 'mem_overhead' is in reference to: it seems to be over my head! I ask because while the compression ratio has been constant -- 24 - 28% -- the 'mem_overhead' value continues to escalate -- reaching as high as 43%. Thus I'm curious as to what that's indicative of. The phone seems to be running fine; great, in fact.

Attached is a screen grab from Emulator, if that provides any guidance or insight. Though I should qualify that the values depicted are after a reset performed moments ago, so now 'mem_overhead' is only at 3%. Thanks to any and all for responding.
[HD2 Android NAND Development] francescozanghetta:
zram question

Hi guy,

first of all thanks to marc for his great job. I am using this kernel with zram enabled

Just a quick question: why is my zram always used almost all (90000kb) even if i am doing nothing?

Thanks