Soilwork: Unified kernel-tweaks V10 [10/10/2017] | Script | MAGISK module

Which type of kernel are you currently using?

  • EAS

    Votes: 17 89.5%
  • PnP

    Votes: 1 5.3%
  • HMP (interactive governor without pnpmgr)

    Votes: 1 5.3%

  • Total voters
    19
  • Poll closed .
Search This thread

fullydeveloped

Senior Member
Jul 29, 2014
163
17
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.
 
Last edited:

tuanbichtam2

Member
May 12, 2017
13
4
Update! Thanks to @master131, 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 @tabp0le]
Adding some HelixKernel specific values
changed some tuneables of maple I/0 sched [battery profile only]


Soilwork V8.0 tweaks

Line 90 is missing a "
In the V8 balanced script
Great work btw
 

RogerF81

Senior Member
Oct 14, 2015
1,939
1,389
Mannheim
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.

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 :eek: But I am not sure:confused:
 

RogerF81

Senior Member
Oct 14, 2015
1,939
1,389
Mannheim
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?

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.
 

RogerF81

Senior Member
Oct 14, 2015
1,939
1,389
Mannheim
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 :)


 

Attachments

  • Soilwork_uni_V10_balanced_Final_Script.zip
    4.9 KB · Views: 78
  • Soilwork_kernel-tweaks_V10_balanced_Magisk_Final.zip
    10.7 KB · Views: 126
  • Soilwork_uni_V10_battery_Final_Script.zip
    4.9 KB · Views: 67
  • Soilwork_kernel-tweaks_V10_battery_Magisk_Final.zip
    10.7 KB · Views: 83
Last edited:

bkores

Senior Member
Aug 12, 2016
813
615
Staten Island, NY
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?
 

RogerF81

Senior Member
Oct 14, 2015
1,939
1,389
Mannheim
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?

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! :)
 

gamal001

Senior Member
Jul 15, 2011
790
202
Google Pixel 4 XL
Google Pixel 4a
@RogerF81 ,
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
 
Last edited:

RogerF81

Senior Member
Oct 14, 2015
1,939
1,389
Mannheim
@RogerF81 ,
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

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.
 

tsalta

Senior Member
Dec 25, 2008
2,461
721
London
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!
 
  • Like
Reactions: RogerF81

RogerF81

Senior Member
Oct 14, 2015
1,939
1,389
Mannheim
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!
That's why I made the Magisk module ;)

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!

Thank for your feedback, I was trying my best :)
 
  • Like
Reactions: ali nz

RogerF81

Senior Member
Oct 14, 2015
1,939
1,389
Mannheim
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 @adanteon! 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 @CharliesTheMan!
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! :)
 

Attachments

  • Soilwork_Performance_HTC10.zip
    6.1 KB · Views: 29
  • Soilwork_Balanced_HTC10.zip
    6.3 KB · Views: 87
  • Soilwork_Battery_HTC10.zip
    6.4 KB · Views: 67

Top Liked Posts

  • There are no posts matching your filters.
  • 48


    For introduction - have a look at these guides first: Advanced Interactive Governor Tweaks (for Nexus 5X) and [AKT] Advanced Kernel Tweaks (for OP3 -> same SoC as our HTC 10). At first, I want to thank @soniCron for his shared knowledge, @Alcolawl for his great scripts and of course @Asiier, @Mostafa Wael, @patalao and @Senthil360 for their AKT scripts for OnePlus3.

    So, what is this about? These tweaks are desgined to work for every available kernel on our HTC 10 (or every other Snapdragon 820/1 device), no matter if it's a PnP kernel such as stock kernel, or a HMP kernel without the usage of PnP or an EAS kernel. The scripts detect which kernel you're running and will apply the tweaks accordingly.

    So in summary, what are the prerequisites...
    • Kernel/Rom, which does not use pnpmgr
    • root access
    • proper buysbox installation
    • NO need of any special app besided a terminal emulator, Boot Shell or Magisk - it's up to you!

      ...and what can you expect?
    • efficient performance...
    • ....therefore good battery life (->see attachements below.)
    • EAS, HMP and I/0 tweaks
    • executeable scripts or Magisk modules

    How to install and to use these tweaks? Firstly: The .sh files are executeable scripts. To run them, you have to go to an terminal emulator app, and then you have to type for example, if you saved the .sh file in the ElementalX folder in your internal storage and if you wanted to apply the file called "Soilwork_uni_V10_balanced_Final.sh":
    Code:
    su
    [COLOR="Green"]cd /sdcard/ElementalX/gov_profiles/[/COLOR]
    [COLOR="blue"]sh Soilwork_uni_V10_balanced_Final.sh[/COLOR]

    or just use a root file manager or Boot Shell, simple as that ;)

    or just flash the Magisk module in TWRP or Magisk manager and profit ;)

    Known issues: It could be possible that you get some errors like "setting123 could not be applied: permission denied" or "setting123 could not be applied: no such file or directory". This is no problem, all other settings will be applied correctly. This is only a kernel related thing which means that this kernel just does not have this option.
    NOTE: If you're running an AOSP Rom and using an EAS kernel, then open EX Kernel Manager -> CPU and enable perfd manually!

    Credits:
    @soniCron for his knowledge
    @Alcolawl for his initial scripts
    @Freak07 for his scripts
    @Asiier @Mostafa Wael @patalao @Senthil360 for their AKT/OP3 scripts, which work indeed for the HTC 10, when using Nebula Advanced or being on LOS/AOSP-based Rom
    @TotallyAnxious for exchange of knowledge and code + for all VM stuff work + for own scripts
    @Eliminater74 for Nebula Advanced and Nebula EAS kernels
    @ZeroInfinity for HelixKernel EAS and for including my script into his kernel :)
    @Kyuubi10 @ivicask @DeeZZ_NuuZZ for explaining and helping me a lot concerning VM stuff

    Status: stable
    Unified scripts and Magisk modules: Google Drive
    Last updated: 10/10/2017

    Spreadsheet about Power Consumption calculations: Google Drive
    20
    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 :)


    11
    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 @tabp0le and @joshuous :D I guess they should know it much better than I do.

    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.
    11
    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 @adanteon! 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 @CharliesTheMan!
    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! :)
    10
    Update - new name, new version - Soilwork V5.0

    So, finally, there it is, the new update! With this new update, I changed the branch name to "Soilwork".
    I focussed mainly on I/0 tweaks this time, but also updated the HMP parts, and made them compatible to any available kernel on our beloved HTC 10. So even if you are on a PnP kernel as stock or ElementalX or so on, you can use these tweaks now, even along with @ivicask's PnP tweaks, as these scripts don't affect or tweak PnP itself.
    As usual, there are 2 versions available, "balanced" and "battery", the names should be self-explaining ;) Also, there are still both shell scripts and Magisk modules available.

    Enjoy!

    Unified [ EAS | HMP | I/0 ] Tweaks
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone