yashsingh1/xdaforums huggingface dataset:
[HTC Rezound] loonatik78:
This is what I use on mine:

#!/system/bin/sh

echo 30 > /proc/sys/vm/swappiness
echo deadline > /sys/block/mmcblk0/queue/scheduler
echo 60 > /proc/sys/vm/vfs_cache_pressure
echo 3074 > /sys/block/mmcblk0/queue/read_ahead_kb
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1836000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 192000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 25000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias
echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential
echo 1512000 > /sys/devices/system/cpu/cpufreq/ondemand/two_phase_freq
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor

sysfile="/sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels"
echo "192000 775000" > $sysfile
echo "384000 800000" > $sysfile
echo "432000 825000" > $sysfile
echo "486000 825000" > $sysfile
echo "540000 850000" > $sysfile
echo "594000 850000" > $sysfile
echo "648000 875000" > $sysfile
echo "702000 875000" > $sysfile
echo "756000 900000" > $sysfile
echo "810000 950000" > $sysfile
echo "864000 950000" > $sysfile
echo "918000 975000" > $sysfile
echo "972000 1000000" > $sysfile
echo "1026000 1000000" > $sysfile
echo "1080000 1025000" > $sysfile
echo "1134000 1050000" > $sysfile
echo "1188000 1075000" > $sysfile
echo "1242000 1100000" > $sysfile
echo "1296000 1125000" > $sysfile
echo "1350000 1125000" > $sysfile
echo "1404000 1150000" > $sysfile
echo "1458000 1175000" > $sysfile
echo "1512000 1200000" > $sysfile
echo "1566000 1200000" > $sysfile
echo "1620000 1225000" > $sysfile
echo "1674000 1250000" > $sysfile
echo "1728000 1275000" > $sysfile
echo "1782000 1275000" > $sysfile
echo "1836000 1350000" > $sysfile

Works like a charm. It's not pulling 4000 Quad scored, but it's not intended to either. Just plug in the values you want and off ya go. You could potentially have two scripts like this that you could just execute via script manager with just 2 or 3 taps on your screen. One for power sipping, one for balls-out performance. And no resource-sucking CPU controlling app either.

What's different from stock on the governor is that my load sampling rate is 2.5 times slower, I have a little power save bias instead of zero, it lingers at a frequency a little longer before scaling down, and the two_phase_freq is 1.5GHz instead of about 1.0GHz stock. I might play with it more, but so far it's looking like a nice balance between smoothness and speed, and power savings.

---------- Post added at 09:39 PM ---------- Previous post was at 09:28 PM ----------

ondmand was doing that for me too. Setting the two_phase_freq higher definitely put a stop to that. I'm gonna play with how much lower I can take it before it starts resorting to higher freqs, but for now, that's where it spends most of it's time under load.
[HTC Rezound] Quadrider10:
da faug? lol way to complicted for me. for atleast my phone.... but thats awesome you can code and script things to your liking!
[HTC Rezound] loonatik78:
Oh no! I ain't no coding or scripting magician... not like the guys whipping out these kernels or ROMs! You're looking at most of what I know how to do here.
[HTC Rezound] Quadrider10:
haha still pretty cool!

that would be awesome to get more govonenors in tho :D

what other fun stuff can you do with this kernel? like whats with the bluetooth things and such like that?
[HTC Rezound] thornev:
What does it mean that I don't have the "ondemand" subdirectory in the "cpufreq" directory? Even if I use the ondemand governor, I still don't have that directory. I'll have to find the above files in some other location. The only directory I have in /cpu/cpufreq is /vdd_table. Also, my /cpu1 directory has no "cpufreq" subdirectory.
[HTC Rezound] loonatik78:
Assuming you're using Sebastian's 1.4.0, I'm not sure why /ondemand isn't there, but it should be. Do you have any CPU controlling apps installed? The reason /cpufreq isn't in /cpu1 is because parameters set to /cpu0 apply to both.

