yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] Marcio366:
Hi,

could someone be so kind and write for me step by step how to install this new kernel?

Many thanks.
[HD2 Android NAND Development] vysus:
Have to quote, it's quite INCREDIBLE, it flies :eek:

Copy the zip file onto your SD card.

Reboot PDA and get to the MAGLDR menu.

Choose point “AD Recovery” by arrows and press the call button "Green button"

Choose point "Install zip from sdcard" by arrows and next "Choose zip from sdcard", choose the zip preliminarly thrown on your sdcard and press call button "Green button"

After the installation finishes get to the menu again. Press a key "Back" and choose point "Reboot system now".

The PDA will reboot and the Android will be started.
[HD2 Android NAND Development] Marcio366:
Thank you very much, Vysus!
[HD2 Android NAND Development] Lavell7298:
Since this question wasn't answered before, I'll ask it again. Can this fix be ported to Rafpigna's 1.9 OC GB kernel?
[HD2 Android NAND Development] hoss_n2:
it works perfectly
[HD2 Android NAND Development] morg01:
Awesome :)
[HD2 Android NAND Development] tytung:
tytung_r11_beta2

Thanks to mdebeljuh and jdivic again.

I have an AUO panel, and your fix works for me.

The wakeup lag disappears obviously.

Changelog of r11 beta2:

Add RNDIS (Remote Network Driver Interface Specification) for supporting native USB Tethering.

Add wakeup lag fix for AUO panels. (credits to mdebeljuh and jdivic)

Downloads: (for NexusHD2-Gingerbread)

kernel_tytung_r11_beta2_update.zip (for MAGLDR)

cLK_ppp_tytung_r11_beta2_update.zip (for cLK)

If you're using other ROMs, it's better to use initrd.gz from your ROMs for best compatibility.

For MAGLDR users, please replace initrd.gz in kernel_tytung_r11_beta2_update.zip and flash it.

For cLK users, please put zImage, initrd.gz, and system folder at the same folder and run cLK_kernel_installer.bat with the following content.

adb remount
adb shell rm /system/lib/modules/*
adb push system/lib/modules /system/lib/modules/
adb shell sync
adb reboot bootloader

fastboot -c "" -b 0x11800000 flash:raw boot zImage initrd.gz
echo Press any key to reboot.
echo Press any key to reboot.
echo Press any key to reboot.
pause
fastboot reboot

P.S.: Please also test native USB Tethering if you have time. Thanks.
[HD2 Android NAND Development] ayyu3m:
Congrats! And next spare me the flame (PS: you can check my stats) as i ask whats the buzz about.

I know whats AUO. But i dont know whats this lag fix about. Maybe a two liner into the problem will keep the real new fellows away from asking this very question.

Anyone please. Thank You.
[HD2 Android NAND Development] jdivic:
Great to hear it works, so there is no need we compile your kernel...
[HD2 Android NAND Development] sagarjawaress:
Confirmed working tytung kernel

WOW...works great on miui using tytyng kernel(clk). Zero wakeup lag!!

edit:now i can use sense 3.0 weather lockscreen and i will be able to see awesome animation for the first time!!
[HD2 Android NAND Development] bender_007:
:) wow. Works perfectly.

I've recorded "before" with my current rom and it has minimal lag.

But now...excellent.
[HD2 Android NAND Development] jdivic:
When you turn on your HD2 screen, if you have AUO panel, there was a lag. Screen didn't wake up instantly, but with delay between 1 and 2 sec (there are reported cases of even greater delay). With this update we have eliminated that lag.
[HD2 Android NAND Development] tinuz97:
Wow tytung, works 100%, i am on dorimanx build, also working, no more screen wakeup for me! Thx!
[HD2 Android NAND Development] tytung:
You need to appreciate mdebeljuh and jdivic, not me. :)
[HD2 Android NAND Development] tinuz97:
O, lol. OK, thx everyone! Very happy ;-)
[HD2 Android NAND Development] agormog:
Thank you guys SO much.

AWESOME!
[HD2 Android NAND Development] lowrider262:
confirmed working on Hyperdroid CM7 2.1.0 magldr
[HD2 Android NAND Development] bender_007:
ahhh :( , give me my lag back, I kind of miss it :( . It's unusual now.

I'll miss the lag when the phone is ringing and I'm waiting the caller name to show up.

NOT :))))

hehehe
[HD2 Android NAND Development] wheeliemonster:
Haven't tried it yet but wow. Thanks guys. Geniuses.

Tinuz - did you do anything with your initrd when flashing to Dorimanxs ROM?
[HD2 Android NAND Development] tinuz97:
No, I just flashed the zip.... I am on Magdlr, not CLK.

So far everything works.
[HD2 Android NAND Development] jcsy:
please thank everyone involved in this discovery, compilation :)

its amzing to even see jdivic thanks total at 1
[HD2 Android NAND Development] beston94:
im crying!!! !IM NOT ****ING JOKING. YOU GUYDS ARE GENIUSES!!!!!!!!! SMARTER THAN GOD!!(no offence believers)
[HD2 Android NAND Development] dkopya:
I'm using NDT mui (but not the last version : my version is 19.x ) on MAGLDR. I just flashed update and I didn't change initrd.

It is working like a charm :)))))

thanks every one ...

@tytung : Native thethering is working... :)))) ( I'm using my phones data conenction from my pc for sending this msg =) )

thank you tytung...
[HD2 Android NAND Development] beston94:
wow it even removed it from miui roms? thats just unreal!
[HD2 Android NAND Development] Dj-Gutz:
Amazing work guys!!

It's like a new device ( I've also replaced my case and screen protector yesterday :) )

Also , thanks Tytung! you made it possible to do this on my rom ( Still using MDJ 2.6 :D )

Switched the initrd from my rom and flashed , Worked like a charm!

Again , thanks to all of you

I really think the HD2 is perfect now
[HD2 Android NAND Development] De11:
Thank's, it's work perfectly!
[HD2 Android NAND Development] ORiZorrie:
This is brilliant guys. Excellent work. Best update to my Android so far. That lag was killing me sometimes =D

THANKS mdebeljuh & jdivic!!!!!!! ;-)

THANKS tytung for making beta kernel so fast ;-)
[HD2 Android NAND Development] criszz:
working great with dhungphp 12 Aug][SENSE3.0] Pyramid HTC WWE 1.35.401.1 - Real 3D [V2.0][RAF 1.9GB] and tytung beta kernel. NO MORE WAKE-UP LAG FINALLLLYYY !!!
[HD2 Android NAND Development] jan-willem3:
Tthis indeed reduces the wakeup lag however the i2c transfer bug is still present. Also the screen (on) animation doesnt work yet probaly because of the i2c bug. But indeed a big improvement in general:).
[HD2 Android NAND Development] ph03n!x:
@Tytung, I have been using your Kernels for a while now, and was trying to figure out how to get USB Tethering to work. Thanks a lot. Will post back on USB tethering...

PS: I have a Sharp panel, so not sure if the lag fix will make nay difference.
[HD2 Android NAND Development] eseregin:
Right...

Could you guys explain just one thing - what does auo panel mean?
[HD2 Android NAND Development] tinuz97:
Type of lcd screen. Older hd2 has a other screen.
[HD2 Android NAND Development] pReXx:
Am i to stupid to fix it? ,___,

short guide for cLK users, please?
[HD2 Android NAND Development] ORiZorrie:
AUO is the manufacturer of the digitizer and LCD panel. Basically your screen. ;)
[HD2 Android NAND Development] mdebeljuh:
We havent changed code for Sharp panels so you will see no difference in wakeup time
[HD2 Android NAND Development] nkos719:
I just owe you everything!you always make me happy guys.when i login to xda i got my batteries charged!thank you so ****in MUCH!!!!!
[HD2 Android NAND Development] themadproducer:
Resolved screen lag wake up delay on my wife's hd2. Now it turns on as fast as my HD2.

THANKS GUYS...great work. We appreciate it.

Is there any other benefits? (eg during incoming call)
[HD2 Android NAND Development] eseregin:
Thanks!

And how i can check what display in my particulary phone?

What if not auo - may this fix get me worse if i install this new 11 kernel frim Tytung?
[HD2 Android NAND Development] ORiZorrie:
Check for which panel you habe is in the OP. Can also do in terminal: "dmesg | grep panel"

No, mdebeljuh said he hasn't changed the code for Sharp.
[HD2 Android NAND Development] ph03n!x:
Posting this from the USB Tether :) Note that when I first enabled USB Tethering, it turned on Tether and then turned it off. This went on 4 times. The fifth time however, it turned on and stayed on. I turned off tethering, and had to do it 5 times before it finally turns on. Nothing in logcat though.

EDIT: Rebooted to try - turned on the third attempt, and stayed on. However, the computer did not get an IP address. Turned tether off, and turned it on again - 5th time worked.

However, am able to get online (Windows 7) through USB Tether, 5th time lucky :)! Thanks again, Tytung.

UNRELATED:

I was looking at the logcat after r11b2, and found that tun.ko is failing to load (am using the one from the r11 package)

Unrelated, though something you may do something about - the GPS libs. The SNTP service is timing out if I have GPS on during a boot because Wifi or data will not be enabled by the time the SNTP service looks up my time server. Any way GPS initialization can be postponed till "Boot Complete"?

EDIT AGAIN: Am on cLK!
[HD2 Android NAND Development] criszz:
yes there is. minimal lag now
[HD2 Android NAND Development] M..N:
I can confirm it works perfectly if there is still slight lag turn off the screen on animation as it doesn't work. This made screen on instant for me. Great job!!
[HD2 Android NAND Development] Rick_1995:
The .ko are kernel objects and are closely tied to the kernel, the build stamp of the kernel and the ko has to be EXACTLY same for the kernel to load them. That was done for integrity so one could not load older code in a newer kernel and lead to panic. The OP will have to provide those OR you could clone tytung/raf kernel and commit the patch in OP and compile yourself.
[HD2 Android NAND Development] hamid reza:
not work on clk roms:(
[HD2 Android NAND Development] criszz:
worked for me with rom intrid
[HD2 Android NAND Development] lowrider262:
how can u tell what kind of panel you have?
[HD2 Android NAND Development] ORiZorrie:
See comment.
[HD2 Android NAND Development] ph03n!x:
Thanks Rick, I guessed that these are tied to the kernel in someway (Linux novice :) ). I was using the .ko that was in the Kernal package posted by Tytung, as a part of the r11 beta...
[HD2 Android NAND Development] ORiZorrie:
People who use the Dorimanx rom (based on the tytung kernel) can flash this ZIP for MAGLDR. It contains the correct initrd.gz:

kernel_tytung_r11_beta2_update_with_initrd.gz_from_Dorimanx_ROM_.zip (for MAGLDR)
[HD2 Android NAND Development] beston94:
why are you bullshiting when im staring right now at my perfect screen without any screen delay?? WARTGSADGFSDHGFDGFDGDF

Sorry im so happy for this :D
[HD2 Android NAND Development] xabhi:
Working

Working for me!!:eek::eek::eek:
[HD2 Android NAND Development] brandon7gr:
I don't know which panel i have (and i am bored to check :p), but this definitely solved my wakeup lag :)

I am using this ROM: BPSense Z v1.0 :::.. [Sense 2.1][Raf's 1r9] [Magldr]

Many thanks to the two developers :)
[HD2 Android NAND Development] ORiZorrie:
Please check the Dorimanx thread for a more recent update. There is a more recent Wifi driver in the update than in tytungs kernel beta.
[HD2 Android NAND Development] jirka607:
flashed JW MIUI sense like with R11b2 kernel but there is still long wakeup LAG :-(
[HD2 Android NAND Development] nieves53:
Using ladyboo v24b nothing. Change to the zip loads and works super good..thank you guys
[HD2 Android NAND Development] phikal:
thx .......:)
[HD2 Android NAND Development] dorimanx:
HUGE Thanks from ME and users that use my ROM with your KERNEL!

You THE MAN!!! we will be lost without you!

So keep it UP we need you! HD2 Still Wanted! and very good device!
[HD2 Android NAND Development] speedyracer5:
hahahahahahahaha

hahahaahahahahahahahah this is sick!

Tytungs new kernel with the fix included the wakeup lag is nearly instant, good work!!! AUO panel...
[HD2 Android NAND Development] darow:
I've used to lag so much that now its seems weird without it. But I think that I can live with this :-) Thank you!
[HD2 Android NAND Development] matejdro:
HyperDroid-CM7-v2.1.0 - did not replaced any initrd or something like that, just flashed CLK version.

Lag was reduced to 0.5 second. Now it feels kinda weird, when I'm used to waiting some time when turning on.

Anyway, THANK YOU HUNDRED TIMES!

Sadly, I don't have data plan, so i cannot test tethering :(
[HD2 Android NAND Development] beston94:
Could someone fix the wakeup delay in the newest rapigna kernel?
[HD2 Android NAND Development] htcfreak:
Works for NDT MIUI cLK ROM (Direct flash of the update through CWM did not do anything in ADB Shell)

Thanks mdebeljuh, jdivic & tytung​
[HD2 Android NAND Development] Dizzle:
THANX

I'm feeling very emotional right now. I can't believe this issue has been resolved. We've been waiting for a fix since forever and here you guy's come with the solution. A million thanks to mdebeljuh and jdivic and whoever else whose contributed to this! :D
[HD2 Android NAND Development] htcfreak:
I agree; 1 of the most crucial MOD's ever.

I put it next to MAGLDR Dev as my HD2 feels more like a native Android phone now.

EDIT: - Guys please click "Submit to Portal" on right top corner
[HD2 Android NAND Development] Dizzle:
I concur! I would go as far as say, I don't really have any need to change phone now. Feels like a real Android phone, instant screen wake! Great work! :D
[HD2 Android NAND Development] shadiku:
Running on CM7 nightlies and it works perfectly.

Thanks for fixing this issue guys! :D
[HD2 Android NAND Development] semihbalcioglu:
thank you all for the great job, god bless you!!! i waited a year and a half for this, and now very happy for my brand new hd2:)
[HD2 Android NAND Development] nic.stl:
Thanx guys :)
[HD2 Android NAND Development] gianmich:
i cant stop turning the screen on and off:D i thing im going to burn it!!:p thanks guys thats perfect!

im on typhoon with tytungs kernel!
[HD2 Android NAND Development] white-energy:
It works fine.. Thank you for investigating the problem..

so.. i will popup the question.. What was the problem?
[HD2 Android NAND Development] X1iGGVV:
Hi, I have update kernel MAGLDR to this one using your discription, (For MAGLDR users, please replace initrd.gz in kernel_tytung_r11_beta2_update.zip and flash it.) have had V10 in [CWR] BOYPPC-SHIFTPDA_GINGER 2.3.4-Sense.s V20 (05.May).

That with screen work like a sharm, but, I can not donwload from Market enymore :(

It just starts upp and quit download without that any installs??
[HD2 Android NAND Development] Tak3r07:
If i try to check my panel i only get this output:

$ export PATH=/data/local/bin:$PATH

$dmesg | grep panel

<6>[17356.606414] sharp_panel_blank

<6>[17391.135711] sharp_panel_init

<6>[17391.204650] msmfb: turning on panel

<6>[17391.204681] sharp_panel_unblank

<6>[17441.773498] sharp_panel_blank

<6>[17472.307373] sharp_panel_init

<6>[17472.376342] msmfb: turning on panel

<6>[17472.376403] sharp_panel_unblank

<6>[17475.338989] sharp_panel_blank

<6>[17484.988769] sharp_panel_init

<6>[17485.040527] msmfb: turning on panel

<6>[17485.040588] sharp_panel_unblank

<6>[17490.466094] sharp_panel_blank

<6>[17494.628234] sharp_panel_init

<6>[17494.714447] msmfb: turning on panel

<6>[17494.714477] sharp_panel_unblank

<6>[17572.806915] sharp_panel_blank

<6>[17578.780975] sharp_panel_init

<6>[17578.832733] msmfb: turning on panel

<6>[17578.832763] sharp_panel_unblank

<6>[17593.386810] sharp_panel_blank

<6>[18190.434844] sharp_panel_init

<6>[18190.503814] msmfb: turning on panel

<6>[18190.503845] sharp_panel_unblank

<6>[18945.487548] sharp_panel_blank

<6>[18946.672271] sharp_panel_init

<6>[18946.724029] msmfb: turning on panel

<6>[18946.724060] sharp_panel_unblank

$

where is my mistake?
[HD2 Android NAND Development] erwinpiero:
Apply on my rafdroid, significant change, thanks a lot m8 :)
[HD2 Android NAND Development] sagarjawaress:
+1

I am using NDT MIUI clk and after flashing new kernel, i cannot download from market. It says cannot download due to an error. Can anybody confirm this???
[HD2 Android NAND Development] m4sta2k:
awesome ! Remember when poeple where talking about that the panels was the fault and there where nothing we could do about it. But now god send you guys to rescue us and released us from our pain of slow lcd's.

Hvala ti puno !

btw market works fine here but with mag tho
[HD2 Android NAND Development] liulibin:
great work! i will try.
[HD2 Android NAND Development] erwinpiero:
after installing kernel update.zip, facing two times freezing, after receiving message and when connected to PC, restart was the only way to overcome :( . I'm using rafdroid 4.0.2, with raf1.9 kernel. Still monitors

EDIT: Glad it's all fixed, i do clean install on rafdroid and now everything works fine, include magnificent screen wakes up!

Thanks again, appreciate this much :D
[HD2 Android NAND Development] Daekin:
interesting.... :) still cannot see the wakeup animation but the lag is definitely lower now :)

too bad that you have not fixed version 2.0 of rafpignba's kernel for GB :(
[HD2 Android NAND Development] LazyJr:
Anyone try this fix on langthang 23.1?
[HD2 Android NAND Development] waichai:
thanks guys, great job. No more lag.
[HD2 Android NAND Development] CasualStarlord:
HOLY ****!

Just applied the tytung R11_b2 MAGLDR zip directly to

[16.AUG.11][MAG/cLK] TyphooN CyanogenMod 7 Nightly v3.5.8 [2.3.5][A2SD][tytung r10]

after a backup, I also cleared cache partition, dalvik and batt stats.

AND IT WORKS AMAZING

WOW, THANK EVERYONE SO MUCH!
[HD2 Android NAND Development] ddeathmetal:
Miui US 1.8.12 with tytung R11_b2 MAGLDR Applied... it's work flawlessly \m/

still cannot see screen on effect, better if we'll get perfect tweaks... but is not important...

Thanks a lot to all Devs!!!
[HD2 Android NAND Development] x3nophobia:
guys, do i just need to flash the kernel only? what about diff_auo.txt file? do i need to copy&paste it into my sdcard? :confused:
[HD2 Android NAND Development] tidus18:
Awesome

This feels surreal......:eek::eek::eek::eek:

I confirm this works and gives INSTANT on for display, no delay or whatsoever. I have LEO EU 512 with AUO panel.

A million thanks to mdebeljuh and jdivic and everyone made this possible!!!!!!!:D:D:D
[HD2 Android NAND Development] tidus18:
Depends, Just flash the CWM zip file. But for me i had to replace the initrd.gz file from my original rom to get it to boot, else it goes into bootloop.

Im using dungphp's Pyramid_WWE_1.35.401.1_v2.0_a2sd_EU.zip

for end users like us no need to bother about diff_auo.txt
[HD2 Android NAND Development] htcfreak:
Yes I did on cLK version & works like a charm :D
[HD2 Android NAND Development] x3nophobia:
done flashing it, but it still the same, no improvement in wakeup lag, im using imilka incredible build. do i need to do something else?
[HD2 Android NAND Development] tytung:
My phone loads tun.ko correctly after running lsmod command.

#lsmod

bcm4329 192733 0 - Live 0xbf03d000

tun 10434 0 - Live 0xbf006000

msm_rmnet 2024 0 [permanent], Live 0xbf000000 (P)

I remember if Android doesn't have the network connection on boot, it will try to sync SNTP time every 5 minutes until it gets synced. .
[HD2 Android NAND Development] Looki75:
THANKS

Thanks to you mdebeljuh and jdivic!!! Amazing work!!!

Thanks also to Tytung for compiling in his kernel so fast!!!

I tested with Typhoon v3.5.1 MAGLDR, applying Tytung update + the mod related to initrd.gz according to tytung intructions.

Fantastic! :)
[HD2 Android NAND Development] liulibin:
what is “AUO panels” ？ LCD panel?
[HD2 Android NAND Development] tidus18:
Which display are you having? Check which display type you are having:

Go to shell using adb, then enter this command:

dmesg | grep panel

Result/Output:

<4>[ 1.318603] [B][COLOR="Red"]panel type is 1 :board id is 4 : AUO[/COLOR][/B]
<6>[ 2.344390] msmfb_probe() installing 480 x 800 panel
<6>[ 2.400054] msmfb: turning on panel

If your output is nou AUO type, then you will not see any difference by installing this fix:cool:
[HD2 Android NAND Development] tidus18:
Yes.....

Guys, please read first before posting questions like this.....:p

So far there are 2 type that i know of - Sharp & AUO

@mdebeljuh and jdivic,

Im quite sure lot of folks are curious on how you guys managed to solve this prob.... Mind sharing da story here?
[HD2 Android NAND Development] jdivic:
Well, you may take a look at auo_diff.txt. To make a long story short, to wake up panel you must communicate with it. To wake up AUO display there was 354 messages sent to panel, but just to wake it up there is no need to send all of them. It turns out that it is enough to send just 9 of them. Sending 354 was just too slow... So we did this: on first wakeup, during boot process, we send all of original 354 messages just to be sure that we initialized panel well, but on every other wakeup we send only 9 messages that are necessary. Sharp panels were turned on with 6 messages from the beginning, and that's what was making the difference all this time.
[HD2 Android NAND Development] jdivic:
No problem at all, story is one post above :-)
[HD2 Android NAND Development] vivebatu:
Hi all...for all hyperdroid cm7 users, this fix works!!!!! ....there is absolutely no lag....for flashing, although tytung recos replacing rom initrd.gz, I flashed without replacing and it works well...just make a cwm backup, flash kernel, wipe cache and dalvik, fix permissions and reboot...on first reboot, I got a force close of system, so rebooted and it was ok

To the guys who got this fix - pls make a donate page...will like to donate and I guess so would many others!

You guys have done which either earlier developers did not wish to look into or could not work around....this is as big as android coming to nand on hd2.

Tytung - you are a hero already and you never cease to amaze.

Cheers all
[HD2 Android NAND Development] hamid reza:
yeah first time i wake up screen it is like before , after that the screen wakes up earlier.

thx , Great Job
[HD2 Android NAND Development] numbskull100:
Hypredroid Floorless!

Same here, excellent news!
[HD2 Android NAND Development] mdebeljuh:
Thanks, if you want to donate to us you can use my "Donate to me" button and I will split the donation with jdivic.
[HD2 Android NAND Development] Pixa1:
Bravo decki, svaka cast...

Great work guys...

p.s.

just to confirm that it's working.

I'm using NDT MIUI DEVELOPMENT V23.2SE by langthang.

i just downloaded tytung's updated kernel from post #23. replaced the initrd.gz with the one from langthang's installation zip, and installled from CWM recovery. I forgot to wipe the cache, but it still works :)

thanks again !!
[HD2 Android NAND Development] jirka607:
Flashed it in CWM to CLK version of MIUI sense like without any replacing and zero wakeup LAG thank you soo much
[HD2 Android NAND Development] chovav:
Hey guys,

could you please make a version for PRJ's clean desire rom?

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

it uses prj's kernel v0.4

cheers!!
[HD2 Android NAND Development] cd78:
Cant get it working on Hyperdroid CM7 - have a euro hd2.

Bootloop.

Have cleared cache and dalvik, fixed permissions (is this needed) and no joy
[HD2 Android NAND Development] tidus18:
Either replace the initrd inside tytung's CWR zip file with original from your rom or completely remove initrd from the zip file before flash.
[HD2 Android NAND Development] Spl4tt:
im gonna try this, RIGHT NOW :O!!
[HD2 Android NAND Development] semihbalcioglu:
wake up lag is gone BUT, the screen is still not responding in this first or half second for me. Anybody confirm that?
[HD2 Android NAND Development] jdivic:
Yes, we know about that, it's about 0.4 sec from screen on until touch panel initialization starts... we didn't investigate the reasons. For now we can live with that...
[HD2 Android NAND Development] Spl4tt:
i had this on WinMo too. thats normal on the old touchpanel technology our HD2 uses...
[HD2 Android NAND Development] vua777:
Awesome wakeup like Winmo now, with tytung + miui sd build

very happy, Thanks all Devs!
[HD2 Android NAND Development] jan-willem3:
It is related to the i2c you can see in the dmesg however no one has been able to find what is causing the error.