[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
NEWS

Hi guys,

Next update (2.0.5) I'm trying to be my last one (if there will be no need for adjustments or fixing something). I think I'm at the point that what ever I changed it's not doing any good or make it worse.

Profile version will be released, but I recommend to use Magisk flashable ZIP. There are more tweaks in ZIP file and no need for EX Kernel Manager. New version in Magisk will be renamed, so you have to remove old one and flash new one, because old one will not be overwrite. It should look like on screenshot.

One more time I would like to thank @RogerF81 for his permission to use his Helix Add-on as template. It helped me to understand how script works and make more changes than only with EX Kernel Manager profile.

What I made can be used with or without Helix Engine, it's really up to you if you want to permanently limit CPU frequencies for some apps or not.

I will not close thread for some time (even there will be no more releases), so if anyone would like to have some request for personalized tweaks can ask here. I will try to help to adjust it individually, of course I can't promise it will work 100% :p

That's all I guess. Thanks to @romixer for his feedback, which gave me some clue which version of profile I should work with further. Also @zr_hazem and others (sorry I didn't mention all). Thanks also to @mattie_49, because I started to search better battery life on our HTC 10 after I found his thread.

Stay tuned for 2.0.5 release ;)

Regards.
Alderon666
 

Attachments

Last edited:

mattie_49

Senior Member
Feb 4, 2010
2,531
759
193
Seymour Tn
What version of magisk are you on @alderon666 ? I had good battery today . But 2 hrs 20 min so far of apps running in background or ,held awake. Of course I did just flash fresh rom last night. I've disabled run in background for all google services and have the enable doze on Google services magisk module as well. What's your typical background use, on a cycle?
 
Last edited:

alderon666

Senior Member
Mar 11, 2015
652
525
0
What version of magisk are you on @alderon666 ? I had good battery today . But 2 hrs 20 min so far of apps running in background or ,held awake. Of course I did just flash fresh rom last night
Magisk 16.4.
I always switch off WiFi for the night and I have around 0.2-0.4% per hour battery use. When I wake up it's most of the time 2% less.
GSam is showing 1 hour held awake after 24 hours on battery. Now I have 11h50m on battery and 26 min held awake.

Regards.
Alderon666
 
Last edited:

mattie_49

Senior Member
Feb 4, 2010
2,531
759
193
Seymour Tn
Magisk 16.4.
I always switch off WiFi for the night and I have around 0.2-0.4% per hour battery use. When I wake up it's most of the time 2% less.
GSam is showing 1 hour held awake after 24 hours on battery. Now I have 11h50m on battery and 26 min held awake.

Regards.
Alderon666
That's a good idea with the Wi-Fi. And I'm not continuing my thread onto yours by any means. Just trying to avoid using Amplify again.
 

alderon666

Senior Member
Mar 11, 2015
652
525
0
That's a good idea with the Wi-Fi. And I'm not continuing my thread onto yours by any means. Just trying to avoid using Amplify again.
No problem.
I like simple solutions, so I didn't use Xposed, Amplify, Greenify or anything else as long as I was ok with idle drain and 1% or 2% per 5 hours will not make big difference for me.

Besides, more I tried with blocking wakelocks more problems there was. Best solution would be get rid of Google apps, but probably we all use them, at least some of them.

Regards.
Alderon666
 

macschwag14

Senior Member
Jun 14, 2012
141
25
0
Kansas
@alderon666 Thanks for sharing this with us! I've had the most SoT ever (3 hours) with your Magisk module + Helix, so I'm excited to try it with just your module (after doing a completely clean ROM install and not using TWRP to restore my apps). I've been bouncing between both threads, so a few questions so that I'm using the latest info:

1) What ROM are you using?
2) What kernel are you currently using? I remember discussion about whether the newest Cleanslate was bugged or not.
3) Are you using the Magisk modules Enable Doze for GMS and Sysconfig Patcher? Those popped up as must haves in past posts.
4) Where's the slider at on your screen brightness?
5) Several apps don't have the option to limit their background activity. Did you do anything special for those?
 

mnaeh

Senior Member
Nov 21, 2008
93
25
0
Hey everyone,

First of all, huge kudos to all of you who participated in these efforts for making our beloved HTC 10 alive again!! I got mine not that long ago, and foolishly went straight to Oreo, hoping for good out-of-the-box experience and that I wouldn't have to think about anything. I was wrong. I was VERY wrong.

Long story short, after reading through all relevant threads discussing battery issues (all mentioned here) I decided to go with this method, because since I'm already rooted with Magisk this looked to me as most convenient way to go – no need for other tools and high reliability that everything will be correctly applied on boot (I turn off my phone every night and it would be huge PITA to be forced to be forced to do something every time it boots, play with init.d, or buy any additional software). So, one again, great job!!

Performance-wise this feels completely like stock, at least for my usage pattern. Sadly, although I got almost 4h of SoT yesterday (last 15% in battery saving mode), for me the phone can't last through the day. It almost looks as if it doesn't matter that much whether I use it or not, i.e. if I use it I will just get more SoT and the total time is still les than a full day. EXKM shows around 2.5%/hour of idle battery drain (tested on wifi, letting mail and messaging to sync in background).

My current setup:
  • Stock ROM (Oreo, US unlocked version)
  • Stock kernel
  • Installed Magisk module 2.0.4
  • Google assistant is disabled
  • Background activity is disabled for Google play services
  • Deleted HTC power manager related stuff (btw, here's my backup in case someone needs those files back)
  • dumpsys batteryproperties shows full charge to be 2847000 and holding those 3 buttons does absolutely nothing (or maybe I was doing it wrong). I'm willing to accept the idea that my battery is not that great.
  • GSAM shows kernel and Android OS as most draining apps

So, my total time seems like a bigger problem than SoT alone. I'm taking it lighter today so I'll report back what was my today's SoT and total time. My old M8 still gets me through the whole day with the same usage pattern and same apps.
 
  • Like
Reactions: abrahamrhs

mattie_49

Senior Member
Feb 4, 2010
2,531
759
193
Seymour Tn
Hey everyone,

First of all, huge kudos to all of you who participated in these efforts for making our beloved HTC 10 alive again!! I got mine not that long ago, and foolishly went straight to Oreo, hoping for good out-of-the-box experience and that I wouldn't have to think about anything. I was wrong. I was VERY wrong.

Long story short, after reading through all relevant threads discussing battery issues (all mentioned here) I decided to go with this method, because since I'm already rooted with Magisk this looked to me as most convenient way to go – no need for other tools and high reliability that everything will be correctly applied on boot (I turn off my phone every night and it would be huge PITA to be forced to be forced to do something every time it boots, play with init.d, or buy any additional software). So, one again, great job!!

Performance-wise this feels completely like stock, at least for my usage pattern. Sadly, although I got almost 4h of SoT yesterday (last 15% in battery saving mode), for me the phone can't last through the day. It almost looks as if it doesn't matter that much whether I use it or not, i.e. if I use it I will just get more SoT and the total time is still les than a full day. EXKM shows around 2.5%/hour of idle battery drain (tested on wifi, letting mail and messaging to sync in background).

My current setup:
Stock ROM (Oreo, US unlocked version)
Stock kernel
Installed Magisk module 2.0.4
Google assistant is disabled
Background activity is disabled for Google play services
Deleted HTC power manager related stuff (btw, here's my backup in case someone needs those files back)
dumpsys batteryproperties shows full charge to be 2847000 and holding those 3 buttons does absolutely nothing (or maybe I was doing it wrong). I'm willing to accept the idea that my battery is not that great.
GSAM shows kernel and Android OS as most draining apps


So, my total time seems like a bigger problem than SoT alone. I'm taking it lighter today so I'll report back what was my today's SoT and total time. My old M8 still gets me through the whole day with the same usage pattern and same apps.
I think it definitely is the latest operating system that HTC promised by certain dates. They got real behind ,fired many people as I've read and then got to that pinch, where it was time to release. Wasn't ready but it released regardless . Had no issues with Nougat what-so-ever. I can roll back to Nougat and rock out 25-40 hours off one charge
 

alderon666

Senior Member
Mar 11, 2015
652
525
0
@alderon666 Thanks for sharing this with us! I've had the most SoT ever (3 hours) with your Magisk module + Helix, so I'm excited to try it with just your module (after doing a completely clean ROM install and not using TWRP to restore my apps). I've been bouncing between both threads, so a few questions so that I'm using the latest info:

1) What ROM are you using?
2) What kernel are you currently using? I remember discussion about whether the newest Cleanslate was bugged or not.
3) Are you using the Magisk modules Enable Doze for GMS and Sysconfig Patcher? Those popped up as must haves in past posts.
4) Where's the slider at on your screen brightness?
5) Several apps don't have the option to limit their background activity. Did you do anything special for those?
Hi,

1. Leedroid v149
2. CleanSlate 3.7.13 (I don't see a difference between 3.7.13 and 3.7.14,but I didn't have strange CPU overuse after restart phone on 3.7.13 and phone seems a bit cooler, so I'll stay with 3.7.13 for now)
3. I wrote it in first post. I use Sysconfig Patcher.
4. Somewhere in the middle. A bit to the left when it's bright, a bit to the right during night.
5. Nope, I left them be :)

Regards.
Alderon666
 
  • Like
Reactions: cywingnut

alderon666

Senior Member
Mar 11, 2015
652
525
0
Hey everyone,

First of all, huge kudos to all of you who participated (...)