---------- Post added at 01:47 AM ---------- Previous post was at 01:02 AM ----------

Well, there's all kinds of user adjustables here and there, but I couldn't begin to go into that here. Android kernels are mostly already tweaked for mobile devices. The first 4 lines in the script I posted have nothing to do with the CPU. They adjust virtual memory and file system behavior.

I'm a hardware geek. Not a software geek. If I knew more about kernels and software, I'd just make my own. Awesome kernels aren't loaded down with a dozen mal-tuned governors or a dozen pointless tricked-out I/O schedulers or scads of pointless modules. Awesome kernels are kernels that make hardware process code with the fewest possible clock cycles. If ya don't know how hardware actually works, messing with kernels ain't what you're good at.
[HTC Rezound] thornev:
I did have System Tuner installed (not anymore) and I do have ROM Toolbox installed (though I wasn't using it for CPU control). What I'm noticing is that some process keeps changing /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq. I set the max freq to 1836000 (via a CPU tuning tool and also directly in the file) and moments later some process changes it to 1512000. Then it changes back to my setting and then back to 1512000 and on and on. I tried setting the permissions on the file to read-only, but still the values keep changing. As a result, governors aren't working correctly. Performance governor should keep the max freq at whatever I set it to, but max freq keeps getting changed as I describe. I can't figure out why this is happening.
[HTC Rezound] loonatik78:
I'm don't know jack about software or how those apps do what they do. From everything I've read it sounds like the only difference between what you've had on your device and mine has been those apps. I'm not sure if the problem lies in something one of those apps left behind or not. I haven't run any tuning apps since I did a full wipe on mine. I wish I could give you a definitive answer, but I'm just not that knowledgeable.
[HTC Rezound] thornev:
Yeah, I think I'm going to try a full wipe, reinstall 4.03.605.2, and start from scratch. Something on my phone seems messed up and I admit I have screwed around with freezing apps, multiple tuning apps, and different kernels.
[HTC Rezound] thornev:
OK, this is nuts. I reinstalled 4.03.605.2 (from file PH98IMG_ICS_4.03.605.2.zip which I verified contains the same stuff as the 4.03.605.2 zip file on Android Police), installed superSU, enabled USB debugging, etc etc. Before I installed any apps or did any setup, I used adb to go look at my file system. scaling_max_freq was set to 1512000 as expected and governor was ondemand as expected. So next I wrote "1836000" to scaling_max_freq (in cpu0/cpufreq) and "performance" to scaling_governor, checked that 1836000 sticks and IT DOES NOT ! So I don't know what's going on here. I can't blame this on any apps, ROMs or kernels. This is a stock system overwriting scaling_max_freq when it shouldn't (because performance governor is active).

Here's something else I noticed... If I have the cpu max for cpu0 set at 1836000, it goes down to 1512000 when cpu0 min freq is cranked up by the system from 384000 to 1512000. When the system puts back cpu0 min freq to 384000, then cpu0's max goes back to 1836000.
[HTC Rezound] Quadrider10:
wait a second.... i think i figured out ur problem.... read the first page in this thread wwhere it talks abou the thermal thing. i belive it says that if the cpu reaches a certain temp, so like 150 F it will scale down to stock or below stock frequency. and if it dips in frequncly so like below 80 F it will reset its self to stock settings. i think Sabastian said that its normal for it to do that, so he created his own script to stop that..

---------- Post added at 03:08 PM ---------- Previous post was at 03:00 PM ----------

quick question.... whats the hottest the cpu can get to. like a safe pointwhere if it gets passed a certain point, its time to quit the game or somehting?
[HTC Rezound] thornev:
My temp rarely gets above 125F and I read about that in the Cubed thread. I tried the thermald trick and it didn't work if that's what you're talking about.
[HTC Rezound] Quadrider10:
kinda. i mean if they get too low of a temp, i belive sabastiansaid that the cpu will reset its self....

idk. i might be totally wrong lol
[HTC Rezound] loonatik78:
You can't just bust out some "echo" command on a stock kernel. It's not set up with a sysfs like a custom kernel usually is. There are custom kernels that permit overclocking, like wildstang's, but don't feature a sysfs so scripting in your settings or issuing "echo" commands won't work. Sebastian's is though.

---------- Post added at 08:43 PM ---------- Previous post was at 08:41 PM ----------

I've overheated 1.4.0 until it ceased charging and nothing reset.

---------- Post added at 08:46 PM ---------- Previous post was at 08:43 PM ----------

I can tell you from experience what happens. You're phone will shut off and not come back on until things chill out a bit. Unless you just brutally overvolt/overclock the cpu, it's pretty hard to kill it. You're battery is far more prone to thermal damage than your CPU. Temps much above 160 are tough on the battery. Temps north of 175 are probably damaging your battery.
[HTC Rezound] tschmid5:
This kernel renders my camera inoperable. I'm on stock, rooted, deodexed 4.03.605.2, and immediately after flashing this I boot up my device and my camera shows all black, the front facing one as well, but still takes pictures. Sucks because it was running soo smooth before I tried to use my camera...
[HTC Rezound] loonatik78:
It's not this kernel. Just checked. Both work on mine.
[HTC Rezound] Izeltokatl:
My video camera doesn't work either, but my camera works fine.

Sent from my rezound
[HTC Rezound] loonatik78:
What ROM are you guys using?
[HTC Rezound] Izeltokatl:
ViperRez 1.3

Sent from my rezound

---------- Post added at 01:11 AM ---------- Previous post was at 12:59 AM ----------

So I'm trying to reflash version.1.4 via twrp 2.2.2.1 but it's not creating the ph.zip any ideas?

Sent from my rezound
[HTC Rezound] loonatik78:
It is creating the phxxx.zip, but twrp doesn't reboot to bootloader to flash the boot.img. If you're using that recovery, you gotta reboot into bootloader and flash it like that, then go delete the .zip so you can boot back into your recovery if you need to.
[HTC Rezound] Snuzzo:
Are you s-off?
[HTC Rezound] Quadrider10:
will this kernel work with any ISC Sense ROM???
[HTC Rezound] Izeltokatl:
I'm actually looking for the ph file after flashing. I remember last time it dropped the file on the sd card, then I reboot to bootloader. But it's not making the ph file? I tried 4 times and also tried downloading the kernel 3 different times. With the same result. I'm s-off still.

Sent from my rezound
[HTC Rezound] Snuzzo:
Yes, in theory it is supposed to.
[HTC Rezound] loonatik78:
1.4.0 will only correctly flash on S-off devices. If S-on, you need to manually flash the boot.img via fastboot. 1.3.0 and older are the only ones that create boot.img PHXXXX.zip files to flash. My bad. I shoulda thought of that before, but it was late and I wasn't thinkin.

---------- Post added at 01:18 PM ---------- Previous post was at 01:17 PM ----------

1.4.0 is built from OTA source that HTC released. I don't think it will work on Global ROMs that seem to require different source.
[HTC Rezound] Quadrider10:
alright kool! im planning on upgrading to a sense 4 ROM next weekend...
[HTC Rezound] thornev:
I installed 1.4.0 on Global stock ROM and was able to get overclocking speeds. But of course, as is documented in this and the Cubed thread, on my phone cpu max freq won't stick.
[HTC Rezound] Quadrider10:
ur phone is screwed up lol
[HTC Rezound] tschmid5:
The stock rooted deodexed latest global OTA, 4.03.605.2. S-OFF
[HTC Rezound] Quadrider10:
nvm lol
[HTC Rezound] Izeltokatl:
Deleted

Sent from my rezound
[HTC Rezound] Quadrider10:
i havent had any problems with it...
[HTC Rezound] smokindank42o:
how do i get an unsecure boot image so that i can flash this kernel
[HTC Rezound] morpheousrx:
Hopefully not a stupid question?

Just a quick (stupid) question....

Will this kernal work on aosp since it is now htc source based or no?
[HTC Rezound] loonatik78:
Still S-On, or still S-Off? If you're actually S-Off as you claim, you don't need to reflash anything within the bootloader or locate and flash a PHxxxx.xxx file.
[HTC Rezound] Snuzzo:
Actually you don't need one. Most(i'd say 85% have an unsecured boot) custom roms have an unsecured boot. Also with a proper adb/fastboot setup you only need the zImage/modules from the flashable zip.

"adb push system/lib/modules" after mounting system in recovery

"fastboot flash zimage zImage" in fastboot

No it won't.
[HTC Rezound] cduru:
Has anyone tested this kernel on Newts 6.0.2 rom?
[HTC Rezound] Izeltokatl:
It worked fine when I was in 6.02

Sent from my Rezound.
[HTC Rezound] cduru:
Izel, I remember I had video issues while running Adrenaline 2.0 with the 1.4 kernel. Did you experience any video streaming issues with 1.4 on Newts?
[HTC Rezound] Izeltokatl:
I don't stream video on my phone much, so I can't recall.

Sent from my Rezound.
[HTC Rezound] CharliesTheMan:
If you do see it, vinylfreak's video fix should take care of it.
[HTC Rezound] keyone72:
00

i have issue with camera its just shoe me a black screen

and i cant use otg .this is not exist
[HTC Rezound] pball52998:
I can't say anything on the camera.. But we need more info to help. What ROM are you on? What hboot and radios do you have? What in the kernel have you messed with? Plus, this kernel is from 2012... The only ROM that has OTG support as of now is bunchies kitten kernel... And that's for 4.4.4 AOSP ROMs..
[HTC Rezound] SteveDusa:
Got the MainVersion error. I'm on Ineffabilis-Deus-v1.0.2 with HTCDev unlocked.

