[Sony Ericsson XPERIA X10 Mini] matmutant:
this is a work in progress

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 ...​

Disclaimer

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 :)

on X10mini:_____________________________________________onX8:

____________________________

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)

requirements :

- 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 :)

122/691ix-320/768s

​

12.01.12

122/691ix-320/748s

12.01.10

standard & special versions :

122-691

122/691ix-320/729s

122/691ix-320/748s

11.12.14

standard version (compatible with any miniCM7-2.1.X+):

122/600ix-320/729s

122/600ix-320/748s

11.12.14

(b) special for aloy99:

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)

11.12.12alpha6b:

122/691-320/729

122/691-320/748 not released yet

122/691-320/768 not released yet

11.12.12alpha5:

691-710 switcher

691-729 switcher

691-748 and 691-768 will not be released for now

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`

displays current value :

echo "you're running at $CUR_MAX_FREQ Hz"

then switches to higher or lower value depending on the current : (code has slightly changed now)

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

finally it displays the new value :

echo "you're now running at $CUR_MAX_FREQ Hz"

notes : if you are running at 691, it will switch the performance value

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