the aim of this work is to easily switch between two overclocking frequencies and governor, the first for every day use and battery saving, the second for performance
this is a shortcut to change at one time min/max freq and governor, quicker than going to Settings>CyanogenMod Settings>Performances>CPU and then change the three values ...
These scripts are dangerous! using them may cause severe damage to your hardware. I'm not responsible if one of these scripts kills your lovely phone. Use it at your own risk! (DX©)
this is a work in progress for now, and my FIRST unix script
it is made for x8/X10mini/X10miniPro running MiniCM7 or any custom rom with custom kernel only.
created for my personnal use, at least it is useful for me, it is not made to be used by everybody, but for any people that may need it
- place the script you want at the root of your sd,
- install Script Manager from the market
- launch it, find the script and click on it
- set as favorite and root
- close Script Manager
- long press home screen
- choose widget
- script manager ads 1*1
- choose the script
- now the the script is ready to use !
- just press on the widget and it will switch between the two frequencies
now on ICS !!
if you think text is too small :
if you have any idea to make it better/faster, feel free to comment
available frequencies :
DOWNLOADS (no mirroring allowed!) :
if you want to test a non-released version, pm me
11.04.12 standard version for e10i, e10a, e15i, e15a, u20i, and u20a, regardless of the rom (custom rom+kernel)12.01.12
- OC in kernel,
- one of the previously written devices,
- undervolt module installed
--> if you are running on any miniCM7/9 based rom, it should work perfectly
12.01.10 standard & special versions :
11.12.14 standard version (compatible with any miniCM7-2.1.X+):
- 122/600iX/uv-122/691S now compatible with miniCM7-2.1.6!
- 600/interactiveX/uv-122/691/Scary/oc NO MORE compatible with miniCM2.1.6 !! (because of OC insmodding)
- 122/691-320/748 not released yet
- 122/691-320/768 not released yet
you have specific needs ? and want to change values yourself? >>> DIY TUT for editing the script____________________________
how it works :
catches CPU max freq value
MAX_FREQ_FILE=/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq CUR_MAX_FREQ=`cat $MAX_FREQ_FILE`
echo "you're running at $CUR_MAX_FREQ Hz"
if [ "$CUR_MAX_FREQ" -eq 710400 ] then echo "setting cpuclock to 691MHz now" echo 691200 > $MAX_FREQ_FILE elif [ "$CUR_MAX_FREQ" -eq 691200 ] then echo "setting cpuclock to 710MHz" echo 710400 > $MAX_FREQ_FILE elif [ "$CUR_MAX_FREQ" -ne 691200 -a "$CUR_MAX_FREQ" -ne 710400 ] then echo "$CUR_MAX_FREQ is not 691 or 710MHz" echo "setting cpuclock to 691MHz" echo 691200 > $MAX_FREQ_FILE fi
echo "you're now running at $CUR_MAX_FREQ Hz"
if you are using the performance, it will reset to 691
if you are running at 600 it will change to 691.
if your phone freezes, reboot immediately, you should better not tick "set on boot" option in Cyanogenmod settings
bonus : battery temp displayer
many thks to nAa that helped me a lot for script making____________________________
private notes : 748.8; 729.6; 710.4; 691.2