yashsingh1/xdaforums huggingface dataset:
[Magisk] korom42:
High performance & power-saving tweaks for all devices (THAT ACTUALLY WORK)​

Introduction

LKT aims to achieve a fair balance between power consumption and performance. Instead of tuning the parameters manually, LKT adopts Project WIPE open-source interactive parameters for the mainstream SOCs that are generated by machine learning AI via simulation and heuristic optimization algorithms.

How does it work?

WIPE v2 focuses on meeting performance requirements when interacting with APP, while reducing non-interactive lag weights, pushing the trade-off between fluency and power-saving even further. QTI Boost Framework, which must be disabled before applying optimization, is able to dynamically override parameters based on perf hint. This project utilizes the QTI Boost Framework and extends the ability to override custom parameters. When launching APPs or scrolling the screen, applying more aggressive parameters to improve response at an acceptable power penalty. When there is no interaction, use conservative parameters, use small core clusters as much as possible, and run at a higher energy efficiency OPP under heavy load.

Features

Multi-Profile

Improved smoothness & battery life

Advanced interactive governor tuning (Project WIPE)

EAS devices Support

RAM management enhancements

IO blocks enhancements

Enabled & configured wakelock blocking

Disabled excessive logging at kernel level (Improves battery life as well as performance)

Other miscellaneous adjustments to enhance power efficiency

Profiles

Requirements

Magisk

Busybox (Required for terminal commands)

Installation

Flash in TWRP or Magisk manager

Follow the given instructions

Reboot

** Make sure to read FAQ from here or second post before asking anything. (regularly updated)

Credits

Project WIPE contributors [URL="https://github.com/yc9559/cpufreq-interactive-opt/tree/master/project/20180603-2"]Github[/URL]
yc9559 - @CoolApk
cjybyjk - @CoolApk

[U]Special Thank[/U]
Zackptg5 & ahrion - Unity template
topjohnwu - Magisk
@xLidz from falltorise - Banner design

Contributors

[MENTION=5033594]korom42[/MENTION]

Sources

Original XDA thread

Github

License

Licensed under the GNU General Public License v3
[Magisk] snake218:
Hi, does include Google service drain fix?
[Magisk] rmb.gh:
battery usage screen shot plz
[Magisk] nurav666:
I installed this along with the recommended FSC thermal driver and my battery life actually got a bit worse, and my phone drains faster after the screen is off. Previous to installing this, my battery drain graph was basically vertical on screen off. How can I uninstall this mod and go back to my previous settings?
[Magisk] korom42:
yes

what profile are you using ? also what kernel and rom if you are on custom rom you must you use the custom rom celaner zip

also you might want to check new version v3 .. profiles are more battery oriented now

to remove the mod simply flash the remover [Uninstaller]LXT™_Remover.zip
[Magisk] macaulay mcculkin:
Didn't work for me. Phone got super laggy after flashing. Even switching between homescreens or scrolling through Google Now feed have terrible lag.

I'm on eXistenZ rom. Used cleaner, then flashed LXT Balanced, then FSC and wiped cache afterwards. Tried a couple more times without FSC and without cleaner all with the same result.
[Magisk] korom42:
Definitely that lag you are complaining about IS NOT related to my mod, older versions v1/v2 maybe had few issues but sincr v3 everything is super smooth .. I'll post benchmarks and videos proof if you don't believe .. you saying that you are on custom ROM well keep mind that the rom cleaner zip only removes "init.d scripts" and restore stock "init.qcom.post_boot.sh" file .. So next time you want to try my mod and give a legit feedback.. do a clean firmware installation, use stock or/Androplus kernel ... follow the tips from #2nd_post then report back
[Magisk] nurav666:
I used the balanced profile, and it seems like the phone was unable to get to deep sleep. I'm running stock ROM. I tried V3 as well, but I'm guessing it's not easy for everyone to get consistent results because of different usage patterns. I removed your script and now I'm back to my previous battery life. I will definitely try your mod again on your next release.
[Magisk] korom42:
New version is up with major changes .. :D

-V4 | 15/11/2017

Gov Profiles

:

- All profiles rebuilt from scratch .. Heavily tested under different usage patterns

- Significant improvements in battery life and performance for all profiles (the jackpot is to know how exploit efficient frequencies !!)

Misc

:

- IO Tweaks : Switched to "noop"

- Some bug fixes
[Magisk] snake218:
Thanks for your work, will test.

A question, do you think overall performance will be better setting zram higher? (currently just 60mb for what I see?) and set read ahead value to 2048 instead 512kb?
[Magisk] Mazellat:
Bro thank you for mod. I want to ask a question. What is the "Cleaner for Custom Roms" in your download folder? :confused:
[Magisk] ilininja:
Read the first post
[Magisk] snake218:
Maybe im not the one to answer, but it restore stock init.qcom.post_boot.sh file.

PD: anyone has the stock thermal-engine.conf?
[Magisk] Pandemic:
Great job RXS bro [MENTION=5033594]korom42[/MENTION] ^^

Verstuurd vanaf mijn D6503 met Tapatalk
[Magisk] korom42:
Well it removes scripts from init.d folder and replaces init.qcom.post_boot.sh with stock one from 7.1.1

For Zram.. overall performance won't be affected that much .. Total free RAM might be slightly less but with great battery savings .. for read ahead value it won't affect anything .. maybe in next version will apply some changes for the balanced profile strictly .

You can find it my fsc custom thermal.e mod thread downloads .. zip name [XZ]_Back_to_stock.zip
[Magisk] Mazellat:
Must I flash Cleaner before flashing mod?
[Magisk] korom42:
Absolutely especially if you're using a custom rom

I also recommend switching to Androplus or stock kernel..

If you have other tweaks on your rom also remove them ..

Please read notes from #2nd posts
[Magisk] Mazellat:
I am using eXzistenZ and Androplus v29. Thank you for your replies...
[Magisk] BloodEdge:
could you please set a delay after boot ?

and why make lowmemorykiller minfree so large, app reload like ****....
[Magisk] illninofan:
Yes. You can just delete it from within the magisk app or just flash the module again to uninstall it
[Magisk] skdubg:
lol...nothing, wrong cpu
[Magisk] Devilsho:
hmm thanks . :p
[Magisk] korom42:
Wow such great results, thanks for sharing your experience .. enjoy it :)

Custom Roms and Kernels can conflict with this MOD so better use stock firmware and stock rootable kernel .. I'm going to release a stock based light ROM for XZ Premium I recommend using it when it's out .. edit : check it here

I don't get your question, I can't tell which profile is better you might try them and compare or ask other users opinion. For stamina, it might conflict with mod mode so better keep it off

I can't promise you but, it won't happen any time soon

Ideally zRAM and SWAP should be turned off on devices with large amount of RAM but don't worry it's not that big of deal you can use it as it is

If you have interactive governor available in your kernel it will automatically selected and tweaked by this mod on boot, and yes EAS/schedutil is known to be a little bit more energy efficient than HMP/Interactive

SP808/821 are similar to sp 810/820 I might add some profiles for those sometime later.

[MENTION=6216702]LUIS CARRASCO[/MENTION] [MENTION=9158939]Devilsho[/MENTION]

I'm going to expand LXT support more devices you can vote for your device from this link below if you want your phone to have a chance

https://linkto.run/p/FH2TFHBI
[Magisk] korom42:
duplicate
[Magisk] smohanv:
I would like to try this module on my Huawei P20 Pro (it is a HiSilicon Kirin 970 processor). Should this work or break my phone!! Has anyone dare trying it on their Huawei P20 Pro.
[Magisk] illninofan:
Only works on Snapdragon-based processors
[Magisk] smohanv:
:good::good::good::good::good:
[Magisk] Shellyaffff:
Butterfly works on custom ROM without cleaning can I use this mod without cleaning

---------- Post added at 06:08 AM ---------- Previous post was at 06:01 AM ----------

Butterfly works on custom ROM without cleaning can I use this mod without cleaning
[Magisk] Shellyaffff:
175302 butterfly benchmark any good ?
[Magisk] YamiYukiSenpai:
If I decide to switch to GlassFish from GlassCannon, do I just install the GlassFish file?
[Magisk] Shellyaffff:
Reboot after deep sleep 6 plus hours ?
[Magisk] lllGurulll:
Dropped 11% in 25 minutes of sot. That's no better than what I had without this addon. Are there other tweaks I'm missing?

This was just from my basic morning routine of checking email, Facebook, and general surfing.
[Magisk] lllGurulll:
Now I'm at 52% with only 1 hour 25 minutes of screen time. I'm clearly not getting the benefit of this tweak.
[Magisk] Medoo atweh:
Is there any more profiles coming soon to SD 835 ? I'm on the butterfly .. I'm not getting that 6 sot at least.

OnePlus 5T
[Magisk] Predatorhaze:
More profiles for 820 please,like heimdall.But i doubt in this tweak like all other tweaks
[Magisk] TENN3R:
Any chance to get SD 821 support?

Not sure if 820 version is compatible with Pixel, which has 821.
[Magisk] YamiYukiSenpai:
So on my Xperia Z5 Compact, I have GlassCannon currently installed. I'm just wondering if anyone experience a few-second delay after unlocking it. I usually notice it when I unlock the device after about 30 min to an hour
[Magisk] brordavid:
I'm on GlassFish here with my Z5c, using los14.1.

No hiccups here. Try GlassFish instead of glasscannon? :)
[Magisk] korom42:
From Magisk manager disable all the other profiles and only keep what you want to use then reboot

Try the default profile for best battery life savings

I highly doubt it not every profile works well on all cpu platform

LXT for sd821 is available now .. here or here or here
[Magisk] zyxel25:
what is the description of fusion profile for 820?
[Magisk] Toni Moon:
I've a sd821, i test all your tweaks with latest Antutu to check the performance, because i was surprised after test your "lxt Butterfly 3.1" but with your latest mods for sd821 the performance its very low, perhaps you are focused in battery tweaks.
[Magisk] romuloass:
I installed the regular mod in my mi5s 821 and after restart it is stuck at the mi logo screen. Ill reflash magisk and try the butterfly now
[Magisk] YamiYukiSenpai:
Forgot to update that post.

It does seem to perform better with GlassFish. And it takes longer for it to slow down. By default, it seems to take at least a day and a half before the phone starts to crawl on official LineageOS. Now, it's about a week.

It's probably placebo, though.
[Magisk] trax7:
[MENTION=5033594]korom42[/MENTION] I've got some suggestions for better settings (GlassFish) on the Z5C and in general.

Keeping two big cores active makes a lot of heat => degrading the battery faster. Keep only 1 active, performance isn't affected, when the system wants a second core, it activates it. Being skewed towards the little cores anyway, this doesn't create a smoothness problem but the phone is way colder :)

Another thing, Adreno Idler workload is 11000 by default, 1000 more than possible values, I've found that 7000-8000 works better and doesn't impede YouTube scrolling through thumbnails. (11000 is too aggressive)

Finally, the GPU power limit is locked. Why? Let the system be able to change it a bit from time to time to satisfy demand. (i didn't see where i can change that, most likely a permission issue)
[Magisk] SpectraFun:
Working with sd845?
[Magisk] trax7:
Your answer is in the OP.
[Magisk] SpectraFun:
No search for 845 and nothing found.
[Magisk] misterpotato:
Wanted to give this a shot on my Mix 2 but failed. Using 16.6 modified Magisk for /cust treble partition. Bootloops on flash, have to remove the module to boot into the system. Not sure what is causing the problem.
[Magisk] whalesplaho:
Everything is in OP.. Have ybu checked tha download link?

---------- Post added at 12:42 PM ---------- Previous post was at 12:39 PM ----------

Confirmed buddy but especially when im playing a game, Word Link downloaded from playstore.. Other profiles too gets really hot.
[Magisk] trax7:
Some of these settings can be applied to the other profiles as well. Afaik GlassFish is always better than GlassCannon tho. Default sacrifices some performance but also heats up due to its improper VM settings, fixed that and no loger heated up as much. Haven't tested Heimdall.
[Magisk] asad1370:
m3g

please port lxt to snapdragon 615 cpu tcl m3g device
[Magisk] whalesplaho:
I too prefer glassfish but somtimes its misbehave.... Wish one can yhu recommend for me to check with and with proper fixes!!!

Heimdall not so good, battery not so good buh seems performance okay.
[Magisk] jjfgsyg:
Im gonna try, on lg g6 with aex rom

Enviado desde mi LG-h870 mediante Tapatalk
[Magisk] qwertyuipo:
where is uninstall.zip file , I'll apply this mod but I scare to break my phone, I don't see the uninstall zip file :))
[Magisk] Didgeridoohan:
It's Magisk, you don't need an uninstall zip...

Just uninstall the module and you're good (there are of course exceptions, depending on what the module does). If you can't boot your phone, the module can be remove from recovery by mounting and editing the Magisk image.
[Magisk] zyxel25:
up
[Magisk] Pandemic:
Spam -__-
[Magisk] plusminus_:
Have you ever tried any of xperator's governor profiles?

I used DeusEx for a long time but yesterday I started using BlackPepper v2 and I like the way it feels (I added a line to set min big CPUs to 1 too)
[Magisk] whalesplaho:
Nice buddy.... Will you share tha edited one so i can try please!

Thanks man!
[Magisk] plusminus_:
Attached - I really hope I haven't broken any rules :fingers-crossed:

