FORUMS
Remove All Ads from XDA

 View Poll Results: do you think this could be useful for you?

Yes, continue, & release future versions
 
33 Vote(s)
86.84%
No, stop it there, useless thing
 
5 Vote(s)
13.16%

[DEV][WIP][script] one touch CPU minMAX switching X10mini/X10miniPro/x8 11-04-2012

3,303 posts
Thanks Meter: 4,676
 
Post Reply Email Thread
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
  1. place the script you want at the root of your sd,
  2. install Script Manager from the market
  3. launch it, find the script and click on it
  4. set as favorite and root
  5. close Script Manager
  6. long press home screen
  7. choose widget
  8. script manager ads 1*1
  9. choose the script
  10. now the the script is ready to use !
  11. 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
12.01.10 standard & special versions :
11.12.14 standard version (compatible with any miniCM7-2.1.X+):11.12.14(b) special for aloy99:
11.12.12alpha6b:
  • 122/691-320/729
  • 122/691-320/748 not released yet
  • 122/691-320/768 not released yet

11.12.12alpha5:
you have specific needs ? and want to change values yourself? >>> DIY TUT for editing the script
____________________________
how it works :
catches CPU max freq value
Code:
MAX_FREQ_FILE=/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
CUR_MAX_FREQ=`cat $MAX_FREQ_FILE`
displays current value :
Code:
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)
Code:
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 :
Code:
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
The Following 12 Users Say Thank You to matmutant For This Useful Post: [ View ] Gift matmutant Ad-Free
 
 
12th December 2011, 05:50 PM |#2  
matmutant's Avatar
OP Recognized Contributor
Flag ~/
Thanks Meter: 4,676
 
More
changelog
Changelog :

11.04.12
- no more disable UV when switching to perf mod!
- some cosmetic changes

12.01.12
- now supports e10i, e10a, e15i, e15a, u20i, and u20a, regardless of the rom (custom rom+kernel)
- doesn't care about UVmodule's name (thx FrenchKoR for idea and nAa for huge help in succeeding to make it work)
- script size quitely resized

12.01.10
- major fix for removing UVmodule properly

11.12.14b special (not a major release, that's why version stays the same)
- compatibility fix for miniCM7-2.1.6

11.12.14 standard
- enables/disables UnderVolt

11.12.14 special for aloy99
- enables/disables overclock and undervolt

11.12.13 alpha7
- now also switching governors

11.12.12 alpha6b
- now minMAX capable!
- available freq :
  • 122/691-320/729
  • 122/691-320/748
  • 122/691-320/768
- optimized a little
- full comments added

11.12.12 alpha5
initial public release
perfomance frequencies available:
  • 710MHz
  • 729MHz
The Following 3 Users Say Thank You to matmutant For This Useful Post: [ View ] Gift matmutant Ad-Free
12th December 2011, 05:51 PM |#3  
matmutant's Avatar
OP Recognized Contributor
Flag ~/
Thanks Meter: 4,676
 
More
additional comments
to do next :


- optimizing the script
- ...
- any idea?
The Following User Says Thank You to matmutant For This Useful Post: [ View ] Gift matmutant Ad-Free
12th December 2011, 06:19 PM |#4  
Senior Member
Thanks Meter: 107
 
More
Smile
Nice work. But I don't think it is very useful, cuz I have 320 to 768 MHz and it is very stable for battery life, also rather fast for games music etc
12th December 2011, 06:22 PM |#5  
matmutant's Avatar
OP Recognized Contributor
Flag ~/
Thanks Meter: 4,676
 
More
Quote:
Originally Posted by Mrakoris/

Nice work. But I don't think it is very useful, cuz I have 320 to 768 MHz and it is very stable for battery life, also rather fast for games music etc

your phone doesn't freeze @768?

@748MHz, i get 18h
@691MHz, i get up to 30h of battery life
the aim is to have power when i need it
12th December 2011, 06:24 PM |#6  
Senior Member
Flag DF
Thanks Meter: 69
 
More
with this frequency the xperia mini work better?

Sorry for my bad English
12th December 2011, 06:27 PM |#7  
Senior Member
Thanks Meter: 107
 
More
Quote:
Originally Posted by matmutant

your phone doesn't freeze @768?

@748MHz, i get 18h
@691MHz, i get up to 30h of battery life
the aim is to have power when i need it

It doesn't freeze even 806Mhz, it only freezes at 825MHz
@768, i get 2-3 days
12th December 2011, 06:30 PM |#8  
matmutant's Avatar
OP Recognized Contributor
Flag ~/
Thanks Meter: 4,676
 
More
Quote:
Originally Posted by sognare69

with this frequency the xperia mini work better?

Sorry for my bad English

at least it works better on my phone
i choose 691 as a reference because it doesn't drain battery too much but gives the small performance improvement for smooth day to day use
748 gives all the power needed for games

i'm currently using 691-748 switch (which is not released yet)
The Following User Says Thank You to matmutant For This Useful Post: [ View ] Gift matmutant Ad-Free
12th December 2011, 06:31 PM |#9  
matmutant's Avatar
OP Recognized Contributor
Flag ~/
Thanks Meter: 4,676
 
More
Quote:
Originally Posted by Mrakoris/

It doesn't freeze even 806Mhz, it only freezes at 825MHz
@768, i get 2-3 days

what kind of phone do you have??

mine freezes at 787 and kills my battery
12th December 2011, 06:54 PM |#10  
Senior Member
Thanks Meter: 107
 
More
Quote:
Originally Posted by matmutant

what kind of phone do you have??

mine freezes at 787 and kills my battery

I have x10 mini, e10i. I think you have to rise your minimal cpu up to 320-480 Mhz, before increasing your maximum cpu
12th December 2011, 07:18 PM |#11  
matmutant's Avatar
OP Recognized Contributor
Flag ~/
Thanks Meter: 4,676
 
More
Quote:
Originally Posted by Mrakoris/

I have x10 mini, e10i. I think you have to rise your minimal cpu up to 320-480 Mhz, before increasing your maximum cpu

hmmm i'll try it
and maybe work on an update that also change min freq !
Post Reply Subscribe to Thread

Tags
governor, min/max cpu switch, minicm7, script

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes