yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] fullydeveloped:
Something's better than nothing. And while you're here, what's your preferred Sense kernel?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Well, I use Helix Kernel, my preferred stock kernel is Elite ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
New update arrived!

Here it comes, the update V7.0!

Changelog:

Magisk modules based on latest 1400 module template

changed bfq I/0 scheduler to deadline in balanced tweaks

all in all, I/0 scheduler tweaks are now unified as well: in both versions, the logic is like that: Use scheduler 1, if it isn't available use scheduler 2, if this isn't available as well, do nothing

overall minor changes and improvements

NOTE: The "xyz_Script" zips aren't flashable! They just contain the scripts, if you want to use them instead of the Magisk modules!

NOTE2: If you're running an AOSP Rom and using an EAS kernel, then open EX Kernel Manager -> CPU and enable perfd manually!

Soilwork V7.0 kernel-tweaks​

PS: This was my 1,000th post :D:victory:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nfsmw_gr:
Awesome, thanks man!

Just installed it :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
You're welcome :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] saga354:
How to enable perfd on kernel adiutor?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Good question...I don't know it right now tbh, as I haven't used kernel adiutor for years! I don't even know if it's possible. Perhaps someone else knows this?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Ser0:
That's easy. Just use terminal emulator and type:

su

start perfd

Although one might be able to request perfd to be on Kernel auditor.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nfsmw_gr:
You can't, unless you do a custom command with the exact path, that is located on custom controls tab. :)

But why do you need perfd?

What does it help with?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Ser0:
I believe perfd is needed so the EAS kernel can be fully aware of the hardware capabilities; both in power savings and performance. Perfd is a system performance daemon that provides real-time access to system performance metrics, locally or remotely.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nfsmw_gr:
I see, alright.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Ser0:
Don't quote me on that though. Let's see what [MENTION=7003898]RogerF81[/MENTION]1 has to say as this is only a hypothesis.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
I can't give you any deeper insight, I guess. All that I know is from opinions and sayings floating around, and I can't prove them right or wrong. As far as I know, on stock Roms, perfd isn't needed, on AOSP/LOS roms it is needed due to the usage of VoxPopuli EAS PowerHAL. But again, I just don't know it more exactly. Let's ask [MENTION=5471195]tabp0le[/MENTION] and [MENTION=6745491]joshuous[/MENTION] :D I guess they should know it much better than I do.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tabp0le:
So, perfd and an EAS power HAL (marlin or Vox Populi) are needed for TRUE EAS. Just having the kernel and other optimizations, daemons, engines are not enough. I'm not saying you don't get some benefit from these, but you won't be fully taking advantage of EAS. Perfd relays messages between the kernel and the power HAL. The power HAL is the intelligent beast behind it all. It's what gives you the performance without sacrificing too much battery life.

The core aspects of EAS are:

Kernel: Scheduler, cgroups, etc

Power HAL

Cutils (libcutils) - Tells the scheduler how to interact with different groups (top-app, background, foreground, etc)

Perf Daemon (perfd)

The perfd must also be one from the marlin. (it's the only one that can talk properly to an EAS power HAL. This CAN theoretically be achieved in stock, but it would require you to run completely permissive with SELinux. I have a flashable zip that can enable cutils, perfd and the powerhal, but it's untested on stock. (would theoretically work though)

Because of these many factors, it's much easier to get this all working properly on AOSP based ROMs.

I hope I've answered your question to satisfaction.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Thank you very much for the clarification!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Would it be too much if I asked if I could test the zip?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tabp0le:
Yeah, let me find it lol
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Take your time :D
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] joshuous:
To add on, perfd isn't exclusively for EAS. Think of it as a master control to tweak many different types of kernel parameters (EAS, HMP, interactive, etc) on the fly. It can be used to force max freqs on app launches, perform touch boost, *cough* cheat *cough* in benchmarks, among many other things. OEM ROMs have perfd and use them for improving performance in general
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Thanks for the explanation! :) The thing is, why I was messing around with it, that in the Advanced Interactive Governor Tweaks thread, it has been a problem to apply any tweaks, while perfd was running. I guess just because perfd controls the tweaks on the fly? ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Jacky113:
Hi Roger,

