[GUIDE] Sony Stock Nougat Battery Drain Fix

Search This thread

PDesire

Inactive Recognized Developer / Contributor
Hello guys,

I have finally found out what does really cause the battery drain on Sony's latest Nougat releases:

Well Sony was "intelligent" again and totally miscallibrated the Virtual Memory Values

So I did new callibratons and also added 1 tweak to improve it even more

Requirements:
Latest Stock Nougat (tested on Z5 Premium, I don't know if it works on other devices too)
Root
A Root Explorer which can edit texts


Guide:

1.) Open your Root Explorer and navigate to /system/etc and open the file init.qcom.post_boot.sh
2.) Now scroll down to the last lines
3.) Add now these lines at the end of the script:
Code:
echo 'N' > /sys/module/msm_thermal/parameters/enabled
echo '1' > /sys/module/msm_thermal/vdd_restriction/enabled
echo '0' > /proc/sys/vm/laptop_mode
echo '60' > /proc/sys/vm/overcommit_ratio
echo '70' > /proc/sys/vm/vfs_cache_pressure
echo '20' > /proc/sys/vm/dirty_ratio
echo '10' > /proc/sys/vm/dirty_background_ratio
echo '2000' > /proc/sys/vm/dirty_expire_centisecs
echo '3000' > /proc/sys/vm/dirty_writeback_centisecs
4.) Save the File
5.) Reboot

And with that you finally fixed the Battery drain

See the effect here:
https://forum.xda-developers.com/showpost.php?p=71497320&postcount=9


If it sucesses with your device send on this Thread Screenshots with the Battery Comsumption now


Your PDesire
 
Last edited:

koekoek91

Senior Member
Mar 7, 2016
1,247
520
31
@PDesire

Thanks...

Using these values on a script right now... will report back if it made a difference :)

Edit @_LLJY gave me the script:laugh:
 
Last edited:
  • Like
Reactions: karrouma

PDesire

Inactive Recognized Developer / Contributor
See on Attachments, I have Z5 Premium E6833 so SOT is just 4h 20min because of 4K display


Your PDesire
 

Attachments

  • Screenshot_20170319-162401.jpg
    Screenshot_20170319-162401.jpg
    228.5 KB · Views: 3,949
  • Screenshot_20170319-162354.jpg
    Screenshot_20170319-162354.jpg
    220.5 KB · Views: 3,905
  • Like
Reactions: karrouma

PDesire

Inactive Recognized Developer / Contributor
  • Like
Reactions: shehabskull

iArvee

Senior Member
Apr 23, 2014
799
277
Manila
I tried adding the values via Kernel Adiutor and the big cores shot up to 100%. I guess it doesn't work on the Z5 Compact.

EDIT: It seems I messed something up with the CPU Hotplugging that caused it to shoot up to 100%. Rebooted without CPU hotplug settings on boot and things are fine now. Will update tomorrow with results. :)
 
Last edited:
  • Like
Reactions: TexHuk 3

Top Liked Posts

  • There are no posts matching your filters.
  • 15
    Hello guys,

    I have finally found out what does really cause the battery drain on Sony's latest Nougat releases:

    Well Sony was "intelligent" again and totally miscallibrated the Virtual Memory Values

    So I did new callibratons and also added 1 tweak to improve it even more

    Requirements:
    Latest Stock Nougat (tested on Z5 Premium, I don't know if it works on other devices too)
    Root
    A Root Explorer which can edit texts


    Guide:

    1.) Open your Root Explorer and navigate to /system/etc and open the file init.qcom.post_boot.sh
    2.) Now scroll down to the last lines
    3.) Add now these lines at the end of the script:
    Code:
    echo 'N' > /sys/module/msm_thermal/parameters/enabled
    echo '1' > /sys/module/msm_thermal/vdd_restriction/enabled
    echo '0' > /proc/sys/vm/laptop_mode
    echo '60' > /proc/sys/vm/overcommit_ratio
    echo '70' > /proc/sys/vm/vfs_cache_pressure
    echo '20' > /proc/sys/vm/dirty_ratio
    echo '10' > /proc/sys/vm/dirty_background_ratio
    echo '2000' > /proc/sys/vm/dirty_expire_centisecs
    echo '3000' > /proc/sys/vm/dirty_writeback_centisecs
    4.) Save the File
    5.) Reboot

    And with that you finally fixed the Battery drain

    See the effect here:
    https://forum.xda-developers.com/showpost.php?p=71497320&postcount=9


    If it sucesses with your device send on this Thread Screenshots with the Battery Comsumption now


    Your PDesire
    5
    @PDesire

    Thanks...

    Using these values on a script right now... will report back if it made a difference :)
    Don't forget, i gave u the script
    1
    @PDesire

    Thanks...

    Using these values on a script right now... will report back if it made a difference :)

    Edit @_LLJY gave me the script:laugh:
    1
    Well misreaded, sorry Xd
    1
    See on Attachments, I have Z5 Premium E6833 so SOT is just 4h 20min because of 4K display


    Your PDesire