yashsingh1/xdaforums huggingface dataset:
[HTC 10 Themes, Apps, and Mods] alderon666:
NEW VERSION UPLOADED - 2.0.4​

Hi,

A bit tweaked here and there, msm_thermal - OFF.

OP updated.​

Link for google drive:​

https://drive.google.com/open?id=1SuAB7l_eR40sUkcYsB3jihSbKJha9SF0​

ZIP FILE FOR MAGISK:

Link for google drive:​

https://drive.google.com/open?id=11zLhuB8yhq5PXPqV2XfD3zwPkx_XOtDV​

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] DaveedDB:
So if I flash the module I don't need the gov profile right ?
[HTC 10 Themes, Apps, and Mods] mattie_49:
No you don't need both. One or the other. I'd say Magisk module.
[HTC 10 Themes, Apps, and Mods] mattie_49:
Is it normal for my phone to idle at this high of frequency. Nothing going on except ex kernel manager open. Around 50% seems awful high. Using latest magisk module
[HTC 10 Themes, Apps, and Mods] alderon666:
Right. Magisk version has it all and more.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] alderon666:
When I'm looking at dashboard in EX Kernel Manager I have 10%-30% avarage CPU usage and all cores at 307 MHz while idle, so something is working at background on your phone.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] ali nz:
Leedroid R149 + cleanslate 3.7.14 + alderon v2.0

My average SOT from 2650mAh battery is around 4:30 - 5 h
[HTC 10 Themes, Apps, and Mods] alderon666:
Magisk Version 2.0.4:

Traveling - auto switching network (country roaming), bad signal etc.

Gaming - over 1 hour, most of the time Pinball HD

Rest is standard use: internet browser - 17 minutes, youtube - 40 minutes, Telegram - 21 minutes, Calls - 2 imnutes, Squid News - 44 minutes

Total time on battery: 1 day 49 minutes

Total Screen On Time: 5 hours

For me it's fine enough :) I don't need anything else for now. I'm making tiny adjustments in 2.0.5, but nothing significant, just for testing to get like 1 minute more SOT :D

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] mattie_49:
It says helix add-on when you flash. I wanna try without the engine. I know you don't use helix. Did you produce above results with just magisk module or something else as well?

And everything opens super fast as well. I remember you saying that was your biggest pet peeve. Great work my friend.

Not sure why I was so reluctant to disable helix engine and try something different. I've been missing out.!!
[HTC 10 Themes, Apps, and Mods] alderon666:
Only magisk module. I named it Helix addon, because can be use with Helix Engine and I based on RogerF81 addon, but in description I wrote it can be use standalone. I didn't want to change name if I used someone else work as template. I just change values and fixed it to work with HTC 10.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] mattie_49:
Well Im pretty sure I'm gonna close my thread now. No use to go back and forth searching anymore. This works amazing.
[HTC 10 Themes, Apps, and Mods] alderon666:
Thanks for kind words. I'm glad I could help someone.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] alderon666:
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 [MENTION=7003898]RogerF81[/MENTION] 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 [MENTION=3787726]romixer[/MENTION] for his feedback, which gave me some clue which version of profile I should work with further. Also [MENTION=8324577]zr_hazem[/MENTION] and others (sorry I didn't mention all). Thanks also to [MENTION=2338414]mattie_49[/MENTION], 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
[HTC 10 Themes, Apps, and Mods] mattie_49:
What version of magisk are you on [MENTION=6492969]alderon666[/MENTION] ? 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?
[HTC 10 Themes, Apps, and Mods] alderon666:
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
[HTC 10 Themes, Apps, and Mods] mattie_49:
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.
[HTC 10 Themes, Apps, and Mods] alderon666:
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
[HTC 10 Themes, Apps, and Mods] macschwag14:
[MENTION=6492969]alderon666[/MENTION] 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?
[HTC 10 Themes, Apps, and Mods] mnaeh:
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.
[HTC 10 Themes, Apps, and Mods] mattie_49:
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
[HTC 10 Themes, Apps, and Mods] alderon666:
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
[HTC 10 Themes, Apps, and Mods] alderon666:
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
[HTC 10 Themes, Apps, and Mods] w1000i:
I just installed helix on top your mod and my phone did not goes to deep sleep. I removed helix and back to normal
[HTC 10 Themes, Apps, and Mods] alderon666:
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
[HTC 10 Themes, Apps, and Mods] alderon666:
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
[HTC 10 Themes, Apps, and Mods] romixer:
I can say AccuBattery shows really a precision stats of your battery capacity :highfive:
[HTC 10 Themes, Apps, and Mods] kend0g:
Here is what I got last night with your latest mod.
[HTC 10 Themes, Apps, and Mods] kend0g:
Idk why image uploads arent working again
[HTC 10 Themes, Apps, and Mods] zr_hazem:
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.
[HTC 10 Themes, Apps, and Mods] alderon666:
I prefer GSam for battery monitoring. I felt like every other app drain battery to much.

Those stats are better or worse from what you had before?

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] alderon666:
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
[HTC 10 Themes, Apps, and Mods] zr_hazem:
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
[HTC 10 Themes, Apps, and Mods] alderon666:
As I read HavocOS based on Lineage OS, which is kind of clean android. From what I know if you have S-ON on HTC phone you can't install anything else beside Sense Based ROM.

PnP is the file that HTC only provide I guess, power manager from HTC.

About paths, for example, if you want to change I/O scheduler, in HTC 10 you need to edit files in here:

/sys/block/mmcblk0

/sys/block/mmcblk1

...

But in HavocOS might be different paths and this tweak will not work. I assume that path for interactive governor would be the same as on Leedroid (or any Sense Based ROM), which is:

/sys/devices/system/cpu/cpu0/cpufreq/interactive/

and governor tweaks will work.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] alderon666:
I found interesting thread. Bunch of informations about governors, schedulers, etc.

https://xdaforums.com/general/general/ref-to-date-guide-cpu-governors-o-t3048957

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] myheroduane:
You can flash aosp ROMs with s-on the only issue is flashing firmwares. But if you are on Oreo firmware you can flash. Just need to format internal and flash away.
[HTC 10 Themes, Apps, and Mods] zr_hazem:
Nope, the rom only needs to be compatible with ur firmware. Also if you feel like downgrading to nougat there are guides available and i posted my method before in a thread with S-ON

I managed to find the cpu path but only schedutil folder plus other ones exist, probably because i have schedutil enabled now,but i can confirm its in the same path u have. As for governors, I found it in

/sys/devices/soc/7464900.sdhci/mmc_host/mmc0/mmc0:0001/block/mmcblk0/queue/scheduler

and the file had the following :

noop deadline cfq bfq fiops sio [zen]

I have zen selected so probably why its between brackets. In mmcblk1 its the same thing too.

Great guide to cpu govs and scheds but i wonder if we can ever add some of those governors :p. I'd love to try but unfortunately i have no time..
[HTC 10 Themes, Apps, and Mods] alderon666:
STATS from version 2.0.5

Hi all,

I'm not sure if I should release it already or wait at least few days and see if I do any adjustments, because I don't want to release 2.0.6, 2.0.7 etc. with small changes. I prefer to give you 2.0.5 as the final I hope.

If anyone could explain me, how to read those stats, I would be appreciate. GSam is showing 1 thing, android another :/ Like the game Pinball HD. According to android I played only 9 minutes o.0 I'm sure it was much more and GSam is showing 27 minutes CPU usage, but 1 hour 25 minutes sensor usage!

Youtube - android shows 1 hour 35 minutes screen on time, GSam - 1 hour 16 minutes (I think audio usage).

Those are my stats today, I was most of the time at my place and only WiFi, so I didn't loose battery for searching network or low signal.

XiaLive (internet radio): 43 min (40 min screen off)

YouTube: 1 hour 35 min

Opera browser: 1 hour 2 min

Pinball HD: around 30 min (?)

Squid (news reader): 44 min

Ski Jump: 16 min

Puffin browser: 10min

TOTAL SOT: 6 hours 23 minutes

I have to mention that I charged my phone to 100% and went to bed, then use my phone mostly by reading news with minimal brightness (around 1-1.5 hours), so it helped for sure for SOT.

At 2:20 AM I switched off WiFi and screen and put my phone down with 90% battery. At 10:45 AM I pick up my phone and it was 88% battery. So over 8 hours and 2% battery less, which in my calculations gives max 0.25% per hour idle drain.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] cywingnut:
Is there any need to delete the HTC power manager with the Magisk version?
[HTC 10 Themes, Apps, and Mods] mattie_49:
Release the cracken. It can't get any better or pm me a link pal

Please
[HTC 10 Themes, Apps, and Mods] kend0g:
Yes or pnpmngr will just reset everything.. I believe.

---------- Post added at 04:53 AM ---------- Previous post was at 04:51 AM ----------

If you take a look a rogerf81s soil work script he has a bunch of tweaks for schedutil gov and the maple io tweaks also but they are for nougat. Sure you can just change the paths and whala.

If you need some help let me know, maybe if we get it all good and working alderon can add our little bit of code too his Magisk script if other people could use it also. We could borrow some snippets and let it check what gov or io they are using and it will change the values according to what they need.
[HTC 10 Themes, Apps, and Mods] alderon666:
What if it can? :)

I still don't know, how 2.0.4 works for others, I hope best from all versions.

I'm traveling now. I'll probably release it on Monday.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] alderon666:
I'm quite sure HTC pnpmngr will reset all back to defaults, same as when you apply profile in EX Kernel manager. It works till pnp kicks in and reset values.

If [MENTION=7003898]RogerF81[/MENTION] will have nothing against it, I could try copy schedutil part from Soilwork script and release it for you, but without any guarantee it will work or give good results, because I can't test it on my phone.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] kend0g:
I'm sorry I made a broadcast Channel instead of a group.. Let me fix it and work on the bot for common questions and answers and I'll post the link again.
[HTC 10 Themes, Apps, and Mods] m.4_ts@yahoo.com:
Isn't it schedutil is an EAS kernel governor? I hope it could be implemented with your profile. Thanks anyways..
[HTC 10 Themes, Apps, and Mods] zr_hazem:
Can't send messages in the channel ?
[HTC 10 Themes, Apps, and Mods] alderon666:
Can't send messages there neither.

That's because you made channel. You have to make group.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] bombername:
So, is the Installation guide up to date?

I have to disable pnpmgr?

Bcoz I didn't and had any...lets call it FC with some apps. ;)
[HTC 10 Themes, Apps, and Mods] alderon666:
And why you would have any FC? o.0

It's up to date. Without disabling pnpmgr values will back to default.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] bombername:
Maybe bcos I didnt delete pnpmgr.
[HTC 10 Themes, Apps, and Mods] azZA_09:
Hey, great job with the project. 2 questions, because im on crdroid (nougat) and I want to try your profile *my phone is +2 years old*

1. Is there any problem if I have tabpole kernel installed?

2. Is there any problem if I have akt profiles installed? I selected one module, but I can disable it.

Thanks in advance!
[HTC 10 Themes, Apps, and Mods] zr_hazem:
Tabp0les kernel is EAS and this profile is for HMP kernels, if you go into a kernel manager you'll see you either have sched or schedutil governors selected and those are EAS. If you want to use this profile you need to have a kernel like Cleanslate or ElementalX for nougat. Also, this profile is optimized for oreo so iirc some paths in nougat were changed in oreo so this may not fully work on nougat.

AKT itself does the same as this profile for interactive governor however more for OP3/OP3T but it detects whether you're HMP or EAS and sets values accordingly . [MENTION=2338414]mattie_49[/MENTION] has experience with akt and said it worked well in his thread.
[HTC 10 Themes, Apps, and Mods] mnaeh:
Here are my stats from yesterday. As you can see if I survive through my normal day (which lasts about 16-17h) SoT can't go much above 2.5h. It would be awesome if I were able to push it just a bit above 3h of SoT with 16-17h of total time. Any suggestions? I have a feeling I'm missing something big as I see people stating much higher SoT values.

BTW, my main screen-off activity is usually listening to some music or podcast (both off-line, downloaded mp3, so no streaming) with wired earbuds or sometimes with BT ones which I know draw more power.

But if someone knowledgeable were able to optimize regular screen-off time (i.e. pure stand-by, no podcasts, just background synch).

That 2.0.5. sounds ridiculously awesome, so SHUT UP AND TAKE MY MONEY!! :D :D
[HTC 10 Themes, Apps, and Mods] alderon666:
Can't respond now. I'll back to you when I'm free and get some rest. I have busy Sunday and Monday with not much sleep and lots of driving.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] Supreme_One:
Sorry noob question. How can I disable pnpmgr? I'm running Leedroid
[HTC 10 Themes, Apps, and Mods] alderon666:
This tweak is for Oreo. I think there are better tweaks for Nougat, but of course this one might work too.

1. As [MENTION=8324577]zr_hazem[/MENTION] wrote. Has to be kernel with interactive governor.

2. Akt profiles change governor tunables which this tweak also does, so you can't use both.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] alderon666:
Don't expect miracles from 2.0.5. It might work a bit better, but it might not change much.

Listening of music for me (if it's internet radio) drains only a bit less than screen on, offline music player drains too, but of course not that much.

I would check your battery first. Idle drain is also important, maybe try to flash your ROM again (I had battery drain with Leedroid r146).

Good luck.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] alderon666:
Did you read first post? :P

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] Supreme_One:
Yes ofcourse I flashed this profile with magisk
[HTC 10 Themes, Apps, and Mods] alderon666:
I'm sure this is in first post mate.

Regards.

Alderon666
[HTC 10 Themes, Apps, and Mods] Supreme_One:
Ohh i'm so sorry i think i just skipped reading this part
[HTC 10 Themes, Apps, and Mods] m.4_ts@yahoo.com:
I don't know but i hope it will stay this way.
[HTC 10 Themes, Apps, and Mods] alderon666:
NEW VERSION UPLOADED - 2.0.5​

Hello,

As promised 2.0.5. Small changes to 2.0.4 and hopefully better battery life.

OP updated.​

Link for google drive:​

https://drive.google.com/open?id=1PoKHt_xoWGm_UUfdWd5npMGAsF_fafVe​

ZIP FILE FOR MAGISK:

Link for google drive:​

https://drive.google.com/open?id=14qglbHxT8PfJORzmZrNRx3_Z5dap0wIZ​

Regards.

Alderon666