I use Kernel Adiutor init.d (with a 5 second delay, I don't know if it helps), with no file extension (I had to add .txt to attach them)

Very late edit: I tried using the script in Magisk's service.d folder for a while, but I still noticed problems (the majority of the time, big core settings did not change, so I had to run the script manually after boot). It seems Kernel Adiutor init.d emulation (now instant, no delay) still works best lol. It probably breaks SafetyNet but I'm using Xposed anyway so it's not a problem for me :P
[Magisk] whalesplaho:
I hope we havent broken any rules too... I ll just remove the txt and also I use ExKM, can I still use dis? One at a time right?

Thanks man.
[Magisk] plusminus_:
I have never used EXKM but I think they will work with the Script Manager, so yes - they're sh files so maybe just change the .txt to .sh :p

Kernel Adiutor doesn't like it when I leave the file extension so I have to remove it lol

yep
[Magisk] whalesplaho:
Will give a trial man.... BlessUP!!!
[Magisk] albinerwesker:
You're making this mistake.

- Copying zip to temp directory

- Installing -LXT™-_v3.3_glassfish.zip

*******************************

Please install Magisk v15.0+!

*******************************

Failed!

! Installation failed
[Magisk] Jomoteck:
Hey i got an Xperia X, what do "Snapdragon settings" do i need to take ?
[Magisk] Toni Moon:
I've an Oneplus 6 with Snapdragon 845, i tried your 835 module Butterfly and runs great, do you plan do a module for sp 845?
[Magisk] simmo26:
Will glassfish module work for the OnePlus 6? Cheers in advance
[Magisk] Adzkii:
which profile?
[Magisk] YamiYukiSenpai:
What do you mean?
[Magisk] Adzkii:
which profile was it that performs better than glassfish?
[Magisk] YamiYukiSenpai:
I'm currently using GlassFish.

GlassCannon was...not good. The one sticking point is that there's a delay in unlocking the phone.
[Magisk] GenTarkin:
Testing Default out on my rooted / stock rom xz1c ...

I noticed in the code you configure zram for use still, Ive observed the CPU overhead associated w/ constant page compression / decompression can introduce lags over time as it starts filling up. So, Ive defaulted to turning zram off on modern devices.

But I also notice you configure several zram parameters, Im not familiar w/ all those settings specific to zram ... are they designed to help minimize the compression / decompression overhead or paging aggressiveness into / out of zram somehow?

Or, shall I just resort to modding your mod to just turn zram off entirely?

Also, disabling this module in Magisk, will reverse all changes correct? I read the FAQ but didnt see this answer , of course I may be blind =P

Update on zram question:

I tried modifying the script to just leave zram off, by commenting out zram swapon and size lines ... that eventually caused boot loop after a few mins, not sure why.

I just chose to try "swap torpedo" module at the same time as this module ... that is working perfectly.
[Magisk] narflynn619:
When I activated the mod through Magisk, the phone doesn't boot when manually turned off. Had to press the 3-button combination in order to reset it and boot normally again. Too bad.
[Magisk] hungvip2001:
Hi, [MENTION=4843146]GenTarkin[/MENTION]

I am using that combo, too. Did you see any improvement?
[Magisk] GenTarkin:
Well whats interesting, is after an hour or so I noticed zram was back =( ... not sure how it got reenabled. Also, I dont know what controls the order of modules being loaded in magisk on boot.

Maybe it was unstable and phone rebooted, and module load just happened to make LXT last, thus reenabling zram =(

no idea.

I will continue experimenting.
[Magisk] four ruttrawit:
Can you make one for the snapdragon 652

I have a samsung galaxy a9 pro with snapdragon 652 and it is very laggy. Yesterday ,I try your tweak for snapdragon 835 which has the same octa cpu and it work well but still lag. Can you make a new one for sp 652?
[Magisk] anon1135:
How do we know if the tweaks are active? It shows it in magisk but is it supposed to change any settings in kernel Adiutor?
[Magisk] trax7:
Yes.

---------- Post added at 07:51 PM ---------- Previous post was at 07:49 PM ----------

Remove anything zram related from the script. Keep in mind that the script itself was made to work with zram in mind... In your place i'd want to remove it too tho. You could tweak the VM settings a bit to address the issue.
[Magisk] GenTarkin:
On, the xz1c ... if I just remove anything zram related, this applies the default zram parameters for the stock ROM. I ended up putting in exactly what swap torpedo does in place of the zram configuration in the mod =)

Works beautifully
[Magisk] GenTarkin:
Well, this is odd, something on my xz1c ... no matter what I set these governor settings to or even selecting a different governor ... theres something else overriding when I touch the screen. All little cores go to 1171mhz and all big cores go to 1332mhz ... so something is overriding whatever governor settings configured when interacting w/ the device.. I dont know what. This is w/ touch boost off on all cores lol.
[Magisk] ronnald13:
Can install this tweak on sony z3?
[Magisk] trax7:
Is it with one of the named SoCs?

Whatever is your answer here is the answer to your question too :)
[Magisk] EmanuelCN:
if i have SD 801 can i run it ?
[Magisk] crusader0071:
Hi i have a E6853 z5p which file will work with my phone i have tried flashing the HEIMDALL for snapdragon 810 but keep getting error in twrp.? please help
[Magisk] ranasrule:
does this kernel play nice with custom kernels?

I'm on a Pixel 2 XL with ElementalX kernel
[Magisk] Reda.da:
How to uninstall this mod ?
[Magisk] NotCat_:
This is not a kernel.
[Magisk] zputnyq:
This mod is a magisk module, you can uninstall/removed it by going to modules section of magisk manager then you will find two options, to remove and to disable. Remember after you done it, reboot your device
[Magisk] Adzkii:
lmao
[Magisk] Chaprnks:
My One plus 2 has a Snapdragon 810. Will the 810 folder modules be compatible with my phone? I know it mentions Xperia on the post; but are the tweaks specific to Xperia devices, or generic Snapdragon 8XX tweaks?
[Magisk] Wenro:
[MENTION=4644172]trax7[/MENTION] Are you still using this? You seem pretty thorough with the profiles. Is it a good idea to run it even with GreenKernel settings for the governor/clocks? GlassFish version.
[Magisk] trax7:
Tried it, but I saw there could be some improvements made, some limitations lifted. In the end, I settled for stock as it gave more stability and control. Battery could be improved with this at cost of performance and vice versa.
[Magisk] asdfghj9:
Please port it to snapdragon 625 too
[Magisk] badbishop11:
Is there a download link for a flashable zip? Cos I don't have Magisk. I use supersu
[Magisk] zputnyq:
It's on first page
[Magisk] badbishop11:
I flashed glassfish from first page but got updater error 1 during the process.
[Magisk] zputnyq:
Maybe it's not suitable with supersu.
[Magisk] badbishop11:
I feel the downloads on the first page are Magisk modules not flashable zips. Please I need the flashable zip. Help anyone?
[Magisk] Pandemic:
2nd page !! Said in the 1st page -__-"
[Magisk] badbishop11:
There's only one download page there but three links. Mega, Media fire and Google drive. All are Magisk modules. Or please quote the flashable zip link lemme download. Or please upload it here if possible. Thanks
[Magisk] zputnyq:
My bad, I forgot you use supersu.

It's a magisk module which meant it's intended for magisk & development of this mod is suspended. So if you want to use it, you must use magisk & as far as I know this mod is suitable with magisk 16.
[Magisk] korom42:
Update December 4th, 2018

Hello everyone, I know you think this project is dead, don't worry it's not .

I've been busy recently I am in my last years in college and about to graduate soon so I am putting more effort and time into that, for now I will keep working on this project Intermittently when I'm free

What have been changed ?

- Since this is longer targeting Xperia Phones the name is changed to LKT™ (Legendary Kernel Tweaks)

What's new ?

* Universal compatibility*

- Dynamic CPU Tweaking (The MOD will automatically recognize your phone/ROM/Kernel and apply governor tweaks accordingly)

- Dynamic VRAM Tweaking (Memory Management is now perfected based on your RAM Capacity)

* Minor Changes *

- Added Junk Code / Cache / Logs Cleanup at boot

- Now using Magisk Unity Script template for easier updates/removal

Supported Phones :

- Any Android version from KitKat to Pie with the following chipsets

Snapdragon 625-626

Snapdragon 636

Snapdragon 652-650

Snapdragon 660

Snapdragon 801-800-805

Snapdragon 810-808

Snapdragon 820-821

Snapdragon 835

Exynos 7420 (Samsung)

Exynos 8890 (Samsung)

Exynos 8895 (Samsung)

Helio x10 (MEDIATEK)

Helio x20-x25 (MEDIATEK)

Kirin 950-955 (HUAWEI)

Kirin 960 (HUAWEI)

Kirin 970 (HUAWEI)[/HIDE]

Also thie source is now available licensed under GNU GPL v3.

Github

And we may add this to Magisk repo [MENTION=4470081]topjohnwu[/MENTION]
[Magisk] Pandemic:
What about snapdragon 845 bro ? I can send files what you need from my xz2
[Magisk] Hayatzada:
where is download link, could download v1 by pressing download button no other link is showing
[Magisk] korom42:
Download link is in the second post

Hey mate, long time no hear from you.
[Magisk] whalesplaho:
Thanks for tha update man...
[Magisk] IcyGlacial:
[MENTION=5033594]korom42[/MENTION]

v1.0 bootlooped my devices

v1.1 installed fine, but seems not succesfully applied, i can't open log file (says permission denied)

running Mi4c MIUI 9 (SD808)

~update~

after changing selinux to permisive, i can open the log file, but just as i thought, the script didn't apply correctly, it only changes my governor to interactive
[Magisk] korom42:
Please download again my previous workaround to fix the "upper case compability issue" caused more problems (It was my mistake since I only tested my previous fix on a linux setup and it worked fine but, the problem that it needs bash v4+ which not available on android).

Now I fixed it using another method and it should work properly, the latest version is still at v1.1 :)
[Magisk] puturaya20:
Awesome most tweak work, smooth for miui 10 mido but drain battery :v
[Magisk] Anarchy16:
is this okay ?