yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] jkoljo:
OC Guide

You have to have S-OFF and permanent root for this to work, so get them first. Follow other guides around DHD Android Dev forum.

Then get the kernel zip file from the first post, and unpack it to for example C:\flash\. You have to download android sdk from the internet, place it to for example C:\android-sdk-windows\. Now you have everything you need to start the process of flashing the kernel, and overclocking in the end.

Make sure the USB Debugging is enabled before starting, after that leave the device alone. Plug device to a computer, open a command window on your computer, and navigate to the sdk/tools folder (use cd command to navigate, google it if you do not know it). Then continue from first post step number 3. On step 4, the d:\temp\zImage is the path to your image file, for example C:\flash\zImage in my case. On step 6 do this: "adb push C:\flash\bcm4329.ko /data/local", otherwise everything goes like in the first post, you just have to paste stuff to the cmd window.

When you are done with everything, unplug and reboot for a good measure. Then download Set-CPU from here, XDA (search for it) and you can start playing with some settings. There are two important values in Set-CPU, lower and upper limit, I would suggest to start with 245 and 1209, they work great!
[Desire HD Android Development] darrenjdoc:
I have done all that m8 and its went through with no errors but i have no bloody wifi :)
[Desire HD Android Development] jkoljo:
Well, I actually used Apache's kernel, maybe you should give it a shot. The wifi works in both versions.
[Desire HD Android Development] iraqisniper:
HEELP

hey man please giv me more detail i cant do anything i dont even know how to bootloader and what is dba ? :S make a video or giv me more detail please, thanks you
[Desire HD Android Development] jkoljo:
Ok, next time I have to flash a kernel and I have a camera available, I will take a video.

ADB is a program that lets you communicate with the phone via a computer. If you have done S-OFF, you will know what a bootloader is, at least you should.
[Desire HD Android Development] arielext:
did you remount /system with RW permissions?
[Desire HD Android Development] darrenjdoc:
I just followed the first post m8.

How do i do that ?
[Desire HD Android Development] darrenjdoc:
The phone is rooted and S-Off.
[Desire HD Android Development] combat goofwing:
thanks for this but reading through just a few things i am still unsure of,i have all the tools downloaded

1. is phone connect to pc via htc sync or just as a disk drive

2. what do the areas in grey in the first post mean

3.when it says rebbot to bootloader do i do that by rebooting the phone or doing something in sdk tools

as you can see i really do want a guide for dummies or should i say dummy:o
[Desire HD Android Development] combat goofwing:
yes i know what a boot loader is and have perm root as in bootloader it says s off its getting straight what to do on the phone and what on the pc

thanks for any help
[Desire HD Android Development] jkoljo:
1. Use only charge, that is the default so no changes needed

2. They are commands you have to enter on your computer

3. You reboot to bootloader using the command in the grey box, adb reboot bootloader. So when you have cmd open and you are in sdk/tools directory, just write that and watch magic happen.
[Desire HD Android Development] darrenjdoc:
In the end i just flashed the old bootload image from mikecoffee's post and got my wifi back again. Its a pity as this was flying :)
[Desire HD Android Development] combat goofwing:
thanks got it all done and it was easy once i put my brain into drive

on point 6 i just copied your text and ran that is that correct, edit its not i have no wifi so how can i get that back?
[Desire HD Android Development] mistertoo:
Works a treat! Thanks kAmMa!!
[Desire HD Android Development] selami023:
i will try it right now. i hope it will work
[Desire HD Android Development] selami023:
Hi,

it still shows me Wifi error. What can i do?

I dont get it why is wifi not working

pls help

ps: Im using the Android revolution HD 2.0.7

finally it works. I flash the kernel again and see there it works.^^
[Desire HD Android Development] funkatiko:
please kamma ( or anybody), can u help me to make vdd levels to work?

i've been asking for help for some time and still no response....

Thx in advance
[Desire HD Android Development] kamma:
its easy...

read this - http://xdaforums.com/showthread.php?t=821372
[Desire HD Android Development] funkatiko:
I've read it but i didn't understand well how is the structure of the script. if u could guide me a bit i'd be really thankfull. :P

the script is already built but when i execute it, the console says that the values ( frequency: voltage) are not recognised
[Desire HD Android Development] tolis626:
Hey kamma,awesome kernel.Great performance although it kinda sucks when using interactive governor and it's missing smartass,but ok. :)

What I want to ask is,with the script that changes the vdd levels,can I also change frequencys?If not,is there any (near-to-)easy way to do it?

