• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[AKT] Advanced Kernel Tweaks v1.6 FINAL | Insane Battery & Performance(SD820/1|OP3/T)

Which tweak do you use or prefer?

  • GhostPepper

    Votes: 313 21.7%
  • HawkTail

    Votes: 50 3.5%
  • HawkPepper

    Votes: 142 9.8%
  • Kestrel

    Votes: 21 1.5%
  • FairPark

    Votes: 130 9.0%
  • Fusion_B_Delta

    Votes: 53 3.7%
  • Fusion_Speed

    Votes: 56 3.9%
  • Cold_Fusion

    Votes: 25 1.7%
  • Shotgun

    Votes: 83 5.7%
  • Project Zhana

    Votes: 686 47.5%

  • Total voters
    1,444
Search This thread

Asiier

Senior Member
Nov 23, 2014
541
1,989
Miller's Planet
AT&T LG G2
OnePlus 6
[AKT] Advanced Kernel Tweaks v1.6 FINAL | Insane Battery & Performance(SD820/1|OP3/T)

IMPORTANT ANNOUNCEMENT #2​
REALLY IMPORTANT ANNOUNCEMENT:
Please read it!


We ( @patalao and me) have decided to create a new thread since the @op from the thread we were using seems to be inactive, so doing this will give us more freedom for editing the main post and providing you guys with more information.
I also need to thanks all the awesome people that have made this possible, therefore thanks to @soniCron and @Alcolawl for being the creators of the original guide and all the fantastic tweaks that you have made.
Thanks to @flar2 for his great app (EXKM) and his kernel and to @patalao for his superb tweaks and all the help he has provided me.
http%3A%2F%2Fs25.postimg.org%2Fkr248eg8v%2Fintroduction.png

All that you are about to read is based on THIS THREAD so go there and thanks @soniCron for it.
I'll go ahead and copy and paste some of the firsts paragraphs so those who don't know what this all is about can understand a bit.

I'm about to tell you how to get buttery smooth, lag-free performance with insanely good battery life, using an old school governor featured in practically every kernel... This tweak is applicable to every phone with any ROM or kernel--stock or custom--that provides the Interactive Governor.
Yeah, yeah... everyone promises good battery with great performance, but who actually delivers? Maybe it isn't as smooth as you want, or maybe it requires something your kernel or ROM don't support. Or maybe the battery life promises just aren't what you expected. There's always some awful compromise. Not here!
This isn't a guide to get 36 hour battery life... provided you never use your phone. That's deep sleep optimization, which is lovely and all, but what good is the phone if you can never use it?! And with the new Marshmallow Doze feature, this strategy is becoming a thing of the past. What I'm talking about is 7-14 hour screen on, actual hands-on usage times! Without compromising anything, you can get 7-8 hour screen on usage with regular, no-compromise usage habits: daytime visible screen brightness, both radios on, sync on, network location on, all the regular usage features, the whole kit and kaboodle... all smooth as a baby's butt and snappy as a Slim Jim! (Up to 14+ hours if you can stand minimum brightness and WiFi-only with a custom ROM and other stuff turned off! And this is with stock voltages and full frequency range--you'll likely get even more if you choose to optimize those as well!)

However, it should be noted that this does not apply to gaming, heavy camera use, etc. Anything that is an automatic battery killer in and of itself. There's nothing that can be done about anything that forces the phone to utilize its maximum resources all the time. But you should know that by now. Further, this guide is about optimizing the CPU as much as possible. It does not cover things like eliminating wakelocks so your phone sleeps well, removing unnecessary and battery draining stock apps, keeping your screen brightness down*, and all that stuff that's been covered in other posts ad infinitum. Those optimizations are up to you.

If you really want to know the principles of this tweaks, please go to this thread since there everything is really well explained and I know you guys just want to apply the tweak and forget about everything behind it, so just keep scrolling!
  • Voltages and Frequencies:
So recently I have been investigating about the Voltages of our device (since that is a really useful information to know) before that we only have the Nominal frequencies (If you don't know what I am talking about go ahead and read @soniCron thread because I won't explain it) we could develop some tweaks with that, but we were pretty much making blind shots, guessing and hoping that all will be right. Well, now that we have all this information we can optimize our tweaks even more so expect new updates and rework for the current tweaks and of course new ones.

I have made a little spreadsheet with the Nominal and Efficient frequencies for you guys, so you can take a look and maybe modify our tweaks to your needs, since, all of them have been tested by @patalao, our tester and me, which involves that are tested without usage and not yours.

2cxtc02.png


No much to say about frequencies so we move right away to the voltages

2chand.png
1zez5eq.png


We have more to talk about this, as you can see OverClocking have NO down points since it will consume the same voltage as the maximum stock clock speed and it will give use more performance. UPDATE: It's true that the voltage it's the same, but there is some downpoint which are explained in this posts. Here and here Thanks to @bedalus for pointing itn out!
Notice that the voltages on CM ROMs are higher that on OOS and that the values were shown there are from OOS. We are already working on a flashable zip or script for modifying those values since cannot be modified anyway else.

On the Snapdragon 820 (Our chipset) things have changed a lot from the previous chipsets like the 808 (Nexus 5X) and 810 (Nexus 6P). Now we are back to the Quad-Core, which is good, more cores= more battery consumption but we continue with the Little.BIG set up, where we have a Little Cluster (really efficient and fast) and a Big Cluster (slow but good for heavy loads). On previous chipsets, the Little kernel was really good on low-mid clock speeds and the Big cluster was really good on high frequencies and bad on low. Well, this is still true, but not we don't have such difference than before. Our Little cluster is going to be "the main thing" as it was before, but now the Big cluster has a really low consumption on lower frequencies so can be really good for sustained loads which only demand low~mid clock speeds as well it will be used as a quick burst for help the Little cluster to not reach High freq here it's not that efficient anymore.
  • How this affect your device (ROM/KERNEL)
You might NOT get the same results as me or other, it will depend mainly on your usage, secondly on the kernel and finally on the ROM that you currently using.
Not all the tweaks work the same way for certain kernel, what I mean with this is that the battery life/performance might be better running X kernel with X tweak, but the same tweak applied to another kernel might not be that good at all
Wait what? What you want to tell me is that some kernel is better than other, right?
Yes and No, Some kernel is better than other but also, some kernel perform better with certain tweaks as can be seen in the following screenshots (This test have been performed using AnTuTu tester with a clean install of last RR + the Kernel, nothing else. I know is a benchmark and the perfect thing whole be a real life test but that takes days, so If somebody wants to do it, I'll post the results)
Disclaimer:: This is just a profile (tweaks) for the interactive governor. If you experience any unexpected fc, reboots, massive stuttering/lagging, etc, this profile isn't most likely not responsible for that.
23kvyq1.jpg
2nvs7md.jpg

  • What About Touchboost?
Since I've noticed that a lot of people was asking about Thouchboost, I decided to add this little explanation from @soniCron

" Touchboost is a nifty feature in a lot of kernels (including stock on Nexus 5X) that jumps up the frequency so that you experience minimal lag. However, with all the above settings, touchboost is usually detrimental to the efficiency of the device!
We generally want to keep the CPU on the lowest possible frequency as much as possible, and touchboost interferes with that. Further, because we've set up the maximal and minimal efficient clock rates, as well as burst processing from the 2nd CPU core, we don't need touchboost!
If your kernel allows you to shut it off, try to do so and see if the responsiveness of your device is acceptable. On the OP3 (and pretty much all the devices), touchboost adds no perceptual performance gain and only hurts efficiency and battery life. If your kernel doesn't allow you to turn off touchboost, try another one.
Your battery life will thank you! "


With all that been said, you shouldn't confuse Touchboost with CPU Boost and more specifically Input boost. Both are used to boost the clock speed of our device whenever we touch the touchscreen, so we don't suffer any lags.
The difference is that Input boost can be configured and Touchboost cannot, making it a really inefficient.
  • MY DEVICE LAGS!!! WHY?!?!
First of all, it's a "normal" thing, as I have stated before, all these tweaks have been done for fit my usage or certain usage which is most likely not the same as yours. Because this, when the are put on a certain scenario the might stutter or lag just a bit (If you are experimenting huge lags, you have done something wrong)
And yes, this can be fixed. We have a couple of ways of fixing it:
  • First of all, Check If the tweaks have been applied correctly
  • Our first one is modifying the Input boost (not touchboost) most of our tweaks have an already established Input boost clock speeds and time, you can incise does too a bit. For example, we have 960(Mhz) for all the CPU at 40ms you could bump it up to ~1036(Mhz) and 42ms, don't modify too much this values since it will potentially increase your battery drain.
  • Our second tool for fixing lags is min_sample_time , my recommendation is to increase the value by 5000 each time till you no longer suffer any stutter or lag.
  • Try another tweak, for example;
    If you are using Project X.A.N.A Battery, try using Balanced option...
Still having lag?
  • Get rid of unnecessary (background-)apps
  • Try a different IO-Scheduler
  • Try another profile

My phone still uses too much battery
  • First of all, Check If the tweaks have been applied correctly
  • Make sure that you have disabled touchboost.
  • Set brightness to a lower level.
  • Use a dark / black theme
  • Don't play games all day
  • Try other tweak, for example;
    If you are using Project Zhana Balanced, try using Battery option...

JOIN OUR SLACK CHANNEL FOR TESTING BETA TWEAKS

VOTE FOR YOUR FAVORITE PROFILE

I'll keep this post updated with new information, so make sure to subscribe to it.:D:good:
 
Last edited:

Asiier

Senior Member
Nov 23, 2014
541
1,989
Miller's Planet
AT&T LG G2
OnePlus 6

The Profiles:

=================================================================================================

Introducing Advanced Kernel Tweaks [A·K·T] | All-in-one Project
All the profiles will be featured there, some make sure to check it out!


Over here

=================================================================================================

Project Zhana & X.A.N.A v4.2: (Everybody should try it!!)

Go to this post for the full lenght explanation.
This tweak has all the new discovery voltages and some other new techniques, giving us great battery life without losing performance

The battery could be even better than FairPark *14 h SOT*


GhostPepper:

Uses a quantized, frequency-aligned parametric curve to influence low core clock rates while providing extremely smooth transitions from each clock rate and exceptional battery life
Really well-defined clock speed escalation for a good battery and performance.

FairPark:

There have been a lot of controversy about this tweak lately. So after you complain, this will NOT work for all of you guys.
For me, it works perfectly and it accomplished all that I'm going to state, but maybe you guys will experiment lags.
This tweak is not for everyone.
Probably the most battery efficient tweak ever created, fantastic battery with extremely smooth performance even playing games as Clash Royale or Pok?mon GO.
You can easily get 10 hours SOT or even more (If you don't play any games) just texting, browsing and so on could give you even 12 hours SOT.

HawkPepper:

As you might notice by the name is the union of the 2 tweaks above, GhostPepper for the Big cluster and HawkTail for the Little cluster, as GhoostPepper is highly optimized for the Big cluster and HawkTail for the Little.
Performance wise should be as good as GhostPepper but in terms of battery should be considerably better.

EOL Profiles:
You can still use them, but I won't give further support for them

HawkTail:

An advanced, modern profile that is both battery efficient and highly performant
It should be as battery efficient as GhostPepper but giving that extra performance for "high-end" games, as that was the only complaint on GhostPepper

Ketrel:

Really battery efficient tweak but only for light usage, when comes to playing games and some heavy multitasking the battery drain will increase exponentially



DOWNLOADS:



~ [AKT] Profiles ~

Old profiles:


Changelog:
Code:
27/10/16: Updated all the profiles. Applying the new discoveries about voltages and so on.
02/11/16: Adding Project Zhana v3.0  
15/11/16: Adding Project X.A.N.A v3.1 | Updating to Project Zhana to version 3.1 
10/12/16: Project Zhana & X.A.N.A v3.3
02/01/17: [A·K·T] + Project Zhana & X.A.N.A v4.0 + EOL Profiles
22/01/17: [A·K·T]  v1.2 + Project Zhana & X.A.N.A v4.2
 
Last edited:

Asiier

Senior Member
Nov 23, 2014
541
1,989
Miller's Planet
AT&T LG G2
OnePlus 6
FAQs:
  • Does this tweaks works with X ROM / X Kernel; OB10, Custom ROM, OOS4.0...??
  • YES, YES, YES. All the tweaks featured her works with ALL the available Kernels and ALL available ROMs for the OP3. So yes OBs(9,10,11....), yes custom ROMs, yes OOS 4.0
  • Will this work on my device?
    [*]These tweaks are intended for the One Plus 3, although it should work on any device which features the Snapdragon 820 ( Moto Z, Xperia XZ, S6 ...)
    HTC 10 Here is why and Here is the HTC10 Thread
    Support for the OP3T and other Snapdragon 821 devices will come soon! Read more about it here.

  • My device Lags/Uses to much Battery/Is not longer smooth/It's really slow!! What do I do??
    [*]Everything it's explained on the OP. I quote the part where that's explained


    • MY DEVICE LAGS!!! WHY?!?!
    First of all, it's a "normal" thing, as I have stated before, all these tweaks have been done for fit my usage or certain usage which is most likely not the same as yours. Because this, when the are put on a certain scenario the might stutter or lag just a bit (If you are experimenting huge lags, you have done something wrong)
    And yes, this can be fixed. We have a couple of ways of fixing it:
    • First of all, Check If the tweaks have been applied correctly
    • Our first one is modifying the Input boost (not touchboost) most of our tweaks have an already established Input boost clock speeds and time, you can incise does too a bit. For example, we have 960(Mhz) for all the CPU at 40ms you could bump it up to ~1036(Mhz) and 42ms, don't modify too much this values since it will potentially increase your battery drain.
    • Our second tool for fixing lags is min_sample_time , my recommendation is to increase the value by 5000 each time till you no longer suffer any stutter or lag.
    • Try another tweak, for example;
      If you are using Project X.A.N.A Battery, try using Balanced option...
    Still having lag?
    • Get rid of unnecessary (background-)apps
    • Try a different IO-Scheduler
    • Try another profile

    My phone still uses too much battery
    • First of all, Check If the tweaks have been applied correctly
    • Make sure that you have disabled touchboost.
    • Set brightness to a lower level.
    • Use a dark / black theme
    • Don't play games all day
    • Try other tweak, for example;
      If you are using Project Zhana Balanced, try using Battery option...

  • Do I have to be rooted?
    [*]Yes. See the fourth question and learn more about your device before trying to change things like governor settings!
  • How do I apply this tweaks?
  • Go to this post and scroll down till you see the instructions
    In case you guys still want to use the old method:
    Keep scrolling to the third post, all that you need is there
    You can also check this video, as a picture is worth a thousand words - but a video, a million!


  • My settings don't show up after I reboot! What am I doing wrong??
  • If you are using [A·K·T] head to this post and scroll to the FAQs over there
    If you are using EX Kernel Manager, tap the power icon to the right of the setting after you set it. If you are using a different kernel manager, check with that developer to see how it's implemented. Also, give the kernel manager a few minutes after the device boots. The settings aren't applied immediately, so check back after 3 minutes and you should see the correct values.
  • Why is one of my CPUs not letting me change a setting or set a certain frequency?
  • The device may be thermally throttling and had turned off that CPU or limited it. Turn off your device and let it cool for 5 minutes, then try again. (Keep it unplugged and make sure you don't have any apps running that might be trying to use a lot of CPU while the device is off.)
  • These settings don't work/I'm not getting great screen on time!
  • You probably haven't disabled touch boost. YOU MUST DISABLE TOUCHBOOST, OR THIS WON'T SAVE YOU JACK SQUAT!!
    And keep in mind these tweaks have been tested on certain scenario that is not the same as yours
  • My kernel editor won't let me set [whatever]Mhz for a value you showed!
  • Either you have done something wrong, or you're using a kernel/device combo that isn't ElementalX on OP3, for which this guide was written. Follow the instructions in the first post to determine the appropriate settings for your own device!

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Community made Profiles:

Here will feature all the profiles that haven't been made by @patalao, @Mostafa Wael or myself

"Nameless" by @Senthil360
All the information and download link in his post.

LINK TO THE POST
 
Last edited:

patalao

Senior Member
Jan 24, 2009
1,204
953
Feira
Realme X2 Pro
Ok then.
First, thanks to @Asiier for making this thread with a more detailed explanation about the profiles, specially for our SD820.
As @Asiier said the profiles may not work the same for everyone because each one of us uses the phone different, so please take that in mind before filling the thread with questions why it works for Y but not for X.



HOW DID I START

I`ve started by releasing the Fusion Beta profile on Ex Kernel Manager thanks to @flar2.

After seeing almost all profiles from Nexus 5X and Nexus 6P threads i released the first version.
It was a fusion(that's why the name Fusion) of several profiles into one, but using the SD820 frequencies for our device.
After all this time and working alongside with great devs like @Asiier, @Mostafa Wael, @Senthil360 and many other users on our Slack channel i've improved my profiles to the point of releasing 2 new ones called FusionB and FusionP.
This time i've worked on them not just for me but for the entire community of our OP3, taking in mind tests maid by users on Slack channel (our private channel for development of profiles and much more).



Profiles

FusionB
This is a balanced profile.
Working alongside with testers and evolving from previous works i've came across with FusionB, a profile intended to be used out of the box with your phone.
You can expect a smooth experience without compromising battery to much.
This is based on the load percentage of the cpu.
Better than stock values, this profile should use almost all frequencies from little cluster(scale up one by one) and use the big cluster to more heavy duties till 1900 frequency jumping to the highest one just when needed.

FusionP
Based on FusionB this profile brings a more "agressive" way to scale frequencies.
It will scale frequencies sooner(regarding load values from cpu) and will use more the big cluster to provide more performance doing the tasks on hands.
Battery should not take a big hit but using heavy demanding tasks you can expect a higher drain.


Note:This aren't the normal profiles used some time ago.
This are beyond governor settings and go up till HMP values.
This will be provided as a single script on AKT script together with all the profiles from @Asiier, @Mostafa Wael and @Senthil360.
Older versions are still available below on hided content but won't be updated(at least some time soon).

Releases:
FusionB and FusionP ( 02 / 01 / 2017 )


Changelog:

New year,new start.
This will be first release.
Next updates will have changelogs accordling.





Download Section
AKT



Want to know what AKT means?
ALL IN ONE PROJECt



Installation:
#Download the tweak
#Enter into Recovery and flash the tweak
#Boot to system
#Open your terminal app and introduce:
#Code:
su
AKT

#Select the section you want ( Battery/Balanced/Performance)
#Select the profile you prefer
#Done!















OLD VERSIONS:
This are the old one's and will still be available on my AFH but won't be updated.
There are 3 categories of profiles.(maybe more will come)

Thunder
This was made thinking only on a very fluid experience
It is set for speed, not battery.
It`s a performance profile and intended more for 3D Gaming and for those apps that needs more "power" to have a fluid experience.

Fusion
Set for a balanced between performance and battery this one should be what most of users want.
It should give you more or less the same performance as stock but with an improvement on battery.
This is what you should expect more or less for the new Fusion(depending on many factors this could be or not achived by you):

3fd3ad626cc80b8cf793a7501f14b708.jpg

44299bf5c2fbdc3e483a591f2dcd37cb.jpg

dcb5404f8d012495155613265472d3db.jpg

28ceb5093cd82610a59a7b3d44792051.jpg

fd7c37ef7b52b7da2ff0dbf9592e53ea.jpg

6293c6147bdfa672c0018a73c28c9097.jpg

82578510232509c4d700c8c16893b456.jpg

aea54923d5a17cc243c6f62b41c2cd78.jpg

839715e56d4ea52991f0b5af3d3faf4a.jpg

2e9c139bfd7e76fcc45a9deb440a9bb2.jpg

cc1a463b1bc82eac08af5c6335f731a4.jpg

71c695b0c5b48992a53acb2402481c59.jpg

09ebbb7c7ba5c5427b52780d9903d518.jpg

99cb383a7e93e196a012f7394ce5718c.jpg

7cc9220fdce62ce0eca66ae832a14c6d.jpg

97661293c109a3c51be27aa1e58d46cd.jpg

364ed6c7059724277598f00c4dc7a42e.jpg




Icecold
Set for extreme battery saving this one should suit those wich use the device for low end tasks.
This is an underclocked profile and because of that it isn't suitable for all.


Download Section

All said, you can get the profiles here:

Fusion

Thunder

Icecold




How to use a profile with Ex Kernel Manager App
How to use a profile?
1-You need Ex Kernel Manager App
2-Download the desired profile and rename it removing ". txt"
3-Move the profile to sdcard/ElementalX/gov_profiles.
4-Before using any profile please uncheck all "set on boot" in Ex kernel manager and then reboot.
5-After reboot load the profile and then set on boot the following:

For all the profiles including mine, @Asiier and @Mostafa Wael

On CPU tab:
Governor settings
Input boost frequencie and input boost milliseconds
Touchboost

Because my profiles (and future @Asiier profiles) have more than governor settings this is what you also need to set on boot on mine and @Asiier profiles:

Memory tab:
Low memory killer
Adaptive low memory killer
Dirty ratio
Dirty background ratio
Min free kbytes
Vfs cache pressure

On Miscellaneous tab:
I/O Scheduler
Advanced I/O options
Read ahead kb
Tcp congestion algorithm

On tools/user settings tab:
Swappiness (add this /proc/sys/vm/swappiness)


For Icecold profile set this extra to be applied on boot:

Cpu tab:
Max CPU frequencie (Big Cluster)

Graphics Tab:
Max GPU frequencie











Credits:
All credits goes for all the users that shared their own profiles on Nexus 5X and Nexus 6P respective threads and of course for Me @Asiier, @Mostafa Wael and @Senthil360 for bringing this ones to our device.
 
Last edited:

Mostafa Wael

Inactive Recognized Contributor
Jan 11, 2013
6,106
5,565
23
Gotham
Introducing...
Shotgun!
Strategy
This profile's main goal is to provide absolute maximum performance when needed, but lies low quite well. You see, some times I see the CPU hitting some of the high freqs of 1190 while making something as simple as watching YouTube or playing some spotify tracks needlessly, and sometimes I feel it is a bit slower than it should be in things like brute multitasking. Most profiles do aim at bringing a mid-ground to rest on. But with the sensible words of one of my favourite idols Jeremy Clarkson, he says 'Power solves everything' and right he is. By eliminating the mid freqs of the Little cluster and efficiently using some specific frequency steps, you get some power savings by staying on lower freqs as much as possible, and even on brutal tasks you get the job done faster as well, since the CPU will give you all the power to finish the job as fast as it can, and hit back to idle faster. Some may be worried about the power consumption with that turbo policy, but as it can be viewed from @Asiier OP's graphs and info, the difference in the voltage is not that high to make you that worried at all, and even numbers say it. I got a mighty 7.5 hours SOT over more than a day on OOS 3.2.7 with Mono kernel (tbh i used to get that value, but now I get it so easily without any extra battery conservation techniques) and i get better performance as to my usage patterns. As for the big cluster, I chose to stick with the stock Big cluster settings for better efficiency with slight tweaks to make it a little bit more bursty and lie low quicker. @Asiier I must point out something there. In your OP you advised (sort of) to tweak the big Kryos to be acting in a bursty manner. Well that is partially right, coz these big Kryos are no A57s where they heat up badly if engaged, rather their sustainable performance is quite lovely, and the fact that as much as the little cluster being in charge of most of your tasks as the 'main cluster', it is not being relied on as much as it was in the S810, and the big cores take charge of the load much more than it was in the S810. So it is a bit tricky to tweak now, coz you don't want it to be very dormant like the A57 coz that will sacrifice performance and smoothness noticeably.

Also take that into consideration
Also another thing that I want to clarify for everyone, what has the largest footprint in rendering some profiles laggy/more battery consuming or very efficient/lagfree is the ROM. You see, when you test the 'nominal' freq for a certain task, it also depends on the ROM. A quick example, if you wanted to see which is the nominal freq for scrolling a simple webpage or even a normal page without lags, by locking the freq to a certain step to test, while you do the scrolling test, there are background processes that inevitably take place whenever you use the phone. A stock OOS for instance potentially has more background processes running than say CM, and CM nightlies specially when they introduce a highly experimental change, can have some more background process (most likely you see the 'CyanogenMod system' ranking highest in your battery consumer apps) than a more stable nightly, and an AOSP may be having even less. A carefully debloated OOS can have less background services going on as well. Not to say a ROM is better than the other, but each ROM behaves uniquely and therefore when you scroll the webpage on say CM, it may be a tad smoother than when doing the same task on OOS with a specific profile, coz the frequency that is set to be used when scrolling the webpage, by any means, actually has to do the work of scrolling AND handle the background services running (be it a needless wakelock or a necessary service for some system apps or user apps, hence changing a CM nightly can actually cause some weird issues)
Now why don't you see this with the stock interactive governor settings? Coz it is like 'generic' settings that obeys these wakelocks and background services, and they will ramp up the freq readily with no 'restrictions', unlike custom settings profiles like mine, where I limit the CPU to use some certain freqs and cap the others, or Asiier's with whatever philosophy he uses.

In my opinion, the ROM has more effect on performance with each profile than a kernel. Of course a certain Kernel can have some battery tweaks or performance tweaks undergone, but they have the same effect as on the stock generic settings, in other words, these optimisations can already be felt even on stock settings and hence I sort of exclude it from the equation, since your target is to improve upon the stock governor settings ;)


I suggest as always to turn off touchboost and use low input boost freqs for more time as always, but if you feel the need to use Touchboost or increase the input boost parameters, no problem at all. My usage is typing, reading, gaming for an hour or maybe slightly more, lots and lots of YouTube streaming and video playback, Spotify, WhatsApp and Telegram, XDA checking of course and some off-screen music playback. This profile has been tested on OOS 3.2.7 + Mono/Boeffla kernel, Arter97's CM13 + Arter97's custom kernel, OrionOS 11 Oct with its stock kernel

Downloads
Shotgun_v1.0 EXKM profile here
init.d script here
Shotgun_v1.6 EXKM profile here
Shotgun_v1.7.6 EXKM profile here

->It is not 100% true that a newer version is better for you, but 99% it is :cowboy: <-
Changelist
  • Shotgun v1.0
    initial release
  • Shotgun v1.6
    -> eliminated more freqs for both little and big clusters, big cluster should be a little bit more dormant. Should be much
    smoother AND more battery friendly
  • Shotgun v1.7.6
    -> should be working fine without ANY Touchboost/Input boost/Bob boost settings (yes set input_boost freq to 0 freq for
    litte and big cores anf for 0 ms to turn it off)
    -> more smooth and battery friendly

  • >>>Shotgun is EOL after v1.7.6<<<

    Burnout PR
    -> Burnout PR1, make sure to apply the gears here
    -> Burnout PR2 Golden!. No gears needed, this is the absolute performance you can get! Gamers be cautious, this is NOT intended for gaming at all. Heavy browsing might be a bit warmer than your taste too. I have added some changes that work well with AOSP/CM LineageOS?/CAF Nougat but it seems that OB9 does NOT work as well as I expected.

Legacy: (imo Burnout PR2 moved leaps after that, but i never delete my trials since we are not the same :)
An intermediate profile has been cooked as well, dubbed as Burnout_Extreme. Learn more about it here


People who fail to automatically load the settings after booting even though the slider has been set to apply the settings on boot please notify me. Hope it does not fail you! Big thanks to @weeka89 and everybody here on this thread and the slack group for testing, couldn't have been that great or refined without your help and time, very much appreciated :good:
 
Last edited:

RenderBroken

Recognized Developer
Sep 14, 2013
4,297
20,084
33
/home/renderbroken/android
Great information! I look forward to seeing what comes of this. Now if we can just quantify load during certain things like browsing and other scenarios, that would give your values per freq more weight. Now I am unsure but I remember that Linaro used some tools** to work out Energy Aware Scheduling (EAS) for the 5x. Would be cool to gather such info and tie it in with your current findings.

** I believe they made changes in the kernel to quantify load and giving values a weight. But I would think there was more needed to create and EAS profile of the SD808 processor.
 
  • Like
Reactions: Asiier

patalao

Senior Member
Jan 24, 2009
1,204
953
Feira
Realme X2 Pro
Which kernel do you use daily? Personally been using Elementalx but from what I can see Blu seems to be a bit better with FairPark which I use daily

I use ElementalX kernel.
Didn`t try any of other`s.
There`s still INT3NSE kernel for OOS if you want to try.

Great information! I look forward to seeing what comes of this. Now if we can just quantify load during certain things like browsing and other scenarios, that would give your values per freq more weight. Now I am unsure but I remember that Linaro used some tools** to work out Energy Aware Scheduling (EAS) for the 5x. Would be cool to gather such info and tie it in with your current findings.

** I believe they made changes in the kernel to quantify load and giving values a weight. But I would think there was more needed to create and EAS profile of the SD808 processor.

It`s hard to know the load of different scenarios because they are constanly changing.
We can estimate it but it won`t be very accurate.
For example:
Loading a web page full of pictures/videos will take a high load instead of a web page just with text.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 239
    [AKT] Advanced Kernel Tweaks v1.6 FINAL | Insane Battery & Performance(SD820/1|OP3/T)

    IMPORTANT ANNOUNCEMENT #2​
    REALLY IMPORTANT ANNOUNCEMENT:
    Please read it!


    We ( @patalao and me) have decided to create a new thread since the @op from the thread we were using seems to be inactive, so doing this will give us more freedom for editing the main post and providing you guys with more information.
    I also need to thanks all the awesome people that have made this possible, therefore thanks to @soniCron and @Alcolawl for being the creators of the original guide and all the fantastic tweaks that you have made.
    Thanks to @flar2 for his great app (EXKM) and his kernel and to @patalao for his superb tweaks and all the help he has provided me.
    http%3A%2F%2Fs25.postimg.org%2Fkr248eg8v%2Fintroduction.png

    All that you are about to read is based on THIS THREAD so go there and thanks @soniCron for it.
    I'll go ahead and copy and paste some of the firsts paragraphs so those who don't know what this all is about can understand a bit.

    I'm about to tell you how to get buttery smooth, lag-free performance with insanely good battery life, using an old school governor featured in practically every kernel... This tweak is applicable to every phone with any ROM or kernel--stock or custom--that provides the Interactive Governor.
    Yeah, yeah... everyone promises good battery with great performance, but who actually delivers? Maybe it isn't as smooth as you want, or maybe it requires something your kernel or ROM don't support. Or maybe the battery life promises just aren't what you expected. There's always some awful compromise. Not here!
    This isn't a guide to get 36 hour battery life... provided you never use your phone. That's deep sleep optimization, which is lovely and all, but what good is the phone if you can never use it?! And with the new Marshmallow Doze feature, this strategy is becoming a thing of the past. What I'm talking about is 7-14 hour screen on, actual hands-on usage times! Without compromising anything, you can get 7-8 hour screen on usage with regular, no-compromise usage habits: daytime visible screen brightness, both radios on, sync on, network location on, all the regular usage features, the whole kit and kaboodle... all smooth as a baby's butt and snappy as a Slim Jim! (Up to 14+ hours if you can stand minimum brightness and WiFi-only with a custom ROM and other stuff turned off! And this is with stock voltages and full frequency range--you'll likely get even more if you choose to optimize those as well!)

    However, it should be noted that this does not apply to gaming, heavy camera use, etc. Anything that is an automatic battery killer in and of itself. There's nothing that can be done about anything that forces the phone to utilize its maximum resources all the time. But you should know that by now. Further, this guide is about optimizing the CPU as much as possible. It does not cover things like eliminating wakelocks so your phone sleeps well, removing unnecessary and battery draining stock apps, keeping your screen brightness down*, and all that stuff that's been covered in other posts ad infinitum. Those optimizations are up to you.

    If you really want to know the principles of this tweaks, please go to this thread since there everything is really well explained and I know you guys just want to apply the tweak and forget about everything behind it, so just keep scrolling!
    • Voltages and Frequencies:
    So recently I have been investigating about the Voltages of our device (since that is a really useful information to know) before that we only have the Nominal frequencies (If you don't know what I am talking about go ahead and read @soniCron thread because I won't explain it) we could develop some tweaks with that, but we were pretty much making blind shots, guessing and hoping that all will be right. Well, now that we have all this information we can optimize our tweaks even more so expect new updates and rework for the current tweaks and of course new ones.

    I have made a little spreadsheet with the Nominal and Efficient frequencies for you guys, so you can take a look and maybe modify our tweaks to your needs, since, all of them have been tested by @patalao, our tester and me, which involves that are tested without usage and not yours.

    2cxtc02.png


    No much to say about frequencies so we move right away to the voltages

    2chand.png
    1zez5eq.png


    We have more to talk about this, as you can see OverClocking have NO down points since it will consume the same voltage as the maximum stock clock speed and it will give use more performance. UPDATE: It's true that the voltage it's the same, but there is some downpoint which are explained in this posts. Here and here Thanks to @bedalus for pointing itn out!
    Notice that the voltages on CM ROMs are higher that on OOS and that the values were shown there are from OOS. We are already working on a flashable zip or script for modifying those values since cannot be modified anyway else.

    On the Snapdragon 820 (Our chipset) things have changed a lot from the previous chipsets like the 808 (Nexus 5X) and 810 (Nexus 6P). Now we are back to the Quad-Core, which is good, more cores= more battery consumption but we continue with the Little.BIG set up, where we have a Little Cluster (really efficient and fast) and a Big Cluster (slow but good for heavy loads). On previous chipsets, the Little kernel was really good on low-mid clock speeds and the Big cluster was really good on high frequencies and bad on low. Well, this is still true, but not we don't have such difference than before. Our Little cluster is going to be "the main thing" as it was before, but now the Big cluster has a really low consumption on lower frequencies so can be really good for sustained loads which only demand low~mid clock speeds as well it will be used as a quick burst for help the Little cluster to not reach High freq here it's not that efficient anymore.
    • How this affect your device (ROM/KERNEL)
    You might NOT get the same results as me or other, it will depend mainly on your usage, secondly on the kernel and finally on the ROM that you currently using.
    Not all the tweaks work the same way for certain kernel, what I mean with this is that the battery life/performance might be better running X kernel with X tweak, but the same tweak applied to another kernel might not be that good at all
    Wait what? What you want to tell me is that some kernel is better than other, right?
    Yes and No, Some kernel is better than other but also, some kernel perform better with certain tweaks as can be seen in the following screenshots (This test have been performed using AnTuTu tester with a clean install of last RR + the Kernel, nothing else. I know is a benchmark and the perfect thing whole be a real life test but that takes days, so If somebody wants to do it, I'll post the results)
    Disclaimer:: This is just a profile (tweaks) for the interactive governor. If you experience any unexpected fc, reboots, massive stuttering/lagging, etc, this profile isn't most likely not responsible for that.
    23kvyq1.jpg
    2nvs7md.jpg

    • What About Touchboost?
    Since I've noticed that a lot of people was asking about Thouchboost, I decided to add this little explanation from @soniCron

    " Touchboost is a nifty feature in a lot of kernels (including stock on Nexus 5X) that jumps up the frequency so that you experience minimal lag. However, with all the above settings, touchboost is usually detrimental to the efficiency of the device!
    We generally want to keep the CPU on the lowest possible frequency as much as possible, and touchboost interferes with that. Further, because we've set up the maximal and minimal efficient clock rates, as well as burst processing from the 2nd CPU core, we don't need touchboost!
    If your kernel allows you to shut it off, try to do so and see if the responsiveness of your device is acceptable. On the OP3 (and pretty much all the devices), touchboost adds no perceptual performance gain and only hurts efficiency and battery life. If your kernel doesn't allow you to turn off touchboost, try another one.
    Your battery life will thank you! "


    With all that been said, you shouldn't confuse Touchboost with CPU Boost and more specifically Input boost. Both are used to boost the clock speed of our device whenever we touch the touchscreen, so we don't suffer any lags.
    The difference is that Input boost can be configured and Touchboost cannot, making it a really inefficient.
    • MY DEVICE LAGS!!! WHY?!?!
    First of all, it's a "normal" thing, as I have stated before, all these tweaks have been done for fit my usage or certain usage which is most likely not the same as yours. Because this, when the are put on a certain scenario the might stutter or lag just a bit (If you are experimenting huge lags, you have done something wrong)
    And yes, this can be fixed. We have a couple of ways of fixing it:
    • First of all, Check If the tweaks have been applied correctly
    • Our first one is modifying the Input boost (not touchboost) most of our tweaks have an already established Input boost clock speeds and time, you can incise does too a bit. For example, we have 960(Mhz) for all the CPU at 40ms you could bump it up to ~1036(Mhz) and 42ms, don't modify too much this values since it will potentially increase your battery drain.
    • Our second tool for fixing lags is min_sample_time , my recommendation is to increase the value by 5000 each time till you no longer suffer any stutter or lag.
    • Try another tweak, for example;
      If you are using Project X.A.N.A Battery, try using Balanced option...
    Still having lag?
    • Get rid of unnecessary (background-)apps
    • Try a different IO-Scheduler
    • Try another profile

    My phone still uses too much battery
    • First of all, Check If the tweaks have been applied correctly
    • Make sure that you have disabled touchboost.
    • Set brightness to a lower level.
    • Use a dark / black theme
    • Don't play games all day
    • Try other tweak, for example;
      If you are using Project Zhana Balanced, try using Battery option...

    JOIN OUR SLACK CHANNEL FOR TESTING BETA TWEAKS

    VOTE FOR YOUR FAVORITE PROFILE

    I'll keep this post updated with new information, so make sure to subscribe to it.:D:good:
    222
    I'd like to release my AKT Profiles App [v1.6.0] [ROOT]

    Thankyou to all involved in AKT and all the slack channel for helping me test and improve the app.
    What started as just some experimentation with tasker, evolved into a complete app.

    APP is compatible with the OP3 & OP3T only. May work on other devices but no support is given.

    Features
    - Complete standalone app (No need to flash AKT, or run any commands in terminal)
    - All profiles included in the AKT script are included in this.
    - The app will auto apply your chosen profile on each reboot and notify you that its been reapplied (If Selected on Sidemenu, ON by default)
    - No need to delete profiles if you want to switch, just apply new profile and it will overwrite the previous.
    - Option to revert back to stock settings (On Sidemenu)
    - Shows you the current applied profile (On Sidemenu)
    - Added Dark Theme option (On Sidemenu)

    Download AKT Profiles APP 1.6.0
    https://www.androidfilehost.com/?fid=745425885120764798

    Instructions
    1. Download and Install the app
    2. Pick which catagory of profile you want
    3. Select a profile. A popup telling you the profile is being applied will popup.
    4. Wait patiently for the Profile applied Popup (Shows output)
    5. Pick if you want to apply on boot, or show notification.
    6. Your good to go :)

    Changelog v1.6.0
    • Magisk finally fully supported, no need for a work around anymore
    • Updates on all Zhana and X.A.N.A Profile (4.3)
    • Updates on Burnout and Fusion Reborn
    • Now the zip and app shares directories. Which means if both zip and app installed, the app will apply the profile chosen in either on boot.
    • Some minor fixes and corrections

    Changelog v1.4
    • Now Supported OP3T / SD821
    • Updates on all Profiles for 3T / SD821 (Except for Nameless)
    • Updates on X.A.N.A *beta* and Burnout
    • Dark Theme option added (On Sidemenu)

    Changelog v1.3
    • Complete redesign
    • Added Sidemenu with selectable options (Button top left or swipe from the left)
    • Options to turn on and off 'Apply on boot' and 'Boot up notification' (ON by defualt)
    • Profiles updated to match AKT Profiles 1.3 Zip
    • New profile added (Fusion Conservative)

    Changelog v1.2.2
    • Added current applied profile on homescreen
    • Under the hood changes to improve how things are done

    Changelog v1.2.1
    • Removed the 'sleep' commands from the script (Significantly faster at applying the profiles)
    • Added an option to revert to stock settings (3 Dot menu, top right of homescreen, requires reboot)
    • Increased the time the Applied popup stays open (More time to check the output)

    Thanks again to @Asiier @patalao @Senthil360 @Mostafa Wael for there fantasic work on AKT and all the profiles.
    163
    ==================================================================================​
    Advanced Kernel Tweaks
    ~ [A·K·T] ~
    All-in-one Project
    ==================================================================================​

    Guys... it's finally done after several months, thousands of line of code and a bunch of beta tests. A·K·T is done and ready to use!!!

    But before any further talking, I have to thanks all the people that have made this possible.
    Starting with @Senthil360 for working with me on all the coding stuff as well as creating his Nameless Profiles
    @Mostafa Wael and @patalao for their fantastic tweaks and helpfulness all along this process
    And to all the testers on the official Slack Channel, they are the absolute best and I wish I could name them all as they also deserve their recognition
    Without of them, this project couldn't have been possible.

    And now, let's get right into the news!!!​

    What is AKT and this All-in-One Project?
    I'll leave the mic to my buddy @Mostafa Wael and let him explain it:

    Mostafa Wael said:
    Bearing in mind the noticeable expansion in everyone's profiles, be it to aim for different targets or to improve upon the former profile, the number of profiles done by each of us has extraordinarily increased, resulting in multiple profiles in each category with all of them reaching what they aim for in their own ways.
    Since we are all not the same, meaning people can get different results even if they are using the same profile for the same purpose, not to mention that we have moved far away from just tweaking governor settings to almost tweaking every other aspect of the kernel settings, be it HMP scheduling, LMK min free values, I/O scheduler settings and advanced options or other global settings, depending on the Android version installed and the kernel's max frequencies, we decided to make it easier for you (and us) and compile all the scripts in an all-in-one seamless script, making use of the fairly simple command line interface found in Terminal Emulator app, categorizing all the profiles respectively, with a very neat interface layout to make it much easier and more simple to select your profile. This has been worked on for an awful lot of time, and we faced an even more awful lot of issues while debugging and creating this tool.
    This has been one of the biggest achievements for all of us, if not the biggest. Introducing Advanced Kernel Tweaks, or rather for short... AKT


    How to install:
    A flashable zip to be flashed via recovery, which installs scripts of the latest iterations of most profiles (some legacy profiles had to be eliminated for more convenience) and a master script that takes control of all the installed scripts and applies your desired profile at will as soon as you recall it via Terminal Emulator app and get guided by the on-screen instructions.
    So to wrap it up:
    1- Download the latest AKT_Profile_vX.x.zip file
    2- Reboot into TWRP recovery and flash the .zip file
    3- After you boot up the phone, leave it to settle for a minute
    4- Open up your favorite Terminal Emulator app
    5- Grant it superuser permissions by typing in "su" without the quotes
    6- After superuser permissions are granted, type in "AKT" without the quotes (yes capitalized)
    7- Follow the on-screen instructions and information, don't worry they are very intuitive and easily understandable
    8- Profit!​
    P.S. AKT displays the already applied profile name if there are any, furthermore, AKT has an option to revert back to stock kernel settings.
    And as a gift for the New Year, we are coupling AKT with 3 new iterations of Burnout_PR, X.A.N.A & Zhana and Fusion! Make sure to check out the main post for Xana and Fusion and Burnout for the updated description/changelog for the new profiles.
    Happy times everyone!



    We will update (ASAP) those posts with the all the needed explanation, changelogs for the profiles and the further updates, not this post!

    This means the rest of the profiles and the old updates will be EOL. This doesn't mean you cannot longer use them, only that we won't be giving further updates to as them as we though this new set of profiles are better than the past ones and therefore, we should be centering our attention on them


    Changelog:

    ** Initial Release ** v1.0 Stable

    This will be used for the changes done to the script itself, not the profiles.
    If you want to check the changes on the profiles visit their post that can be found right above.

    ** Update to v1.2 **

    #Now supporting su.d
    #Bug correction
    #Updates on FusionB/P and Project Zhana & X.A.N.A
    *for more details on them visit their posts*

    ** Update to v1.3 **

    #Bug correction
    *Target_loads won't apply If you were UnderClock or OverClock more than 1728 Mhz*
    #Modifications on how Input Boost applies, so fewer errors are shown
    #Updates on FusionB/P
    *for more details on them visit their posts*
    #Add FusionC (Battery Oriented)
    #Some visual Improvements

    ** Update to v1.4 BETA **

    #Now supporting OP3T / SD821
    #Updates on all Profiles for 3T / SD821 (Except for Nameless)
    #Updates on X.A.N.A *beta* and Burnout
    #Bug Corrections and Fixes

    ** Update to v1.6 FINAL**
    #Changes on how the script works
    #Now the zip and app shares directories
    #The script will auto remove sleeps after the first installation
    #Reapply option, Reapplies the current profile (instantly)
    #Updates on all Zhana and X.A.N.A Profile (4.3)
    #Updates on Burnout and Fusion Reborn
    #Some minor corrections

    FAQs

    • Do I have to reapply the tweaks ever time I reboot my device?
      - Yes and No. A·K·T supports both init.d and su.d, so as long as your kernel supports init.d or su.d (go ask on its thread not here) or you use init.d emulation via KA or similar, you should not need to reapply them on boot.
      Although I recommend manually reapplying it because, sometimes, they might nor get applied correctly because how both init.d and su.d works.
      Also, you can use Tasker by following this
    • I'm getting X error in X line
      - Okay, I'll need a screenshot of the error shown on the terminal app as well as your current ROM and Kernel
    • I'm getting errors in the whole script
      - Make sure you have given root permissions by typing "su" in the terminal
    • I have further questions
      - Check the FAQs on the OP
      - Read this whole post
    github_logo.png


    === DOWNLOADS ===


    ~ [A·K·T] Profiles ~
    ~ v1.6 FINAL ~


    # [A·K·T] Profiles APK #

    Old Downloads:

    ~ [A·K·T] Profiles v1.4 Beta 5 ~
    ~ [A·K·T] Profiles v1.3 Stable ~
    ~ [A·K·T] Profiles v1.2 Stable ~
    ~ [A·K·T] Profiles v1.0 Stable ~


    ====================================================================

    VOTE FOR YOUR FAVORITE PROFILE HERE


    Make sure to check our Slack Channel for all the BETA updates and staying tune with the latest news!!
    And make sure to give a BIG Thanks to this post
    113

    The Profiles:

    =================================================================================================

    Introducing Advanced Kernel Tweaks [A·K·T] | All-in-one Project
    All the profiles will be featured there, some make sure to check it out!


    Over here

    =================================================================================================

    Project Zhana & X.A.N.A v4.2: (Everybody should try it!!)

    Go to this post for the full lenght explanation.
    This tweak has all the new discovery voltages and some other new techniques, giving us great battery life without losing performance

    The battery could be even better than FairPark *14 h SOT*


    GhostPepper:

    Uses a quantized, frequency-aligned parametric curve to influence low core clock rates while providing extremely smooth transitions from each clock rate and exceptional battery life
    Really well-defined clock speed escalation for a good battery and performance.

    FairPark:

    There have been a lot of controversy about this tweak lately. So after you complain, this will NOT work for all of you guys.
    For me, it works perfectly and it accomplished all that I'm going to state, but maybe you guys will experiment lags.
    This tweak is not for everyone.
    Probably the most battery efficient tweak ever created, fantastic battery with extremely smooth performance even playing games as Clash Royale or Pok?mon GO.
    You can easily get 10 hours SOT or even more (If you don't play any games) just texting, browsing and so on could give you even 12 hours SOT.

    HawkPepper:

    As you might notice by the name is the union of the 2 tweaks above, GhostPepper for the Big cluster and HawkTail for the Little cluster, as GhoostPepper is highly optimized for the Big cluster and HawkTail for the Little.
    Performance wise should be as good as GhostPepper but in terms of battery should be considerably better.

    EOL Profiles:
    You can still use them, but I won't give further support for them

    HawkTail:

    An advanced, modern profile that is both battery efficient and highly performant
    It should be as battery efficient as GhostPepper but giving that extra performance for "high-end" games, as that was the only complaint on GhostPepper

    Ketrel:

    Really battery efficient tweak but only for light usage, when comes to playing games and some heavy multitasking the battery drain will increase exponentially



    DOWNLOADS:



    ~ [AKT] Profiles ~

    Old profiles:


    Changelog:
    Code:
    27/10/16: Updated all the profiles. Applying the new discoveries about voltages and so on.
    02/11/16: Adding Project Zhana v3.0  
    15/11/16: Adding Project X.A.N.A v3.1 | Updating to Project Zhana to version 3.1 
    10/12/16: Project Zhana & X.A.N.A v3.3
    02/01/17: [A·K·T] + Project Zhana & X.A.N.A v4.0 + EOL Profiles
    22/01/17: [A·K·T]  v1.2 + Project Zhana & X.A.N.A v4.2
    96
    Project Zhana & X.A.N.A v4.3


    Well guys, finally, after tons of test and tweaking I come out with Project Zhana in his version 3.0
    I hope you guys find it smooth and battery efficient as it's the main goal. Keep in mind that I might release some hotfixes
    and other little optimizations since it has only been tested among few people over the Official Slack Channel
    With all this been said, let's get into the tweak!!

    Update!! So after some weeks months of testing and coding scripts I'm glad to present Project X.A.N.A!!
    (and Project Zhana v3.1 v4.2)
    Errr what? Project X.A.N.A is the twin sister of Project Zhana but more optimized in terms of battery.
    Therefore:
    · Project Zhana = Balanced
    · Project X.A.N.A = Battery *yes, even more than FairPark*

    Strategy:
    Project Zhana & X.A.N.A was made for trying to be as efficient as possible without compromising the performance.
    Thanks to the discovery on Voltages used by our SD820 I could make a profile that utilizes more the BIG cluster.
    My first attempt was to move ALL the load to the BIG cluster, it was against anything that I have learned
    about little.BIG CPU but I tried, it turned really good at first, low usage was just amazing...
    But on more usage things didn't go that good.
    So what I did it was to give a twist to things, but not such twist.
    It kind of works like Nameless and Shotgun, @Mostafa Wael and I worked the same idea.
    #LITTLE cluster will be running on low-mid frequencies but delivers full performance when is needed.
    # BIG Cluster will help LITTLE ease Load, but in a great way than before.
    Things can be done faster and more efficient giving us profit in form of battery.
    It should run smooth on all scenarios, but you guys tell me.
    In addition the script will detect whether you're overclocked and your ROM for applying the right values
    You can easily get around 7~9 hours SOT for 24 hours even more If you don't play game
    This will, of course, may vary, but it will definitely be better.

    Update!! The strategy behind Project X.A.N.A is the same as Project Zhana, so all said above gets applied too.
    The main feature of Project X.A.N.A is the HMP Tweaks, this time we not only take advantage of them
    but also we modify them for "correcting" the BIG cluster utilization and therefore making the whole tweak much more efficient.
    Expect even more SOT


    ==================================================================================================================​



    Disclaimer: This was build on RR (CM based ROM) using EX Kernel and test on a variety on different ROMs and Kernels.
    None of my testers complaint about stutters or lags, but there is always a first time

    Changelogs:
    Old changes:
    **Release of version 3.0**
    #Too many changes for them to be said.
    #But for the following version I'll give you guys the changelog

    **Update to version 3.1 | Zhana **
    #Updating target_loads values for a better escalation. This will also help to avoid certain inefficient freq ( I'm talking about you 1036MHz )
    #Updating above_hispeed_delay so the CPU thinks twice are bumping into high-freq when is not needed
    #Some corrections on typos
    #Removing Sleepers

    **Release of Project X.A.N.A**
    #HMP Usage

    **Update to Project Zhana & X.A.N.A v3.1.1**
    #Minor bug fixed (Noop not getting applied)
    #Adding init.d support, so you guys just have to apply the profile and forget about everything

    **Update to Project Zhana & X.A.N.A v3.2**
    #BUG Fixing
    #Android Nougat support


    **Update to Project Zhana & X.A.N.A v3.3**
    # Few changes over target_loads
    # Modifications over HMP values. Providing more performance and possibly more battery
    # Improved performance and battery.
    # BUG Fixes:
    · I/O Settings
    · Typos
    # Disable Adaptive LMK
    # 2 new options:
    · Disable Tweaks
    · Delete Tweaks
    **Update to Project Zhana & X.A.N.A v4.0**

    HUGE UPDATE!!!

    #Now Project Zhana used custom HMP values for giving more performance and battery
    #Slightly reworked target_loads
    #Ditching on go_hispeed_onload for BIG cluster too
    #Rework on HMP values
    #Adjust the profiles for the increment of load found on Nougat
    Changes over almost every tuneable​
    #Some changes for the I/O settings, LMK
    #Now using msm-adreno-tz as GPU governor for better performance and battery life

    #Fixed all BUGs from the previous version
    #Rework on how I/O settings get applied, so no matter you are encrypted or decrypted, using OBs or CM build, they will get applied
    Huge thanks to @Senthil360 for that​


    **Update to Project Zhana & X.A.N.A v4.2**

    #Touches on target_loads @ high frequencies
    #Rework on HMP values on X.A.N.A (I ****ed up and BIG cluster was getting too much load for no reason)
    #Keep adjusting for the load increase on N
    Changes over almost every tuneable
    #Some changes for the I/O settings, LMK
    Now back at 512Kb read-ahead

    #Fixed all BUGs from the previous version
    #Now supporting su.d
    #Changing the ROM detection from CM to Lineage OS

    **Update to Project Zhana & X.A.N.A v4.4**

    #Now the X.A.N.A. and Zhana are less similar
    #Zhana will be more balanced and X.A.N.A. more battery efficient
    #Changes over target_loads and pretty much all tuneables
    #Some corrections for OP3T
    #Skiping 1036 Mhz as is not efficient
    #Adjusted loads distribution

    It won't be a HUGE change from the last version to this one, but I think you guys will find it better :D

    This update aims to Nougat, after all, we all going to end using Nougat
    If you are still on MM and you feel like version 3.3 works better, let me know. But all my testers say that 4.0 4.2 works much better ( battery and performance wise)

    And on Nougat there is no way 3.3 works better than 4.0-4.2 as I have personally tried a ****ing lot!


    What this tweak does??.

    Code:
    # Interactive governor tweaking, as usual. You shouldn't modify this values unless you know what you are doing
    # Input boost tweaking. The script detects If you are not using a CM-Based ROM an applied higher values, but you may modify this following the instructions from the OP.
    # Disable Touchboost and BCL
    # Enable Core Control and Disable MSM Thermal Throttling allowing for longer sustained performance
    # Tweaks for other various Settings. You may change all of them, but they are really optimized.
       · I/O Values
       · TCP Values
       · Memory
       [STRIKE]· Disable Sleepers[/STRIKE]
    # GPU Tweaking. You might change this If you suffer lag in games
    
    #HMP Values This will "correct" the BIG Cluster utilization and take full advantage of it


    INSTRUCTIONS!!
    This tweak DOES NOT EXKM profile as it's impossible for some tweaks to work using them.
    It used init.d script or BASH script It now uses a flashable zip file with init.d support
    Therefore it's install and execute like any other init.d or BASH script, If you don't know how to do it Google it
    Since I care about you I have made 2 videos on how to do it, you what people say "If a Picture is worth a thousand words, then a Video worth a Million"

    Update!! I have unified both profiles into a simple flashable .zip file, so everything is easier and cleaner!
    Also, it provides you with more options which are bound to satisfy your usage.

    · HOW TO INSTALL!!

    1. Download the tweak
    2. Enter into Recovery and flash the tweak
    3. Boot to system
    4. Open your terminal app and introduce:
      Code:
      su
      AKT
    5. Select Balanced or Battery section as Project Zhana & X.A.N.A will be found there
    6. Select the profile you prefer
    7. Done!

    Update!! Now the profile has init.d support. UPDATE! Now it also have su.d emulation
    This means that the profile WILL be applied after every boot (As long as you use a init.d emulator like KA) So you don't have to do anything extra, just apply and enjoy


    In case you want to use the previous version.
    This might come handy as well for know to apply the init.d profiles that come with the file The profiles will automatically apply to the init.d folder.


    • You may use only 1 of the method explained ahead, there is no need for using both of them.
    • Init.d can be applied on every boot by using apps as KA or Init.d enabler
      there is no way to applied the BASH on boot, but it only takes 10 seconds to execute it.

    Therefore, use the method you like the most.


    INIT.D SCRIPT:


    BASH SCRIPT:


    In case you cannot see the videos:
    INIT.D | BASH


    Keep in mind that I recorded this some time ago, so what is shown won't be exactly the same, but it's just so you guys get the concept.


    Explanation for each variant:
    • Project Zhana Balanced (Default): The Project Zhana that you know and love.
    • Project Zhana Battery: Same as above, but with lower Input boost values and some tweak on target_loads, above_hispeed_delay and GPU
    • Project X.A.N.A Battery (Default): This is default version of X.A.N.A
    • Project X.A.N.A Balanced: The same as above but with higher Input boost and some tweaks for I/O and GPU, for a better performance.
    • Project X.A.N.A Extrem Battery: If you are using this profile and you suffer lag don't even think on complaining since I won't listen. This is made for really light usage. No Input Boost, Battery saving I/O and GPU ...

    BEFORE YOU POST ANY COMPLAINS!!

    Make sure that all the settings have been properly applied, there is no longer a problem with resetting target_loads, but make sure that all have been applied.
    And then check this:
    MY DEVICE LAGS!!! WHY?!?!
    First of all, it's a "normal" thing, as I have stated before, all these tweaks have been done for fit my usage or certain usage which is most likely not the same as yours. Because this, when the are put on a certain scenario the might stutter or lag just a bit (If you are experimenting huge lags, you have done something wrong)
    And yes, this can be fixed. We have a couple of ways of fixing it:
    • Try another tweak, for example;
      If you are using Project X.A.N.A Battery, try using Balanced option...
    • Our first one is modifying the Input boost (not touchboost) most of our tweaks have an already established Input boost clock speeds and time, you can incise does too a bit. For example, we have 960(Mhz) for all the CPU at 40ms you could bump it up to ~1036(Mhz) and 42ms, don't modify too much this values since it will potentially increase your battery drain.
    • Our second tool for fixing lags is min_sample_time, my recommendation is to increase the value by 5000 each time till you no longer suffer any stutter or lag.
    Still having lag?
    • Get rid of unnecessary (background-)apps
    • Try a different IO-Scheduler
    • Try another profile

    My phone still uses too much battery
    • Make sure that you have disabled touchboost.
    • Set brightness to a lower level.
    • Use a dark / black theme
    • Don't play games all day
    • Try other tweak, for example;
      If you are using Project Zhana Balanced, try using Battery option...

    Here are some results that me and other tester have gotten:

    ivio34.png
    4h5x6f.png
    2ilbq81.png
    bfgdaa.png
    2cxg3o7.png
    zxpi89.png
    suzr6h.png


    New!!
    And here is a full cycle that I got.

    I need to give a little explanation on this.
    The cycle latest for 3 days with 5 hours SOT
    This was during a week of exams so I didn't have time to play with my phone.
    You WON'T achieve this just with the tweak, since it also involves a lot of Deep Sleep optimization, but for that screen, on time the profile will do miracles.
    This could have been even better, around 4 days or usage or maybe 7 hours SOT, since I lost 14% during the first night due to a failure on my WiFi, which caused huge wakelock during that time.
    During this test I was running BJRR 08/11 with EX Kernel 0.36, this doesn't mean that either of those is the best in terms of battery.
    The battery drain:
    · Light usage ~7%/h
    · Medium usage ~9%/h
    · Light Gaming (Clash Royale) ~12.5%/h
    · Heavy Gaming (I haven't test this for too much) ~ 15%/h
    Screenshots:


    New!!
    14 hours SOT!!