• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [How-to] Overclock that survives a reboot

D13

Android Expert
May 28, 2010
2,088
234
Elkridge, Maryland
Warning, this process may cause our phone to become unstable if you clock it at the wrong speed. I advise that you do not continue onto steps 2 and 3 until you find the settings that work for YOUR phone best.

All credit goes to Fab for his how-to post, Elkay for the original mod of the milestone overclock and to Hilbe for his install-recovery.sh and setscaling.sh files as well as figuring out where to add on these commands. And also Airmaxx23 for helping me refine the commands. As well as FreeWELL for his Root Explorer guide and his stop overclocking commands

I am not responsible for anything that happens to your phone.

First, things first download the attachment at the bottom of this post
Now on to how to overclock that survives a reboot,
1. First follow Fabolous's guide to overclocking,
http://androidforums.com/all-things-root-droid-x/145209-how-overclock-your-droid-x.html
Here is his OP, also the overclock.ko and overclock.sh files are both in the attached Zip file at the bottom.
Well, it's here, in very basic form. Credit to Elkay at Droid Forums for modding the Milestone overclock module to run on the DX.

The post is here:

Droid X successfully overclocked - Page 6 - Droid Forum - Verizon Droid & the Motorola Droid Forum

The file is attached to the bottom of his post, and I will attach it here as well.

unzip the files and put them both on your sdcard, then run the following in adb or terminal emulator:

Code:
su
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/overclock.ko /system/lib/modules/
cp /sdcard/overclock.sh /system/bin/
chmod 644 /system/lib/modules/overclock.ko
chmod 755 /system/bin/overclock.sh
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
That sets up everything you need to overclock. To use overclock, you just run the command:

overclock.sh frequency voltage

with 1000000 being the default freq and 66 being the default voltage

It is highly recommended to not go over 96 for the voltage parameter!

so an example:

Code:
su
overclock.sh 1100000 66
results in attempting to overclock to 1.1GHz on stock voltage (this is stable for me).

The mod is wiped clean after every reboot, so it will need to be run again. If you want to wipe it while the phone is running, to say, try another frequency, you can do the following:

Code:
su
busybox rmmod overclock
and proceed to overclock with different parameters.

2. Next put the setscaling.sh file and the install-recovery.sh into your tools folder or where ever your adb.exe is located, then open up cmd and point it at that folder.

3.In adb run
-"adb push setscaling.sh /sdcard"
-"adb push install-recovery.sh /sdcard"
-"adb shell"
-"su"
-"mount -o remount,rw -t yaffs2 /dev/mtd/mtdblock4 /system"
-"cp /sdcard/setscaling.sh /system/bin"
-"chmod 755 /system/bin"
-"cp /sdcard/install-recovery.sh /system/etc"
-"mount -o ro,remount -t yaffs2 /dev/mtd/mtdblock4 /system"

The whole thing can also be done with Root explorer, credit to FreeWELL for the guide

1. Download file "Survive the boot.zip"
2. Fire up Root Explorer
3. Navigate to /sdcard/downloads
4. Long press on "Survive the boot.zip" and select Extract All
5. Navigate to /sdcard/extracted/Survive the boot/
6. Long press on install-recovery.sh and select Copy
7. Navigate to /system/etc
8. Hit the Mount R/W button
9. Hit Paste
10. Hit the Mount R/O button
11. Navigate back to /sdcard/extracted/Survive the boot/
12. Long press on "overclock.ko" and select Copy
13. Navigate to /system/lib/modules (all the way at the end of ../lib)
14. Mount R/W
15. Hit Paste
16. Mount R/O
17. Navigate to /sdcard/extracted/Survive the boot/
18. Hit the Menu botton and choose Multi-select
19. Select "overclock.sh" & "setscaling.sh" (green check mark)
20. Hit "copy"
21. Navigate to /system/bin
22. Mount R/W
*23. **Think about what you're doing!!!* You are now at the end of the road. My X will not run stable with the "setscaling.sh" as supplied... my X does run well set to 400@23/700@28/900@33/1100@40... I don't think 1150@34 is stable for everyone... 1100@40 should be... i also think 400/700 is more useful than 300/600 when creating profiles with SetCPU...

24. Hit "Paste" because your setscaling.sh is edited with settings that are stable for your X and you know because you thoroughly testified this before editing/copying install-recovery.sh to overclock at boot...
25. Mount R/O


Also to disable overclocking, credit to FreeWELL

Disabling Overclock at Boot with Root Explorer:
1. Open Root Explorer
2. Navigate to /system/etc
3. Mount R/W
4. Long press on "install-recovery.sh"
4. Select Rename
5. Change to "install-recovery.oc" or whatever works for you, and then hit Ok
6. You can now Mount R/O or continue messing around with editing you setscaling.sh file

Command Line Stop boot overclock:
$ su
# mount -o rw,remount -t yaffs2 /dev/mtd/mtdblock4 /system
# cd /system/etc
# mv install-recovery.sh install-recovery.oc
# mount -o ro,remount -t yaffs2 /dev/mtd/mtdblock4 /system

And to re-enable overclocking:
With RE just change the name back to install-recovery.sh
With Cmd
$ su
# mount -o rw,remount -t yaffs2 /dev/mtd/mtdblock4 /system
# cd /system/etc
# mv install-recovery.oc install-recovery.sh
# mount -o ro,remount -t yaffs2 /dev/mtd/mtdblock4 /system



Thats it, let me know if it works and to check if it worked try rebooting your phone.
 

Attachments

  • Survive the boot.zip
    5.1 KB · Views: 510
What if we're on the fly, aren't near a computer terminal, and want to use SetCPU or something similar instead? Is there a way for us to do everything from the phone, or not?

Sorry. I'm not quite this technologically adept when it comes to electronics, especially something this new to me, but I just had to ask. I usually just follow the instructions that are written and given and try to learn from them as best as I can.

Thanks for writing this up though. I'll probably try it when my phone arrives.
 
Upvote 0
What if we're on the fly, aren't near a computer terminal, and want to use SetCPU or something similar instead? Is there a way for us to do everything from the phone, or not?

Sorry. I'm not quite this technologically adept when it comes to electronics, especially something this new to me, but I just had to ask. I usually just follow the instructions that are written and given and try to learn from them as best as I can.

Thanks for writing this up though. I'll probably try it when my phone arrives.


Get Better Terminal from the market. adb on the fly basically.

Good writeup, thanks a lot.

Just got this score at 1.15/34

2reoach.png


Battery at 40 percent, after watching Transformers 2 at full brightness and light sms/emailing.
 
Upvote 0
Yeah I suppose I can use the mobile terminal emulator. I don't know why I didn't realize that. Though, I was thinking more along the lines of a user-friendly way to accomplish the same results. I realize that if someone doesn't know how to do each step manually, then maybe they shouldn't be messing with the clock speeds and voltages, but still. Sometimes user-friendly methods are a way for those of us who know what we're doing to just be lazy. :D
 
Upvote 0
What if we're on the fly, aren't near a computer terminal, and want to use SetCPU or something similar instead? Is there a way for us to do everything from the phone, or not?

Sorry. I'm not quite this technologically adept when it comes to electronics, especially something this new to me, but I just had to ask. I usually just follow the instructions that are written and given and try to learn from them as best as I can.

Thanks for writing this up though. I'll probably try it when my phone arrives.

*warning* proceeding could be potentially very hazardous to you X

1. Download file "Survive the boot.zip"
2. Fire up Root Explorer
3. Navigate to /sdcard/downloads
4. Long press on "Survive the boot.zip" and select Extract All
5. Navigate to /sdcard/extracted/Survive the boot/
6. Long press on install-recovery.sh and select Copy
7. Navigate to /system/etc
8. Hit the Mount R/W button
9. Hit Paste
10. Hit the Mount R/O button
11. Navigate back to /sdcard/extracted/Survive the boot/
12. Long press on "overclock.ko" and select Copy
13. Navigate to /system/lib/modules (all the way at the end of ../lib)
14. Mount R/W
15. Hit Paste
16. Mount R/O
17. Navigate to /sdcard/extracted/Survive the boot/
18. Hit the Menu botton and choose Multi-select
19. Select "overclock.sh" & "setscaling.sh" (green check mark)
20. Hit "copy"
21. Navigate to /system/bin
22. Mount R/W
*23. **Think about what you're doing!!!* You are now at the end of the road. My X will not run stable with the "setscaling.sh" as supplied... my X does run well set to 400@23/700@28/900@33/1100@40... I don't think 1150@34 is stable for everyone... 1100@40 should be... i also think 400/700 is more useful than 300/600 when creating profiles with SetCPU...

24. !!!MULTIPLE CHOICE!!!
a. Realize you don't know what the he'll you're doing and "Cancel"
b. Realize that if you just hit Paste now, you will like cause your X to run at boot with settings that are unstable. Hit "Cancel"
c. Hit "Paste" because your setscaling.sh is edited with settings that are stable for your X and you know because you thoroughly testified this before editing/copying install-recovery.sh to overclock at boot...
25. Mount R/O
 
  • Like
Reactions: D13
Upvote 0
OK, I am getting some issues.

I am in debugging mode and Mass storage setting.

I follow steps 2 and 3 in the OP as stated and get no errors while issuing them thru ADB.

I reboot, but none of the settings stick. So I check my sdcard (while unplugged) and the install and setscale docs are not in there.

I plug back in to the computer (debu/mass storage) and I look on astro and boom! the install and setscale docs are on the sdcard now, but disappear when I disconnect from computer.

I am doing something wrong, obviously, but I don't know how to make it stick to the sdcard after I unplug from computer....
 
Upvote 0
*warning* proceeding could be potentially very hazardous to you X

1. Download file "Survive the boot.zip"
2. Fire up Root Explorer
3. Navigate to /sdcard/downloads
4. Long press on "Survive the boot.zip" and select Extract All
5. Navigate to /sdcard/extracted/Survive the boot/
6. Long press on install-recovery.sh and select Copy
7. Navigate to /system/etc
8. Hit the Mount R/W button
9. Hit Paste
10. Hit the Mount R/O button
11. Navigate back to /sdcard/extracted/Survive the boot/
12. Long press on "overclock.ko" and select Copy
13. Navigate to /system/lib/modules (all the way at the end of ../lib)
14. Mount R/W
15. Hit Paste
16. Mount R/O
17. Navigate to /sdcard/extracted/Survive the boot/
18. Hit the Menu botton and choose Multi-select
19. Select "overclock.sh" & "setscaling.sh" (green check mark)
20. Hit "copy"
21. Navigate to /system/bin
22. Mount R/W
*23. **Think about what you're doing!!!* You are now at the end of the road. My X will not run stable with the "setscaling.sh" as supplied... my X does run well set to 400@23/700@28/900@33/1100@40... I don't think 1150@34 is stable for everyone... 1100@40 should be... i also think 400/700 is more useful than 300/600 when creating profiles with SetCPU...

24. !!!MULTIPLE CHOICE!!!
a. Realize you don't know what the he'll you're doing and "Cancel"
b. Realize that if you just hit Paste now, you will like cause your X to run at boot with settings that are unstable. Hit "Cancel"
c. Hit "Paste" because your setscaling.sh is edited with settings that are stable for your X and you know because you thoroughly testified this before editing/copying install-recovery.sh to overclock at boot...
25. Mount R/O

I think this could be helpful to alot of people, do you mind if I add it to the OP?
 
Upvote 0
OK, I am getting some issues.

I am in debugging mode and Mass storage setting.

I follow steps 2 and 3 in the OP as stated and get no errors while issuing them thru ADB.

I reboot, but none of the settings stick. So I check my sdcard (while unplugged) and the install and setscale docs are not in there.

I plug back in to the computer (debu/mass storage) and I look on astro and boom! the install and setscale docs are on the sdcard now, but disappear when I disconnect from computer.

I am doing something wrong, obviously, but I don't know how to make it stick to the sdcard after I unplug from computer....

I had to do all of it in charge only mode. You may want to try that.
 
Upvote 0
Droider13: I don't mind. Just add the filollowing as well...

Disabling Overclock at Boot with Root Explorer:
1. Open Root Explorer
2. Navigate to /system/etc
3. Mount R/W
4. Long press on "install-recovery.sh"
4. Select Rename
5. Change to "install-recovery.oc" or whatever works for you, and then hit Ok
6. You can now Mount R/O or continue messing around with editing you setscaling.sh file

Command Line Stop boot overclock:
$ su
# mount -o rw,remount -t yaffs2 /dev/mtd/mtdblock4 /system
# cd /system/etc
# mv install-recovery.sh install-recovery.oc
# mount -o ro,remount -t yaffs2 /dev/mtd/mtdblock4 /system
 
  • Like
Reactions: D13
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones