yashsingh1/xdaforums huggingface dataset:
[HTC EVO 3D] curiousGeorge:
TurboCore harmlessly archives your existing mpdecision and puts processor control into the hands of the kernel (which also completely activates the second core). It also includes ondemand tweaks that are more comprehensive and balanced. That's it, really, but it's quite powerful. If the user wants to play with his/her clock speeds (say, to lower the max clock after installing GabersDemand TurboCore), that of course is up to the user. I think every user should be able to decide at what speed to run his/her device. GabersDemand doesn't conflict with anything except other ondemand tweaks and is completely uninstallable, restoring your old mpdecision and kernel behavior exactly. In any case, give 'er a shot. You don't even have to make a backup first. :)

Also, this might be obvious, but looking at bars in a program that itself pegs the CPU each periodic refresh can give you a very misleading picture. It also of course doesn't tell you how quickly the CPU ramps up, or how much time it spends in each state. There are logfiles in sysfs you can look at that will tell you a much better story.
[HTC EVO 3D] Lrod0175:
This is the Gaber's turbo core speed script:

#!/system/bin/sh

chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

#chmod 666 /sys/devices/system/cpu/cpu1/online

#echo 1 > /sys/devices/system/cpu/cpu1/online

#chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

#echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

chmod -R 644 /sys/devices/system/cpu/cpufreq/ondemand

echo 10000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate_min

echo 10000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate

echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor

echo 75 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold

echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential

I agree with you, is a very nice and clean script, similar the adrenaline but with more commands, it will set your cpu1 online with ondemand as the governor as well as changing the sampling rate and uptreshold, the script is good, however the issue is the mpdecision file, this file was put in the system/bin folder by HTC, the file takes control of your cpu1 and changes the governor to userspace ondemand everytime the screen is off, overwritting the init.d script, not allowing you to fully control cpu1, so in order for us to change and keep cpu1 governors, we have to change the mpdecision file's cpu1 governor.

I also agree with u in the fact that is up to the user, but in my case I like to be in the driver's seat when possible.

I have this for dualcore:

#!/system/bin/sh

chmod 666 /sys/devices/system/cpu/cpu1/online

echo 1 > /sys/devices/system/cpu/cpu1/online

chmod 444 /sys/devices/system/cpu/cpu1/online

SLEEPSTATE=`busybox cat /sys/power/wait_for_fb_sleep`;

if [ "$SLEEPSTATE" = "sleeping" ]; then

log -p i -t Cleanrom DE "Screen is off. Turning off CPU1";

WAKESTATE=`busybox cat /sys/power/wait_for_fb_wake`;

if [ "$WAKESTATE" = "wake" ]; then

log -p i -t Cleanrom DE "Screen on. Turning on CPU1";

echo "0" > /sys/devices/system/cpu/cpu1/online;

WAKESTATE=

fi;

done &)

I don't have a governor as I'm always changing between ondemand and interactive, but the wakestate and sleepstate are for cpu1 offline when screen is off, I'm still testing the sleepstate though.

LROD'S 3D
[HTC EVO 3D] Scott:
Did you say you can DELETE MPdescion?
[HTC EVO 3D] R32_Rocky:
Ok Mike, in regards to "full on programmer", without you mentioning it, who's to know you are? Or even your age, in the anonymous black hole of the Internet? So I apologize. My only taste (or distaste for me) of programming, was a course in RPG II, back in 80, during the punchcard days. I got an A in the course, but it soured me to ever program again.

As for deleting all the scripts in the init folder, I had asked a couple of times if I should, or not. And had explained that I had already removed the original DE scripts (due to the conflicts and redundancy I had mentioned NUMEROUS TIMES some time back before you guys started this, and had begged for someone with the knowledge, to clean these up - especially after LuckyLui got everyone script crazy), and had installed only the Adrenalin package alone. So was not sure how your zip would react, so thus felt it would've been safer to be clean first before installing your package. So thus, it did not perform as expected on *my* phone. So sorry about that. But I HAD ASKED first, for the record.
[HTC EVO 3D] Lrod0175:
If you asking me, no, I never meant or said that.

LROD'S 3D
[HTC EVO 3D] Scott:
No, thats what George said...

I am doing it now on my rezound but see now visual gains or any Antutu increases.
[HTC EVO 3D] Lrod0175:
Weird stuff happened when I deleted the file, lagging, battery drain, and I mean crazy battery drain, so be aware. Every phone is different though, but there is a reason why other developers have decided to edit the file instead of deleting it.

LROD'S 3D
[HTC EVO 3D] guitardoc64:
Ok, more for the debate. After struggling with **** battery life and some random sluggishness with the latest anthrax I decided to start over. This morning, I reflashed the ROM, and installed the anthrax #9 with none of the tweaks other than deleting the virtuous OC folder. I have since gotten much better battery life and performance is smooth. With the latest anthrax and Mike's tweaks I got good standby battery but it ate away the battery with the screen on. I'm going to run this 24 hours and see.

Sent from my Clean ROM 3D
[HTC EVO 3D] Scott:
To be perfectly honest with you all...

If your runnign a custom kernel... And that kernel is worth a damn... Yo dont need ANY tweaks at all because the proper values shoudl be coded in the kernel.

Tweaks are really just for the stock kernel that is usually coded a lot less efficient than, say, Anthrax...

Thats just my two cents...

Thoughts?
[HTC EVO 3D] curiousGeorge:
TurboCore archives mpdecision. That script posted above is not all it does. Check the installer. Of all people I know what mpdecision is capable of and my installer (and uninstaller) take care of it. :)

And that's quite astutely observed of you! Yes, quite correct. InfectedAnthrax included GabersDemand (at least up until the non-Infected Jan 5 build, because the developer had to start over). Infected-Anthrax handled threading better than the stock HTC base. This is why GabersDemand-Turbocore worked best with it (tested on RC3r4), as it was initially developed on top of it. Later versions of InfectedAnthrax actually built GabersDemand into the kernel itself. I'm not sure what the current non-infected HTC Anthrax kernel does, as (again) it is using an older base thanks to some drama stirred up by some jealous XDA devs that forced Chad to remove his magnum opus.
[HTC EVO 3D] jayfonzerrelli:
Ok, Im on the kernel you just posted, and I have to say, the other one tested higher than this one, as well as ran smoother!? But Borking the WiFi is a deal breaker. If anyone would like to test that other one, give it a go and let me know if your WiFi gets funky. Oh, and see if it isn't smoother for yourself. Either way this one isn't bad by any means, maybe it just needs to calm down.
[HTC EVO 3D] Lrod0175:
I have to say that its running really good for me, I am using system tuner to oc, I disabled vc as it doesn't goes well with other oc apps, and so far so good.

LROD'S 3D
[HTC EVO 3D] jayfonzerrelli:
it seems to have settled, and it's as smooth as the other one was. No worries! And better yet I have my WiFi, oh how I need my WiFi! lol, Podcast Junkie here!
[HTC EVO 3D] R32_Rocky:
And the one I downloaded is 3.29 megs. Wow????!!!! (Got it off the first post on Synergy, under approved kernels).

-----------------------

*** CORRECTION: LRod, did you type the first size wrong? I just looked at the link to mediafire you gave, and it is listed at 3.29 megs, so the one I already got is the correct one. ***

-----------------------

Here is a pic of mine. And LuckyLui, you are using the wrong one. Yours says E3D before the 1.03+, mine says SENSE before the 1.03+. So there is even more confusion, yikes.

Also, my WiFi is working even better. Let me check 4G now, though I have a very poor signal in my place,.......

Okay! Poor signal, but the 4G works!

I think this kernel might very well be, <<<GASP>>>, ..... awesomeness? Hehe
[HTC EVO 3D] Lrod0175:
Yes my bad and thanks for the correction, it is 329mb.

LROD'S 3D
[HTC EVO 3D] selders59:
That was the same kernel that I tried oh well we all know how finicky each phone can get and I guess mine had a disagreement with that kernel lol.

"From the Voices in my Head"
[HTC EVO 3D] btkgator:
I flashed this ROM last night. Nice! I followed all the step and did caches wipes and full wipe. I am not getting the scores using CF Bench that others are getting. The one step in which I deviated was that I did restore some of the apps w/ system data from Titanium. Could that be causing the discrepancy?

I've attached a screen shot of my best scores
[HTC EVO 3D] Lrod0175:
I went with setcpu instead of VC to OC, then I went to System tuner instead of setcpu due to all the extras it gives.

My highest score was with setcpu but there was a little lag here and there, I am running system tuner right now with the Tiamat kernel and I am getting lower scores, the highest I've had was 3070 but frankly my phone feels better and its not a placebo effect due to the fact that the little lag I had its gone.

I am using Go ex launcher pro and sometimes Launcher pro, I don't use the sense launcher.

LROD'S 3D
[HTC EVO 3D] btkgator:
Thanks LROD's- This score did have the setcpu installed and I deleted the VC file recommended in a previous post. I wasn't sure if something stood out in my results that looked like a red flag. But you seem to be getting similar scores. Thanks for your response.
[HTC EVO 3D] Lrod0175:
You r welcome.

LROD'S 3D
[HTC EVO 3D] pongoface:
Don't know if it has been mentioned but unchecking mobile view is not working in the stock browser. Had to download dolphin to go to non mobile sites.
[HTC EVO 3D] curiousGeorge:
It works fine, but you also have to change UIString to "Desktop". Yeah, I know.

Okay guys. Changing /sys/devices/system/cpu/cpu1/online to 1 doesn't stick, nor does the governor in /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor. It works for a while, but doesn't stick.

I want to turn on dual-core and have it stick. The phone is much much damn faster with both cores at interactive on 1.78Ghz.
[HTC EVO 3D] jayfonzerrelli:
Yeah it's running great too! Guess it just needed time to settle down!
[HTC EVO 3D] Lrod0175:
Cool.

LROD'S 3D
[HTC EVO 3D] 2k4mach:
Working fine for me with stock browser.
[HTC EVO 3D] Scott:
See below!

Exactly!
[HTC EVO 3D] Joey_UFC:
hey scrosler in ur next update can u add Small fonts. every rom has them now and its something that iv just gotten used to

or at the least can you make it a zip file for those who prefer it stock
[HTC EVO 3D] Scott:
Im sure I can. Can you snatch me the fonts being used?
[HTC EVO 3D] Joey_UFC:
From what i believe it is not a actual font, its just the font size. But i can be wrong.

Here goes a zip file i gotten not to long ago but doesn't seem to work for me.

Ill see what else i can dig up but maybe this will be more use to you then me :rolleyes:
[HTC EVO 3D] Scott:
No those are just fonts. There is a setting somewhere I am sure. I also knwo you can mod the DPI setting but.... That can screw thing sup.
[HTC EVO 3D] guitardoc64:
A very good point. As my performance with the tweaks caused me to have horrible battery life. I haven't run a benchmark yet, but my phone seems as speedy, and has good battery life. I'm done with messing about for getting high benchmarks, I just want to have things work and not have to charge all day.

Sent from my Clean ROM 3D
[HTC EVO 3D] Scott:
Going to test on Rezound with stock kernel. Any thoughts before I start?

Not sure if that was sarcasm or not but its been a long day with no sleep for the last three days so I am a bit touchy... But if it was sarcasm... lol

Whats your recomendation then, for a 3D kernel that quantifies all your assertions about governing? (Not saying your assertions are pure

Also, do you do compile your self?

-Scott
[HTC EVO 3D] curiousGeorge:
No sarcasm; I'm not really much of a sarcastic fellow. It really is a very good observation that not many people would make unless they read the code. The fact that you deduced simply by experience that the kernel handled threading and scaling better is pretty awesome. Then again, I've always used your ROMs because you certainly have a great knack for polishing them just right. :)

Which brings me to answer your second question; the best kernel released for the 3D is the latest Infected-AnthraX which was removed on January 3 by the developer due to legal reasons (lawsuit, CnD, etc). I promise you, though, that kernel is incredible (and it includes GabersDemand built-in). The base had nothing to do with HTC -- it was Qualcomm and Chad Goodman from the ground up. In the meantime, the replacement 2.6.35 plain HTC AnthraX is a decent interim kernel regardless, even if it doesn't have all of the goodies Infected-AnthraX had (yet).
[HTC EVO 3D] Scott:
Thank you for the kind words....

I tried the script listed in the prior post and it had no visual or meausrble affects on my Rezound with stock kernel....

Short of leanring to code the Rezound kernel from scratch there is not a whole lot I can do to this device to make it faster. The best i have been able to accomplish is kill supurpflous services eating away at clock cyles and battery(aka Killing Bloat). That alone has been the single biggest tweak. I did the sysctl tweaks, tweak this.. tweak that, etc etc.. In reality they dont really do much for this kernel.

So this brings me to the conclusion....

The kernel isnt half bad!

or

I am loosing my touch.

What are you your thoughts. I know you dont have a Rezound so it would be speculation but.. I would like to hear what you have to say in regards to my above statements.

Thank you,

-Scott
[HTC EVO 3D] curiousGeorge:
Make sure you flash the zip -- you may have to tweak the installer. The turbocore version archives mpdecision, and a lot of that is handled in the CWM/twrp installer, not the boot script itself. The boot script just handles ondemand parameters.

The Rezound does have a somewhat better stock kernel, give or take. Chad has said so himself -- it does include Beats and the like by default.

We can get to the bottom of this in a few ways. There are a couple of possibilities:

CIQ: Remove as much of this from the ROM as possible. TrevE is a master at this. CIQ still exists within the kernel, however, until somebody strips it out, but it least the ROM won't call on it.