Good update, was wondering why when I use the balanced tweak it uses cfq as the I/o instead lf deadline, I am using elite kernal
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
If deadline isn't available on Elite, then cfq will be used.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Jacky113:
Strange because I can manually change it in ex manager
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Of course you can :eek: The script runs just once. Afterwards, you can change everything manually...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] johnnyman25:
Elementalx kernel still supported?

The power of the 10
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] DeeZZ_NuuZZ:
have you read the OP? I will help you ONE time. yes it is still supported since it's a stock kernel with additional tweaks from flar2. has HMP and runs with PNP, so yes. you can use it. but please for gods sake. read the OP next time. thanks :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] johnnyman25:
I read it Ofc and I use your 6 version with no problems.

Just asked if 7 it's still compatible .

Thank you.

The power of the 10
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Nothing to add :D
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kend0g:
I finally switched back to stock rom and helix kernel... Version 7.0 is working great roger. If I get this job next week I was thinking of buying a new phone.. Either 8+ or note8 RogerF81 and deez what would your next phones be l, if you don't mind me asking?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Nice to hear :) Well, I guess [MENTION=4645599]DeeZZ_NuuZZ[/MENTION] plans getting the U11, and I finally decided to wait until next year till I get a new phone ;) But quite for sure not Sammy phone :P
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kend0g:
Yeah I just looking at essential and asus right now.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
U11 is better than Essential and costs less.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kend0g:
I thought I read that the U11 doesn't have cdma? So it only goes into 4g/LTE idk if that fully correct or not.. There is plenty of spots around me at if I don't get 3g here and there I won't have phone reception..

Does all the advanced calling features work on vzw? You have vzw too right?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Well, I have no idea :D No, I live in Europe ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
Some battery result that you might be interested...with newest magisk module and latest official PF rom with stock kernel
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Great, seems to be really good!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nfsmw_gr:
Which one you use?

Balanced or battery?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
Balanced
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nfsmw_gr:
Great result!

I reached 5-5.30 SOT on my device with balanced, really nice!

Solid performance too!

(P. S. I don't use an htc device but I checked the values and it works fine. :) )
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
But on the Axon 7, 5-5,5 SOT aren't bad either, are they? ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nfsmw_gr:
Yeah it's really nice :)

100% covers my needs!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Glad to hear that! :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] master131:
Surprised nobody picked up on this, but there is an error on line 373 in the battery script (line 504 in balanced), there are too many "fi" clauses. You can verify this by running the script in sh. Deleting this line fixes the script's execution.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Thanks for the heads-up! I will fix this.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
V8.0

Update! Thanks to [MENTION=8046504]master131[/MENTION], who noticed an if clause error in both profiles!

Changelog:

fixed the mentioned and some other if clauses

fixed some other minor issues [typos, wrong paths etc.]

perfd daemon is turned on now [thanks for the insight [MENTION=5471195]tabp0le[/MENTION]]

Adding some HelixKernel specific values

changed some tuneables of maple I/0 sched [battery profile only]

Soilwork V8.0 tweaks​
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] romixer:
So what if perfd is disabled, I need to turn it on manually?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Yes. But normally, the script should do that :good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nighthawk696969:
Sorry for the noob question.I am on latest ElementalX kernel and use hawkpeper as a governor (Viper Rom).

Will the balanced magisk module be compatitible with my kernel and Exsettings?

Thanks very much.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Yes, it will work, but might overwrite the "Hawkpepper" interactive tweaks. (Btw. Hawkpepper isn't the governor: It's just a profile name for some several tweaks for interactive governor ;) )
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nighthawk696969:
I'm sold, will try ASAP.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] JohnFawkes:
After flashing the latest battery module on rr rom with default tabpole kernal after reboot I get no Sim. After removing and rebooting Sim card is found. I'm using magisk v14 too
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Strange. My tweaks have absolutely nothing to do with signal or the SIM card. So don't know what's the issue here.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] JohnFawkes:
Yea Idk. Haven't used your module since like v5 or something like that. Probably a Magisk issue or a conflict between modules. I'll keep testing. I'll try popping the Sim out and back in when I reinstall if it does it again and I'll keep you posted

---------- Post added at 12:13 PM ---------- Previous post was at 12:05 PM ----------

Must of been a fluke. Just reinstalled and rebooted and I've got signal. Didn't get the no Sim this time
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Ok glad to hear that :highfive:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] romixer:
With nebula kernel it doesn't enabled automatically :confused:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Hmm very strange. Don't know why!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Salamender:
Hi,

Does these tweaks works on Resurection Remix ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Of course it will, that's why it's called unified ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Salamender:
Thats cool !

Thanks for the answer :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] fullydeveloped:
So using EXKM's script manager to run the .sh at boot doesn't work, even if I move it to su.d?

Edit: also perfd wasn't enabled after running the script in terminal, not sure what happened.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tuanbichtam2:
Line 90 is missing a "

In the V8 balanced script

Great work btw
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Oh yes! I've fixed that! Thank you:)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
I don't know that to be honest, never tried the EXKM script manager :confused:

Very strange, perhaps this had to with the error mentioned 2 posts above :o But I am not sure:confused:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bkores:
Pardon my stupid question but the non-magisk script only has to be run once or on every boot?

If it has to run at every boot where would the script be placed?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
It has to be run on every boot. And the best solution is to run it manually (see OP), or use the app called Boot Shell or try to use the script manager from EX kernel manager, but I haven't tried this one yet.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Soilwork V10 on 10/10: Power Of 10: Final!

So, here the journey ends, at least for now. As I recently purchased the OP5, I won't do any changes to my scripts anymore, this is the final result. At least as long the 10 stays on Nougat. I am quite satisfied with the status quo, so this is good to be. As I still own my 10, we will see if any changes of the scripts are useful or if they still work well. So far at least, this is it! Enjoy:highfive:

Changelog:

VM changes

I/0 changes

some EAS related changes

PS: I will be still around here if there any issues or so, and perhaps, we'll see something new on Oreo :)

Soilwork V10 - Power Of 10 - Folder with all files​
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bkores:
So I want this script to run on every boot. I modified my boot image for init.d support. Is there anything else I have to do other than put it in /system/etc/init.d/? Any other files I need to modify?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Well, I'm not sure to be honest, as I never tested init.d. So far, I would say the steps you did seem to be fine, so normally it should work, but I can't guarantee it. You could of course simply use my Magisk module which executes the script every reboot as well ;) But of course feel free to test it if it works in init.d folder and report back! :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] gamal001:
[MENTION=7003898]RogerF81[/MENTION] ,

First big thanks for your script & works.

I have one question , How I can lock Max_Freq for big & Little cluster to the exact value Like 1593600.

I tried your Script and some others but some times it cross to last freq Like 2188800 ,..

Note: I used EAS Rom & Kernel
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Well, it's not recommended to touch the max freqs, espacially underclocking the big cluster wouldn't be useful ;) My script reads the max freq available and sets this value.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Hopie:
..please delete...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tsalta:
OMG i just flashed the Balanced version on Viper Magisc ROM i just flash the Magis Balanced module and i guess when its a Magis Module enabled all the time even after rebot the script will execute by itself everytime!

Just my phone is FLYing liquit Fast Smoot i can see the diference imideately after i flash it

THANK YOU very much, since i flash the Balanced not the Battery one will see how iwll be the battery life but after all we have to enjoy our devices for daily use not to try to save as much battery as posible because if is slow and laggy this doesnt make sense to have more battery.

THANK you very much for the work!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
That's why I made the Magisk module ;)

Thank for your feedback, I was trying my best :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Some news here: I'm going to sell my HTC 10 soon, so my way definitely ends here soon. But before, I have a little Christmas gift for you all! I have updated my scripts, means I've re-written them and now the structure is based on the scripts of [MENTION=7960323]adanteon[/MENTION]! Additionally, I added some things here and there, changed some values and so on plus I now made a performance profile as well! At this point, I want to say thank you for testing [MENTION=1748233]CharliesTheMan[/MENTION]!

So, you can find all scripts here in my Google Drive folder and attached here as well as in OP. Enjoy, merry Christmas to all and have a good time! :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Hopie:
thx for this. did you have magisk files, too?

merry Christmas
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
I had, yes. Haven't managed to do them yet again, but I will right after Christmas!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] JohnFawkes:
here you go. took previous modules and changed the service.sh file out with each script and renamed the zip and changed name in config and module.props. also bumped up version and versioncode
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nfsmw_gr:
Merry Christmas pal. Thanks for taking the time to give us this present. Happy holidays! :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Nice, thank you! :)

You're welcome! :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Hopie:
delete..
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] adanteon:
But what if I've rewritten them -- just joking, good work on the scripts! :good:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
This is what I meant actually :D Thank you! :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] adanteon:
Yes, but what if I've rewritten them... again! Wouldn't that be a plot twist? :P
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Haha I don't know, my brain is a quite empty at the end of the year :P :D
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Hopie:
i'm back to the script from October. with the last script my htc 10 was to laggy. test it on two roms (leedroid and Viper10)

anyone the same problem?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Aftab_khatri:
Anybody tested this tweaks with oreo rom of htc 10 ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Hopie:
[MENTION=7003898]RogerF81[/MENTION] works this on oreo?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] eraycetin:
Oreo?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Hopie:
on a oreo rom
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
I'm not fully sure to be honest. I don't own my HTC 10 anymore, so I can't check. I mean, most parts should work for sure. The scripts only won't work, if file paths have changed. If not, then I'm quite sure, that the scripts should be still fully functional on Oreo as well.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chrisz5z:
I don't use RogerF81's script, but I have been using the scripts from the original source: [AKT] Advanced Kernel Tweaks v1.6 FINAL and it's been working great.

I'm on 3.16.617.2 US Unlocked w/ElementalX 3.02 kernel.

Currently using the Zhana Balanced profile.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
And what's your experience in long term with gsam or BBS stats
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] romixer:
Xana battery
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] matekaneve:
[MENTION=3088420]tbalden[/MENTION] Do you think it is possible to include these profiles in you kernel somehow? Those stats are looking pretty good and I started experiencing some battery issues as well. I use LeeDroid's latest rom along with Cleanslate latest version.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mattie_49:
Now that I've found this pesky little pnp.xml file. I have to ask how was it disabled in Nougat? And if I rename it. Is the searching process for it gonna be worse battery killer thank leaving well enough alone? Please and thank you beforehand

The right person and Java platform could definitely figure something out id bet. It's encrypted also. Is that normal?

Edit. I added final battery script from op to Exkernel managers folder. From there I ran script. Getting pretty damn good results thus far. So yes it appears to be working on Oreo. If we figure out how to shut down the process /service and or pnp manager completely. It will be great.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] frostnicko:
Can you explain ?Which of script installed ? And how install with exkernelmanager ? Did you try Ivicaks' new zip for delete pnp libs ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mattie_49:
Delete
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] whi-2:
Question: what i/o scheduler does v10 battery profile use? I swear sometimes ago it noop but now it is cfq
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mattie_49:
Which means HTC's built in pnp.mgr is changing. That is if your on Oreo
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kend0g:
Hey I know this was posted a while ago but are you on nougat???
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] romixer:
Yep, but for now I'm using the profile from op
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] whi-2:
Ah yes, i'm on oreo. Does that mean when i install it via magisk it does nothing? Should i flash a scirpt to remove pnp.mgr or leave it?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mattie_49:
Up to you, but my experience is removing it causes more drain than to use no tweaks.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] frostnicko:
Anyone uptade script template ? I want to install with v16 but show zip error :(
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] TotallyAnxious:
I prefer tasker. But it can be a headache to set up. Not the most friendly UI. Lol
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
That's right. I even don't understand Tasker at all :silly::D

PS: EAS script updated.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] TotallyAnxious:
I'll shoot you a message in a bit with the tasker set up. And I'll look at it and merge it into mine as always and send it over haha
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] RogerF81:
Thanks a lot :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] LazerL0rd:
And if you're not using EXKM, then place the new scripts in the /su/su.d folder.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] prstorero:
See how this works. You'll need to change the path to where you have the file. Also make sure to execute the task manually first so you can grant SU to tasker and make sure the execution works.