Sunday, December 5, 2010

How to Overclock the Motorola Milestone on CyanogenMod6

Hello there everyone.

All us Milestone owners know that the 550Mhz processor isn't good enough for the phone to run buttery smooth. Every now and then, we hit a snag at which point we'd wish we'd have a faster processor.

However, for those who were brave enough to root the phone, MilestoneOverclock was used to overclock the phone.

But what if you want control over the speeds of your phone? Like, you didn't want just 1Ghz and 550Mhz only?

Well, now there's a way to control that.

Most of the Android fans are not new to the famous CyanogenMod ROM which retains stock Android but makes the performance just blitz across the charts. Now, by default, CM is in its 6th iteration and is not readily developed for the Milestone by the developers who handle the other ports, but it has finally been ported over for the Milestone by none other than nadlabak who puts a lot of work into this, so donate him a beer for his efforts.

Now, I'm pretty sure a lot of people have installed CM6, but aren't quite sure how to overclock the phone to the speeds they want. Frankly, the 900Mhz default doesn't quite give the satisfaction of the phone running at 1Ghz so here's a small guide to help you change your values on your own.

1. Get Notepad++. This software is very useful, and actually is the only notepad software you should use to edit any kind of linux files whatsoever.

2. Now, you'll want to open a Command Prompt window, but wait! You'll want to open one in the current explorer folder. See, I like to organize all my Milestone testing files ( like CM6, its a beta, or even the GOT Mod ) into a single folder on my hard drive with other stuff relating to my phone.

3. How do you open one in the current explorer folder? You have to hold down the Shift key on the keyboard and Right click. That will bring a new option into view "Open Command Window Here". And that's what you click. The CMD window will open with the current folder.

4. From here, you can start messing around with your overclock. In the command prompt window, type

adb pull /system/etc/init.d/10overclock

..And hit enter.

5. The 10overclock file will show up in the folder. Right click and open with Notepad++. From here on out, you can edit the file and save it without worrying about linux extensions getting messed up.

6. Change your values if you wish. Default settings are 900/700/500/250/125. Personally, I've set mine to 1000/750/500/250/125.

7. Look at the voltage ( commonly referred to as VSEL, which is a "voltage equivalent" of an actual voltage. The defaults for these are usually 62/44, etc.

8. I run my phone at 1000/56VSEL, 750/46VSEL, 500/42VSEL, etc. This helps battery life. Feel free to experiment with lower voltages and what not, but you HAVE to maintain the same format as the rest of the values. For example, my file will look like this.

#!/system/bin/sh
insmod /system/lib/modules/symsearch.ko
insmod /system/lib/modules/overclock.ko

echo 56 > /proc/overclock/max_vsel
echo 1000000 > /proc/overclock/max_rate

#echo "5 1000000000 56" > /proc/overclock/mpu_opps
echo "4 750000000 46" > /proc/overclock/mpu_opps
echo "3 500000000 40" > /proc/overclock/mpu_opps
echo "2 250000000 33" > /proc/overclock/mpu_opps
#echo "1 125000000 32" > /proc/overclock/mpu_opps

#echo "0 1000000" > /proc/overclock/freq_table
echo "1 750000" > /proc/overclock/freq_table
echo "2 500000" > /proc/overclock/freq_table
echo "3 250000" > /proc/overclock/freq_table

insmod /system/lib/modules/cpufreq_interactive.ko
echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

insmod /system/lib/modules/cpufreq_conservative.ko
#echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
#echo 125000 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate
#echo 25 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step

9. Save the file.

10. Run these commands from the same command prompt window. ( or if you've closed the window, Shift-Right click in the folder with the 10overclock file or refer to Step 3 )

adb remount
adb push 10overclock /system/etc/init.d/10overclock
adb shell chmod 755 /system/etc/init.d/10overclock
adb reboot

11. At this point, your phone will reboot, but you'll have new overclock settings :D.

Feel free to edit your settings whichever way you want.

2 comments:

  1. Thank you for this wonderful guide. Most people who would attempt this are developers, who already know how to do it, and then there are users who would just use set-cpu or Droid Overclock, ther is little assistance for advanced users.

    ReplyDelete
  2. This is the most convenient way to get anything done on the phone without the inconvenience of small keyboards and the like.

    ReplyDelete