Thanks! :)
[Desire HD Android Development] at004:
Hey guys thx for this great kernel i installed it on my htc desire hd stock rom i installed the fastboot version all is fine and i can overclock to 1,5ghz however i am experiencing unusual lag any ideas would be appreciated . this is the version i installed ......

Fastboot package -http://rapidshare.com/files/439578054/kkernel_v14.zip
[Desire HD Android Development] Rawdi:
i cant download your 1.4 kernal. can you please fix the link. also whats the pros and cons to UV kernals.
[Desire HD Android Development] kamma:
this is too aggressive for my device... freezes immediately...
[Desire HD Android Development] Schmurtz1968:
Yep, same thing here. My DHD needs more juice to avoid bootloop or freezing.

Looks like vdd are not taking in account. Did you check vdd with : cat /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels ?
[Desire HD Android Development] kamma:
i have no much time at these days, but i would like to look at the possibility to change freq. table on the fly...
[Desire HD Android Development] XBOCT:
htc_ebdlogd

Thanks! It works on my DHD with rooted stock 1.72.

init.spade.rc included in ramdisk image doesn't start htc_ebdlogd. Is this for saving CPU resources and flash cycles or you just forget about it?

Is it public available?
[Desire HD Android Development] tolis626:
Yes yes yes!Do it! :D
[Desire HD Android Development] funkatiko:
That sounds really cool...looking forward it...:D
[Desire HD Android Development] at004:
hey guys srry about this question, however can someone please explain to me what the frequency table is and how i can implement it. i already did the kernel however my dhd is a bit laggy sometimes.
[Desire HD Android Development] hammer31:
lagg when turn off sleep mode
[Desire HD Android Development] Schmurtz1968:
Nice idea !

@kamma

It would be great, because i have instability that might be explained by too much frequency jump.
[Desire HD Android Development] funkatiko:
Hi again guys!

I have a doubt...... the thing is that i´m using this kernel with the vdd levels...and so far so good...but there is something that i´m not sure 100%...

Well first of all i have a question: To apply the voltages during the boot is it as simple as placing the script in /system/etc/init.d ?

My thing is always that i exectue the command: sh /sdcard/fs to check the voltages, the first time, it gives to me the stock voltages kamma has put on the kernel but if i do a second time, then, it gives to me the voltages that are written in the script. That happens even if i didn´t execute: chmod +x /sdcard/fs

Is something wrong? The voltages i´m sure are being aplied coz if i undervolt too much, it freezes, heheh, so for sure it´s working...but it´s pretty weird tho....

Can anybody give an explanation??

Thx! :)
[Desire HD Android Development] XBOCT:
vdd levels

rootfs included in kamma's boot.img have no support for init.d

Look http://xdaforums.com/showthread.php?t=893388

all right. You start "sh" (command interpreter) to run "/sdcard/fs" (script).

"chmod +x fs" is required to make scripts directly executable (without first "sh") but this doesn't work in FATfs.
[Desire HD Android Development] funkatiko:
Thx a lot for the response! I understood everything. :)
[Desire HD Android Development] than33:
After 3 days of intensive testing I've realised that this is really without any sense to have so much frequencies. On other kernel forums I found that going higher frequencies does not consume a lot of power more. Only going higher voltage consumes more power. So: If we switch to higher voltage we should switch to as high frequency as it could work stable on that voltage. In addition there are many frequencies that kernel uses very rare.

So I tried to set my own set of frequencies by command:

echo "245760 368640 768000 1017600 1094400 1209600 1305600 1459200 1536000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

and set them my stable voltages:

echo "245760 875" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

echo "368640 900" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

echo "768000 950" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

echo "1017600 1000" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

echo "1094400 1050" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

echo "1209600 1100" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

echo "1305600 1200" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

echo "1459200 1250" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

echo "1536000 1300" > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

Unfortunatelly there are no rights to change 'scaling_available_frequencies'. Is it possible to give such rights? Or can You make kernel with only those with frequencies available?

EDIT: I just realized that I can change permission and write to this scaling_available_frequencies, but it stays as it was, without any changes.

p.s. You can check in stats/time_in_state that kernel is not using so much frequencies.

PLEASE MAKE SPECIAL KERNEL VERSION WITH ONLY FEW FREQUENCIES AVAILABLE. THANK YOU!!
[Desire HD Android Development] Schmurtz1968:
http://xdaforums.com/showthread.php?t=836259&page=60 (Post 593)

It's in the air ! :)
[Desire HD Android Development] Schmurtz1968:
VDD RAW Voltage at 1024600 ?

@Kamma

Can you confirm that stock VDD at 1024600 is 1200 ?

I don't know why but with your kernel, i have frequent bootloops, meaning that your kernel is a little bit undervolted ?

Edit :

Question2 : Do you think that VDD are kernel dependent, i.e different voltage for different kernel ?
[Desire HD Android Development] kamma:
Changelog v1.5 - for real enthusiasts

- max frequency set on-the-fly !!! WARNING - Using this feature can make your device very unstable or cause permanent demage !!!

- freq. table reduced to these values (245760 368640 768000 1017600 1094400 1209600 1305600 1459200 1536000)

Fastboot package - http://rapidshare.com/files/445794634/kkernel_v15.zip

CW package (for HTC Sense ROM v1.32) - http://rapidshare.com/files/445794656/kkernel_v15_cw.zip

CW package (for HTC Sense ROM v1.72) - http://rapidshare.com/files/445794649/kkernel_v15_172_cw.zip

How to set max frequency

echo 'm1593600 1350' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

"m" means max frequency

1593600 is max frequency (no limitation)

1350 is voltage for this frequency (maximum is limited to 1500mV)
[Desire HD Android Development] antolfredo:
hello kamma the new kernel also works for ROM: RUU_Ace_TELUS_WWE_1.84.661.1_R;:rolleyes:
[Desire HD Android Development] funkatiko:
Can someone upload it to any other mirror as rapidshare doesn't work for me. Thx
[Desire HD Android Development] funkatiko:
Kamma, so if I understood correcttly, there's no limit of frequency ? Just voltage limitation? Thxxx
[Desire HD Android Development] kamma:
exactly...

i can allow to adjust any voltage in next version, but at least this little more safer...
[Desire HD Android Development] kamma:
mirrors

kkernel_v15_172_cw.zip (4.57 MB)	http://www.multiupload.com/C81VKGI6U5

kkernel_v15.zip (4.21 MB)	http://www.multiupload.com/OJAFAG4XDH

kkernel_v15_cw.zip (4.54 MB)	http://www.multiupload.com/C658TD6H4E
[Desire HD Android Development] kamma:
great OC performance... :)

echo 'm1651200 1350' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

Linpack: 57.263 MFLOPS
[Desire HD Android Development] funkatiko:
Thx for the mirrors kamma. And thx for the kernel. U have great ideas, I'll definitely follow ur work. :)
[Desire HD Android Development] sonydesouza:
Hi,

I have would like to test this kernel but i don't know which one i have to download...?

I'm on MIUI rom...

Thanks a lot

;)
[Desire HD Android Development] than33:
Thank you very much!
[Desire HD Android Development] tolis626:
What?

62.457 MFLOPS @1843Mhz! :D :D
[Desire HD Android Development] Try4Ce:
I have MIUI as well and my Brother told me about this kernel. He was really pleased with the performance. I know I can damage my current installation of MIUI, but im going to try out the fastboot kernel installation...

I will report back, just backupping my system right now if anything goes wrong.

If i succeed, I will start testing the battery drain and life
[Desire HD Android Development] Try4Ce:
first test wasnt good. it booted up, wifi was able to connect, but bluetooth didnt work. and i got weird artifacts on the screen, thin black lines where randomly appearing everywhere... but maybe its because i flashed a buzz kernel over recovery before... i know that can interfere with zImage flashes afterwards... going to try it out again after a fresh, untouched installation of MIUI
[Desire HD Android Development] Try4Ce:
Nope, sadly it is not working. BT gets broken and graphical glitches appear, as well as some force closes...

This kernel is NOT for MIUI.

Kamma, i know its alot of work, but how about a nice kernel for MIUI? Seems like you have some good knowledge of this stuff. Even with GFX glitches, I did some benchmarks, and the results were way better than before. And the whole system felt really snappy!
[Desire HD Android Development] danielino1987:
how do I change the string? directly from the device with a Astro file manager??

Tanks
[Desire HD Android Development] funkatiko:
Awesome! Im running 1.7 @ 1300 mv...ou yeah! But there is something weird...if I put the max frequency at 1.7 ( echo m1700000) then the other frequencys are override from 1.4.

I want to have some steps in between...any tip of what could be the issue?
[Desire HD Android Development] fixfox2:
Is anyone getting wifi error like I am with this kernel?

edit: had to reflash with clockworkmod.

The error was because I used "kernel update utility" without applying modules.
[Desire HD Android Development] sentlon:
same question .
[Desire HD Android Development] fixfox2:
type the string using a "terminal emulator" ... there are a lot in the android market.
[Desire HD Android Development] kramerty88:
A question: does anyone know why even after I change the scheduler via gscript to f.e. bfs (echo "bfs" > /sys/block/mmcblk0/queue/scheduler)

the check always says:"noop [bfq ]"? (Without the last space ofc but xda wouldn't get it otherwise.)

Looks like it didn't change did it? If so, what did I do wrong?

Edit: typos, I just got up ;)
[Desire HD Android Development] brolee93:
how to change 'm1593600 1350' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

? with gscript or terminal ?
[Desire HD Android Development] kamma:
in terminal, adb shell or gscript. it doesnt matter...
[Desire HD Android Development] brolee93:
i write it in gscript :

echo 'm1593600 1350' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

and it work when i open gscript ?

But i have :

stderr : cannot create /sys/devices/system/cpu/cpu0/: is a directory
[Desire HD Android Development] kamma:
yes, it should...
[Desire HD Android Development] brolee93:
it is doesen't work
[Desire HD Android Development] kamma:
did you enable gscript in superuser ?

try to enter "su" command first
[Desire HD Android Development] brolee93:
thanks with su and no needs su

it is work thanks

But when i will try 1.7ghz it is dont work what ?
[Desire HD Android Development] fixfox2:
at what voltage ?
[Desire HD Android Development] ringrover:
kamma

can i flash your kernel through rom maneger ???
[Desire HD Android Development] danielino1987:
Thanks for this great kernel

string changes made with ADB SHELL

Frequency 1593600 KHZ
[Desire HD Android Development] sonydesouza:
Thanks for your report my friend ;)
[Desire HD Android Development] anko184:
@kamma: Any chance of adding smartass governor in this kernel?
[Desire HD Android Development] kamma:
testing right now...
[Desire HD Android Development] tolis626:
Well,that is the not-so-good part...I was running @1475mV! :p

Happily I didn't burn it...! :D
[Desire HD Android Development] ringrover:
????????????????????
[Desire HD Android Development] kamma:
yep, there two packages...

one for 1.32 based ROMs and second for 1.72 based ROMs...
[Desire HD Android Development] ringrover:
thanks mate ... and it will push the moudels for the kernel by the rom maneger it the same time ....??
[Desire HD Android Development] brolee93:
i have 3300 in quadrant with 1.7Ghz but i have lag in rockplayer , have you one solution for resolve this lag ?

Thanks for your good kernel my dhd rock

origins of problem are activation of BFS or BFQ it is possible to disable this ?
[Desire HD Android Development] Elemental_Fire:
Mwahahaha :D
[Desire HD Android Development] danielino1987:
Same question, and often out of sync audio with video.
[Desire HD Android Development] Elemental_Fire:
Hmmm...i'm having some problems believing this :confused:

I wonder if someone could help me verify this. Running my Desire HD at 2000mhz, I ran a program called Antutu benchmark. My sd card results are a bit weird. I have a class 4 4GB MicroSD card. When i'm using the computer(card placed in SD Adapter Slot, not through phone) the computer writes to the card at around 20mb/s...and it copies files from card to hard drive at around 300mb/s for a single large file and around 20mb/s for lots of small files. Does this prove that the Desire HD actually makes use of the MicroSD card speeds to their maximum limit? Or is it just me and my weird card :eek:
[Desire HD Android Development] fixfox2:
at what voltage?

what are the corresponding linpack results?
[Desire HD Android Development] Elemental_Fire:
fixfox2:

http://xdaforums.com/showthread.php?t=934168&page=6

I've posted my findings there. You might have to go above that voltage but I wouldn't recommend it unless you have insurance or wanna make a nuke xD It's a risk I took :p
[Desire HD Android Development] danielino1987:
resolved, longer enough voltage. I like such as voltage and frequency 1700000 1375
[Desire HD Android Development] Elemental_Fire:
Bro, you only need 1300-1325 for 1.7Ghz :)
[Desire HD Android Development] danielino1987:
because it serves to 1593600 1350?
[Desire HD Android Development] danielino1987:
someone posts the right values for each step

es:

Frequency voltage 1350 1593600

Thanks :)
[Desire HD Android Development] more2come:
Thanks Kamma for a very, very fast kernel!

I'm using it on Revolution ROM 2.0.9 (thx again, Mike!) @ 1.45 GHz.

Maximum freq runs good, but I'm having trouble with my display after waking the device. It stays black for about 3-5 secs, but it comes on after that.

I guess that's voltage related. Is it possible to edit the voltage table with an editor like root explorer?
[Desire HD Android Development] kamranh3:
What are the voltages for the stock kernel?
[Desire HD Android Development] brolee93:
For lag in rockplayer you have solution ?
[Desire HD Android Development] matixuk:
i flash cw package 1.72 and my DHD stuck on white screen :( some help pls
[Desire HD Android Development] more2come:
Regarding to your signature you have CyanogenMOD installed, haven't you?

This is a Sense-Kernel, you can't use that with CM!
[Desire HD Android Development] danielino1987:
if the kernel uses to buzz 1.51ghz 150mV is it right to use more to 1.7GHz but I do not know what our device supports a maximum.
[Desire HD Android Development] funkatiko:
I´m having some problems using "ondemand" governor and custom frequencies.It freezes sometimes, not on performance tho(also could be the extreme Uv/Oc xD) Are u planning to add smartass???

Thxx
[Desire HD Android Development] anko184:
kamma said earlier today that is playing with the smartass governor.

Check a couple of pages back.
[Desire HD Android Development] funkatiko:
Didn´t see it. I follow this thread everyday, but sometimes i miss some posts....
[Desire HD Android Development] more2come:
What can i do to prevent the black screen at wakeup?
[Desire HD Android Development] sentlon:
why after reboot the max setting of my string input is gone?
[Desire HD Android Development] liljom:
I think it's very good, that it resets itself on every boot

If you set 1,8-1,9GHz, than it's not smart leave it like that, is it? : )
[Desire HD Android Development] zantekk:
Is there any "best" freq - volt table ?

I don't know the lowest voltages for each frequency^^
[Desire HD Android Development] more2come:
It would be nice to have a step-by-step HowTo for changing the voltage table...

And a solution to the black screens at wake-up would be helpful, too.
[Desire HD Android Development] fixfox2:
The black screen at wake up is an indication that your voltage is set too low.

Had it also but fixed t by increasing my voltage.

I'm currently at 1728Mhz, with a voltage of 350..... no black screen on wake up!
[Desire HD Android Development] more2come:
Should have known that ^^ how do I change my voltage table permanently?
[Desire HD Android Development] kamma:
new version (1.6):

changes:

- CFS scheduler

- CFQ IO scheduler

- Smartass Governor added

kkernel_v16_172_cw.zip (4.63 MB)	http://www.multiupload.com/BIU9S15PK1

kkernel_v16_cw.zip (4.59 MB)	http://www.multiupload.com/EFNVJ8LT1Z
[Desire HD Android Development] fixfox2:
Running Kamma v1.6 ... testing smartass....

Can you please explain how it works?

I've noticed (from setcpu "time in state") that it's using 768Mhz a lot.

And yet, Setcpu's "main screen" does not show the frequency fluctuations ... it's always at max frequency ( in my case, 1728Mhz)
[Desire HD Android Development] zantekk:
gonna give it a try :)

thx a lot!
[Desire HD Android Development] zantekk:
If I set min to 245.760 and max to 1209.600 with smartass, it idles on 1017.600

I don't think that's the way it should work xD
[Desire HD Android Development] Try4Ce:
Sweet work kamma. But i guess it's still not working for MIUI, right? That would make me truely happy :-)
[Desire HD Android Development] kamranh3:
Smartass goes to 245Mhz when screen is off, have you got profiles activated?
[Desire HD Android Development] kamma:
Smartass governor is just added, not optimized yet...
[Desire HD Android Development] zantekk:
If you use smartass gov. there is no need for using profiles oO

I set freqs and gov with no-frills
[Desire HD Android Development] brolee93:
With kernel 1.6 my phone is very slow it is normal ?

I don't understand why ?

I test download in other server
[Desire HD Android Development] zantekk:
You have to set min and max freqs.
[Desire HD Android Development] LeeDroid:
Any chance of you updating your git any time soon? ;)

We are all constantly screaming for HTC to release their sources as per the gpl, as devs we need to be setting the standard :D

Sent from my LeeDrOiD loaded HTC Desire HD using my thumb....
[Desire HD Android Development] brolee93:
Yes lol and after update kernel my phone is slow lol .
[Desire HD Android Development] kamranh3:
I know but I've tested it and smartass seems fine with me
[Desire HD Android Development] brolee93:
it work after redownload kernel .

But it slow of compare with kernel 1.5.

Quadrant score 3500 with 1700MHz and 640(grafik) and it is fast but rockplayer very lag grrrr .

Quadrant score 2500 with 1700MHz and 575(grafik) and it is slow but rockplayer work fine THANKS
[Desire HD Android Development] kamma:
Thats the difference between BFS vs CFS...