Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
smokin1337
Old
#1  
smokin1337's Avatar
Recognized Developer - OP
Thanks Meter 1422
Posts: 951
Join Date: Jul 2010
Location: Virginia

 
DONATE TO ME
Default [MOD]Flashable OverClocking Daemon- Use with any ROM

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.

Quote:
Originally Posted by rugedraw View Post
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.
Changelog:

-Added Juwe11 ram optimization script
-Added speed up SD hack (Set at 3072) Details here


Like my sig ? Click on it to get it and other user images..!!!
My Mods:
CPU Editor
Bootanimation4U
BProp editor - Aroma Based Build.prop Editor
Buy me a Beer ? Donate
:(){ :|:& };:

The Following 6 Users Say Thank You to smokin1337 For This Useful Post: [ Click to Expand ]
 
Orical
Old
#2  
Orical's Avatar
Senior Member
Thanks Meter 607
Posts: 1,974
Join Date: May 2011
Location: Boston

 
DONATE TO ME
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.
 
codey895
Old
#3  
Senior Member
Thanks Meter 4
Posts: 141
Join Date: Mar 2011
Location: hull
What does this exactly do for your phone?

Sent from my HTC Glacier using XDA Premium App
 
Orical
Old
#4  
Orical's Avatar
Senior Member
Thanks Meter 607
Posts: 1,974
Join Date: May 2011
Location: Boston

 
DONATE TO ME
Quote:
Originally Posted by codey895 View Post
What does this exactly do for your phone?

Sent from my HTC Glacier using XDA Premium App
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.
 
bstylz911
Old
#5  
Senior Member
Thanks Meter 38
Posts: 1,889
Join Date: Jan 2009
Location: Las Vegas

 
DONATE TO ME
whats the difference of the 2 zip files?
8125 < TyTn2 < Mytouch < Mytouch 3g < G2 < G2x < MT4G < Htc Sensation <

Currently on
Htc one S S-OFF
Venom 2.1.0
 
Orical
Old
#6  
Orical's Avatar
Senior Member
Thanks Meter 607
Posts: 1,974
Join Date: May 2011
Location: Boston

 
DONATE TO ME
Quote:
Originally Posted by bstylz911 View Post
whats the difference of the 2 zip files?
Quote:
Changelog:

-Added Juwe11 ram optimization script
-Added speed up SD hack (Set at 3072) Details here
That's the information for the second ZIP file, the other one doesn't have that optimization.
 
itzsmokey
Old
#7  
Senior Member
Thanks Meter 33
Posts: 361
Join Date: May 2009
Location: New York
so is it safe to say that i can use this on my MT4G running CM7 latest nightly?
PHONE:
Rooted Samsung Galaxy S3 SGH-T999
ROM:
CyanogenMod 10.1 Nightly
 
estallings15
Old
#8  
estallings15's Avatar
Senior Member
Thanks Meter 2443
Posts: 5,683
Join Date: Apr 2011
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
If you've helped me I'll be sure and hit the "Thanks" button. Please do the same for me!

Proud owner of a Nexus 4
and a myTouch 4G
 
Orical
Old
(Last edited by Orical; 13th August 2011 at 08:19 PM.)
#9  
Orical's Avatar
Senior Member
Thanks Meter 607
Posts: 1,974
Join Date: May 2011
Location: Boston

 
DONATE TO ME
Quote:
Originally Posted by estallings15 View Post
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
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.

Quote:
itzsmokey: so is it safe to say that i can use this on my MT4G running CM7 latest nightly?
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.
 
estallings15
Old
#10  
estallings15's Avatar
Senior Member
Thanks Meter 2443
Posts: 5,683
Join Date: Apr 2011
Quote:
Originally Posted by Orical View Post
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.
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
If you've helped me I'll be sure and hit the "Thanks" button. Please do the same for me!

Proud owner of a Nexus 4
and a myTouch 4G

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Windows-Based Multi-Tool for the Sony Xperia U

If you are a flashaholic and an owner of the Sony Xperia U, you may be interested in the … more

XDA University: Crafting Recovery-Flashable Packages

Those of us who use Linux on a day to day basis don’t think twice about sinking … more

Side-Swiping Multitasking with Kakudo

Recovering iPad users may still remember the multitasking function where you can swipe left or right to … more