[MOD]Flashable OverClocking Daemon- Use with any ROM - myTouch 4G Android Development

First off i take no credit for the virtuous oc daemon itself, it was developed by rmk40.
And credit goes to -viperboy- for the idea, i used his rom and really liked the oc daemon and saw the difference it makes. Check his rom out here. It has a nice interface to control the oc daemon and other features of the rom.
You can get more info here
DON'T use any apps to adjust cpu with this ie., setcpu, cpumaster, etc.
Ok, here is the deal flash the zip file the script will run by itself the only adjustment you have to make is the virtuous oc settings. This should work with any rom and probably any device i just don't have any other devices to test it on.
Here is how:
Open root explorer (or whatever file manager you use) and navigate to /system/etc/virtuous_oc, you will see 6 files named:
sleep_governor
sleep_max_freq
sleep_min_freq
wake_governor
wake_max_freq
wake_min_freq
These are the files you edit to your liking, i only edited wake_max_freq to read 1863000 or 1.8ghz
The two governor file have different settings and they are:
conservative
userspace
powersave
ondemand
performance
Again edit to your liking i left them ondemand myself seems to work good. I don't really know what the settings do exactly when it comes to these but they seem pretty self explanatory.
To see if it's working all you need to do is open terminal emulator or adb shell and type one of the following:
Current CPU frequency
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
Current CPU governor
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Current min CPU Freq
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
Current max CPU Freq
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
It autostarts using init.d, so MAKE SURE your rom supports init.d, if it doesn't you can still use it but it has to be started manually by entering the following in terminal emulator:
Code:
/system/xbin/virtuous_oc
If you overclock MAKE SURE your kernel supports it, I'm not responsible for any damage incurred
In the future i want to make an app to control the settings but i am still learning that part.
Big thanks to rmk40 for this awesome daemon and -viperboy- the bad ass idea !!​
EDIT:
A basic rundown of the oc daemon is it scales up your cpu when you screen is on and scales it down when it is off, so your cpu is not overclocked continuously. It does save on battery as long as you don't get crazy with the overclocking.
rugedraw said:
The frequencies are:
Underclock: 192000 384000 432000 486000 540000 594000 648000 702000 756000 810000 864000 918000 972000 1026000 1080000 1134000 1188000 (stock)
Overclock: 1188000 (stock) 1296000 1404000 1512000 1620000 1782000 1836000 1944000 2052000
There may be some extra ones not listed here. From doing basic math, it seems you have to go up or down in increments of 54,000 when adjusting the CPU speeds. So if you want to UC higher than 192000 but lower than 384000, then you SHOULD be able to add 54,000 to 192000 and use that, or subtract 54,000 from 384000 and go that route.
Click to expand...
Click to collapse
Changelog:
-Added Juwe11 ram optimization script
-Added speed up SD hack (Set at 3072) Details here

I tested this for the My Touch 4G last night and it works great, installs in seconds. I'll help out watching the thread and answering questions for those whom need it if Smokin isn't around to answer them.

What does this exactly do for your phone?
Sent from my HTC Glacier using XDA Premium App

codey895 said:
What does this exactly do for your phone?
Sent from my HTC Glacier using XDA Premium App
Click to expand...
Click to collapse
This is an OC Daemon, its designed to control the processing speeds of your device. SetCPU does the same thing but this method is more stable and works without using any voltage. You can read some of the information listed in the links above.

whats the difference of the 2 zip files?

bstylz911 said:
whats the difference of the 2 zip files?
Click to expand...
Click to collapse
Changelog:
-Added Juwe11 ram optimization script
-Added speed up SD hack (Set at 3072) Details here
Click to expand...
Click to collapse
That's the information for the second ZIP file, the other one doesn't have that optimization.

so is it safe to say that i can use this on my MT4G running CM7 latest nightly?

I'm a little confused here. I got this up and running using the intstructions in the OP. But the frequencies don't match my kernels frequencies. Shouldn't they match?
Sent from my HTC Glacier using XDA App

estallings15 said:
I'm a little confused here. I got this up and running using the intstructions in the OP. But the frequencies don't match my kernels frequencies. Shouldn't they match?
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
No, the kernel gives you a range of highest to lowest frequency range in which they are able to run. You tune the kernel to run at the frequency that you want it too so if you run the kernel at the highest frequency the phone will run fast but you will use the battery faster, if you tune the kernel to run slow the phone will run slower but your battery will last longer.
What your looking to do is adjust the kernel to the closest frequency to give you the best performance but low enough to continue to keep a long battery life.
Kernels run by using Governors, if you select "OnDemand" as your governor it will run what ever Highest frequency you set it for when ever your device is out of sleep mode, (Example: MAX 1836000 and Minimum 192000) when ever you put the device in sleep mode it will automatically run at the lowest setting. This conserves battery while you still use better performance when actually using the phone.
Hope this clears it up for you.
itzsmokey: so is it safe to say that i can use this on my MT4G running CM7 latest nightly?
Click to expand...
Click to collapse
Yes this will work for that ROM, it's designed to be flashed after the ROM is installed, there are ways to check if it is working for you in the "OP". I would take the time to look through the links provided in the OP as well.

Orical said:
No, the kernel gives you a range of highest to lowest frequency range in which they are able to run. You tune the kernel to run at the frequency that you want it too so if you run the kernel at the highest frequency the phone will run fast but you will use the battery faster, if you tune the kernel to run slow the phone will run slower but your battery will last longer.
What your looking to do is adjust the kernel to the closest frequency to give you the best performance but low enough to continue to keep a long battery life.
Kernels run by using Governors, if you select "OnDemand" as your governor it will run what ever Highest frequency you set it for when ever your device is out of sleep mode, (Example: MAX 1836000 and Minimum 192000) when ever you put the device in sleep mode it will automatically run at the lowest setting. This conserves battery while you still use better performance when actually using the phone.
Hope this clears it up for you.
Click to expand...
Click to collapse
Lol. Thank you, but that's not what I meant. My kernel uses different frequencies. It has a range of 122000 to 203000. The numbers don't directly match up to the numbers in the OP, even in multiples of 54,000. See what I mean?
Sent from my HTC Glacier using XDA App

That was my point, your using MIUIs kernel it looks like, yes the kernel says 2.03 for the Max and 122 for the min the frequency in the output says 1188000 for the Max, that's what the daemon was preset too you go in and edit the files yourself. I first tested this before it was released on MIUI and it worked fine, look through and you'll find info on how to change the frequencies
Sent from my HTC Glacier using XDA App

Orical said:
That was my point, your using MIUIs kernel it looks like, yes the kernel says 2.03 for the Max and 122 for the min the frequency in the output says 1188000 for the Max, that's what the daemon was preset too you go in and edit the files yourself. I first tested this before it was released on MIUI and it worked fine, look through and you'll find info on how to change the frequencies
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
CM7 kernel. I'm obviously not making myself clear, so I'll just figure it out myself. Thank you for your help, though.
Sent from my HTC Glacier

Is there a smartass version or one being worked on?
Sent from my HTC Glacier using XDA App

estallings15 said:
CM7 kernel. I'm obviously not making myself clear, so I'll just figure it out myself. Thank you for your help, though.
Sent from my HTC Glacier
Click to expand...
Click to collapse
OK I'll put it like this..
The daemon your flashing is preset, you have to go in the files and change them to what ever frequencies your kernel is set for if you want them to work for the minimum and maximum settings.
I can't make you understand it, I hope you figure it out but personally before I do anything that could potentially be harmful to my device I read everything I can find before doing anything to it.

jayb222 said:
Is there a smartass version or one being worked on?
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
This is directly made from Virtuous Unity, the Governors associated are pretty much in every kernel release but the OP was mainly released for those interested in using the daemon it's self and it wasn't modified because there was no permission to do so.
Sorry about that though but I know Smokin isn't trying to step on any toes with this so that's why it remains as it was originally released.

Orical said:
change them to what ever frequencies your kernel is set for if you want them to work for the minimum and maximum settings.
Click to expand...
Click to collapse
That answered my question. Thanks buddy. I read the OP repeatedly and this isn't my first custom kernel or ROM. I crack flash like nobody's business. Drives my wife nuts. I'm no stranger to frequencies or voltages, but this is my first OC daemon. My confusion was in how specific the OP was in its frequency listing.
Sent from my HTC Glacier using XDA App

jayb222 said:
Is there a smartass version or one being worked on?
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
I edited the governor type file to smartass. Terminal output says smartass. Voila!
Sent from my HTC Glacier using XDA App

Just use the Viper app mentioned in the OP, it makes editing easier and much quicker, with a nice UI instead.

Ace42 said:
Just use the Viper app mentioned in the OP, it makes editing easier and much quicker, with a nice UI instead.
Click to expand...
Click to collapse
That's what I suggested before it was posted but I think it's important that people learn where all of the files are and how to edit the files and set the permissions for them.
Sent from my HTC Glacier using XDA App

I like the idea of this setup. It works well in Virtuous unity.
I know they have a GUI app that makes it easier to set this up. It would be great if we could get this daemon and GUI flashable for all ROMs.
The GUI app will probably need an auto detect CPU speeds function added for those that use custom kernels. Maybe we can talk to some of the overclock app devs (like the SetCPU dev) And see if we can get this functionality built into them.
It would be great if we could get this daemon in all ROMs and get the overclock app devs on board as well. As this app disables itself if there are overclock apps we would need them to be on board as those apps have so many other benefits (like profiles for low battery and the like) that I would hate to lose that as well. The apps could have the option to to enable or disable the daemon and then control it as well. The custom GUI app could be included in the ROMs for those that do not need or want to use the overclock apps.

Related

[INITSCRIPT] screenstate_scaling - switch CPU freq governor on screen state change

Attached init script changes the CPU frequency governor based on the screen state:
Code:
screen on -> interactive governor
screen off -> powersave governor
Don't use this with SetCPU!
Thanks NeoPhyTe.x360 for the idea...
Edit:
This script is released to public domain, so it can be freely used for derivative works without permission!
Good thinking!
Thanks for sharing.
do we flash this in clockwork?
bradputt said:
do we flash this in clockwork?
Click to expand...
Click to collapse
Nope, it's just a init script for the ROM devs...
but is possible to applu in a rooted phone simply copying to /systen/etc or nope? needs setcpu or works without?
thx
Awesome work you do
+10
This is supercool, we wont need to use SETCPU anymore, just flash this and enjoy super battery life, big thanks FloHimself!
bartito said:
but is possible to applu in a rooted phone simply copying to /systen/etc or nope? needs setcpu or works without?
thx
Click to expand...
Click to collapse
You can push this script to /system/etc/init.d but it has some dependencies e.g. the interactive governor, perflock disabler when you want to underclock, ...
NeoPhyTe.x360 said:
Awesome work you do
+10
Click to expand...
Click to collapse
It was your idea, so same goes to you!
ivicask said:
This is supercool, we wont need to use SETCPU anymore, just flash this and enjoy super battery life, big thanks FloHimself!
Click to expand...
Click to collapse
That's the reason we are doing it this way: make the governor switching a bit more low level without SetCPU. But remember, this is not a update.zip and not flashable from recovery...
nice work. i really appreciate this. lets hope all the devs see this
FloHimself said:
Attached init script changes the CPU frequency governor based on the screen state:
Code:
screen on -> interactive governor
screen off -> powersave governor
Don't use this with SetCPU!
Thanks NeoPhyTe.x360 for the idea...
Click to expand...
Click to collapse
Useless... Interactive governor sets low speed when idle.
sbricout said:
Useless... Interactive governor sets low speed when idle.
Click to expand...
Click to collapse
You are right, the interactive governor sets the lowest speed when idle. But idle != screen off.
sbricout said:
Useless... Interactive governor sets low speed when idle.
Click to expand...
Click to collapse
Applications and services can still ramp up the CPU speed during the screen being off, so not useless at all. Switching to the powersave governor for when the screen is off, will stop it ramping up during this time.
I modified the script abit to include frequencies for min and max.
http://linux-box.nl/~sjoer/90screenstate_scaling
sfjuocekr said:
I modified the script abit to include frequencies for min and max.
http://linux-box.nl/~sjoer/90screenstate_scaling
Click to expand...
Click to collapse
Nice, that`s something I`ve done later, too :
http://dl.dropbox.com/u/31174/android/90screenstate_scaling
Thought about extending it some more...
don't punch me, but... how can this be installed?
Kinda complicated, you`ll need a modified init.rc to run the scripts from /system/etc/init.d/ at startup, you have to push the governor modules and perflock_disabler module compiled for your kernel in /system/lib/modules/ the insmod scripts for the governors, perflock_disabler script and the script above to /system/etc/init.d/
FloHimself thank you very much for the scripts and the modules.
Is it me or is this script constantly looping with no breaks/sleeps?
I've installed Neophytes' ArauxtSense 7.1 rom and he already added this on his rom. The question is, do I have to uninstall my SetCPU now? I have my referred settings on it and don't know how to disable it. I have unchecked the "Set on Boot" but everytime I boot my device, I can see that the SetCPU is still running on the background. Any advice? Any risks when having them both?
sub0min0us said:
I've installed Neophytes' ArauxtSense 7.1 rom and he already added this on his rom. The question is, do I have to uninstall my SetCPU now? I have my referred settings on it and don't know how to disable it. I have unchecked the "Set on Boot" but everytime I boot my device, I can see that the SetCPU is still running on the background. Any advice? Any risks when having them both?
Click to expand...
Click to collapse
There shouldn't be any risks, but one of them will force its set freq, and the other one will be constantly changing it
Sent from my HTC Desire using XDA App
Thanks for clearing that out. I guess I'll have to uninstall it then not unless I install another rom. Thank you...

Cpu

Im good on everything else except when it comes the CPU thing. I have no idea what the numbers mean when you set the CPU for some reason. To slow the phones resources when the screen is off right? Can anyone point me to the direction of an app that can do this? What about an app that turns the data off once I turn the screens off. A free one. Thank you and sorry if Im not making sense or sounding dumb
Sent from my PC36100, running MIUI 1.5.13 - Tiamat-v4.0.2 using XDA Premium App.
augoza said:
Im good on everything else except when it comes the CPU thing. I have no idea what the numbers mean when you set the CPU for some reason. To slow the phones resources when the screen is off right? Can anyone point me to the direction of an app that can do this? What about an app that turns the data off once I turn the screens off. A free one. Thank you and sorry if Im not making sense or sounding dumb
Sent from my PC36100, running MIUI 1.5.13 - Tiamat-v4.0.2 using XDA Premium App.
Click to expand...
Click to collapse
SetCPU can modify the processor speed and allow you to set a profiles. However, you're running Tiamat so if you haven't changed anything your default governor is smartass which has a built in screen off profile of 128min/384max.
As far as turning data off, check out ultimatejuice. There is a free version that is limited in what it does, but it might be worth paying for. Also, for battery saving, check out my EVO link in my sig for some undervolting mods.
You can set the cpu governor with a program called setCPU on the marketplace. You can further control the CPU by flashing another kernel. What ROM are you running? Stock? I would try the netarchy kernel (newest version) if you're running a sense-based ROM.. I've found it has phenomenal battery life (medium use i get 15-20hrs) and I'm overclocked to 1.152ghz.
A program called tasker can also make your data connection go off and back on with the screen. I'm unsure how to set the profile but I do know thats possible. Try looking around here: http://tasker.wikidot.com You should be able to find something about it.
EDIT: Nevermind about netarchy, did not see your signature on your ROM and kernel.
ok, so ur on aosp and tiamat. try changing governer to smartass. will give you much better battery life, and you won't have to worry about 'numbers'.
btw the numbers are the cycles per second, or the speed the cpu works at. i personally underclock to 537 (998 is stock) to save a bunch of battery, and it still runs perfectly fine for me (cm7 with tiamat)
dkdude36 said:
ok, so ur on aosp and tiamat. try changing governer to smartass. will give you much better battery life, and you won't have to worry about 'numbers'.
btw the numbers are the cycles per second, or the speed the cpu works at. i personally underclock to 537 (998 is stock) to save a bunch of battery, and it still runs perfectly fine for me (cm7 with tiamat)
Click to expand...
Click to collapse
Governor is smartass by default on Tiamat
-viperboy- said:
Governor is smartass by default on Tiamat
Click to expand...
Click to collapse
didn't know that. thanks.
-viperboy- said:
SetCPU can modify the processor speed and allow you to set a profiles. However, you're running Tiamat so if you haven't changed anything your default governor is smartass which has a built in screen off profile of 128min/384max.
As far as turning data off, check out ultimatejuice. There is a free version that is limited in what it does, but it might be worth paying for. Also, for battery saving, check out my EVO link in my sig for some undervolting mods.
Click to expand...
Click to collapse
Thanks everybody! ....Viperboy thanks for the info unfortunately I still have lots of questions haha. And yes I already been through all the viper undervoltings, 25 through INSANE! A question I have is with those vipervoltings, I assume they'll show different results depending on which kernel and rom i'm running correct? Plus im pretty much sticking with MIUI....I usually use the 25 vipervolting. Now I'm on tiamat v4.0.3. Are you saying sense I'm using tiamat its already set to smartass, so it'll be unnecessary to use the setcpu app? Also I like savZen to what's the default governor on that? Final question, turning the data off when the screen goes off using ultimatejuice unnecessary if I'm running tiamat? Sorry for the bombarding of questions thanks again
MIUI 1.5.13 - Tiamat-v4.0.3 ​
I think you should not use SetCPU...
Just sayin'....
HipKat said:
I think you should not use SetCPU...
Just sayin'....
Click to expand...
Click to collapse
Any reason?
Sent from my PC36100, running MIUI 1.5.13 - Tiamat-v4.0.3 using XDA Premium App.
augoza said:
Thanks everybody! ....Viperboy thanks for the info unfortunately I still have lots of questions haha. And yes I already been through all the viper undervoltings, 25 through INSANE! A question I have is with those vipervoltings, I assume they'll show different results depending on which kernel and rom i'm running correct? Plus im pretty much sticking with MIUI....I usually use the 25 vipervolting. Now I'm on tiamat v4.0.3. Are you saying sense I'm using tiamat its already set to smartass, so it'll be unnecessary to use the setcpu app? Also I like savZen to what's the default governor on that? Final question, turning the data off when the screen goes off using ultimatejuice unnecessary if I'm running tiamat? Sorry for the bombarding of questions thanks again
MIUI 1.5.13 - Tiamat-v4.0.3 ​
Click to expand...
Click to collapse
Yes, most of the scripts lower by a certain range. So it all depends on the kernel you are running. Some of my scripts (Extreme, Insane, v2 scripts) specify all the voltages so no matter what kernel you're running, it sets the voltages to exact values. If you can go lower than -25 and you're stable, do it!
I find SetCPU unnecessary. I only have it installed because I use it for testing my mods and things, but I that's the only reason. But smartass is good enough for me, no other governors give me as good batter life. Defauly governor on SZ is their own governor (SavagedZen) it's based on interactive, I believe. There is more info on their site.
Tiamat (or any kernel for that matter) don't turn off 3G when the screen is off. You would need an app to do that.
augoza said:
Any reason?
Sent from my PC36100, running MIUI 1.5.13 - Tiamat-v4.0.3 using XDA Premium App.
Click to expand...
Click to collapse
Uses a good bit of memory, for one. Two, because the kernels here run pretty good right out of the box.
1, it's useless, and 2, the OP seems like he isn't ready to use it.
HipKat said:
1, it's useless, and 2, the OP seems like he isn't ready to use it.
Click to expand...
Click to collapse
Well, it's definitely not useless. It's a great app, I just find no need for it other than testing my mods.
-viperboy- said:
Well, it's definitely not useless. It's a great app, I just find no need for it other than testing my mods.
Click to expand...
Click to collapse
That, I totally agree with, but for he average user, few know how to set it correctly and they end up with a placebo effect, or more problems.
HipKat said:
That, I totally agree with, but for he average user, few know how to set it correctly and they end up with a placebo effect, or more problems.
Click to expand...
Click to collapse
I couldn't agree more. Setting up a basic screen off profile with a conservative setting is useful, otherwise it actually gets in the way of already built in kernel benefits, actually undoing them in many cases. I stopped using setcpu a while ago and my battery life has not suffered at all.
ropodope
Sent from my Vaelpak 3.2 RC2 Evo 4g. Flash and ye shall receive.
-viperboy- said:
Yes, most of the scripts lower by a certain range. So it all depends on the kernel you are running. Some of my scripts (Extreme, Insane, v2 scripts) specify all the voltages so no matter what kernel you're running, it sets the voltages to exact values. If you can go lower than -25 and you're stable, do it!
I find SetCPU unnecessary. I only have it installed because I use it for testing my mods and things, but I that's the only reason. But smartass is good enough for me, no other governors give me as good batter life. Defauly governor on SZ is their own governor (SavagedZen) it's based on interactive, I believe. There is more info on their site.
Tiamat (or any kernel for that matter) don't turn off 3G when the screen is off. You would need an app to do that.
Uses a good bit of memory, for one. Two, because the kernels here run pretty good right out of the box.
Click to expand...
Click to collapse
Thanks viper!
Sent from my PC36100, running MIUI 1.5.20 - Tiamat-v4.0.3 using XDA Premium App.

[KERNEL] UmaroKernel V1.06 - 2.6.35.13 - CM7-1.9Ghz-SMARTASS-OC-UV-VDD-SWAP-SLQB-BFS

THIS COMES WITH ABSOLUTELY NO WARRANTY.
I AM NOT RESPONSIBLE FOR WHAT THIS KERNEL MAY OR MAY NOT DO TO YOUR PHONE, ESPECIALLY WHEN YOU OC!
This is based on CM's 2.6.35.13 kernel.
Credits include Cyanogen, x99percent, scaryghoul, faux123, -snq, LordClockaN, and others that I couldn't find out who to credit for. If I used your code and you're not mentioned here, let me know!
GPL IN, GPL OUT: github
Version 1.0
- Added SmartAss Governor
- Added Scary Governor
- Added MinMax Governor
- Minor UV, as it depends on your own device. I suggest using the VDD sysfs interface to tweak them yourself.
- Added VDD sysfs interface (OV/UV on the fly) info/usage
- Added SLQB
- Added OC up to 1.9Ghz - SetCPU failsafe profiles are a MUST!
- Allocated more GPU memory
- Enabled swap
- Compcache is still disabled until I can get it working properly
Version 1.01
- Fixed 1.9Ghz OC
Version 1.02
- Fixed modules inside zip
Version 1.03
- Minor bugfixes
- Added TINY_PREEMPT_RCU (should help with multitasking)
Version 1.04
- Fix smartass (wouldn't go below 768mhz while awake)
- Minor bugfixes
- BFS
Version 1.05
- Added USB Mass Storage speed tweak
- Tweaked ext4 extensively
- LOTS of bugfixes
Version 1.06
- Added new governor "GreaseLightning" based on smartass
- Tweaked max readahead to 4096
- backported changes from 2.6.36.1 and 3.0rc6 (Imoseyon)
- Added Simple I/O Scheduler and set as default
- various PM fixes
- Merged HTC's vision-2.6.35-gb-MR release
- Tweaked charging code to "overcharge" for ~2 hours, should be safe and improve battery life
- Fixed netflix playback issues
GOVERNOR EXPLANATIONS:
'minmax' - this driver tries to minimize the frequency jumps by limiting
the the selected frequencies to either the min or the max frequency of
the policy. The frequency is selected according to the load.
Originally posted by erasmux -
smartass - is based on the concept of the interactive governor.
I have always agreed that in theory the way interactive works - by taking over the idle loop - is very attractive. I have never managed to tweak it so it would behave decently in real life. Smartass is a complete rewrite of the code plus more. I think its a success. Performance is on par with the "old" minmax and I think smartass is a bit more responsive. Battery life is hard to quantify precisely but it does spend much more time at the lower frequencies.
Smartass will also cap the max frequency when sleeping to 352Mhz (or if your min frequency is higher than 352 - why?! - it will cap it to your min frequency). Lets take for example the 528/176 kernel, it will sleep at 352/176. No need for sleep profiles any more!
Originally posted by scaryghoul -
Scary - A new governor I wrote based on conservative with some smartass features, it scales accordingly to conservatives laws. So it will start from the bottom, take a load sample, if it's above the upthreshold, ramp up only one speed at a time, and ramp down one at a time. It will automatically cap the off screen speeds to 245Mhz, and if your min freq is higher than 245mhz, it will reset the min to 120mhz while screen is off and restore it upon screen awakening, and still scale accordingly to conservatives laws. So it spends most of its time at lower frequencies. The goal of this is to get the best battery life with decent performance. It will give the same performance as conservative right now, it will get tweaked over time.
Click to expand...
Click to collapse
I hope to add some more user-friendly control to UV/OV, hopefully in the next version.
I tested this on my device, but as stated below, there's no guarantee it will work on yours.
This kernel should only really be used on CM7 nightly 78 and above. Not sure what'll happen if you use it on earlier nightlies, but it's definitely not supported.
Performance should be as good as or better than stock kernel.
Download:
MD5SUM: 71031df052b62d276657190cd4ec94d8
dropbox (will probably go over quota and stop working) - UmaroKernel-1.06.zip
MultiUpload: UmaroKernel-1.06.zip
This kernel excites me greatly. I will be flashing it right away. Thanks!
Sent from my HTC Vision using XDA Premium App
Great work bro! I'll def. give it a shot right now!
Thanks, gonna give this a try.
You sir just made my day. So we will need to use terminal to edit our UV values until you get that dealt with, correct? Will they persist through a reboot or not?
Now this is what I was waiting for
Thank you
KCRic said:
You sir just made my day. So we will need to use terminal to edit our UV values until you get that dealt with, correct? Will they persist through a reboot or not?
Click to expand...
Click to collapse
not to get off-topic, but your sig says youre using the pyro kernel with the CM nightlies. You do know that blah said the recent nightlies are no longer compatible with that kernel, due to the CM kernel being rebased on a different kernel than the base of the pyro kernel. However, I can attest that this kernel DOES work with both nightlies and pyromod
Thanks for the 1.9GHz Will test in conjunction with the latest CM7 nightly when I get home!
Thanks. Flashed and working great. On build 91
Sent from my HTC Vision using XDA App
I just flashed this and everything is working without any issues
However, I noticed that there is no 1.9GHz option in SetCPU...
theSpam said:
I just flashed this and everything is working without any issues
However, I noticed that there is no 1.9GHz option in SetCPU...
Click to expand...
Click to collapse
Sorry for the dumb question, but did you do the autodetect?
Sent from my HTC Vision using XDA Premium App
heybobitsme said:
Sorry for the dumb question, but did you do the autodetect?
Sent from my HTC Vision using XDA Premium App
Click to expand...
Click to collapse
I just did and the max frequency is still 1516MHz...
theSpam said:
I just did and the max frequency is still 1516MHz...
Click to expand...
Click to collapse
Ya I just noticed the same with the built in settings as well.
Sent from my HTC Vision using XDA Premium App
heybobitsme said:
Ya I just noticed the same with the built in settings as well.
Sent from my HTC Vision using XDA Premium App
Click to expand...
Click to collapse
I'm having the same issue.
I know the og post said that this should mainly be used with CM7 nightlies, but I decided to give it a try with the MIUI ROM that I'm using. No dice. Wouldn't even load the bootscreen. I'm thinking I may flash over to the current CM7 nightly to give it a try though.
Sent from my HTC Vision using XDA Premium App
Im using the MIUI rom on my G2 and the smartass kernal... Freakin great if you ask me. I have about 30 to 35% battery and its about to be 1010 pm and i unplugged from charger at 730 am. Beat kernal so far.
Sent from my HTC Desire Z (actually its a G2) using XDA App
Updated OP with fixed kernel, OC up to 1.9Ghz is now supported.
Enjoy!
umaro said:
Updated OP with fixed kernel, OC up to 1.9Ghz is now supported.
Enjoy!
Click to expand...
Click to collapse
Nice! How much more memory was allocated to the GPU? Just curious...
Nice work any one test out WiFi and the kind of stuff?
Sent from my HTC Vision using XDA App
sino8r said:
Nice! How much more memory was allocated to the GPU? Just curious...
Click to expand...
Click to collapse
I think it's just under a meg, for a total of 4 megs of GPU ram instead of 3 megs.
I don't know what kind of performance gain comes from it.. I'll have to benchmark it and let you guys know.
The added memory doesn't look like it was being used by anything else, though.

[MOD] OC Daemon for any kernel

I take no credit for this mod, just made it work for myself, thought I'd share it. rmk40 and viperboy are the ones that made it happen.
I used this OC daemon on my MT4G, it worked very well. Ive noticed that cpu tuning apps seem to not play well with our phones. So I changed the updater script to make this mod work for our phone. Im running it with Bullet 2.2 and Juggernaut 3.1 and its very smooth, it really works.
So what makes this mod cool? When you set a screen off profile in setcpu, it takes a few seconds for the changes to take effect when the screen goes off/on. With this daemon, its instant. Ive checked it with shell commands and it always changes min/max and the gov as it should. I will share the shell commands to get the available clock speeds and govs. for the kernel you are using, you have to manually set them.
The daemon is configured with 6 files in the folder /system/etc/virtuous_oc/.
There are 3 files for the wake state and 3 for the sleep state. For each state one file for the governor, one for the minimal frequency and one for the maximal frequency.
You can easily edit these files eg. with RootExplorer or any other app which can edit system files. So you can adjust the frequencies and the governor for each state just like with SetCPU.
In order to get the available frequencies for the current kernel, just open your favorite terminal app and type
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
You could also use adb shell to show the frequencies on your computer.
To get the available govenors use a similar approach
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
To make sure its working, you can use these commands the same as the ones above.
Current CPU frequency
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
Current CPU governor
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Current min CPU Freq
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
Current max CPU Freq
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
The kernel and ROM you are using have to support init.d scripts. As I said, Ive tested with Juggernaut 3.1 and bullet 2.2, the files are set by default at:
screen on gov-lagfree
screen on max-1620
screen on min-384
screen off gov-conservative
screen off max-540
screen off min-384
These are the available speeds and govs. for bullet 2.2
192000 384000 432000 486000 540000 594000 648000 702000 756000 810000 864000
918000 972000 1026000 1080000 1134000 1188000 1242000 1296000 1350000 1404000
1458000 1512000 1566000 1620000 1674000 1728000 1782000 1836000
conservative ondemand userspace powersave lagfree performance
Installation: Make sure you uninstall any CPU apps before flashing, or this won't work.
Boot into recovery, wipe dalvik, flash zip, reboot.
YOU CAN USE THIS APP TO CONTROL THE DAEMON. IT ALLOWS 3 OC PROFILES AND 2 UV PROFILES. WORKS VERY WELL! THANKS TO Killbynature FOR SHARING THIS!
*MAKE SURE YOUR ROM/KERNEL SUPPORT INIT.D!!!
Word......
I've been messing around with jugs 3 and if you just change screen on gov to ondemand, leaving all the other settings, it really runs smooth. I also learned that the app I linked in the op to control the daemon doesn't work on jugs.
Sent from my SGH-T989 using Tapatalk
Thank you!!!
I used this on my mt4g and was wondering when it would be available for
my sgs2.
if anyone else is considering giving this a shot, I strongly recommend doing so.
Get Root Explorer and get familiar with the text editor. This is a more natural, more efficient, and faster way to control your CPU.
Sent from my SGH-T989 using XDA App
I had the defaults jacked up in the first zip i posted. If you tried the mod, used default settings and had issues, try the new one. I was getting sod's because I had the sleep freq's backwards.
Thanks for this! Love OC Daemon! Much smoother than any app controlling the CPU. I'm currently on Juggernaut 3.7 with Faux's latest kernel. I'm trying out that new Daemon controller you linked on your fist page but UV doesn't seem to work. Faux said his kernel was capable of it. Are you undervolting using that app? If so, what kernel are you running right now?
---------- Post added at 09:16 AM ---------- Previous post was at 09:16 AM ----------
One more thing, I cannot believe this thread hasn't received more attention. Maybe most people here don't know what OC Daemon is?
App worked great on my Sensation, let's see on my S2. Thanks BTW.
I haven't been able to uv using the app. Not with any of the available kernels.
Sent from my SGH-T989 using Tapatalk
mikeyinid said:
I haven't been able to uv using the app. Not with any of the available kernels.
Sent from my SGH-T989 using Tapatalk
Click to expand...
Click to collapse
If I manually type in terminal:
Code:
su
echo "-100000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
it takes. It undervolts but that goes away as soon as I reboot. I then tried to add an UV script to the init.d folder but it wont work. The script is here, can you take a look and tell me if I'm missing something? Thanks.
setzer715 said:
If I manually type in terminal:
Code:
su
echo "-100000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
it takes. It undervolts but that goes away as soon as I reboot. I then tried to add an UV script to the init.d folder but it wont work. The script is here, can you take a look and tell me if I'm missing something? Thanks.
Click to expand...
Click to collapse
the init.d script would need to look like this:
#!/system/bin/sh
echo "-25000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
and you cant uv in the app because it also needs a script. ill look into the proper script so that uv and oc can be contolled.
Will this work for synergy kernel?
Dfjcisnv
rmarquez1974 said:
Will this work for synergy kernel?
Dfjcisnv
Click to expand...
Click to collapse
Yes. Any custom kernel. With jugs you will have to manually edit the scripts because the app isn't compatible. But yea, any kernel
Sent from my HTC Glacier using Tapatalk
mikeyinid said:
the init.d script would need to look like this:
#!/system/bin/sh
echo "-25000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
and you cant uv in the app because it also needs a script. ill look into the proper script so that uv and oc can be contolled.
Click to expand...
Click to collapse
Yeah, that's how the script I used looks. I don't know what is wrong.
setzer715 said:
Yeah, that's how the script I used looks. I don't know what is wrong.
Click to expand...
Click to collapse
Are you rebooting after placing it in init.d?
Sent from my HTC Glacier using Tapatalk
mikeyinid said:
Are you rebooting after placing it in init.d?
Sent from my HTC Glacier using Tapatalk
Click to expand...
Click to collapse
Yeah. Don't know why its not working. I'll keep plugging away.
Update: I just don't get it. If I go into root explorer and manually run the script it doesn't work. If I enter the script in terminal it works fine. All voltages are UV'd. Maybe I'll try removing Deamon and see what happens.
setzer715 said:
Yeah. Don't know why its not working. I'll keep plugging away.
Update: I just don't get it. If I go into root explorer and manually run the script it doesn't work. If I enter the script in terminal it works fine. All voltages are UV'd. Maybe I'll try removing Deamon and see what happens.
Click to expand...
Click to collapse
I'm running the UV script and the daemon and everything is working fine. I always add it to whatever rom I'm flashing so its there on first boot.
Sent from my SGH-T989 using Tapatalk
mikeyinid said:
I'm running the UV script and the daemon and everything is working fine. I always add it to whatever rom I'm flashing so its there on first boot.
Sent from my SGH-T989 using Tapatalk
Click to expand...
Click to collapse
How did you verify it's working?
Code:
cat /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
Does that show all voltages lower? How far are you undervolting?
Maybe I'll just try a whole new fresh install.
Well, I did what you said, added everything to the ROM. Wiped and reflashed, still not work. Can you post the script your using?
Also, what ROM are you on?
setzer715 said:
Well, I did what you said, added everything to the ROM. Wiped and reflashed, still not work. Can you post the script your using?
Also, what ROM are you on?
Click to expand...
Click to collapse
ill post the script im using. and this will work for any rom as long as the kernel supports init.d
just unzip the attached zip, the script is inside. also, i can tell its working by opening the app i have linked in the op and going to the voltage sections. it shows the current voltage for each freq. i would look what they are, add the script, reboot and look again. keep in mind the 18x freq "available" on the kernels wont be uv'd, so look at the next freq up to check.
Well I used your script and it worked. I made mine match yours and it was still a no go. Only difference between them is mine is -100000 instead of -75000. Maybe it just doesn't like -100000? Either way, thanks for your help. Now undervolted and OC'd using OC Daemon on Jugernaut 3.7 with Faux .006r2. Man this thing is smooth now!!!

[q] htc wildfire s overclock

I have htc wildfire s ...i hav rooted ...i want to overclock it 806 mhz.....pls tell me the procedure to overclock..
I am using htc wildfire rom ..pls help
First you need a kernel that supports overclocking.
If you using a stock Rom then look for the kernel that matches your Android version eg. 2.3.3 or 2.3.5 you will find them in the development section posted by Jikantaru
If you install a custom Rom then it will most likely have an overclockable kernel baked in.
To change clock settings I recommend 'no frills CPU' search it in the market or you could use set CPU.
Once you install one of the above apps then change the min and max sliders to the desired frequency.
if we over clock it much does it effect the speed or hardware of the phone?
Your phone may hang.
There is SetCPU for XDA members:
http://forum.xda-developers.com/showthread.php?t=505419
RRRb50 said:
if we over clock it much does it effect the speed or hardware of the phone?
Click to expand...
Click to collapse
You will definitely get better performance and it shouldn't cause you any problems.
Use no frills CPU I find its better than set CPU, when restarting your phone set CPU doesn't keep your overclock settings even though its set on boot.
As for the govonor settings I would choose smartass2 and noop for the scheduler.
I would keep the minimum frequency on 245MHz it can go lower but it could cause some issues (lag and slow unlocking and waking)
Note: not all cpu's are capable of running at the same speed, I'm lucky mine can run at 806MHz but some people have issues.
If you notice any problems like freezing etc, then drop the speed to a lower frequency until you find the sweet spot for your CPU.
I had mine at 806 MHz with no problems
Sent from my NookColor using xda premium
so it wont cause hardware problems only lagging and other stuff
RRRb50 said:
so it wont cause hardware problems only lagging and other stuff
Click to expand...
Click to collapse
Should be fine mate.
But remember if in the very unlikely event something does go wrong I wont be held responsible.
youll have to need an overclock kernel for that. (and a rom which supports one)
go for dust kernel or cake kernel! These two are well known for high end kernels!

Categories

Resources