(Battery saving tweak) Force 2 cores online

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by paulrlz, Dec 30, 2013.

  1. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    #1paulrlz,Dec 30, 2013
    Last edited: Jan 9, 2014
    Hi to all,
    im here to share my own research to achieve the best battery life with mi2s.
    I m not a gamer, so i think that 4 cores for whatsapp\facebook\sms\tapatalk are too much for me, and consumes too battery. So I looked for a way to disable 2 o them, in order to save battery.
    Little Story:
    The first problem was the mpdecision (an old hated friend from nexus 4 times), that prevet you to shut down cores or set min\max frequencies or governors for the last 3 cores. I dont like the way that this hotplug work in this case, so i found a method to disable it:

    In a terminal emulator type:

    su
    stop mpdecision

    UPDATE

    Permanently shutdow founded:

    go with your preferred explorer to:
    system\bin and rename the file called MpDecison to wathever you like. Reboot and now you can set up your preferred build.
    Also download the attached script, extract it and copy ot "system\etc\init.d" folder. Give it the correct permission "rw-r-r" and reboot. Alternative method is to use script manager to run the script to boot.
    Open script manager, tap to the script (extract it in sdcard) and tap to the skull icon and boot.


    Huarray! Enemy killed...until you turn your screen off..then it will resurrect..this setting wont stick, so you cant turn off 2 cores of 4, BUT, now you can set your desidered cpu frequencies and governor for each core, and this will stick (Es: 2 cores 384/1.7 ghz ondemand, and 2 cores to 384/384mhz powersave)!

    For cpu settings i suggest Kernel Tuner, that can set freq\governor for each core.

    EDIT:

    With the new method for disable mpdecison, you can set your preferred numbers of cores on just with kernel tuner.

    Btw, you can use also this:

    The true helper, Smokin1337 (works in not all roms, if don t work for you look at the method explained up)

    Regarding the clue part of the story, i found in xda forum the program that resolved my problem!
    CPU Control!
    Source
    Download
    you need to download the beta1 wich support quadcore snapdragon!
    Flash it from cwm.
    Its simple to use:
    Download a terminal emulator from play store, then type:
    su
    cpu
    type 13 then enter
    type 1 then enter
    Reboot and enjoy!

    for other tweaks, simply follow the on screen guide!
    I ve made a small script also to do this, but dont know if it works.. so try at your own risk.
    I suggest to use greenery+deepsleep battery saver pro for the longest battery performance!

    Deep sleep settings:
    5 min 30sec
    Thanks to all, sorry for my bad english, i hope you enjoy!
     

    Attached Files:

    MSephiroth and regent89 like this.
  2. letsfifa

    letsfifaMembers

    Aug 27, 2013
    279
    20
    40
    Thanks for this information.
    After doing this process how is performance?
    Also can you maybe describe how you're battery life is vs before?
    Thanks :)
     
  3. regent89

    regent89Members

    Oct 4, 2013
    108
    28
    38
    Male
    I tried the tweak above. Seems an amazing mod but I'm not sure that it is working though

    I set
    CPU 0 MAX: 1242, Governor on demand
    CPU 1 MAX: 1242, Governor on demand
    CPU 2 MAX: 384, Governor powersave
    CPU 3 MAX: 384, Governor powersave

    after exiting terminal, if you run kernel tuner, no changes seems to have happened.

    Should I stop mpdecision even after flashing the cpu editor?
     
  4. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    you give root permission first?
    Su
    CPU?
    If yes then reboot. Disable all others cpu controlling app
    Btw use Usemon to see if you are in dual core mode, and the cpu control app say to you if the settings are applied
    sorry for my bad English

    Inviato dal mio MI 2 utilizzando Tapatalk
     
  5. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    To letsfifa, I m able with this mod to use mokee is 4.2 with my heavy usage for 12hours with 4h of screen on! See screenshot in battery life trhead :)

    Inviato dal mio MI 2 utilizzando Tapatalk
     
  6. regent89

    regent89Members

    Oct 4, 2013
    108
    28
    38
    Male
    hmmmm I didn't reboot. Ι thought that settings after reboot will be lost, not applied... :p

    After reboot, usemon claims that cpu2 and cpu 3 are indeed off.

    So, please add it to OP

    EDIT: I am a heavy user too, so i will post my results for RC6 release
     
  7. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    Fixed the first post. Remember to use greneefy ad deep spleep battery saver for the best result :)

    Inviato dal mio MI 2 utilizzando Tapatalk
     
  8. oile

    oileMembers

    Jul 15, 2013
    280
    138
    65
    Male
    Italy
    Would it work on stock miui kernel?
     
  9. regent89

    regent89Members

    Oct 4, 2013
    108
    28
    38
    Male
    try it doing a nandroid backup before
     
  10. Gooners

    GoonersMembers

    Aug 4, 2013
    68
    17
    18
    Male
    Would this work for kitkat roms?
     
  11. boojay

    boojayMembers

    Jan 9, 2013
    313
    112
    65
    Male
    Canada
    Nice find, Paul!

    I haven't tried it yet, and may not any time soon since I'm pretty content with my phone's performance currently and don't want to mess with it, but does this tweak apply to all 3 modes, i.e. Powersaving, Normal, Performance? Or is there a way to restrict it to just Powersaving or Normal so that we can have Performance Mode make full use of all 4-cores at maximum capacity when needed?
     
  12. Gooners

    GoonersMembers

    Aug 4, 2013
    68
    17
    18
    Male
    answer my own q. Seems not to work if i did it right .
     
  13. Sterver

    SterverMembers

    On CM 11 probably don't work for me. I tried to delete mpdecision (if it can be stopped, it can be deleted to, or not?) but it didn't helped.... Still max. freq. by CPU0 on all cores... But governor can be setted on each one.
     
  14. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    will test it now on mokee os 4.4. With mokee 4.2.2 this mod saved my battery.
     
  15. regent89

    regent89Members

    Oct 4, 2013
    108
    28
    38
    Male
    Actually after using this for 24 hours, I realized that cores are not actually off (except when they are not needed).

    Though, if you do not reboot you can set their max freq at 384.

    So CPU Control seems to do pretty much the same as the Kernel Tuner, but through teminal.
     
  16. Sterver

    SterverMembers

    Hmm, it seems like it is working. I changed CPU1,2,3 to 384MHz and interactive on all and now they are offline. Fine.
    I still have mpdecision deleted.
    Usemon:
    [​IMG]

    //I'll made some guide on miui.cz probably.
     
  17. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    For me perfectly working on mokee os 4.4.2 last release, with improved battery life (with not so heavy use)
    [​IMG]
    [​IMG]
    [​IMG]

    Inviato dal mio MI 2 utilizzando Tapatalk
     
  18. Sterver

    SterverMembers

    Heh... I made guide on miui.cz as I said. Because most of users was sceptic about this, a did a test.
    "
    Tested AnTuTu Tester - Battery test on custom ROM CyanogenMod 11 (4.4.2)

    4 active/turned on threads
    Governor interactive on all
    Max frequencies on all 1728 Mhz
    Min frequencies on all 384 Mhz
    "The Battery test score: 378"
    Time from 100% to 19%: 126 minutes


    1 active/turned on thread
    Governor interactive
    Max frequencie 1728 Mhz
    Min frequencie 384 Mhz
    "The Battery test score: 405"
    Time from 100% to 19%: 136 minutes


    Saved time: 10 minutes
    Saved time %: 7,9%
    Increased score: 27
    Increased score %: 7,1%



    While tests I kept phone in same situation.
    This is not so good result but this test is not so objective. If anyone can do one on MiUi, please post here results.

    Maybe my testing technique was bad. But, I cannot made daly use test, because I don't use my phone regularly.
    Here are screenshots from AnTuTu Tester:[​IMG][​IMG]
     
  19. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    8% with a simple script is good, considering that in real life battery, there will be much more battery saved :)
    Btw, for me its working , now you can flash redmaner kernel in miui stock\wiui\4.1 stock and you will have eco mode and intelliplug, that is better than this mod :)

    Inviato dal mio MI 2S utilizzando Tapatalk
     
  20. Sterver

    SterverMembers

    Yes, it can be ~8% on each use after battery recharge. Phone used 5 times per cycle it can be 45% at all... But this is bad math I think :D.
     
  21. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    btw i dont think its only 8%. I can use mokee os 4.4.2 last relase and reach 14/15h with ~4 hours screen on time, and its awesome!
     
  22. Sterver

    SterverMembers

    Yes, it is very affected by system.
     
  23. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    Updated op
     
  24. manohar

    manoharMembers

    Jun 6, 2013
    904
    243
    80
    Male
    i cant make cpu snapdragon quadcore tweak work in my Mi2S...
    help me...
    in terminal emulator it says cpu path not found after flashing that zip file & rebooting...
    any help bro ?
     
  25. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    Hi manohar, try the new method that i ve found :) its in the first post :)

    Inviato dal mio MI 2 utilizzando Tapatalk
     

Share Our Site