yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S 5 Unified Development] GeTex:
I'm gonna talk to the KA developer about a method for allowing kernel developers to make a definition file that KA can read and add values, to make it easier for the end user so they don't have to add custom controls by hand.
[Samsung Galaxy S 5 Unified Development] ajinxa:
Any chance of WireGuard support?

https://xdaforums.com/android/development/wireguard-rom-integration-t3711635
[Samsung Galaxy S 5 Unified Development] Saber:
Nope because it requires Linux 3.10 or newer.
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
SmartPack-Kernel Manager v2.3

A new version (V2.3) of Smartpack-kernel Manager is now available.

Download link and change-logs can be found in the usual place, that is my GitHub release page. enjoy...

Please note: I made some changes on the Kernel update page (now it is more device specific). Unfortunately, it will break the download/update section in the older app versions. Hence, I strongly recommend you guys to use this update if you prefer to stay with this app. Further, a new test build for klte (at least) will be out later today for which the "Custom Control" import feature (not available in official KA free version) will be really beneficial... stay tuned...
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
New test builds [Nougat] [klte] [charge_level]

Guys,

Here I'm adding a new test build of my Nougat Kernel for klte which includes.

---> Charge level interface from boeffla kernel, a much advanced and flexible battery driver (all the credits to [MENTION=947981]Lord Boeffla[/MENTION]). Up on booting, the driver will set the default charging rate into 1800 (AC) and 1000 (USB & Wireless). To control the driver, you need to import the attached json files into SmartPack-Kernel Manager or the donated version of KA. If you prefer to stay with KA (free version), do the following to configure charge_levels (else leave as such, since it will apply the above-mentioned default values).

Go to KA --> Custom Control ---> click the "plus" sign ---> select "seekbar" and fill

Tile: Anything

Description: Anything

Min: 0

Max: 2000 (AC) & 1600 (USB & wireless)

Progress:

#!/system/bin/sh

stock="1800"

custom="$(cat /sys/kernel/charge_levels/charge_level_xx)"

if [ "$(cat /sys/kernel/charge_levels/charge_level_xx)" -ne "$stock" ]; then

echo $custom

else

echo $stock

fi

replace xx with ac/usb/wireless (one at a time, you need to create three different seekbars to control AC, USB and wireless levels. Also change stock value to 1000 for USB & wireless)

Applying:

#!/system/bin/sh

progress=$1

echo $progress > /sys/kernel/charge_levels/charge_level_xx (again do not forget to change xx)

Screenshot

Know issue: The progress bar in the charge level (see screenshot) will fall back to the default values once you leave the custom control page although the selected values were applied without any issues (Should be because of some stupid mistakes by me in the json files, please help me if you can?). Wanna check the charging current in real-time? Get this app...

---> The kernel will enable Lazyplug, intelli_thermal & Adreno_idler by default. It will also disable the other stuff like mpdecission, thermal core_control etc. To avoid conflicts, I strongly suggest you guys untick "CPU Hotplug" "GPU" & "Thermal" tags in KA. Of course, you may change those things later, if you wish.

This kernel is already tested in my kltekor. However, I really like to get the comments (especially about charge_level) from some of the klte users before the next weekly update.

Download link for klte is here... enjoy...

/* Download */

klte

[MENTION=5811506]Saber[/MENTION]

Can you check the attached json files? Thanks :)
[Samsung Galaxy S 5 Unified Development] Edgus:
Question

Sorry, but one Question, this test is for oreo or nougat.

First at all, thank you for your time and for this great kernel [MENTION=7060205]sunilpaulmathew[/MENTION]
[Samsung Galaxy S 5 Unified Development] vd69:
Thank you. Is this for Nougat Or Oreo?
[Samsung Galaxy S 5 Unified Development] BrunoFox:
please G900M ...
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
Stupid me...forget to mention... Its for Nougat
[Samsung Galaxy S 5 Unified Development] Edgus:
No problem

It's ok we are human beings
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
Guys... any comments about the last klte test build and Boeffla charge_level interface?
[Samsung Galaxy S 5 Unified Development] BrunoFox:
Good morning developer, I see your good work here in the forum could port this kernel to the G900M ???

would be willing to test and see how everything works, and continue the good work congratulations !!!
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
Hi friend...

G900M is already unified to klte by Lineage-OS team. So, my klte build should work on your device. Can you test and comment back?

Regards...
[Samsung Galaxy S 5 Unified Development] vd69:
Charging levels for AC and USB are fine max 2000 and 1600, wireless can not test. Thank you so much[emoji3]. Are you planning to implement this feature to LOS 15.1 kernel?
[Samsung Galaxy S 5 Unified Development] BadToThePhone:
[MENTION=7060205]sunilpaulmathew[/MENTION] do your updates incorporate any of saber's mods or is his kernal completely different? And since he's not maintaining his kernal anymore should we just install your updates? Would you consider maintaining his kernal? Thanks for everything.
[Samsung Galaxy S 5 Unified Development] Saber:
My changes aren't completely different, for example I removed stuff I didn't like such as UKSM and lazyplug. There are some goodies that aren't in Smartpack yet that can be taken from my repo :)

[MENTION=7060205]sunilpaulmathew[/MENTION] My repo has changes for IO schedulers that I recommend cherry-picking as well as more compiler optimisations (full -o2 versus -oS).
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
Why not, if it is proved good for other users too... Thanks for the testing friend...

Although Saber's kernel has a set of new commits than this kernel, I do not think that our Kernels are too different except we optimized things in our own favorite way. (e.g. Lazyplug and intelli_plug as he just mentioned). Further, there is no point to maintain Saber's work myself as he already announced about porting his work to LOS-15.1 once it becomes more stable. *Time* is also an important matter that will definitely restrict me from committing that job as I'm getting really busy (both professionally & personally) these days.

Thanks. The role of UKSM in SmartPack will be ended with LOS-14.1. I think I already took a lot of commits from your repo :p and will definitely look for other useful stuff like -O2, O3 etc.
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
New builds (stable-v12_r1) for Nougat

Hi guys,

New kernel version (Stable release: v12_r1) for Nougat ROMs are now available to download.

Changes:

Almost same as that of the last klte test build. That is, fast charge is now replaced with charge_level interface. Intelli_thermal, charge_level, adreno_idler and Lazy plug are now enabled by default. Make sure that you are not making any conflicts with the default settings before flashing this build. Of course, you can change in KA thereafter. To know more about controlling chareg_level interface, please read this post.

Download links can be found below as well as in SmartPack-Kernel Manager (inside Tools ---> Update). Please note: You need at least version 2.3 to access the OTA update. Enjoy....

/* Downloads */

kltekor

klte

klteduos

kltespr

[B][COLOR="Red"]Please make sure to download the latest build dated 2018025[/COLOR][/B]

Further, I stop building for kltekdi since it is waste of time (no feedbacks/comments from any users yet).
[Samsung Galaxy S 5 Unified Development] vd69:
Nice.

Is it possible to make a LOS 15.1 kernel with charge_level interface as well.

Thank you for your hard work.
[Samsung Galaxy S 5 Unified Development] gerraourl33t:
Hello, can you please keep continue on develop this kernel for kltekdi? sorry i couldnt send my feedback because im just too lazy to create an account. your kernel works great on my device (kltekdi) the only thing that bothers me is that the UI is kinda laggy when i flashed it. had to tweak it to make it perform better.

thanks for your hardwork
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
Testing now... will be updated tomorrow...

Nice to know that. However, some of the recently changed features like charge_level made building issues (I guess kltekdi uses a totally different battery driver?). So, it will be difficult for me to update the Kernel until I found a way to solve it. Sorry...
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
SmartPack-Kernel Manager v2.4

Guys, another important update to Smartpack-kernel Manager (v2.4) is now available. Download link is on my GitHub release page as well as in the app (only in v2.3).

Why this sudden update?

Because I found some ways to completely control the charge current in the fast_charge (not Boeffla charge_level, that seems still difficult for me). Thanks to [MENTION=5811506]Saber[/MENTION] for raising a question about Boeffla charge level as a PM. Further, I also added a new switch in the CPU section to enable/disable CPU input boost. If everything goes well, both features will be added to official KA (at least the first one). Please see the screenshots for more info.

Screenshots

New builds for Oreo will be added very soon. Sorry to Boeffla charge_level fans, it is not added as I'm still struggling to control it completely (and will not be added if the new charge level feature is fund beneficial by all).

I'm also planning to add one more update to my Nougat Kernel tomorrow with some useful additions suggested by Saber (and without charge_level).
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
New (Oreo-beta-v1.3) builds...

Hi all,

New test builds (beta-v1.3) for Oreo are now up. For change-logs, please visit this page. Thank you very much [MENTION=5811506]Saber[/MENTION] for many many suggestions to improve this Kernel. Download links for all the variants (including kltekdi) can be found at the below link as well as in Smartpack-Kernel Manager (except kltekdi), v2.3 onwards. enjoy.

https://androidfilehost.com/?w=files&flid=241029

Please note: make sure to download proper build (should contain Oreo-beta-v1.3-20180126) for your device.
[Samsung Galaxy S 5 Unified Development] BrunoFox:
really, using here in RR and its kernel works very well, great performance and good battery life, especially with the screen off, very good work, I just did not succeed using your other build made for the TW stock, there were many freezes and lose network, so using your RR kernel I have better fluids and use my G900M handset daily with no problem, keep up the good work!
[Samsung Galaxy S 5 Unified Development] LeppeRMessiaH:
I continue having camera problems with this kernel on crDroid. Is there a specific setting in Kernel Adiutor that can influence it?
[Samsung Galaxy S 5 Unified Development] GeTex:
So what about KA users? I'm getting lost a bit?
[Samsung Galaxy S 5 Unified Development] gerraourl33t:
is the charge_level issues that you mentioned before for kltekdi fixed? i can't test oreo kernel because LOS oreo build is not released yet on kltekdi
[Samsung Galaxy S 5 Unified Development] Blackburn119:
Camera UI went black this also happened to me too on LOS 14.1 kltekor build 25012018.
[Samsung Galaxy S 5 Unified Development] Gargoyles:
I just installed this kernel, I'm on crdroid latest version. My camera is working well for now.
[Samsung Galaxy S 5 Unified Development] Drhedphuk:
I had the same issue when using crDroid. I was using open camera & find that the situation resolved itself when I froze the stock camera using Titanium Backup.
[Samsung Galaxy S 5 Unified Development] LeppeRMessiaH:
I always disable the built-in camera and use OpenCamera but the problem happens with any app using the camera, like Viber for example. It just goes dark and needs a reboot to get fixed for 30 minutes or so
[Samsung Galaxy S 5 Unified Development] vd69:
Very nice for the Oreo build runs just fine until now.thank you.

Is there a way i can raise the charging current for usb and wirelles to 1600 thru root explorer?
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
Don't know what happened to your camera. It worked perfectly for me in LOS-14.1. The only difference in this build from last one is the addition of charge_level. It will anyway removed later today. Lets see it will solve the issue or not.

Thanks for the nice words.

Do you mean the new features (charge control & cpu input boost switch) in KA? If so, both are not yet available in official KA. [MENTION=4251307]micky387[/MENTION] (the one who add charging current support to KA) and myself (CPU Input Control switch) already submitted pull requests to KA repo to merge those features.

The issue is no more as I simply remove that feature from my kernel. Further, Oreo is already available for your device.... link here...

https://androidfilehost.com/?w=files&flid=241014

Thanks. And changing usb and wireless charge current, it might be possible if you turn off the failsafe switch in the battery switch. But not sure abt 1600 and also about root explorer related editing...
[Samsung Galaxy S 5 Unified Development] GeTex:
Hey, disable UKSM, I believe it is causing camera issues after devices have been idle for 12-24 hours a hot boot solves it
[Samsung Galaxy S 5 Unified Development] gerraourl33t:
Tested it on oreo. runs pretty good so far. anyway, do you have a good config for battery life?
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
I happily removed UKSM from the Kernel and building now... will update new version in few hours...

This is my favorite configuration in both LOS-14.1/15.1.

CPU

Gov: Nightmare/Blu_plug; CPU Input Bost:eek:n; Muti core power saving: Aggressive

Voltage: undervolt up to -50

Hotplug: Intelli_plug (Touch boost disabled)

Thermal: Intelli_thermal (VDD restrictions & core control disabled)

GPU: Gov: Default; Adreno_idler on

Power Suspend mode: Auto sleep

All other sections default.
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
New (stable-v12_r2)

Hi guys,

New kernel version (Stable release: v12_r2) for Nougat ROMs are now available to download.

It will hopefully fix the camera related issues reported by some users. For change-logs, please visit here...

Download links can be found below as well as in SmartPack-Kernel Manager (Please note: You need at least version 2.3 to access the OTA updates). Enjoy....

/* Downloads */

kltekor

klte

klteduos

kltespr

kltekdi
[Samsung Galaxy S 5 Unified Development] Blackburn119:
What is the feature 'software CRC control' in KA app?
[Samsung Galaxy S 5 Unified Development] Saber:
It basically attempts to protect the integrity of your data through software, but has a large performance penalty. Even if you value integrity over performance, disabling CRCs has been done by many other kernel devs because it is seen as "safe enough" and even if you lose data, it's probably not because of this change.
[Samsung Galaxy S 5 Unified Development] GeTex:
I'm going to start testing in a bit, since disabling a couple things and changing some settings it has behaved much differently
[Samsung Galaxy S 5 Unified Development] Blackburn119:
I already disabled lazyplug and enable mpdecision back but why cpu still running at 4 cores ?
[Samsung Galaxy S 5 Unified Development] GeTex:
Use Mako Hotplug
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
I haven't monitored mpdecission much. So, don't have much idea. However, mako hotplug always disable 2 cores (unless the CPU load is too heavy) and alucard will restrict the cpu to one core active most time. In either way, if you carefully compare the cpu load, you will hopefully understand that it is practically waste (nearly 10% more CPU load than using Lazyplug).
[Samsung Galaxy S 5 Unified Development] GeTex:
Interested if we can get AutoSMP to work? Very nice hotplugger for my Nexus 4.

Bench testing my GS5 with the kernel, WOW Removing UKSM made a major difference to performance.
[Samsung Galaxy S 5 Unified Development] LeppeRMessiaH:
Thanks for the suggestion. So far it works with uksm disabled. Will report back in case it shows up again.
[Samsung Galaxy S 5 Unified Development] GeTex:
I got ya all covered, I toyed around with the GS5 kernels alot and found what did and didn't work and sideeffects, i just see patterns that match what broke my kernel, i stopped developing because of the sleep of death
[Samsung Galaxy S 5 Unified Development] Blackburn119:
Lately just went back to LOS stock kernel I noticed that LOS devs has changed the default thermal driver and disabled mpdecision to make device running cooler, it's not your kernel problem.
[Samsung Galaxy S 5 Unified Development] furkaan28:
Thank u for this kernel, everything works great :)
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
Not sure abt trying AutoSMP. Haven't found that driver on our platform yet? Might need significant modifications in the code, maybe not worth to invest time.

No need to worry about UKSM anymore as it is already removed from the Kernel (but, KSM is still there).

Thanks friend...
[Samsung Galaxy S 5 Unified Development] GeTex:
I might have a AutoSMP driver for the GS5 still around from my 6.0 kernel. I'll look. It's a really decent hotplug.
[Samsung Galaxy S 5 Unified Development] GeTex:
Okay Camera issue still occurs, turning off KSM all together seems to fix it, can you PM me a test build with KSM removed please?

On a side note UKSM being removed has dramatically improved performance and thermals

Edit: my bad KA turned KSM on, it is default off
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
[MENTION=5414005]GeTex[/MENTION] and who else have camera related issues in the last build, probably try this test build (only for klte now).

Changes: KSM is fully disabled.

Download link is here... Enjoy...

https://xdaforums.com/attachment.php?attachmentid=4403964&stc=1&d=1517284755
[Samsung Galaxy S 5 Unified Development] dezzo77:
I removed KA and replaced with the Smartpack Kernel Manager 2.4 but there is no update option under Tools
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
If update option is not found in the app (under tools, below Custom controls), that means your device is not added to the supported list. Here is the current list of supported devices. please check and let me know whether your device (both name and codename. e.g. "SM-G900F" & "klte") is included or not. Thanks for the comment, anyway...
[Samsung Galaxy S 5 Unified Development] dezzo77:
Hi I am using klte sm-g900t lineage 14.1

I see klte on the list but not the 900t variant
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
That's it, will be added... but you need to wait until the next version of app to get proper ota support.

and I hope I haven't missed any other device?
[Samsung Galaxy S 5 Unified Development] GeTex:
G900T can use the KLTE main branch, it's essentially a G900F with different band support
[Samsung Galaxy S 5 Unified Development] valinor_7:
Could the US Cellular model (SM-G900R4) be added as well? It was merged into the klte branch back in April.
[Samsung Galaxy S 5 Unified Development] BadToThePhone:
From those of you that used saber's recent kernal did you notice any benefits or differences? Would you suggest his suggested settings for this kernal? Thanks
[Samsung Galaxy S 5 Unified Development] GeTex:
I make up my settings as I go. Alot of sabers changes have been merged here.

US Cellular is merged with the KLTE main branch, no need for a specific build

---------- Post added at 05:05 PM ---------- Previous post was at 05:03 PM ----------

I makeup my own settings as I go, I'm a tuner. Most of sabers changes were mergeded afaik

US Celluar has support under the main KLTE branch, it's identical to the sprint version
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
SmartPack-Kernel Manager v2.5

Okay, I updated supported device list (simply added all the devices falls under the Lineage-OS klte generic build). Download link is here. Enjoy...
[Samsung Galaxy S 5 Unified Development] BadToThePhone:
Are you using the last official KLTE or the test one? And are there any differences? Thanks
[Samsung Galaxy S 5 Unified Development] GeTex:
using the test build, KSM being disabled has reduced memory savings marginally but my phone is REALLY quick now. I tuned my governor with quite a few settings, seems to perform VERY nicely now

EDIT: And camera issues appear to be gone for now, renabled ZRAM and changed virtual memory settings, increased low memory killer settings but will probably revert them
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
New (Oreo-beta-v1.4) builds...

Hi all,

New test builds (beta-v1.4) for Oreo ROMs are now up. For change-logs, please visit this page. Download links for all the variants (including kltekdi) can be found at the below link as well as in Smartpack-Kernel Manager (except kltekdi). enjoy.

GitHub

Mirror

AFH

Please note: If you opt AFH, make sure to download proper build (should contain Oreo-beta-v1.4-20180201) for your device.

There will not be any other update for the next three weeks (plz read next post).
[Samsung Galaxy S 5 Unified Development] sunilpaulmathew:
Announcement

***Announcement***

Hi all

I'll be on vacation (and busy with travel) for the next three weeks. I will not have access to my build environment during that whole period. That means I have no way to update any of my projects (including Kernel, Apps etc.) during the mentioned period. Of course, I'll try to read all the messages whenever I got time and internet access.

I'll really appreciate if anyone from this community could spend the time to update, build and share this kernel with the rest of the community. If anyone like to do so, here I'm adding a quick guide.

1. Clone my repo

2. Download Linaro 7.x Toolchain from here

3. Cherry-pick latest commits from Lineage-OS.

4. Properly locate Linaro toolchain into the build_SmartPack.sh (Line# 46)

5. Update version tag if required (line# 54)

6. Run ". build_SmartPack.sh" and the kernel zip files will be generated in the "release_SmartPack.sh" folder.

7. Flash & enjoy (do not forget sharing with others).

Bye for now... & enjoy my absence...
[Samsung Galaxy S 5 Unified Development] Keller0088:
We wont enjoy your absence :(, I hope you have a great vacations, have fun and take care!!! See ya soon!
[Samsung Galaxy S 5 Unified Development] BadToThePhone:
Can you share you settings please? I'm using saber's recommended kernal settings. Thanks
[Samsung Galaxy S 5 Unified Development] aSadArtist:
Flashed the latest kernel version for klte (SmartPack-Kernel-klte-stable-v12_r2-20180127.zip) and every single app crashes after reboot (can't open even Settings or SmartPack Kernel Manager).

- G900F (klte)

- LOS-14.1 (2018-01-25 nightly)

- Nougat 7.1.2

- Set I/O Scheduler to ROW before I installed this (though the official Kernel Adiutor).

Gonna try restore from recovery and try this again, will update post.
[Samsung Galaxy S 5 Unified Development] Gargoyles:
I have the latest version too. All it's fine here.
[Samsung Galaxy S 5 Unified Development] Jason The Greek:
Ηave a nice vacation @ sunilpaulmathew! we will be waiting for you!!
[Samsung Galaxy S 5 Unified Development] aSadArtist:
Last post didn't show up for some reason. Kept getting a 404 error for this page but it's fine now.

All my apps started to crash upon startup after flashing the latest kernel from TWRP.

- G900F (klte)

- Nougat 7.1.2

- SmartPack-Kernel-klte-stable-v12_r2-20180127.zip

- LOS 14.1 (2018-01-25 nightly)

I restored and flashed SmartPack-Kernel-klte-stable-v12-20180118.zip instead, but got a black screen after wiping cache/dalvik and rebooting.

klte? I tried a couple of times but the same problem keep coming up so I'm not sure if there's something else conflicting. Can't pull a logcat while the errors are up since I can't even change USB connection type to MTP to do it through ADB...