[PROFILE][TWEAK] HTC 10 Oreo Battery Tweaks

Which version of profile you use (works best for you)?

  • 1.0 - 1.2

    Votes: 1 2.4%
  • 1.3 - 1.4

    Votes: 1 2.4%
  • 1.5 - 1.6

    Votes: 0 0.0%
  • 1.7 - 1.8

    Votes: 1 2.4%
  • 1.9 - 1.10

    Votes: 13 31.0%
  • Other version

    Votes: 4 9.5%
  • Other profile (not from this topic)

    Votes: 2 4.8%
  • No profile (stock HTC or other tweak)

    Votes: 20 47.6%

  • Total voters
    42

alderon666

Senior Member
Mar 11, 2015
652
525
0
------------- Battery Tweaks for HTC 10 -------------


--------- INTRODUCTION ---------​
Hi all!

First of all I want to thank @RogerF81 (soilwork) and @fapste (wingoku_battery_saving4.1) for their work.

At start I based on wingoku CPU governor profile, but then I was adjusting and testing values (based on trials and errors method, because I don't have knowledge to know what every parameter do).
After a while I changed so much that I guess I can call this profile my own.



I decided to post it as new thread, because I hope there will be people who are willing to try it and maybe help to adjust more to make it even more efficient. My goal is to make tweaks which is battery focused of course, but with no impact on performance. It's mean we can't have any stuttering, lag etc. on our phone, even if we loose 30 - 60 minutes SOT on the way.


--------- WHAT YOU NEED AND HOW TO INSTALL ---------​


I use:
1. ROM: Leedroid 5.2.1 r149
2. Kernel: CleanSlate v3.7.13
3. Magisk 17.0 or higher
4. Profile: ZIP file for Magisk 17+

That's basically all you need. I think any ROM (stock or custom) will do, any Kernel with Interactive scheduler should be ok (although I get better results with CleanSlate than ElementalX), but I think it's better to have option to disable Touchboost.



Installation:

This is simply ZIP file flashable in Magisk. It contain ALL settings from my latest governor profile + extra additional settings from Soilwork and @RogerF81 add-on to Helix Engine and some other too. Some of values I left, some I changed according to my profile.
You don't need anything besides Magisk and this ZIP file to make it work, although you could have any app similar to EX Kernel Manager to check if values are applied. Values will apply after around 2 minutes after restart phone (after Magisk will start modules).


1. You HAVE TO disable HTC power manager (pnpmgr).
2. Copy ZIP file to your phone
3. Go into Magisk Manager --> modules
4. Tap "+" button, search for ZIP file and tap on it
5. Restart phone - done


AD.1
Latest working method to disable HTC power manager (at least as most of users reports it's working) is:
1. Delete perf folder in /system/vendor/etc
2. Delete powerhint.xml file in /system/vendor/etc
3. Delete pnp.xml file in /system/vendor/etc

This is what I did and it's working for me with no problems - profile values aren't changing back to default, no overheating, no CPU overload etc. Some people says it's better to leave pnp.xml and only delete perf folder and powerhint.xml file. You have to test for yourself.


--------- OTHER SETTINGS ---------​


GOOGLE SERVICES, PROGRAMS IN BACKGROUND, MORE IDLE TIME

I didn't do much with Google Services since I don't have problem with Deep Sleep and idle battery drain (it's fine for me as it is). All I did was 1 thing:
1. In the system, I went inside every app settings --> battery and I unchecked Activity in background
Check screenshots. Unfortunatelly you have to do it for every app and system app whenever it's available (it's not always is). If you have problem with any app, just switch it back and let that app works in background. I only had problem with EX Kernel Manager - setting "Apply at system start" didn't work and Leedroid Tweaks.
Also since version 3.1 I added some tweaks for google services to help with battery drain (thanks to @korom42).



Good luck with optimizing your HTC 10. I will be appreciate for any feedback and help with this profile. Thank you.


--------- RELEASE NOTES ---------​

Version 1.0:
-- Release date: 27.06.2018
-- Initial release

Version 1.1:
-- Release date: 30.06.2018
-- Small changes in: above_hispeed_delay, target_loads, max_freq_hysteresis - both little and big cluster (CPU should stay more on lower frequencies)
-- Changed sched_spill_nr_run and sched_ravg_hist_size - for testing results
-- More battery friendly

Version 1.2:
-- Release date: 02.07.2018
-- Small changes in: above_hispeed_delay, target_loads, hispeed_freq (lower values) - both little and big cluster (CPU should stay more on lower frequencies)
-- Hopefully more battery friendly without any impact on performance

Version 1.3:
-- Release date: 03.07.2018
-- Changes in: above_hispeed_delay, target_loads - both little and big cluster. Values are now according to CPU frequencies in our HTC 10
-- I feel like phone is more smooth
-- I expect really noticeable difference in battery life compare to all previous versions

Version 1.4:
-- Release date: 05.07.2018
-- Changes in: many small changes here and there(fast_ramp_down OFF now for Big Cluster, go_hispeed_load decreased for Little and Big Cluster)
-- wq_power_saving option OFF
-- I hope performance is same or better than 1.3 with a bit better battery saving

Version 1.5:
-- Release date: 06.07.2018
-- Changes in: many changes here and there to make phone more responsive without loosing battery life (hopefully)
-- Trying use_migration_notif OFF for small cluster
-- Probably better performance, but a bit less battery saving

Version 1.6:
-- Release date: 09.07.2018
-- Changes in: many "small" adjustments, but as I see, some small changes in values has quite big impact in battery and performance
-- Phone should be smooth and responsive, better than v.1.5
-- Screen On Time should be better than 1.5

Version 1.7:
-- Release date: 10.07.2018
-- Changes in: little adjustments
-- Phone should be more smooth, good battery life when watching YouTube

Version 1.8:
-- Release date: 12.07.2018
-- Changes in: different approach in min_sample_time, timer_slack, timer_rate. Slight changes in above_hispeed_delay and target_loads
-- Hard to get faster phone without using higher frequencies and loosing battery life. In my case I think it's a bit more responsive and smooth and SOT is the same, hopefully even better with latest adjustments

Version 1.9:
-- Release date: 16.07.2018
-- Changes in: many areas to test different settings for more responsive phone
-- A bit more simple approach for above_hispeed_delay and target_loads settings - removed unnecessary (?) values
-- Phone should be slightly faster than on previous versions (a bit faster apps starting).

Version 1.10:
-- Release date: 20.07.2018
-- Changes in: small adjustments to 1.9 for performance and battery savings
-- wq_power_saving back ON - you might have to change value to 1 manually, because somehow profile is not changing it during loading
-- Phone should be same responsive and fast as on 1.9, but a bit more battery friendly

Version 1.10.1:
-- Release date: 25.07.2018
-- Changes in: slight changes to 1.10
-- Theoretically should be a bit more battery friendly

Version 2.0:
-- Release date: 03.08.2018
-- Changes in: as always here and there, but this time also in /proc/sys/vm/ section, so swappiness, dirty_ratio, dirty_background_ratio, min_free_kbytes, vfs_cache_pressure and overcommit_ratio is changed
-- Focused on more responsive phone (as close as possible to stock) with better SOT than stock

Version 2.0.1:
-- Release date: 05.08.2018
-- Changes in: small upgrades to 2.0 for better battery (based on feedback 2.0.1 is less battery friendly than 2.0)

Version 2.0.2:
-- Release date: 11.08.2018
-- Changes in: small tweaks to 2.0
-- Added lowmemorykiller tweaks
-- (hopefully) improved 2.0 version

Version 2.0.3:
-- Release date: 13.08.2018
-- Changes in: fixes and really small adjustments to 2.0.2

Version 2.04:
-- Release date: 15.08.2018
-- Changes in: msm_thermal - OFF, changed lowmemorykiller tweaks and some small adjustments to governor

Version 2.05:
-- Release date: 20.08.2018
-- Changes in: small adjustments to 2.0.4 for hopefully better battery life

Version 2.06:
-- Release date: 28.08.2018
-- Changes in: small adjustments to 2.0.5 for hopefully better battery life
-- Magisk version is changing files permissions to 644 now instead of 444

Version 2.07:
-- Release date: 06.09.2018
-- Changes in: Tweaks in Low Memory Killer, above_hispeed_delay a bit changed to get better phone response and less time at max frequencies, lower hispeed_freq for better battery life (as always hopefully :) )
-- Version for Magisk 15+ and 17+ (thanks to @RogerF81 for permission to use his template again)

Version 3.0:
-- Release date: 04.10.2018
-- Changes in: Tweaks in Low Memory Killer, above_hispeed_delay a bit changed to get phone more smooth and responsive
-- Added some new tweaks from Pixel 2 (XL) Unified Kernel(s) Tuning Script made by @xFirefly93
-- Version 3.0 is only for Magisk 17+ and no more EX Kernel Manager version since I can't implement all settings in there anyway

Version 3.1:
-- Release date: 18.10.2018
-- Changes in: max_freq_hysteresis from 0 to 20000 and 30000 (small and big core)
-- Added Google Services drain fix thanks to @korom42

Version 3.2:
-- Release date: 30.10.2018
-- Changes in: here and there, more into 2.0.5 version (I had best results there if it's not only coincident)

Version 3.3:
-- Release date: 26.11.2018
-- Changes in: I didn't like 3.2. This one works faster and I had better battery life

Version 3.4:
-- Release date: 26.11.2018
-- Changes in: Added tweak for google services thanks to @xFirefly93 (suppose to go for deep sleep better). Most of settings very close to 3.3

Version 3.4.5:
-- Release date: 29.03.2019
-- Changes in: Best performance from all version (at least for me). Stock experience with better battery life

Version 3.6.4:
-- Release date: 26.04.2019
-- Changes in: Stock experience with better battery life. Optimizing, optimizing...

Version 3.7.3.2:
-- Release date: 20.06.2019
-- Changes in: HTC stock camera recorging stuttering should be fixed, if anyone had that problem with default settings. Stock experience with better battery life. Optimizing, optimizing...

Version 3.8.1:
-- Release date: 12.07.2019
-- Changes in: Optimizing, optimizing...

Version 4.0:
-- Release date: 16.01.2020
-- Changes in: Small adjustments. Last release - no more HTC :(

--------- DOWNLOAD for Magisk 17+ ---------​



Since attachments system wasn't working properly I made google drive link for all versions. I left old versions for EX Kernel Manager, but I recommend to flash Magisk version.


Regards.
Alderon666
 

Attachments

Last edited:

alderon666

Senior Member
Mar 11, 2015
652
525
0
SCREENSHOTS WITH EX KERNEL MANAGER SETTINGS - profile ver 1.0

These screenshots are only for you to see what values are changing in EX Kernel Manager. Values in screenshots are old, it's version 1.0 of the profile.​

Regards.​
Alderon666
 

Attachments

Last edited:

alderon666

Senior Member
Mar 11, 2015
652
525
0
nice. here I m still struggling to get 2 hours
Many people have that problem. Unfortunately they can't find good solution. In my opinion everything matter - hardware (anything starts from CPU, screen till battery), how you use phone, where you use phone, what programs you have installed...

For example. I have 5 hours SOT now quite easy, when I'm at my town. Longer SOT if I'm more on WiFi, a bit shorter SOT if I use LTE mobile data, but not that much difference. But if I'm traveling and phone need to search for transmitters, change from network to network, from edge, to HSDPA to LTE all the time, I had barely 4,5 hours. It was hard to get more than that.


Regards.
Alderon666
 

alderon666

Senior Member
Mar 11, 2015
652
525
0
I applied all the profiles and settings you have on this post shall I reboot ?
After you delete perf folder and xml files you have to reboot.

After apply alderon666 profile in EX Kernel Manager you don't need to reboot. Every profile works right away after you load it.


Regards.
Alderon666
 

mattie_49

Senior Member
Feb 4, 2010
2,531
759
193
Seymour Tn
Don't forget to share in Op how you keep everything from running in the background. As if that's pretty important as well. Just profile alone will still result in Google play services going ape **** in the background.
 

alderon666

Senior Member
Mar 11, 2015
652
525
0
Don't forget to share in Op how you keep everything from running in the background. As if that's pretty important as well. Just profile alone will still result in Google play services going ape **** in the background.
I created this topic only to improve governor profile to get more SOT. Handling with google crap I leave to people, what ever it works for them, but thanks for idea, I will share what I did.


Regards.
Alderon666
 
  • Like
Reactions: ludz63

alderon666

Senior Member
Mar 11, 2015
652
525
0
@alderon666 I have a Verizon HTC 10 running stock (with Magisk) and ElementalX and I just don't see those folders/files you suggest removing before running your profile. Any thoughts?
You can apply profile without removing those files, but values will back to default when HTC PnPmgr will kick in.

You can remove it in TWRP (custom recovery) or any file explorer with root access. I use Total Commander.

I have this path: main system catalog/system/vendor


Regards.
Alderon666
 
  • Like
Reactions: ludz63

hgoldner

Senior Member
You can apply profile without removing those files, but values will back to default when HTC PnPmgr will kick in.

You can remove it in TWRP (custom recovery) or any file explorer with root access. I use Total Commander.

I have this path: main system catalog/system/vendor


Regards.
Alderon666
So on the Verizon 10, power manager is in \system\priv-app. I haven't found the *.txt files yet. It is possible, using Magisk, to disable the apk by loading an empty directory, but otherwise, writing directly to system to delete the file will prevent further updates....not that any are anticipated at this point.
 

alderon666

Senior Member
Mar 11, 2015
652
525
0
So on the Verizon 10, power manager is in \system\priv-app. I haven't found the *.txt files yet. It is possible, using Magisk, to disable the apk by loading an empty directory, but otherwise, writing directly to system to delete the file will prevent further updates....not that any are anticipated at this point.
No txt files and no apk. It's not an app. Read carefully, what to do to remove power manager. It's perf folder and 2 xml files: powerhint.xml and pnp.xml.


Regards.
Alderon666