[Galaxy S 5 General] justjr:
Hello all.

After about a month of researching and testing with the Galaxy S5, I'm finally happy with my SmartKernel profile, with the interactive governor carefully tuned, using known resources and countless trials and errors, as well as other various tweaks, like VM and I/O scheduler, and decided to publish on it's own thread.

The main resources I've used for the Interactive governor tuning includes the well known:

Android Modders Guide;

[GUIDE] Advanced Interactive Governor Tweaks; Buttery smooth and insane battery life! for Nexus 5X; and it's twin

[GUIDE] Advanced Interactive Governor Tweaks; Buttery smooth and insane battery life! for HTC Evo 4G.

First of all, this tweaks should be a little sensible to the ROM, kernel, apps, and other tweaks your using. Like, I just found out that Havoc pie style quicktile settings use way more juice then if I turn it off and go back to Oreo default. Bellow you will see the apps I mainly crafted this profile in mind.

For reference: I have a klte with latest Oreo Havoc installed, nano OpenGapps, Magisk and the SmartPack kernel. For apps I use Facebook lite, cause the normal app is just a big hog, whatsapp and instagram social apps. Chrome. I don't use the Google App or Greenify(uninstall/delete velvet). And play lots of games like Clash Royale, Star Wars Force Arena and Arena of Valor. BetterBatteryStats.

And a lot of random apps that normally don't stay on the background.

DESCRIPTION

On the SmartPack manager profile:

. HIghly Efficient Interactive Governor Tunables (most important part);

. No Touchboost or any other boost, only the governor dictates to CPU in which clock it should to be;

. Overclock disabled, but can be enabled at you will;

. No underclock, I do undervolt my CPU but this you need to find your specific device numbers, mine won't cut;

. LazyPlug Hotplug with all 4 cores on all the time (better performance while using and battery savings while at idle);

. I/O Schedulers: ZEN (the L-Speed profile complement this part, with it's scheduler tunables);

. READ-AHEAD internal 1024kb (for 16GB or more) and external 512 kb (for my 8GB SDCard, adjust accordingly to yours SD Card size conform described here

. Adreno Idler disabled: it doesn't make any effect;

. Speaker Driver Leakage disabled and Boeffla Sound enabled with 0 gain as it does make a difference, at least with ViperFX magisk module installed;

. Screen minimum RGB set to 1 (0 won't stick), for a darker dark on our AMOLED, plus some tweaks;

. Led blinking fade enable;

. VM tweaks: dirty_ratio 30 and dirty_background_ratio 15; for minor battery improvement, with a perceptible lower termperature/cpu usage and almost imperceptible performance hit;

. VM tweaks: page-cluster 1; for better multitasking/memory management

. VM tweaks: oom_dump_tasks 0; disable depuration of dumping tasks, less cpu needed.

. LMK values: 32 48 64 128 176 208 (MBs)

L-Speed Profile

. Logging and I/O stats disabled;

. Animations speed set to 0.25x;

. System battery save trigger at 20%;

If you need to provide or read logs, enable logging and i/o stats back on l speed; i/o stats and oom_dump_tasks 1 on smartpack manager

INSTALLATION

Unzip the attached file and import with SmartPack Manager:

The attached profile should be imported, applied and marked as to run "On Boot" to make effect. It will only work with SmartPack Manager and Kernels for both Nougat and Oreo, maybe even Pie. Just try it, and report back. If you wanna fine tune it. You need to use an app or enable the "show cpu clocks" option if your rom supports it (like Havoc, RR and many more), and monitor at which frequencies the lags happens, while doing the jobs you want the CPU to be efficient at. And mainly tweak the target_load according, maybe above_high_speed delays of 1,7GHz clock and above. You need to read the guides more in-dept too see exactly how to do it, but I'll paste here the most important parts on how to tweak this settings more to your Galaxy S5, with your particularly apps and ROM:

Besides CPU Voltage and Battery, all tabs on the manager are modified and tuned to achieve best performance, while having best efficiency possible. Is not a battery or a performance, but a efficiency profile.

Refer to this thread if you wanna undervolt your device with a well know secure margin for the CPU Snapdragon 801 2.5ghz MSM8974AC, which our Galaxy S5 contains:

[GUIDE] Snapdragon 805/801/800/600 Clock & Voltage (PVS bin) guide by HD2Owner I've managed to achieve much lower voltages then PSV15+ devices (refer to the sheets).

I also attached the excel spreadsheet I've made with all this thread information, both governor guide equations on target loads, undervolting guide findings, and made my own base calculations and settings. Feel free to use, modify, and discuss it with me. You will see that I based the most efficient clocks in an original thought about which ones are the most efficient, instead of plotting the differentials between voltages of each clocks, I did plotted the difference of the clock divided by voltage, which on itself should be how much voltage 1 mhz uses, on each clock rate. So, the higher the number, more speed each clock rate give us by voltage used. It's kinda complicated and idk if I explained it the right way, and even if it really makes sense under scrutiny, but I couldn't think why not myself, so, any inputs are welcome.

I own my thanks to all the following XDA fellows, without them, I could not have achieved this:

[MENTION=7060205]sunilpaulmathew[/MENTION] for the SmartPack Kernel which is the only kernel for the S5 that can turn that damned MPDecision off and SmartPack Manager;

[MENTION=5886947]soniCron[/MENTION] for both of the governos Guides;

[MENTION=5811506]Saber[/MENTION] for the Android Modders Guide which is immensely helpful.

CHANGELOGS

L-Speed Profile (download the app on PlayStore):

011118 lspeed profile

- first release

031118 lspeed profile

- Removed most tweaks, only left minor stuff, refer to the OP.

L Speed profile is not really needed, SmartPack will do 99% of the job.

SmartPack Manger Profile (download the kernel and the app here):

301018

- first release.

011118 smartpack profile:

- A few Interactive governor tweaks;

- Removed Virtual Memory and LMK tweaks, let it on default or use L-Speed to optimize, as it does a much better job then me.

031118 smartpack profile:

- Governor tunning: better high load management;

- Included back only 3 sane VM configurations, no more freezing, better cooling (less cpu needed, while performance barely took a hit)

- Sane LMK configurations, kills apps not being used faster, retain some multitasking while not let it slow down the device

081118 smartpack profile:

- target_load (no changes up to 1497600) ...1728000:89 1958400:91 2265600:95 -> ...1728000:88 1958400:90 2265600:95

- above_hispeed 20000 1190400:60000 1497600:64000 1728000:77000 1958400:84000 2265600:130000 -> 20000 1190400:60000 1728000:68000 1958400:79000 2265600:110000

- external storage read-ahead from 512 -> 2048 (because I've gone from a 8GB to a 32 GB SDCard, ADJUST YOURS ACCORDINGLY TO https://androidmodguide.blogspot.com/p/io-schedulers.html)

- cleaned unused and already default values from profile

101118 smartpack profile:

- Turned Alucard off, accidentally activated it with Lazyplug also enabled, not good!

- Managed to go 1 point higher on freq 1497 MHz, the 2 hotplugs enabled were messing with me trying to test this change before, also 1 point lower on the idle freq 268 MHz for smoother scrolling while still staying at freq 268 while idle. And some more high load optimizations now that I only got 1 hotplug enabled as it should always be.

- target_loads from 268800:29 ... 1497600:86 1574400:5 1728000:88 1958400:90 2265600:95 to -> 268800:28 ... 1497600:87 1574400:5 1728000:89 1958400:91 2265600:94

- above_hispeed 20000 1190400:60000 1728000:68000 1958400:79000 2265600:110000 -> 20000 1190400:60000 1728000:74000 1958400:82000 2265600:120000

- dirty_background_ratio 15 -> 10

221118 smartpack profile:

. Reverted new SmartPack Kernel v14r4 changes to Virtual Memory back to original default configurations, if you've have had reboots this should fix it, please report back here and/or the kernel's thread;

. More changes to Interactive governor aiming to optimize high load scenarios according to the profile philosophy:

. above_hispeed_delay 20000 1190400:60000 1728000:74000 1958400:82000 2265600:120000 -> 20000 1190400:60000 1728000:74000 1958400:80000 2265600:105000;

. Enabled fast charge configurations, set at 1200 mhA as I found it's a good charging speed without heating the phone too much on my hot city, nothing you can't change at your will.

241218 smartpack profile:

. Restored missing min_sample_time tunable since 081018 profile

. dirty_ratio 30 -> 25

. General cleanup

. Tested on Pie