[MOD] |init.d| 918-1242Mhz CPU & 128-200Mhz GPU addons

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by Wajk, May 8, 2013.

?

Which Power mode do you use most?

  1. stock Power Saving mode

    40.0%
  2. stock Normal mode

    37.3%
  3. Normal mode with 918Mhz mod

    9.3%
  4. Normal mode with 1242Mhz mod

    16.0%
  5. Performance mode

    5.3%
Multiple votes are allowed.
  1. Wajk

    WajkMembers

    Jun 29, 2011
    486
    1,487
    165
    #1Wajk,May 8, 2013
    Last edited: Dec 5, 2013
    Introduction
    I would like to share with you my CPU settings.
    I tested builtin Normal and Power Saving mode, but I can't choice between them.

    Normal mode very smooth, but eat much more battery.
    Power Saving mode very good, but I can't stand lag (not always!) in menu and some other place.

    I don't understand completely what settings they have. But in my opinion is not just clock settings.
    Normal mode use CPU between 384Mhz - 1.5 Ghz
    Power Saving mode use CPU between 384Mhz - 918Mhz

    I tried Normal mode with maximized CPU to 918Mhz (PS setting), but my device smoother than with Power Saving mode. So, I made little init.d script, which script maximize all CPU cores to 918/1242Mhz. If you would like to try it.

    [​IMG]
    918Mhz - 1242Mhz CPU addon

    Install instructions:
    1. copy zip to your device
    2. boot into CWM Recovery
    3. flash it to your system
    4. restart your device

    Uninstall instructions:
    1. copy uninstall.zip to your device
    2. boot into CWM Recovery
    3. flash it to your system
    4. restart your device

    Required:
    - init.d support
    - any WiUi ROM
    - any MIUI/MIUIandroid ROM with redmaner's kernel

    Downloads:
    [​IMG] 918Mhz_CPUmod_4Mi2.zip
    [​IMG] 1242Mhz_CPUmod_4Mi2.zip
    [​IMG] CPUmod_Uninstaller_4Mi2.zip
    [​IMG] 128Mhz_GPUmod_4Mi2.zip
    [​IMG] 200Mhz_GPUmod_4Mi2.zip
    [​IMG] GPUmod_Uninstaller_4Mi2.zip
    Mirror:
     

    Attached Files:

    Caominh171, type-R, xeGox and 3 others like this.
  2. afterburner

    Mar 17, 2013
    116
    44
    38
    Male
    Great Wajk Thanks a looot for Sharing..you are really awesome..!;)
     
    Wajk likes this.
  3. dextructor

    dextructorMembers

    Feb 26, 2013
    347
    100
    65
    Male
    Wajk

    Interesting mod to test today. I never had any issues to complain about the "power saving mode" but have an "normal mode" with a diferenciated clock should make it cool!:cool:

    Thanks for the working on this community
     
    Wajk likes this.
  4. Wajk

    WajkMembers

    Jun 29, 2011
    486
    1,487
    165
    Thnx, your Welcome!

    Power Saving mode was smooth on v4 ROM-s, but not on v5 ROMs. But I agree with you, Power Saving mode much smoother on latest v5 builds than earlier v5 builds. But for myself smooth and battery never enough :D
    That's way I playing with CPU settings.
     
    xeGox, afterburner and dextructor like this.
  5. xeGox

    xeGoxMembers

    Feb 26, 2013
    394
    57
    60
    Male
    does it change maximum freq of all profiles?or does it change only normal max freq?
     
  6. ubelai

    ubelaiMembers

    Feb 5, 2013
    209
    20
    40
    Male
    Looking forward to results. :)
     
  7. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    It seems like it runs this:

    - performance mode: all CPUs Online all the time, at minimum 384 to max 1514 mhz.
    - power saving mode: 1 CPU is online (the rest are offline when iddle): min 384 and max 1242.
    - normal mode: 1 or 2 CPU online (but it can easly go with 4 cores), min 384 and max 1514, but when iddle it usually goes max to 1242. 1514 is reached when doing some more heavy task like updating app from Market.

    I will see how it goes testing all day..
     
    Wajk likes this.
  8. Wajk

    WajkMembers

    Jun 29, 2011
    486
    1,487
    165
    This addon don't touch profile settings. Just set maximum mhz to 918 or 1242.
    I tested only in Normal mode.

    Thanks for clarification. I use CPU Spy app, and when I was on Power Saving mode, my device use maximum 918Mhz (tested example with RR3). I will play with CPU online/offline and I will share my results.

    Now I use Normal mode with 918Mhz addon and working right for me.
     
    xeGox likes this.
  9. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    Use Trickster Mod app. It shows all cpu cores frequencies.


    Wysłane z MI 2
     
    dextructor, redmaner and xeGox like this.
  10. Wajk

    WajkMembers

    Jun 29, 2011
    486
    1,487
    165
    Thnx for the tip, great app :)
     
  11. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    Hi. I just rechecked those settings using CPU Spy.
    So CPU doesnt use 1514Mhz at all. Even in performance mode. I used youtube full HD playback to run on performance mode. Well to be honest phone has no lag and doesnt need 1.5Ghz... ;p
     
  12. dextructor

    dextructorMembers

    Feb 26, 2013
    347
    100
    65
    Male
    Acid

    Did you fashed what mod? You could try too benchmarks to see if reach 1,5Ghz
     
  13. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    I used 1242 mod. Did Antutu on performance mode and CPU is locked to this frequency.


    Wysłane z MI 2
     
  14. alakyr

    alakyrMembers

    Mar 5, 2013
    96
    11
    28
    Male
    ITaly
    i played a lot of time with these settings and this is my opinion:

    • power safe mode max frequency is 918 not 1242...check core frequency with System Monitor that is more reliable and have floating windows in the pro version...there is a lot of apps that read wrong values...as proof of the run antutu in power safe and you'll get about 13k (f I remember correctly) and only 300mhz of difference can't justify 7k point less
    • phone smoothness depend on which transition effect is used because some are lighter and some al heavier...
    • it change also gpu frequency (game decrease performance in power safe) and also voltage cause to the lower frequendy in fact the phone is colder but can verify it withouce source code
     
  15. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    Install CPU Spy. CPU is definitely maxed to 1242. I'm sure.
     
  16. alakyr

    alakyrMembers

    Mar 5, 2013
    96
    11
    28
    Male
    ITaly
    i repeat...with power saving mode cpu frequency is maxed at 918mhz...as proof a print of your loved CPU spy with timers resetted then I played a bit to carmageddon and some multitasking switching between several apps opened...
    [​IMG]

    now hoping that you finally thrust me, imo, to improve the smoothness you could try to increase min frequency from 384 top 594mhz instead maximize it to 918/1242 cause it should be more battery friendly
     
  17. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    Im, sorry but you're still wrong. You flashed 918 Mhz mod or its not working for you. I manually compiled my rom with 1242 init.d script and as I said im sure that max CPU is 1242 Mhz.
    It have to be because:
    Code:
    echo "1242000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    writes 1242 Mhz into system scaling_max_freq file.
    I reset timers in CPU Spy, turned Power saving mode and played Cut The Rope. As you can see 1242Mhz is used.
     

    Attached Files:

  18. alakyr

    alakyrMembers

    Mar 5, 2013
    96
    11
    28
    Male
    ITaly
    lol in post #7 you were not talking about the stock power saving mode?
     
  19. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    743
    245
    Male
    In post #7 I wrote my observations about 1242 Mhz mod. And I was wrong just about Normal and Performance mode because CPU is locked to 1242Mhz in every power Profile.
    The Power Saving mode works as I said few times. The max CPU is set to 1242 Mhz. And... I'm still talking about Wajk mod.

    Stock power saving mode goes max to 918Mhz. But with this mod its 1242Mhz.
     
    dextructor likes this.
  20. ilkertr

    ilkertrMembers

    Nov 1, 2012
    97
    18
    20
    Male
    Turkey
    How can i boot into CWM Recovery?
     
  21. dextructor

    dextructorMembers

    Feb 26, 2013
    347
    100
    65
    Male
    ilkertr

    Search the thread of CWM or flashing guide... There's all the information that you'll need.
     
    Wajk likes this.
  22. sema-sv

    sema-svMembers

    May 10, 2013
    6
    0
    21
    Male
    odessa
    Wajk but you can make a mod with such characteristics?
    Power Saving mode 918Mhz mod
    Normal mode with 918Mhz mod
    Performance mode 1242Mhz mod
     
  23. xeGox

    xeGoxMembers

    Feb 26, 2013
    394
    57
    60
    Male
    What about these configurations?
    Power save min 300 max 900
    Normal min 300 max 1200
    Performance min 300 max 1500?

    Inviato dal mio MI 2 con Tapatalk 2
     
    vidar and Marqc like this.
  24. sema-sv

    sema-svMembers

    May 10, 2013
    6
    0
    21
    Male
    odessa
    performance in a large number can be reduced and extend battery life
     
  25. dextructor

    dextructorMembers

    Feb 26, 2013
    347
    100
    65
    Male
    Sarah Townsend


    Search the forum for the CWM thread
     

Share Our Site