FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

[GUIDE] Sony Stock Nougat Battery Drain Fix

1,517 posts
Thanks Meter: 5,732
 
Post Reply Email Thread
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/sho...20&postcount=9


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


Your PDesire
The Following 13 Users Say Thank You to PDesire For This Useful Post: [ View ] Gift PDesire Ad-Free
 
 
19th March 2017, 02:48 PM |#2  
shehabskull's Avatar
Recognized Themer
Flag cairo
Thanks Meter: 1,961
 
Donate to Me
More
Lol that easy? :v will try and report back ^_^ thanks <3

Sent from my E6633 using Tapatalk
19th March 2017, 02:51 PM |#3  
Senior Member
Thanks Meter: 71
 
More
That sounds interesting. Guess, I will take this as an opportunity for my first attempt at creating a Magisk module...
19th March 2017, 03:03 PM |#4  
whalesplaho's Avatar
Senior Member
Flag Treasure Island
Thanks Meter: 2,299
 
More
Thanks @PDesire.... Tho using a custom kernel, gonna check to see tha values...
19th March 2017, 03:17 PM |#5  
koekoek91's Avatar
Senior Member
Thanks Meter: 429
 
More
@PDesire

Thanks...

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

Edit @_LLJY gave me the script
The Following User Says Thank You to koekoek91 For This Useful Post: [ View ] Gift koekoek91 Ad-Free
19th March 2017, 03:24 PM |#6  
_LLJY's Avatar
Senior Member
Flag Singapore
Thanks Meter: 2,774
 
More
Quote:
Originally Posted by koekoek91

@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
The Following 5 Users Say Thank You to _LLJY For This Useful Post: [ View ] Gift _LLJY Ad-Free
19th March 2017, 03:55 PM |#7  
koekoek91's Avatar
Senior Member
Thanks Meter: 429
 
More
Quote:
Originally Posted by _LLJY

Don't forget, i gave u the script

Edited my post

Thanks bro
19th March 2017, 05:27 PM |#9  
PDesire's Avatar
OP Recognized Contributor
Flag Mainz, Rheinland-Pfalz
Thanks Meter: 5,732
 
More
See on Attachments, I have Z5 Premium E6833 so SOT is just 4h 20min because of 4K display


Your PDesire
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170319-162401.jpg
Views:	3010
Size:	228.5 KB
ID:	4080784   Click image for larger version

Name:	Screenshot_20170319-162354.jpg
Views:	2972
Size:	220.5 KB
ID:	4080785  
The Following User Says Thank You to PDesire For This Useful Post: [ View ] Gift PDesire Ad-Free
19th March 2017, 06:07 PM |#10  
_LLJY's Avatar
Senior Member
Flag Singapore
Thanks Meter: 2,774
 
More
Quote:
Originally Posted by PDesire

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


Your PDesire



http://i.imgur.com/AsrN8W4.jpg
19th March 2017, 09:59 PM |#11  
shehabskull's Avatar
Recognized Themer
Flag cairo
Thanks Meter: 1,961
 
Donate to Me
More
Click image for larger version

Name:	Screenshot_2017-03-19-22-57-10.jpg
Views:	2586
Size:	29.9 KB
ID:	4081112Click image for larger version

Name:	Screenshot_2017-03-19-22-56-50.jpg
Views:	2606
Size:	24.3 KB
ID:	4081113
After using this script..
Xperia Z5 running on latest nougat

Sent from my E6633 using Tapatalk
The Following User Says Thank You to shehabskull For This Useful Post: [ View ] Gift shehabskull Ad-Free
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes