yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] marc1706:
marc1706's 2.6.35.14 Sense Kernel​

This kernel is based on the HTC Desire 2.6.35.10 kernel source code ported by warrenb213 and me with help from Markinus' CyanogenMod kernel source.

This kernel is only for GB Sense builds and shouldn't be used on any CyanogenMod, AOSP, MIUI or ICS builds.

Features:

Default CPU governor: ondemand

Default CPU speed: 245 MHz - 998 MHz

Available CPU speeds: 96 MHz - 1536 MHz (if speeds above 1190 MHz are not stable for you, stick to lower frequencies)

Available CPU governors: interactive, conservative, userspace, powersave, ondemand, performance, smartassV2, Lagfree, Lazy, SavagedZen, scary, smartass, smoothass, superbad, virtuous, interactiveX, ondemandX

Default I/O scheduler: Deadline

Available I/O schedulers: no-op, deadline, CFQ, BFQ, simple IO

G-Sensor freeze fix (Credits: mdebeljuh and jdivic)

Wakeup lag fix for AUO panels (Credits: mdebeljuh and jdivic)

cLK support

Unique Wi-Fi MAC address

Unique bluetooth MAC address (Credits: tytung & me)

Extended battery support (still needs some testing, I don't have an EB)

BFS CPU scheduler

ALSA sound drivers

Simple IO Scheduler

HTC Auto-White Balance

Two-way call recording (Credit to avs333, snq-, tytung)

add proc file interface /proc/mic_level and fix mic gain (Credits to mdebeljuh and jdivic, tytung)

zRam (Credits: me, faux123): Activation script can be found here

Real MAC address (credits to Franck78, Rick_1995, me)

Working:

Data

Wifi

Bluetooth

LED notifications

G-Sensor

Camera

Camcorder

Auto-Backlight

Headset

HTC FM Radio

Wifi Hotspot (use 3rd party app)

Internet pass-through (phone uses PC's internet -- select via sense USB setting menu, not via normal settings)

Not working:

Wired Tether

HTC Hotspot

You tell me ;)

Current version: 0.2.3

Download:

marc1706_desire_0_2_3.zip

Note: The cLK package for versions below 0.1.7 contain the initrd.gz from sbryan's RCMix Runnymede ROM. The cLK package of version 0.1.7 contains the initrd.gz for the TBD Runnymede Rom. These might not work on other Sense ROMs.

Version 0.1.9 and above doesn't contain a kernel ramdisk but rather creates the boot.img itself (credits to e334 & koush).

Outdated versions:

marc1706_desire_0_1_5_cLK.zip

marc1706_desire_0_1_5_magldr.zip

marc1706_desire_0_1_7_cLK.zip

marc1706_desire_0_1_7_magldr.zip

marc1706_desire_0_1_8_cLK.zip

marc1706_desire_0_1_8_magldr.zip

marc1706_desire_0_1_9.zip

marc1706_desire_0_2_0.zip(Mirror:marc1706_desire_0_2_0.zip)

marc1706_desire_0_2_1.zip(Mirror:View attachment 1016345)

marc1706_desire_0_2_2.zip​

Credits to:

Markinus, warrenb213, sbryan12144, tytung, hastarin, rafpigna, Cotulla, mdebeljuh, jdivic, faux123, Rick_1995, Franck78, ... (if I forgot you, just send me a PM)
[HD2 Android NAND Development] marc1706:
Extras:

zram Static Activation (by Dorimanx, modified for .35 by me, fixed disksize): View attachment 850552

FAQs:

My phone sometimes lags when I unlook it. After 1-2 seconds the lag is gone. Is there a way to fix this?

Yes, just set the minimum cpu speed to 245 MHz. The snapdragon cpu is not able to scale from 128 MHz to any given frequency. From 128 MHz it can only scale to 245 MHz and then it'll scale to higher frequencies.

Can we have ZSL (= zero shutter lag) on the HD2?

No. ZSL was created for newer smartphones that have camera sensors that support ZSL.
[HD2 Android NAND Development] HTC_Hd2_best:
moin,

ehm hat dein neuer kernel iwie auch die rcmix tweaks oda sind die in der rcmix3d rom schon enthalten?? und läuft die rom mit diesem kernel dann ohne laggs ? oda sind da noch welch enthalten?
[HD2 Android NAND Development] vivebatu:
Hi...any possibility of adding a cyanogen mod version? Or non-sense version on Warren and yours desire port is the thread to follow?
[HD2 Android NAND Development] SHoWa147:
As I can change the CLK intrg for another rom?
[HD2 Android NAND Development] boxmax:
Thanks marc1706 for Dev Kernel Senes

I would like to ask ...

hastarin , what he did to support the Kernel for run android via haret.exe from wm6.5 ??? (SD build)
[HD2 Android NAND Development] seanyuan62:
Is 2-way call recording disabled by default?
[HD2 Android NAND Development] marc1706:
For a non-sense version please refer to warren's kernel thread.
[HD2 Android NAND Development] kinghunki:
Thank you for this work...

YE, very good, FM working...Boot also soon...

Note: Kernel for dungphp RUNNYMEDE 1.11.1113.1 - Sense 3.5 [v2.2] Rom.
[HD2 Android NAND Development] marc1706:
Good question, next question. :D

I haven't looked much into the whole SD issue yet but I'll try to see if I can find something.

2-way call recording hasn't been added yet. I'll try to add the features the kernel is still missing as soon as possible.
[HD2 Android NAND Development] Dizzle:
Thanks Marc for you're work here. It is very much appreciated.

Keep up the good work.
[HD2 Android NAND Development] boxmax:
See this info maybe can help you ...

Add support for machine-specific jump to kernel code :

http://git.linuxtogo.org/?p=groups/haret/haret.git;a=summary

+

Booting Linux via haret.exe

http://htc-linux.org/wiki/index.php?title=HaRET_Documentation

if use new kernel for haret.exe it Rom Stop & say : (jumping to kernel (custom)
[HD2 Android NAND Development] sbryan12144:
the source you gave me was for compiling the haret.exe. Jumping to kernel was a line in the haret itself. In all honesty, it should be working but its not. are you using haret.exe v0.5.3?
[HD2 Android NAND Development] boxmax:
ya i use haret.exe 0.5.3-20100914 also i try 0.5.3-20101214 same one ...

See here for haret patch for leo ...

http://www.netripper.com/leo/
[HD2 Android NAND Development] seanyuan62:
Is this the kernel continued from RCMix3D LEO v5?
[HD2 Android NAND Development] Dizzle:
Yes it is......
[HD2 Android NAND Development] mlkjuggalo:
yes but with marc1706's work/tweaks & this will be the new kernel used in RCmix3D Runny rom
[HD2 Android NAND Development] Dunc001:
...which started out as a fork from this kernel in the first place...

BTW, I am seeing a massive slowdown after flashing 0.1.1 cLK with boot.img recompiled for latest TBD test ROM. Has improved a but after a couple of reboots but still really slow... (SetCPU - Smartass max 1113)
[HD2 Android NAND Development] Stephen:
Hey Marc,

Are you working on the EGL libs at all? This is now the only thing outstanding for me eg wallpaper preview and lock screen preview. If these could be fixed it would be awome :D
[HD2 Android NAND Development] marc1706:
950 is the minimum VDD and 1025 the maximum VDD. The CPU itself will decide which VDD it needs according to the current CPU load.
[HD2 Android NAND Development] arizmin:
Marc.. Does your kernel works for SD Magldr sense ROM??
[HD2 Android NAND Development] jskenderi:
Sorry! Wrong post! Mods please delete.
[HD2 Android NAND Development] essi_baba:
update

add to next post
[HD2 Android NAND Development] marc1706:
A new version has been posted in the first post.

Changelog:

0.1.3 to 0.1.4:

Tweak camera -- bananacakes

Add simple IO scheduler by Miguel Boton

Updated BFS to v0.413

Added a few netfilter settings from .32 kernel

Use PM_FAST in standby

Add interactiveX governor

Added tweaks for interactiveX from bananacakes' kernel

Add governors and governor tweaks from bananacakes' kernel

Added governors: Lagfree, Lazy, SavagedZen, scary, smartass, smoothass, superbad, virtuous

Assume we might need the max VDD when overclocking

Added max_control_command_size for data in camera (was 50 and is 150 now)

Added missing AVS initialization & regulator changes

Add ondemandx governor from lordClockn kernel

Some more cleanup in htcleo files

fix scaling_cur_freq (bananacakes)

Tweaked BFS (bananacakes)

Add auto-white-balance

audio: added Two-way call recording (Credit to avs333, snq-, tytung) -- will post a 2wcr compile soon

htcleo: audio: add proc file interface /proc/mic_level and fix mic gain (Credits to mdebeljuh and jdivic, tytung)

late_initcall has to be right after the function definition (clock-wince.c)

Cleanup in AVS files

Updated defconfig to .35 settings

Raised HZ to 300

Added zram from 2.6.38 kernel and removed old ramzswap

Replace zram with faux123's files

Enabled 998MHz for ondemand in defconfig

We were not able to figure out yet why the .35 kernels do not work on SD builds.
[HD2 Android NAND Development] tmotard:
Hi,

thanks a lot.

is your kernel now stable at 1190 ?? :)
[HD2 Android NAND Development] marc1706:
I won't guarentee anything but for me the kernel is running stable @ 1190 MHz.

Maybe other users can share their experience @ 1190 MHz with version 0.1.4.
[HD2 Android NAND Development] phikal:
Nice speed, lagfree governor works great for me.
[HD2 Android NAND Development] HannoSLM:
Ver 0.1.4 is simply amazing, real speed improvement.

Thank you so much
[HD2 Android NAND Development] tmotard:
i'm testing your new kernel at 1190MHz ... Stable for the moment

The rom is flying with this kernel !!

thanks a lot !

one question : would it be possible to have the mp3 id tag when playing songs with BT A2DP ?

don't know if it related to kernel or to ROM, perhaps both but that wouls be great...
[HD2 Android NAND Development] boki2911:
that governor use,with good results
[HD2 Android NAND Development] essi_baba:
New Update

Wooow Thanks for excellent Kernel really good smooth smooth smooooth on my rom (Qaliza's Deisre HD ARA v1.2) All Parts work perfect and noting any bug Thanks marc1706

Please add this option On Next update :

*Add Menu for Installation for CLK & magldr User and other parts need to install Like Dorimanx Kernel It`s Beautiful

*Fix to PPP drivers for full VPN Support (Add contain this file into rom or kernel installation {thanks arne182}):cool:;)

*Added Keyboard backlight !ON! in DARK, and !OFF! in LIGHT 10 second between on ,off Thanks Dorimanx:cool:

*in all kernel this bug exist and not solved Please fix it.after use headset play & pause, next ,previous music with ~2 second delay and lagy :(

*How to test zram or swap partition in kernel? :o:rolleyes:

after install this kernel Wifi & BT not stable and after add initrd.gz in my rom to Boot.img all works perfect please add custom initrd.gz for other user in to installation like Dorimanx Installation.

for end this kernel very very perfect and smooth and stable .thanks for you for hard working :)
[HD2 Android NAND Development] Dunc001:
OK for both you need to do more in your ROM to get swap and zram enabled.

Firstly swap. You need to flash THIS which will install a new init.d script to enable swap at boot. Then to check if it is working simply open Terminal and type:

su [enter]

free [enter]

If you see Swap 0 0 0 then it is not working, but if you see values in Total Used and Free then you are up and running.
[HD2 Android NAND Development] essi_baba:
thanks

after apply 357MB-ZRAM-Static-Activation.zip don`t boot device and on htc green logo reboot i`m check for what problem with debugger ...in log on init.d/12vddlevels file , line 2 or 20 error but after apply swap.zip it`s active perfectly thanks.

so please paraphrase for me ,

I do not know exactly what and how Zram & swap in performance and speed .... on ROM

i`m sorry for my bad English its translate for google :D
[HD2 Android NAND Development] RussianBear:
definitely feels a lot faster. thank you, marc!
[HD2 Android NAND Development] mlkjuggalo:
@marc1706 thanks for one of the best kernels i have ever put on my hd2 and thanks for all the time you put in to doing this for us :)
[HD2 Android NAND Development] kosmasgr:
I'm using RCMix3D Runny v4.0.2 [Official Runny Sense 3.5] rom with magldr. Which kernel can i flash ? marc1706_desire_0_1_4_cLK.zip or marc1706_desire_0_1_4_magldr.zip
[HD2 Android NAND Development] RussianBear:
which one do you think has magldr in its description? (not a trick question)
[HD2 Android NAND Development] kosmasgr:
haha. thanks ;)
[HD2 Android NAND Development] THANHVO31:
For clk guy who has no boot.img from your cooker yet, download attach one + and put your old initrd.gz in to initrd-custom of kernel and flash like Dorimanx kernel with kernel-no-2way-rec, select clk, no for all others. You are done.

If I have more time I will try to clean script.

I had succesfully flash 0.1.4 with Mikhei777's [21 Dec 2011] [cLK][MAGLDR] Android 2.3.5 Sense 3.5 NAND (Runnymede 1.11.1113.1)

Thanks marc for kernel and Dorimanx for script.
[HD2 Android NAND Development] liulibin:
great work! friend

everythings is ok, but portable wi-fi hotspot do not work

hope fixing it
[HD2 Android NAND Development] Cheech1976:
It seems i can´t get a gps signal after flashing this kernel.

Anyone else?
[HD2 Android NAND Development] anikolop:
What rom are you using? No problem with rcmix 5.1 beta here.
[HD2 Android NAND Development] JohnKoffee:
I have one issue when after installing this kernel. I can't get no USB connection ( exept for battery charging). I tested twice to be sure. I'm RCMix3D ROM.
[HD2 Android NAND Development] Cheech1976:
I tried it with NRG`s 28.12. release, but after a reboot it started working again.

If think this was an isolated incident but i will keep a lookout.
[HD2 Android NAND Development] mlkjuggalo:
that has nothing to do with this kernel the problem is that you must be using RCmix v5.0 in that version usb is not working if you want it to work you can get app from market called multi mount sd free or go back to v4.0.2 or wait till v5.1
[HD2 Android NAND Development] phikal:
What steps exactly are needed to flash v14 kernel on runnymede 4.0.2 ?

Cant get it work,only copyieng module files to 3d kernel works for me.

All other gives reboot at htc screen.

Also tried adding init file from 3d kernel but no luck
[HD2 Android NAND Development] mlkjuggalo:
just download the CLK or MAGLDR version of v0.1.4 kernel depending on what you use put that zip file on sd and boot to recovery and install zip from sd find v.0.1.4 kernel and install
[HD2 Android NAND Development] feloccio:
Video playback doesn't work after kernel update (withe screen)
[HD2 Android NAND Development] ahmedmh5:
i have sound problem and i hope u can help to fix it >> when using my blutooth stereo handset nokia bh-503 to make a normal call or call over skype and nimbuzz i had to speak to phone mic not to my handset mic !!

i using rom of :

haldric dhd gb 2.3.3 v3

sorry for my English :)
[HD2 Android NAND Development] JohnKoffee:
Ok, thanks.
[HD2 Android NAND Development] marc1706:
What ROM are you using and from what kernel did you update?
[HD2 Android NAND Development] phikal:
Wifi dont work on runnymede 4.0.2 with new kernel.

tried on 2 different phones.
[HD2 Android NAND Development] mlkjuggalo:
my wifi is just fine on v4.0.2 with this kernel
[HD2 Android NAND Development] feloccio:
I am using the rom from my sig and i updated from your 1.1.3 kernel. Maybe dungphp has to modify the kernel a bit in order to make it work.
[HD2 Android NAND Development] Minnesinger:
Governor Question

First, I'd like to thank and congratulate marc1706 for his fine work. I'm new(ish) to Android builds, but in my limited experience this is the best HD2 kernel out there.

However, I have one issue related to governors that I'm hoping someone can shed some light on...

Per the build log, the default governor on the v0.1.4 build is 'ondemand'. But when I utilize a governor/CPU app - both SetCPU and ROM Toolbox - it shows the active governor as 'performance'. No matter how many times I switch the governor to 'ondemand' (or any governor for that matter) it always reverts back to 'performance'. Yes, I've ticked 'Apply at Boot' and rebooted -- numerous times with each governor selected -- but no matter what, it always reverts back to 'performance.'

What could be causing this and how can I correct it?

FWIW, I've disabled/uninstalled all task managers or RAM management apps, yet the problem persists.

Any insight or guidance towardds a solution is greatly appreciated. Thanks!
[HD2 Android NAND Development] marc1706:
Since I had a similar issue I'd recommend you check if you have another app like Daemon Controller running.
[HD2 Android NAND Development] Minnesinger:
If you're responding to my post #217, no: I don't even have Daemon Controller installed on the phone. It's included in my ROM, but I've uninstalled it immediately after flashing.

Thanks for the response, though...

Edit: Also, for clarity's sake, when I say that I've used both SetCPU and ROM Toolbox, they are never installed on the phone at the same time. I mention this so there's no suggestion that the two apps might be in conflict and the source of my problem.
[HD2 Android NAND Development] mlkjuggalo:
Did you 'wipe cache partition' and 'Wipe Dalvik Cache' before you installed v0.1.4 kernel ? I have it set to stock speeds with smartassv2 and it stays on it after reboot other than that you might try download kernel again as you might have gotten a bad download
[HD2 Android NAND Development] Minnesinger:
Yes, prior to the 1st installation I wiped the cache partition, as well as the Dalvik cache. For kicks and giggles, I just re-downloaded the kernel, wiped both caches, installed from SD and... the problem persists. I can't reset the governor to anything other than 'performance'.

Thanks for trying to help just the same...
[HD2 Android NAND Development] NRGZ28:
Hey marc... ever since I loaded up your newest kernel lease on the runnymede rom port I made, I get this:

W/AudioSystem( 325): AudioFlinger not published, waiting...

I/ServiceManager( 325): Waiting for service media.audio_flinger...

I also noticed a message in dmesg saying something about the alsa driver not being able to find any soundcards to initialize.

Usually this fixes itself with a reboot, but eventually it comes back and annoys users. Could you look into it when you get a chance ? It seems that if I manually pkill mediaserver, the system continues to boot and I assume it reinitializes fine, because sound works great after that. Maybe we could get it to retry to initialize the audio hardware a few times before it gives up ? :)
[HD2 Android NAND Development] marc1706:
Why should a kernel that defaults to ondemand set the performance governor?

Since nobody else seems to have this problem I'm guessing there is another app that sets the performance governor.

Does this happen while booting or at some time while using the device?
[HD2 Android NAND Development] tsi_tp:
Very good kernel!!

Would it be possible to integrate tun.ko for vpn in next release - or are there any known restriction or problems with this?

This is not a major issue, but I can't compile it cause I'm not at home ATM, so it would be perfect to have it build in ;-)
[HD2 Android NAND Development] marc1706:
tun.ko is not needed. TUN is already included in the kernel.
[HD2 Android NAND Development] jan-willem3:
nevermind unrelevant.
[HD2 Android NAND Development] tsi_tp:
... oh, ok. My fault. I didn't try it, because there's no tun.ko in modules so I expected it to not working - but it works very well. Thank you for your great work!!
[HD2 Android NAND Development] marc1706:
Kernel has been updated:

Changelog:

Compile zram as module

Backported vzalloc to better support zram (faux123)

Add back scaling_available_frequencies (adrynalyne)

Reduce min voltage to 925mV
[HD2 Android NAND Development] Dunc001:
This kernel rocks! zram is a must - use the activation script from the 2nd post. My phone is absolutely flying now (and it was already quick before LOL), can't believe how quickly apps are opening :eek: Running at 1190hz with Smartassv2. Wifi/data switching on cLK seems greatly improved too, everything else works as far as I can see. Great, great work Marc - keep it up :cool:
[HD2 Android NAND Development] feloccio:
I updated from 0.1.4 to 0.1.5 and i have NO problems with videoplayback anymore!

thx a lot
[HD2 Android NAND Development] Dizzle:
I flashed the zram activator and my phone is lagging all over the place. How can I remove it please?

*Edit, after a couple of reboots it seems to have settled down now. Thanks.

Sent from my Desire HD2
[HD2 Android NAND Development] phikal:
Swap is showing up in terminal emulator as 348, shouldnt that be 348000 ?

also used stays on 0.
[HD2 Android NAND Development] Minnesinger:
Zram conflict?

Will using the zram script conflict with ram manger apps? For example, I'm using Ram Manager Pro (found here) Or is it advised to use the script without any ram management apps as the script serves the same function (?)

Thanks!
[HD2 Android NAND Development] essi_baba:
Thanks & suggest

thank you very mach senior marc1706 you are really perfect Developer

please add 2 option to your kernel

*Added Keyboard backlight !ON! in DARK, and !OFF! in LIGHT 10 second between on ,off

*in all kernel this bug exist and not solved Please fix it.after use headset play & pause, next ,previous music with ~2 second delay and lagy

i`m always use my initrd.gz in my rom and flash boot.img and all parts work perfectly Wifi/BT etc...

On 1190 MHz , smartassv2 really faster than other kernels.

swap & zram work grate :D i`m with my phone flying goodlook :D:cool:
[HD2 Android NAND Development] giannis-21:
i like this kernel but i have problem with my camera. in low light conditions nad use of flash the photo loses the backround.. any way to fix this?
[HD2 Android NAND Development] HannoSLM:
zram

hi marc,

could you please post some instructions about:

1. How to check, if zram is working

2. How to enable/disable zram (if possible)

thanks a lot
[HD2 Android NAND Development] yugoport:
To remove just delete the script;

To check if is working,Its a few pages back:

OK for both you need to do more in your ROM to get swap and zram enabled.

Firstly swap. You need to flash THIS which will install a new init.d script to enable swap at boot. Then to check if it is working simply open Terminal and type:

su [enter]

free [enter]

If you see Swap 0 0 0 then it is not working, but if you see values in Total Used and Free then you are up and running.

For zram you need to flash THIS from Dorimanx's thread (HERE). It installs a whole load of bin files and another init.d script.

To check zram is working again open Terminal and type:

su [enter]

zram_stats [enter]

If you see a load of info then it is working.
[HD2 Android NAND Development] HannoSLM:
kindly note that the zip in dorimanx thread is not working .... so you and dunc please stop posting it!
[HD2 Android NAND Development] JustANotherMe:
Ty for that :D
[HD2 Android NAND Development] marc1706:
You can always remove it again by deleting the 131MBzram script from system/etc/init.d/

If you have a swap partition it shows up as it should. I just checked it.

1. Why are you using a Ram Manager app?

2. You should be fine.

I'll try to add the backlight manager tweak in the next releases and I'll also take a look at the lag when using the headset.

Just tried it and had no issues. Did you try to take a picture of a landscape with flash? :D

In order to check if zram is working, type this in your terminal:

zram_stats

You can enable zram by flashing the package in the 3rd post. For disabling it, just delete the 131MBzram script from system/etc/init.d/.

The zram package from Dorimanx's thread won't work with the .35 kernel. Please stop posting it.
[HD2 Android NAND Development] essi_baba:
lag

after use zram script in my rom abit lagy. after remover zram and reboot all

parts ok only install or uninstall program very very slow and with lag.How to fix it?
[HD2 Android NAND Development] Appelsap:
I'm seeing this too, but I fear it's a bug, not a feature, because Battery Monitor Pro keeps telling me the drain is 1mA, no matter what I do (screen on/off). I've not seen this before, but keep seeing it with the 0.1.3 and 0.1.4 kernels. I'll try the 0.1.5 shortly, hoping that'll make a difference.

edit: Installed 0.1.5, and Battery Monitor Pro still reports a 1mA drain, even when charging. The battery voltage levels seem to be correctly reported however. Tried a different setting for the mA drain measurement, no effect.

Then installed Currentwidget, and this is giving me more realistic values: a 300+mA drain with the screen on, and -5mA in sleep mode. I'll stick with Currentwidget for now then.