View Single Post
Posts: 3,664 | Thanked: 1,530 times | Joined on Sep 2009 @ Hamilton, New Zealand
#3405
Originally Posted by iceduck View Post
Hey guys, I have the latest version of CSSU and I'd like to mid overclock my phone to 850MHz. Any idea how to do this ?
Make a shell script so it can automatically load everytimes you start up the device. Instead of making a profile. This way if you running into problem you can still go back to remove the shell script.


Install Kernel_PowerUser v47
Install Kernel Power Obsolete profiles
install dbus-scripts packages

reboot
type in the XTerminal:

sudo gainroot
kernel-config load lv
kernel-config limits 250 850


Important: Test out your device first to see if the setting and the frequency is stable before doing the scripts below.



======Script=====
leafpad /etc/event.d/overclocking

start on started rcS-late
script
kernel-config load lv
kernel-config limits 250 850
end script


===============

You might want to add these scripts to help saving your battery and your processor from overcooked.

Create these files: Xterminal
sudo gainroot

leafpad /etc/modules
bq27x00_battery <<<<<add this line to the end of file.
leafpad /etc/dbus-scripts.d/locked


copy and paste the text in red into it.
/usr/local/bin/underclock * * com.nokia.mce.signal tklock_mode_ind locked

leafpad /etc/dbus-scripts.d/unlocked
/usr/local/bin/overclock * * com.nokia.mce.signal tklock_mode_ind unlocked

leafpad /usr/local/bin/underclock
#!/bin/sh
kernel-config limits 250 500


leafpad /usr/local/bin/overclock
#!/bin/sh
TEMP=`cat /sys/class/power_supply/bq27200-0/temp`
echo "Temp is:" $TEMP "C"
MAXSPEED="850"
if [ $TEMP -gt "43" ] ; then MAXSPEED="850" ; fi
if [ $TEMP -gt "45" ] ; then MAXSPEED="750" ; fi
if [ $TEMP -gt "47" ] ; then MAXSPEED="600" ; fi

BATTERY=`cat /sys/class/power_supply/bq27200-0/capacity`
echo "Battery is:" $BATTERY "% full"
MAXSPEEDTWO=850"
if [ $BATTERY -lt "60" ] ; then MAXSPEEDTWO="850" ; fi
if [ $BATTERY -lt "40" ] ; then MAXSPEEDTWO="600" ; fi
if [ $BATTERY -lt "25" ] ; then MAXSPEEDTWO="500" ; fi

if [ $MAXSPEEDTWO -lt $MAXSPEED ] ; then MAXSPEED=$MAXSPEEDTWO ; fi

echo "Setting max as:" $MAXSPEED "Mhz"

kernel-config limits 250 $MAXSPEED


Edit: forget to adjusting the maximm frequency

Last edited by maxximuscool; 2011-05-05 at 10:33.
 

The Following 2 Users Say Thank You to maxximuscool For This Useful Post: