yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S 5 Unified Development] shkedov:
Interesting. However no mobile after flashing LOS16 has been discussed recently in the LOS16 thread, you're very active there, I bet you know better than me.

They had this small problem that flashing also overrided the /efs partition, resulting in no ril networking. I think it was like 2-3 weeks ago.

Restoring efs from an existing twrp backup solved for me the problem then.

So I think it wasn't a problem with this kernel but with what I mentioned. I can't really tell
[Samsung Galaxy S 5 Unified Development] fitittome:
Just reverting to std kernel fixed it but gyros reverted to being us. Life's too short.....
[Samsung Galaxy S 5 Unified Development] fbs:
man I really think you have a hardware issue there.. your model is almost exactly what I use (but here is M instead of F).. the sources are the same for both...

also, everything about sensors and RIL (sim card / calls) is the same as los16 default kernel

tuned kernel is based on los16 (now that boeffla's gone) and I get all their updates...

and every now and then I do a big DIFF on the source to review every single line of code that have been changed from los16 to tuned... (yeah I have that much patient)
[Samsung Galaxy S 5 Unified Development] cdrivex4:
[MENTION=516058]fbs[/MENTION] excellent kernel BTW.

So much more responsive than stock.

But I have noticed perhaps a bug, I dunno.. Twice now over the span very the span of a few days the min CPU clock has somehow set itself to the same as max CPU clock.

This happens in stock ROM but on a more frequent basis.for example not touching anything on stock I use kernel auditor, on the overall screen you see the core load go up and down, turn on/off the cores.. If you go to the CPU screen the max value CPU clock stays where it should but the min value goes up and down. I would have thought the upper and lower values should remain constant here while the actual current core clock goes up and down... Instead the lower value goes up and down in response to load. On stock if you then set the lower clock value to 300 hotplug seems to stop working and min core clock can remain at 300 when not under load,but cores are not turned off as normal.

On your kernel I have noticed that the lower CPU clock seems to have set itself (at random so far)to the same as max clock at some point and stays there unless i change it. At this point I'm not sure how this happens.

Are they both related?

Cpu Gov = tuned, profile- standard, CPU min-268 CPU max 1036, hot plug prof - 3c max, multi core pwrsave- on.
[Samsung Galaxy S 5 Unified Development] guest4711:
My version of kernel adiutor displays a warning when enabling MPDecision (Qualcomm 's hot plugging solution):

You may get problems with changing frequencies when this is enabled.

So it's probably no kernel bug, but a problem with the implementation of CPU hotplugging.

Or it is an annoyance of KA: When input boost is active, it displays the input boost frequency as min CPU frequency...
[Samsung Galaxy S 5 Unified Development] fbs:
I think kernel adiutor can show weird things. I always check the "on boot" tab, which will indicate everything that it will ACTUALLY set.

I have never seen my cpu NOT going as low as 268 everytime...
[Samsung Galaxy S 5 Unified Development] fbs:
this "warning" is shown up on boeffla config app, not kernel adiutor, and can be completely ignored

mpdecision only enables or disables cpus.. it doesn't mess with frequencies afaik. And I don't recommend using it for the sake of performance AND battery life...

And yes, "input boost" can make any app thah shows frequencies to show weird min frequencies...

I never change the number of cores or freqs min/max because the kernel already does it very well for its own...
[Samsung Galaxy S 5 Unified Development] guest4711:
Never used boeffla config app, using kernel adiutor from f-droid: Kernel Adiutor (Manage kernel parameters) - https://f-droid.org/app/com.nhellfire.kerneladiutor
[Samsung Galaxy S 5 Unified Development] guest4711:
Screenshots added.
[Samsung Galaxy S 5 Unified Development] fbs:
This stats are accurate, yeah. But this warning isn't... And if this app enables mpdecision and if you don't manually disable "tuned hotplugger", then, Houston you'll have problems!!!!

I recommend disabling this knob, because mpdecision should always be disabled.

For the record: When you install Tuned kernel, it changes the default status of mpdecision to DISABLED, because built-in Tuned hotplugger is ENABLED by default.

(the only safe way to change from one to another back and forth is via Boeffla App)
[Samsung Galaxy S 5 Unified Development] griz.droidx:
Is there a way to use your governor profiles like battery, battery plus, etc without boeffla config? Eg, in kennel auiditor? Or even from a terminal?
[Samsung Galaxy S 5 Unified Development] shkedov:
The new versions that you create, can you please also publish for kltechn? I'm very curious and wish to have too. ??
[Samsung Galaxy S 5 Unified Development] J-Lindo:
04/19 build for klte (LOS 16 G900V, if it helps) disables 5Ghz wifi. Reverting to 04/09 build brings it back.

If I can be of help, say the word :good:
[Samsung Galaxy S 5 Unified Development] fbs:
The major difference between them is the "target loads" variable. You can tune it from kernel adiutor or terminal... Put a 60 there and you'll have performance, put 100 and you'll have battery extreme.

"above highspeed delay" also influences.. Lower values for performance, higher for battery savings..

if [ "Tuned - standard" == "$2" ]; then
echo "10000 2265600:100000" > /sys/devices/system/cpu/cpufreq/Tuned/above_hispeed_delay
echo "90" > /sys/devices/system/cpu/cpufreq/Tuned/go_hispeed_load
echo "2265600" > /sys/devices/system/cpu/cpufreq/Tuned/hispeed_freq
echo "70" > /sys/devices/system/cpu/cpufreq/Tuned/target_loads
fi

if [ "Tuned - battery" == "$2" ]; then
echo "30000 2265600:120000" > /sys/devices/system/cpu/cpufreq/Tuned/above_hispeed_delay
echo "95" > /sys/devices/system/cpu/cpufreq/Tuned/go_hispeed_load
echo "1958400" > /sys/devices/system/cpu/cpufreq/Tuned/hispeed_freq
echo "80" > /sys/devices/system/cpu/cpufreq/Tuned/target_loads
fi

if [ "Tuned - battery extreme" == "$2" ]; then
echo "40000 2265600:200000" > /sys/devices/system/cpu/cpufreq/Tuned/above_hispeed_delay
echo "99" > /sys/devices/system/cpu/cpufreq/Tuned/go_hispeed_load
echo "1574400" > /sys/devices/system/cpu/cpufreq/Tuned/hispeed_freq
echo "95" > /sys/devices/system/cpu/cpufreq/Tuned/target_loads
fi

if [ "Tuned - performance" == "$2" ]; then
echo "10000 2265600:80000" > /sys/devices/system/cpu/cpufreq/Tuned/above_hispeed_delay
echo "80" > /sys/devices/system/cpu/cpufreq/Tuned/go_hispeed_load
echo "60000" > /sys/devices/system/cpu/cpufreq/Tuned/min_sample_time
echo "60" > /sys/devices/system/cpu/cpufreq/Tuned/target_loads
fi
[Samsung Galaxy S 5 Unified Development] fbs:
I'm using 5ghz right now without any problems. Go reboot that router! lol
[Samsung Galaxy S 5 Unified Development] guest4711:
Your fine kernel allowed me to use latest unofficial Magisk on klte running Havoc 2.4 (with stock kernel it bootlooped into download mode) :good:
[Samsung Galaxy S 5 Unified Development] clockstoper:
works great thanks
[Samsung Galaxy S 5 Unified Development] vingia:
Hi, someone who has g900f klte running LOS 16 + Tuned Kernel can show me battery statistics please
[Samsung Galaxy S 5 Unified Development] mingi20613:
Can you revise all kernel configs?(variants)
[Samsung Galaxy S 5 Unified Development] Senhor_R:
is this kernel compatible with nethunter?
[Samsung Galaxy S 5 Unified Development] griz.droidx:
Thanks fbs'. Very educational

---------- Post added at 05:21 AM ---------- Previous post was at 05:15 AM ----------

I brought this up a bunch but it mainly affected 900v phones on particular carriers. And early on discovered the efs restore trick.

You can restore from n o and p. And from stock m. Not sure what it does I've browsed the partition but can't really understand what gets screwed up. Maybe I'll do adiff of the directories. I just restored tonight myself
[Samsung Galaxy S 5 Unified Development] Aliwu:
Works good , but i had some problems :

When the system starts , the cpu cores works at 100% all of them , and the cpu temp was over 90 degrees , didnt like that.

Cant undervolt , tried with boeffla config and kernel auditor with no results.

Cant control the cpu speed , if i put it on 1.5 max , the min sets to 1.5 too , and then , when i restart the app its like 2.9 max and 2.9 min , or stuff like that. But anyways had a good battery life you just have to fix these stuff.

Im on g900i Kltedv.
[Samsung Galaxy S 5 Unified Development] fbs:
really? man, just uninstall it... :)
[Samsung Galaxy S 5 Unified Development] Aliwu:
That's what i did , but im just trying to help.
[Samsung Galaxy S 5 Unified Development] SNiPe08:
Hello fbs! Big thanks to you for your kernel. My S5 is always fast. But I have suffered from mild lagging in the home screen and almost laggy to slow performance when using some apps specially FB after flashing Tuned LOS 16 kernel.

I never encountered this problem when I use your recent Tuned kernel 4.1-220818-CM15.1 for klteduos (compatible with LOS16). FB was very smooth when scrolling and very snappy. Cannot feel the slowness. But the only problem is if I use this recent kernel to LOS 16, I can't use Hotspot or USB Tethering. It will turn on and suddenly turn off. I cannot share my internet at all. To share it I have to flash your current kernel from your recent kernel and vice versa.

Can I asked for help to edit your recent kernel to fix the hotspot/usb-tethering issue. Big thanks fbs!

Recent Kernel:

https://xdaforums.com/galaxy-s5/unified-development/unofficial-boeffla-kernel-lmkmod-low-t3685662

Phone: Galaxy S5 Duos (klteduos)

System: LOS 16
[Samsung Galaxy S 5 Unified Development] fbs:
So you're saying the most recent version is WORSE than some version from LAST YEAR ? Did you really test this to the exhaustion before saying anything like that?
[Samsung Galaxy S 5 Unified Development] SNiPe08:
Hi fbs. I don't meant any NEGATIVE about your current kernel. I'm just saying what I experienced when I flashed the current kernel against your recent kernel.

CURRENT KERNEL: Facebook app scrolling fast makes lagging and eventually slow, feels like heavy RAM usage of the phone.

Home screen have random lags.

RECENT KERNEL: Facebook app scrolling fast, no lags. Even scrolling fastest as you could, feels no slowness.

Please test it comparing kernels (klteduos or others) maybe you might encounter it too.

Please if the snappy feeling from your recent kernel can be as your current kernel project, it would be great. Big thanks fbs!
[Samsung Galaxy S 5 Unified Development] pascua28:
Hey man. You really need to consider feedbacks like that. The fact that your kernel source's repo doesn't have good history (just squashed ones) and looking into a large diff makes it really hard to pinpoint problems
[Samsung Galaxy S 5 Unified Development] Oliveballoon:
Which one for oreo resurrection klte

just to be sure. Mine is klte but I'm not sure if it will work with oreo 8.00 resurrection. As it says the rom is pie. BTW why many dates. Which one I should pick? Latest one? Right now the battery is running out in 3 h. It sucks. Does this tweak make it better? I hope
[Samsung Galaxy S 5 Unified Development] Danstroem:
Bluetooth and charging current

Hey bts, thank you very much for your kernel! Currently enjoying it

First question: I can't enable Bluetooth. It always gets deactivated after being once in airplane mode. Will provide syslog via pm. I'm on klte with latest modem CQK3. Steps to reproduce:

1. Optionally reboot (Bluetooth works)

2. Enter Airplane mode

3. Leave Airplane mode

4. Bluetooth can't be enabled until next reboot

Anything else to try?

Second question: In boeffla app, the battery charging currents get ignored. It always charges with stock logic (SL). Do you plan to implement it? Shall I provide anything for debugging?

Both issues happen on 190409 and 030419 kernels.

Any hint greatly appreciated.
[Samsung Galaxy S 5 Unified Development] fbs:
are you sure this bluetooth thing isn't rom-related ? does it happen ONLY with tuned kernel?

the charging currents on boeffla app should be working on latest versions (15/05).. I didn't test it much.. but the "SL" will always be shown there
[Samsung Galaxy S 5 Unified Development] fbs:
Humm. Then test the latest one and see if something changed..

I can make some test versions if you're willing to test it and IF you know exactly and consistently how to reproduce this non-snappy-feeling

I have found that sometimes the phone is simply laggy.. then minutes/hours later it's not... and I BET this isn't kernel-related..
[Samsung Galaxy S 5 Unified Development] guest4711:
[MENTION=516058]fbs[/MENTION]

Thanx for the new build. Testing now.

Edit: Bootet fine, no new problems discovered. But I don't use bluetooth...

Edit2: Proximity wake does not work anymore. No problem with previous kernel version nor stock kernel.
[Samsung Galaxy S 5 Unified Development] Danstroem:
Did a retest.

Flashing stock kernel -> Bluetooth works

Flashing tuned kernel -> Bluetooth problem

I'm on LOS16 20190513-microG-klte. Also happens on 20190506-microG-klte. Tried tuned-kernel 030419 to 150519.

Also sometimes happens when only deactivating and activating Bluetooth without touching airplane mode. Maybe some hardware timing issue? Tried to put CPU governor and stuff to performance, but this didn't help.

I was coming from LOS14.1 and original boeffla kernel. The behavior was: Setting charging current to 0 means stock logic (SL). This is essentially full power. Setting a different current will show the actual current and also the limit in the info screen. No SL. Maybe something goes wrong while transferring the target current from app to kernel?

Thanks for any hints.
[Samsung Galaxy S 5 Unified Development] fbs:
How you enable this? which rom?
[Samsung Galaxy S 5 Unified Development] fbs:
I'll test here and see your logs..

"Stock logic" never meant "full power".. quite the oposite.. it limited AC charging to 1800 and USB to 600, AND could go slower and slower if the cable/charger wasn't good enough...

When you forced a charging value, it just didn't enable the algorithm to go slower when needed.

The way it should work now: it tries to use the value you select (which defaults to maximum), but ALSO can go slower to match cable/charger.. I think this is smarter..
[Samsung Galaxy S 5 Unified Development] guest4711:
In Havoc you may find it at

settings -- device gestures -- proximity wake

and a similar

settings -- havoc settings -- ambient display -- ambuent settings -- proximity sensor.

While using and after returning to your kernel from april all is working fine.
[Samsung Galaxy S 5 Unified Development] uVSthem:
Would this work in PixelExperience?

https://xdaforums.com/galaxy-s5/unified-development/rom-pixel-experience-t3850592
[Samsung Galaxy S 5 Unified Development] fbs:
I don't know but I think it could.

if it won't work, just reflash the rom's .zip and nothing else.
[Samsung Galaxy S 5 Unified Development] uVSthem:
I installed it. The phone rebooted without any issues. I'll let you know if there are any issues. Thanks.
[Samsung Galaxy S 5 Unified Development] Danstroem:
Double post, sorry
[Samsung Galaxy S 5 Unified Development] Danstroem:
Does it help, to send logs from stock kernel, while it works?

Well, but then the slider does not have any function really. In old kernel I used it to limit the charging current to 500 mA. This is what the slider did, just setting a max limit. Current will flow with this limit and not above. To match cable/charger, slider can just be set to 0 or max. Currently I can't go slower than 1800, no matter how the slider is set.

I always charge over night, so it's okay if it needs 5 hours. The battery won't heat up so much and live longer. And I sleep better, knowing that the phone won't burn ?
[Samsung Galaxy S 5 Unified Development] fbs:
the slider *should* limit the maximum voltage only.. but I tested here and it seems it will work on the next build only... lol
[Samsung Galaxy S 5 Unified Development] Strupo:
hey la carga no parece pasar del 80%
[Samsung Galaxy S 5 Unified Development] Gbrl95:
I'm experiencing too much heating on my phone eventhough I only put my cpu into 2265. I guess it would eventually damage the hardware of my phone. Is there any recommendations or suggestions that I can do, It is kich appreciated. TIA. :)
[Samsung Galaxy S 5 Unified Development] Paraslili:
helpppppp

im trying to download the kltedv for my sm-g900i but the download link says 410 not found when i try to press it pls help me

EDIT nvm i just had to turn off my ad block
[Samsung Galaxy S 5 Unified Development] Daytor:
EDIT: Resolved.
[Samsung Galaxy S 5 Unified Development] Iliyena:
Using latest Magisk + Module for custom device fingerprint and hiding under Magisk Hide?
[Samsung Galaxy S 5 Unified Development] Daytor:
Edit: Resolved it.

Magisk was at fault.
[Samsung Galaxy S 5 Unified Development] fbs:
new, somewhat faster version is up
[Samsung Galaxy S 5 Unified Development] fbs:
sad to hear that
[Samsung Galaxy S 5 Unified Development] cdrivex4:
[MENTION=516058]fbs[/MENTION] sorry bro but there is something off with today's build of tuned-kernel-060619-LOS16-klte.recovery.zip

At first I thought it might be because I was messing around with 5Gh WiFi having recently separated the said names.

It seems to mainly affect chrome.

I had to roll back to tuned-kernel-150519-LOS16-klte.recovery.zip

The odd thing was most of everything else seemed to be working. As attached image if you new tab, the "articles" load at the bottom, but type a URL in the omnibar and it won't work.

Even of you are trying to go to somewhere like "chrome://flags" it just won't work.

There is some thread buffer error that happens.

I'll try and capture a log as it happens, it doesn't look like it saved.
[Samsung Galaxy S 5 Unified Development] Daytor:
Solved the problem. Magisk hide wasn't working properly.

Same problem. When I tried installing this version, the problem with chrome also appeared.
[Samsung Galaxy S 5 Unified Development] LeppeRMessiaH:
Is it just me or some settings are read-only (I/O read ahead values; virtual memory)? Same behavior in Kernel Adiutor, Boeffla and Smartpack kernel manager. I'm on HavocOS klte.

Thanks
[Samsung Galaxy S 5 Unified Development] fbs:
some stuff was, till 070619 build from today...
[Samsung Galaxy S 5 Unified Development] fbs:
see if it's okay now
[Samsung Galaxy S 5 Unified Development] Daytor:
It works now, thanks
[Samsung Galaxy S 5 Unified Development] LeppeRMessiaH:
Thanks for the reply, unfortunately readahead shows "not in range" and dirty ratio reverts itself to 3 when edited.
[Samsung Galaxy S 5 Unified Development] cdrivex4:
Chrome no longer crashes, but is it just me or is hotplug no longer respecting being set to 1 core Max.
[Samsung Galaxy S 5 Unified Development] fbs:
"read ahead" is changing with boeffla app normally... kernel adiutor is kinda buggy too...

and are you sure dirty ratios arent sticking? here they are..
[Samsung Galaxy S 5 Unified Development] fbs:
fixed on today's build..
[Samsung Galaxy S 5 Unified Development] ashhad101:
Sorry for disturbing you, i just wanted to ask that will this kernel work on AOSP Extended Rom for S5 G900F running android oreo 8.0.1. It runs perfectly on stock kernel but i was looking to squeeze out some extra performance. Thanks
[Samsung Galaxy S 5 Unified Development] Iliyena:
Try it!
[Samsung Galaxy S 5 Unified Development] wooley4766:
Just installed on los16... ?

Looks like charging is slower?

When I update los do i have to flash kernel again?
[Samsung Galaxy S 5 Unified Development] Drhedphuk:
Not if you dirty flash, but, yes if you clean flash.
[Samsung Galaxy S 5 Unified Development] wooley4766:
Thx.. ?
[Samsung Galaxy S 5 Unified Development] Iliyena:
Clean flash removes everything including kernel, and then the ROM gets flashed in a cleaned out place so to speak... A dirty flash replaces everything included in the ROM/OTA so system as well as kernel gets flashed over using the OTAs från LOS-team...

...so Tuned kernel needs to be flashed again after LOS gets an update.
[Samsung Galaxy S 5 Unified Development] cdrivex4:
I can confirm I'm having this also.. If it's just a ROM update you can get to 100%, as soon as you reboot into recovery even while still plugged into mains and flash kernel, you drop to what appears to be about 92%. And for me charging never seems to go past this value.
[Samsung Galaxy S 5 Unified Development] Daytor:
Same problem
[Samsung Galaxy S 5 Unified Development] ajox:
Does anybody has good values or a complete profile for Boeffla Config app?

Iam running latest Los 16 nightly on klte with 11.06.19 of your kernel.

For now I just changed sheduler to bfqz and buffer for both intern and extern to 512. It is running very good.

Iam not sure if it is a good idea to start undervolting. A few days ago I tried a few of these settings and corrupted my Boeffla profile. For now it is running just fine but I'd like to do a little more tweaking.
[Samsung Galaxy S 5 Unified Development] griz.droidx:
There are no one size fits all profiles. The OP says it's ready to go out of the box. But if course you can tweak.

I've read that under volting really doesn't save much battery but if course helps keep the CPU cooler. YMMV.

When I use the boeffla config app I like the profiles in quick settings that you can add. You can add up to five. I used to have one balanced, one for battery saving, and another for performance.

I don't game any unless it's something simple so I'm underclocked to about 1.5Ghz. only to extend battery life. There's a thread where a guy goes into great detail about his profile and it was used in smart pack. It's in the S5 section somewhere.

This is a great kernel by an even greater developer who responds to questions and requests up to a point. He has much more patience than I do in his telegram channel.

If you undervolt do it in small increments every device/chip is different so again there's no one a fits all. Someone has a spread sheet on Google docs for the S5 that details the expected overclocking and other data of models based on when they were produced. IE which batch.

Good luck and read read read.
[Samsung Galaxy S 5 Unified Development] Couchy:
It seems this kernel is more "honest" about the battery level. I'm not sure if this is a bug or a feature. The stock behavior seems to be to eventually bump the reported charge level up to 100% even if the battery has physically stopped charging at around 94%. Then when you reboot the phone, it shows the "true" battery level in the lower 90s again for a while, which is something people often complain about.
[Samsung Galaxy S 5 Unified Development] ajox:
Thanks for that great answer!

Will play with it the next week's until I find good / best settings for my device.

And read read read ?
[Samsung Galaxy S 5 Unified Development] Adzkii:
shall we leave read-ahead as it is? cos its set to 0 lol
[Samsung Galaxy S 5 Unified Development] fbs:
it's 32kb by default. I don't think it's a good idea to force reading files ahead of the time.. it can slow things down..
[Samsung Galaxy S 5 Unified Development] n_boy86:
DOES it works on ported roms, stock samsung s5 , cheers
[Samsung Galaxy S 5 Unified Development] J-Lindo:
Make a backup, test, and report back ?
[Samsung Galaxy S 5 Unified Development] Daytor:
Any new updates planned?
[Samsung Galaxy S 5 Unified Development] Pauleberber:
Hey,

just wanne report that on my S5 (SM-G900F) with official Lineago OS 16 everthing seems to work fine, after i flashed your custom kernel. Before i flashed updated Adreno 330 Drivers. Both improved performace significantly.

I also did some benchmarking. Results are attached.

THX FBS
[Samsung Galaxy S 5 Unified Development] Adzkii:
Did you flash the adreno drivers before or after installing the kernel?
[Samsung Galaxy S 5 Unified Development] saikyom:
charging stuck at 93% can't go beyond that

I have kltekor g900s with havoc rom

on TWRP it's ok battery goes to 100% .