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

do you think this could be useful for you?


  • Total voters
    38
Search This thread

firultd

Senior Member
Dec 20, 2011
77
5
i think so for nearly every version:)
(not the first special aloy99)
just test :)
it won't break anything, just won't work if something goes wrong, and a simple reboot resets in al cases :)



min freq is the minimal freq the cpu can run
the lower it is the more battery life, the higher it is the more responsive (high enough to "wake up" and change freq to higher)

@19MHz it might be instable: too low sometimes to handle thread and can't set higher freq so the phone freezes
@122MHz it seems to be the best for stability/performance (high enough but not to much)
@245 or 320, it is more responsive but eats more battery :)

oh, good! Thankz for u help bro!
 
  • Like
Reactions: matmutant

matmutant

Senior Member
Mar 17, 2011
3,395
4,743
~/
andrux-and-me.blogspot.com
Moto G
Moto E
12.01.12

12.01.12 is coming soon !
currently under testing, but,
if all goes well, it will support 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 based rom, it should work perfectly :)


changelog:
  • 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

i need your suggestions to make three script, with three different max freq (optimised for e10, e15 or u20) and favorite governor for battery life and performance
the actual one is optimised for my e10 and its own caracteristics in term of OC stability
 
  • Like
Reactions: rooterdam

matmutant

Senior Member
Mar 17, 2011
3,395
4,743
~/
andrux-and-me.blogspot.com
Moto G
Moto E
i'm planning to release a script that tells all you need to know for development purpose :
in one tap, it will display
- current min frequency
- current max frequency
- current governor
- modules currently running
- the name of your undervolting module
- the recognise name of your device

I will add in near future :
- battery temperature
- battery percentage
- sd card cache size
- vm heap size
- kernel and rom used
- ...

this will be easy now to answer all the questions when finding a bug ;)
 

matmutant

Senior Member
Mar 17, 2011
3,395
4,743
~/
andrux-and-me.blogspot.com
Moto G
Moto E
11-04-12 update :)

now on ICS !!

Screenshot_2012-04-11-15-49-28.png
Screenshot_2012-04-11-15-48-52.png
Screenshot_2012-04-11-15-50-16.png
Screenshot_2012-04-11-15-50-02.png

Screenshot_2012-04-11-15-50-25.png


if you think text is too small :
Screenshot_2012-04-11-15-49-46.png



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
 
Last edited:
  • Like
Reactions: nobodyAtall

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    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 :)

    1screenshot-1323782095301.png
    2screenshot-1323782079068.png
    32screenshot-1323782121135.png
    4screenshot-1323782136800.png
    cscreenshot-1323856652995.png



    now on ICS !!

    Screenshot_2012-04-11-15-49-28.png
    Screenshot_2012-04-11-15-48-52.png
    Screenshot_2012-04-11-15-50-16.png
    Screenshot_2012-04-11-15-50-02.png

    Screenshot_2012-04-11-15-50-25.png


    if you think text is too small :
    Screenshot_2012-04-11-15-49-46.png





    if you have any idea to make it better/faster, feel free to comment :)


    on X10mini:_____________________________________________onX8:
    screenshot-1323721570287.png
    x8screenshot-1323722943687.png

    ____________________________

    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
    3
    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
    2
    oh, good! Thankz for u help bro!

    also press the thank button if you think it worth it ;)


    @everybody :

    Happy new year !! :)
    2
    DIY script editing for specific&personnal freq/govs :)

    here there will be a detailed tutorial to change the freq you need for yourself easily :)

    available freq :

    for max :
    • 825600 (0x2B)
    • 806400 (0x2A)
    • 787200 (0x29)
    • 768000
    • 748800
    • 729600
    • 710400
    • 691200
    • 600000
    not sure for the gray values, i just can't try myself, so please people that are able to OC that much, give the the exact value :)

    for min :

    • 600000
    • 480000
    • 320000
    • 245790
    • 122880
    • 19200 (available for miniCM7-2.1.6+)

    DX has explained how these values are calculated : in his OC thread


    available governors (exact syntax) :

    • interactiveX
    • interactive
    • Scary
    • ondemand
    • smartassV2
    • smartass
    • conservative
    • SavagedZen
    • minmax

    what to edit :

    PHP:
    echo "setting cpuclock from 320 to 748MHz"
    		echo 748800 > $MAX_FREQ_FILE
    		echo 320000 > $MIN_FREQ_FILE
    		echo "disabling UnderVolt"
    		rmmod /system/lib/modules/x10miniuv.ko
    		echo "setting governor to Scary"
    		echo Scary > $SCAL_GOV_FILE

    if you want min 480 & max 787MHz with ondemand governor for your perf setting:

    PHP:
    echo "setting cpuclock from 320 to 748MHz"
    		echo 787200 > $MAX_FREQ_FILE
    		echo 480000 > $MIN_FREQ_FILE
    		echo "disabling UnderVolt"
    		rmmod /system/lib/modules/x10miniuv.ko
    		echo "setting governor to ondemand"
    		echo ondemand > $SCAL_GOV_FILE
    1
    It works perfect in minicm7 :)
    Thanks.