So, my total time seems like a bigger problem than SoT alone. I'm taking it lighter today so I'll report back what was my today's SoT and total time. My old M8 still gets me through the whole day with the same usage pattern and same apps.
It's always like that. More time on battery = less SOT, because you loose some battery while screen is off. Here is the problem if you loose more than it should be. I never figured out idle drain sadly, but fortunately I didn't have problems with it, beside one time when I dirty flashed Leedroid r146.

Today I noticed something annoying though. Google services according to GSam used Accelerometer Sensor for 3h 42min and Significant Motion for 9h 35m!!! I don't know, if that had impact on battery, but when my screen was off, battery go down faster than normally when idle. Also when I was using phone it was more hot than it should be. I have one theory for this: searching for network signal and switching between different networks in country roaming. I might be wrong, but it happen when I'm traveling although I'm not sure if every time :/ Strange... Maybe I should learn how to use that logcat and check for errors when this occur. For now it's not that big deal, but still, loosing 30 or more minutes SOT just because phone is doing something I don't want it to do is a bit annoying.

Anyway, I can't help you with idle drain for now, sorry. Maybe after this thread we can open another and start searching for best solution for better battery when screen is off :)


Regards.
Alderon666
 
  • Like
Reactions: mnaeh

alderon666

Senior Member
Mar 11, 2015
652
525
0
I just installed helix on top your mod and my phone did not goes to deep sleep. I removed helix and back to normal
Did you try same Helix version without my add-on? We are talking about Magisk version right?

For me it sounds like it caused by Helix Engine or some settings in Helix engine. Helix will overwrite everything what can be set up in Helix Engine, for example:

input_boost_ms, input_boost_freq, sched_downmigrate, sched_upmigrate etc.

Of course if I remember correctly, because I don't use Helix Engine.


Regards.
Alderon666
 

alderon666

Senior Member
Mar 11, 2015
652
525
0
I just check in adb shell my battery stats:

dumpsys batteryproperties
ac: 0 usb: 1 wireless: 0 current_max: 500000 voltage_max: 5000000
status: 5 health: 2 present: 1
level: 100 voltage: 4367 temp: 360
current now: -188139
charge counter: 3059406
current now: -188
Full charge: 3049000


Full charge back to 3049000.

So it's mean I have 3000 mAh battery capacity after over 2 years? o.0 That would be nice, but some time ago I checked and it was 2700 mAh and even I did that 3 buttons reset I still had 2700. I'm wonder, how much I can rely on that stats then. Or maybe my way of battery "treatment" helped it back to original capacity.

Regards.
Alderon666
 

zr_hazem

Senior Member
Jun 5, 2017
140
55
0
Hi,

1. Leedroid v149
2. CleanSlate 3.7.13 (I don't see a difference between 3.7.13 and 3.7.14,but I didn't have strange CPU overuse after restart phone on 3.7.13 and phone seems a bit cooler, so I'll stay with 3.7.13 for now)
3. I wrote it in first post. I use Sysconfig Patcher.
4. Somewhere in the middle. A bit to the left when it's bright, a bit to the right during night.
5. Nope, I left them be :)

Regards.
Alderon666
Definitely found an improvement between .13 and .14 and Google services tweaks help by a lot as i always found google play services on top of my battery usage.

I moved to HavocOS now because i found that it has a lot of great features i need. Wondering if your profile would work with interactive gov or not.. It's currently on schedutil and runs much cooler than interactive and its snappy too. Just running the default iceman kernel. Haven't tested battery yet as i just flashed it yesterday.
 

alderon666

Senior Member
Mar 11, 2015
652
525
0
I moved to HavocOS now because i found that it has a lot of great features i need. Wondering if your profile would work with interactive gov or not.. It's currently on schedutil and runs much cooler than interactive and its snappy too. Just running the default iceman kernel. Haven't tested battery yet as i just flashed it yesterday.
I can't use HavocOS, because I have S-On on my HTC. I like HTC Sense anyway.

It should work on any Snapdragon 820 with interactive governor, but I'm not sure about some other tweaks inside ZIP file. If paths to files are the same, it will work, if not, I would have to know the path and fix it for you.

Regards.
Alderon666
 

zr_hazem

Senior Member
Jun 5, 2017
140
55
0
I can't use HavocOS, because I have S-On on my HTC. I like HTC Sense anyway.

It should work on any Snapdragon 820 with interactive governor, but I'm not sure about some other tweaks inside ZIP file. If paths to files are the same, it will work, if not, I would have to know the path and fix it for you.

Regards.
Alderon666
S-ON? It doesn't require s on just a full wipe and flash it with gapps. Anyway It's working fine right now, it feels more or less the same but cooler and better standby/idle without any tweaks done.

Which paths would you need and how should i get them? I noticed that pnp file doesnt exist but perf and powerhint.xml exist