sysfs: Make sure the parameter interface is exposed in /sys/devices/system/cpu/cpufreq/ondemand when you set the governor to ondemand. Then make sure a plain text file exists for each of the parameters GabersDemand modifies.

Note: If a file called two_phase_freq exists on the stock kernel, then maybe it's time for a new GabersDemand. ;)
[HTC EVO 3D] Scott:
CIQ is almost exclusively Sprint. There is none on a VZW phone. I also removed all the HTC logging and erroo trapping AKPs and libs. I have not hoever, removed anything from ramdisk or the kernel (Im not a compiler). I only added the ability of root and init.d support to ramdisk.

I'll look into the folder when I get a chance and see what is hiding.

I just dont think that this kernel, as is, will benefit much from anything. I litterally threw everything I had at it.. Most was at best negligible or placebo.

My ROM does run faster than stock (attribute debloating) but in all honesty its the fastest, smoothest device I have ever layed my hands on (yes, even stock). No UI lag anywhere. Nothing... Its smooth. Seems like HTC really did an outstanding job. Its actually as good, if not better than DE 2.0 with anthrax kernel. I have not done a side by side compare but I am very impressed with the stock set up sans bloat.
[HTC EVO 3D] Nygel:
why do it seems like Sprint never gets the absolute best, just the good enough. Which makes you wonder alot of things.
[HTC EVO 3D] Scott:
Thats not true... Nothing was better IMHO than the Evo 4G when it came out... Evo 3D was top of the line 6 months ago... Nexus S was cool too!

But as of know... VZW pwns all with there phones.

EDIT: And Sprint has some rteally good LG Feature phones :p
[HTC EVO 3D] guitardoc64:
True that. The EVO 4G is still mighty impressive, given the time its been out.

Sent from my Clean ROM 3D
[HTC EVO 3D] curiousGeorge:
If the kernel uses a 2-phase ondemand (you can tell if there's a file named "two_phase_freq" in /sys/devices/system/cpu/cpufreq), use the latest GabersDemand specifically for kernels packing 2-phase governors. Flashes and works fine on the 3D packing any AnthraX variant since mid-December. Might also work well on the Rezound.

http://www.mediafire.com/?mf75b3e8r1vug

If you can't use the installer, take the "easy way out" and move mpdecision onto your sd card (erase it from /system/bin). Then reboot immediately to recovery or use adb to put V3's init script in place. With V3, battery life is markedly improved over stock dual-core 2-phase, but with 98% of the max sustained performance (compare GabersDemandV3 with "Performance" governor in nenamark1).

Also make sure to disable the OC daemon in system tuner's boot settings.

Sure you lose the neat archiving/permissions/uninstall features of the flashable zip, but as long as you're testing, make sure to try it that way.
[HTC EVO 3D] jayfonzerrelli:
I'm sorry for asking, but I'm pretty new to system tuner, and had some questions. I am trying the infected anthrax kernel that has this Gabersdemand tweak, and system tuner shows only 2 CPU running? Am I to change anything at all in system tuner? If so can someone tell me exactly what to change, like I said not too familiar with these CPU tuners, sooooo I need complete explanation of exactly what must be set.. Thanks.
[HTC EVO 3D] curiousGeorge:
Here's how to set it up exactly.

Setup: in system tuner, DISABLE THE OC DAEMON in CPU -> Boot settings.

1. Download the zip (V2 or V3 turbocore) to your SD card. Try V3 first, since you likely have a 2-phase AnthraX kernel.

2. Reboot your device into recovery (hold down the power button and select recovery).

3. In the recovery manager, select "flash zip" (or a similar option), and choose the zip you just downloaded.

That's it. :)
[HTC EVO 3D] Lrod0175:
Qualcom two phase ondemand governor was implemented in stock anthrax B2, the two phase governor is the same scott's rezound uses.

LROD'S 3D
[HTC EVO 3D] curiousGeorge:
Good, then V3 should work perfectly. :) I know AnthraX used the 2-phase ondemand from the T-Mobile Galaxy S2 for a while, then GabersDemand-tweaked ondemand, and now I believe use Qualcomm stock in the latest (pre-pull and current) build trees.

GabersDemandV2 does not work properly for 2-phase ondemand governors. Use V3 (same folder) for that. :)
[HTC EVO 3D] jayfonzerrelli:
I am running the #9 kernel, is this two phase?
[HTC EVO 3D] curiousGeorge:
Yes, it sure is. I'm using it now. :)
[HTC EVO 3D] Lrod0175:
I wish sprint gets the HTC edge, that will be something.

LROD'S 3D
[HTC EVO 3D] Lrod0175:
Trying it right now.

LROD'S 3D
[HTC EVO 3D] mikeyxda:
Trying to read the above script. When does it execute? Also, by the above code, it looks like it tries to put a "0" in the online file for CPU1 but it does that when the CPU wakes... not sleeps. That seems backwards. And also there is no corresponding echo "1" into that file to turn it back on. And on top of all that, you've chmodded the file 444 before you do any of that, so it won't work anyway. :confused:

Mike
[HTC EVO 3D] jayfonzerrelli:
Ok, I flashed it, and I see both CPU's are up, although they seem to be bouncing up and down from 384 to 1.53, while idle? Is this normal?
[HTC EVO 3D] mozman:
I think I'm following all of this. I was going to try this out, but noticed that stock Clean DE doesn't have a 2-phase ondemand. That said, which version of Gabers do you recommend? Or would one of the Gaber's kernels turn on the 2-phase ondemand?
[HTC EVO 3D] mikeyxda:
Sorry guys. I tried the gabersdemand tweaks and looked at the code. IMO, it's doing a lot of stuff just wrong:

(1) First, if you use it on CleanROM DE 2.0 P1, you already have three other files that are changing some of the same parameters. Now with the gabersdemand tweak, you'll have a fourth. And depending on what some of the first three files do (chown for example), some of the tweaks won't even work... just like the 05sysctltweaks don't work: some of the values won't take due to permission/ownership issues.

(2) Sample rate is set to 100 times/sec at low frequency. That's much faster than needed and creates extra overhead. There's no need to go faster than about 20 times/sec when sampling CPU load.

(3) The gabersdemand tweak ramps up the CPU at 75% and back down when it goes down to 25%. The 75% is too high and will cause lag and your benchmark scores will be significantly lower because 75% is just waiting too long to call for more clock.

(4) It does a chmod 666, changes the online status of CPU1, but fails to then chmod 444 so the system can't turn off CPU1. That means that the phone will boot with the second CPU running but as soon as you run anything that is multithreaded (like AnTuTu, Smartbench, etc.) that calls for both CPU's, the second CPU will be turned off when the system commands it off after the multithreaded code is done and it will not come back on!

(5) In the two phase version, up threshold is set to 25 and down differential is set to 50. I think someone doesn't understand those parameters because down differential should never be set lower than up threshold. The decision for when the CPU lowers frequency is when CPU load drops below up_threshold-down_differential. And obviously 25-50 = -25% which doesn't make sense.

As I suspected, running the gabersdemand tweaks (I tried both) made the CPU hop all over the place, jumping up to .97Mhz or 1.5Ghz constantly when very little load was on the CPU. As I said before, give it a try and use whatever method you like to check "time-at-frequency" and you'll find that most tweaks show the CPU jumping up a lot even when the phone is sitting idle. That doesn't happen with my mikey3 tweaks because I specifically designed them to run both cores efficiently and eliminate all that jumping around.

And again... just sharing what I've found in my own debugging. I'm not claiming to "know all" but the above is accurate to my knowledge. So if I'm wrong, I can deal with that... but show me how I'm wrong!

Mike
[HTC EVO 3D] R32_Rocky:
Well, it almost sounds as it would be best to remove all CPU related scripts completely (not the sd card ones and such though), install the last, and greatest Anthrax 09, use the newer 2 step ondemand governor, and let it do its own thing - seeing as how it is being said a lot of tweaks are already coded into it. So thus, if running other CPU scripts, everything is working against each other, overlapping, conflicting, and confusing. "Too many chefs in the kitchen,......"
[HTC EVO 3D] mikeyxda:
That's basically why I made the mikey tweaks. It modifies the post boot script where the CPU governor parameters are first defined and also removes the other two conflicting tweaks that try to override those. So you've got one clean set.

Mike
[HTC EVO 3D] Scott:
Gonna give it a spin now...
[HTC EVO 3D] Scott:
Rezound mount point:

mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/system");
[HTC EVO 3D] Scott:
Any thoughts on this before I pull the trigger?

http://dl.dropbox.com/u/31360541/Newegg2.pdf
[HTC EVO 3D] selders59:
Well good morning to all that are Clean! Little morning humor. Hope everyone had a good weekend and ready to start this Monday morning.

"All Throttle-No Bottle"
[HTC EVO 3D] mongoose107:
Everything but the memory looks good to me! I am not a lover of G.skill memory.. But if it works it will do the trick!!
[HTC EVO 3D] LfnsR:
Morning selders and the rest of the Clean world. Another start to the week.