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

RogerF81

Senior Member
Oct 14, 2015
1,939
1,389
Mannheim


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
 

Attachments

  • Screenshot_20170213-194405.jpg
    Screenshot_20170213-194405.jpg
    235.5 KB · Views: 9,690
  • Screenshot_20170213-194414.jpg
    Screenshot_20170213-194414.jpg
    224.4 KB · Views: 9,304
  • Screenshot_20170213-194436.png
    Screenshot_20170213-194436.png
    243.3 KB · Views: 9,114
  • Screenshot_20170213-194441.png
    Screenshot_20170213-194441.png
    209.4 KB · Views: 8,379
  • Screenshot_20170215-214052.jpg
    Screenshot_20170215-214052.jpg
    224.8 KB · Views: 8,191
  • Screenshot_20170215-214100.jpg
    Screenshot_20170215-214100.jpg
    211.4 KB · Views: 7,858
  • Screenshot_20170328-100104.jpg
    Screenshot_20170328-100104.jpg
    213 KB · Views: 6,744
  • Screenshot_20170328-095445.jpg
    Screenshot_20170328-095445.jpg
    215.5 KB · Views: 6,448
  • Screenshot_20170328-095528.jpg
    Screenshot_20170328-095528.jpg
    233.3 KB · Views: 6,244
  • Screenshot_20170328-095536.png
    Screenshot_20170328-095536.png
    214.4 KB · Views: 5,777
  • Soilwork_uni_V10_balanced_SCRIPT_Final.zip
    4.9 KB · Views: 549
  • Soilwork_uni_V10_battery_SCRIPT_Final.zip
    4.9 KB · Views: 585
  • Soilwork_kernel-tweaks_V10_balanced_Magisk_Final.zip
    10.7 KB · Views: 792
  • Soilwork_kernel-tweaks_V10_battery_Magisk_Final.zip
    10.7 KB · Views: 726
  • Soilwork_Performance_HTC10.zip
    6.1 KB · Views: 272
  • Soilwork_Balanced_HTC10.zip
    6.3 KB · Views: 315
  • Soilwork_Battery_HTC10.zip
    6.4 KB · Views: 386
Last edited:

RogerF81

Senior Member
Oct 14, 2015
1,939
1,389
Mannheim
Thanks for the scripts. How do you apply the regular .txt files. Paste in /init.d/? Do u need to apply both the .txt and the .sh?

No the regular txt files are just the profiles for EX Kernel Manager and can only be applied within this app. And generally, if you use the .sh script, you don't need the .txt file. Is just for choice.
 
  • Like
Reactions: ssojyeti2

kend0g

Senior Member
Sep 11, 2013
1,133
332
I'm using this currently loaded into ex kernel manager. It is really good. I really appreciate you posting this thank you.

Sent from my HTC6545LVW using Tapatalk
 
  • Like
Reactions: RogerF81

mattie_49

Senior Member
  • Feb 4, 2010
    2,757
    833
    Seymour Tn
    OnePlus 9
    I'm using this currently loaded into ex kernel manager. It is really good. I really appreciate you posting this thank you.

    Sent from my HTC6545LVW using Tapatalk
    Do I just use a root explorer to move and load in ex kernel manager?
    Edit yes that was right..... Hah then had to go in and choose load governor and picked file. Is this step correct. Is it supposed to be loaded in governor settings?

    Sent from my HTC6545LVW using XDA-Developers Legacy app
     
    Last edited:

    kend0g

    Senior Member
    Sep 11, 2013
    1,133
    332
    Yeah your right.. the it should say on the dashboard SuD10.txt for your governor profile loaded.

    Sent from my HTC6545LVW using Tapatalk

    ---------- Post added at 07:09 AM ---------- Previous post was at 07:08 AM ----------

    Under CPU Gov:

    Sent from my HTC6545LVW using Tapatalk
     

    RogerF81

    Senior Member
    Oct 14, 2015
    1,939
    1,389
    Mannheim
    Well done mate :)
    Thanks :) Your scripts and your knowledge are very helpful! :) Thanks for sharing your scripts :)

    If I understand it correctly. I just copy them to EX manager folder and then remove ". txt"?

    If you mean the files without ".sh", then yes ;) And then of course you have to select them in EX Kernel Manager. The ".sh" files are executeable scripts, which can do more and have more options. To run them, you have to go to an terminal emulator app, and then you have to type:
    Code:
    su
    cd /sdcard/ElementalX/gov_profiles/
    sh SuD.sh
    for example, if you saved the ."sh" file in the EX manager folder as well and if you wanted to apply the SuD.sh. Perhaps I should add this to OP?:confused:
     
    • Like
    Reactions: tcnineteen

    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