Tried flash the zip in recovery and using the auto installation method, both results in MainVersion error.

Any ideas?
[HTC Rezound] Argent36:
Fix yer mainver

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

That's how I fixed mine and was able to flash in recovery :)
[HTC Rezound] andybones:
I can think of 3.

use fastboot.

edit the .txt file

edit your mainver.
[HTC Rezound] SteveDusa:
Thanks... someone please remind me what was the fastboot command for flashing the kernel again...
[HTC Rezound] andybones:
fastboot flash recovery nameofrecovery.img
[HTC Rezound] SteveDusa:
Umm Andy isn't that's for recovery? I've been searching and found the answer but it needs the kernel to be in the boot.img form.

I'll just go edit the txt in the zip.

Thanks guys!
[HTC Rezound] zeroxg4:
fastboot flash boot boot.img while in fastboot mode.
[HTC Rezound] SteveDusa:
Changed MainVer using adb shell, flashed in recovery then scripted into HBoot, worked.

Now going to try it with SetCPU.
[HTC Rezound] rockingondrums:
That's what I thought! Good to clear up the confusion.
[HTC Rezound] SteveDusa:
Okay the wifi is acting weird... it can establish a connection to both 2.4 and 5 gHz 802.11n network but it's just incredibly slow, often timed out.

No it's not my WLAN's problem, it was performing great before this kernel.

Anyone experiencing the same issue?
[HTC Rezound] gramsey1911:
My WiFi runs same with this kernel as it does with the stock kernel. Might want to clear cache and davlik and flash it again.
[HTC Rezound] SteveDusa:
Nope, Chuck Testa refuses to leave me alone.

Wiped cache and D-Cache twice, reflashed, still no good.

First boot it won't even connect to the network, rebooted then 2nd round it'll connect but the problem still exist: can associate with the WLAN but times out quite often.

Back to stock and all problems goes away.

Maybe it's the ROM?
[HTC Rezound] Deathbyfugu:
I think it's the kernel.
[HTC Rezound] Njenson:
Ok... I'm really stumped. Flashed a new rom, and the stock ota ics kernal and still have no data... Phone works fine as well as WiFi... But no 3g or 4g

Anyone have any ideas?
[HTC Rezound] con247:
What rom are you running?
[HTC Rezound] Njenson:
Was on newts senseless and tried boreds rezrom 1.2.... Both are the same... Shows 4g but acts like nothing is there

Sent from my ADR6425LVW
[HTC Rezound] con247:
That is so strange... I am on a rom based on senseless and it tested fine for me.
[HTC Rezound] Deathbyfugu:
Sounds like you should RUU to stock and upgrade to the OTA before trying to flash anything else.
[HTC Rezound] WizeGuyDezignz:
I think I've come to the conclusion to not use a "3rd party" kernel unless the dev of your ROM specifically tweaks it for their particular ROM. I'm not a dev and might be totally off base here, but I've always had issues trying different kernels on whichever ROM that I'm on.

Am I totally wrong here or do I have a valid point?

And this has nothing to do with Sebastian's fine work! I really appreciate it!
[HTC Rezound] Easton999GS:
Guys i fixed 99% of all the issues, flash the kernel before you flash the Rom not after
[HTC Rezound] mjh68:
What issues did this fix ? Only issue I seem to have is that the 2nd core never comes online and I flashed it after the rom. I was at work so just flashed it on the rom I was running , which was Joelz 2nd version of his 3.6 ICS rom.
[HTC Rezound] Njenson:
I did the its a while ago... And I did manage to get data back flashing back to a gb Rom I had... Odd

Sent from my ADR6425LVW
[HTC Rezound] z0mghii:
Getting 5.9k-6k antutu scores when I was getting 6.5k on stock kernel. Running at performance governor.

Edit: just got a 5440
[HTC Rezound] gadget!:
Before

After
[HTC Rezound] nrfitchett4:
but don't the ROMs auto install the boot.img after installing? That would overwrite the kernel would it not?
[HTC Rezound] trickster2369:
Only if you choose yes to accept the update in bootloader. Choose no and reboot.
[HTC Rezound] k2trill:
Everyone's is that way....
[HTC Rezound] tekhna:
This has been discussed over here--http://xdaforums.com/archive/index.php/t-1461875.html

No one's ever seen the second core active in any context.

I suggested it's just a placebo, and that might be close to the truth.
[HTC Rezound] Easton999GS:
i got a 7200 in Antutu using System tuner pro to control my CPU on Joelz Rom

http://xdaforums.com/showpost.php?p=21746057&postcount=452

your welcome... i asked for this forever ago. look at the reply post....
[HTC Rezound] mjh68:
How ? seems like everyone else does worse with this kernel than stock. I tried system tuner on performance settings with both sliders maxed and got a 6100, subsequent 2 other tries netted a 6054, and a 5100..
[HTC Rezound] Easton999GS:
because when you run antutu with performance governor it makes scores worse.... your suppose to use ondemand.
[HTC Rezound] idogx:
good job,thank you!
[HTC Rezound] fo0you:
This is incorrect.
[HTC Rezound] mjh68:
Thank you ! tried on demand with min and max maxxed and got a 6945 , which is much better than any other time I tried it . I am done with benchmarks , now I know that everyone's 2nd core is offline and in real world use this kernel doesn't lag or anything.

I was just frustrated at lower scores than stock :)
[HTC Rezound] Easton999GS:
performance governor ****s up your CPU integer score in Antutu. run ondemand governor i guarantee it will be higher. CPU maxed out with that governor doesnt mean ****. trust me. just for linpacks. lagfree is the 100% best benchmark governor for quadrant and antutu
[HTC Rezound] mjh68:
Thanks again.. I had loaded it while at work so couldn't do it through fastboot which I prefer so didn't know if something didn't load properly or what. Otherwise , than battery it seems to run fine.
[HTC Rezound] champdr0id:
Just wanted to say to the performance haters, 1728/594 performance got me a 6900 on antutu with joel's latest ICS/Sense rom, beating out my best score by about 400, when i had nils' BGS 1.3 :)
[HTC Rezound] fo0you:
gotcha... while we're at it, know of a Kernal for Rezound GB that has lagfree governer?
[HTC Rezound] sdsurferbob:
So far so good with all features on Newt's Senseless V2. thanks for the great work!
[HTC Rezound] apophis9283:
does each core get over clocked to 1.728 GHz?
[HTC Rezound] WasabiWa83:
Supposed to.
[HTC Rezound] clclark7:
I'm running newts sensless rom ics. Just curiouse if this would work on this rom being that its sensless.....

Thanks!
[HTC Rezound] SebastianFM:
Low scores in AnTutu Benchmark may be caused by CPU temperature limits defined in /system/etc/thermald. When CPU reaches this limit, frequency is decreased by thermald deamon.

I launched AnTutu Benchmark a lot of times on my HTC Sensation and sometimes I had poor CPU scores, even on the stock kernel.

Finally I found a bug in HTC ROM. The mpdecision daemon doesn't work properly. This daemon decides if enable or disable CPU core 1. Also it enables both cores and sets maximum CPU frequency when recognizes that AnTuTu Benchmark process is running. I checked that the proper voltage isn't set to CPU in this situation.

To fix this disable mpdecision daemon (adb shell stop mpdecision) and enable CPU1 manually before running benchmark.

In the AnTuTu Benchmark's changelog there are informations that "fixed low scores of CPU benchmark" and "fixed a bug that may be cause unreliable CPU score in some device" but I'm sure that the real reason for low scores is the bug in mpdecision.

Both CPU cores have an increased frequency.

This kernel is 100% compatible with every ROM running on HTC kernel 3.0.13-gaf15497-dirty, no matter if Sense or Senseless.
[HTC Rezound] rulasx:
thanks sent.

this OC is great i feel very powerful :) :cool:
[HTC Rezound] Scott:
This is pure GENIUS!!!

Although I have not had time to play with it people on my ROM say good things about it!

Outstanding job!

-Scott
[HTC Rezound] WasabiWa83:
I'm still getting horrible Antutu scores. Tried that trick that you suggested and my numbers went down. Don't care, though. I'm not about benchmark numbers. I can just tell you that this thing flies :D :D :D Thank you so much!
[HTC Rezound] racinwarrior:
so what is the secret to getting the voltages you set to stick. tried 4 different overclock apps and all revert back to 1.5 ghz after about 3 minutes
[HTC Rezound] SebastianFM:
This method works on my HTC Sensation:

adb shell stop mpdecision
adb shell "echo 1 > /sys/devices/system/cpu/cpu1/online"
adb shell "echo 1728000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
adb shell "echo 1728000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq"
adb shell "echo 1728000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq"
adb shell "echo 1728000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq"

When the benchmark is running you can check the current CPU frequency:

adb shell cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
adb shell cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq

To restore default settings you can reboot phone or use these commands:

adb shell "echo 1728000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
adb shell "echo 384000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq"
adb shell "echo 1728000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq"
adb shell "echo 384000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq"
adb shell "echo 0 > /sys/devices/system/cpu/cpu1/online"
adb shell start mpdecision
[HTC Rezound] WasabiWa83:
Sweet, I'll play around with it later. Like I said, the phone is running smoother than I've seen it run in a while, so I'm not too worried. I will try that to see if I can get the Antutu numbers people are reporting. Thanks again!
[HTC Rezound] mrbigdrawsz:
Only Able to Go up to 1.51Mhz

Using both Antutu and System Tuner Pro I'm only able to OC to 1.51Mhz. It doesn't give me an option to go higher than that. Am I missing something or did something go wrong?

When I look at my software settings it does show this kernel as being install.
[HTC Rezound] sdsurferbob:
See post #99