yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 Original Android Development] KazuDante:
Welcome to OreKazu-Kernel Project

My main objective for this kernel project is to somewhat keep it simple but include a few features that I find useful , it won't be bloated with all the features out there.

I decided to share this kernel (at first it was a personal project ) with the great S5 community. Im a noob at this so don't expect much (lol) , as far as I know this kernel was complied under KLTE but my variant is a KLTEVZW , so my guess any other variant that can run KLTE kernels this should work as well.

OreKazu-Kernel is still in beta stages but it still works very well.

* Features of this Kernel*

- 268mhz CPU

- Smartmax eps CPU Gov

- CPU Boost

- Input Boost

- CPU Voltage Control

- Mako Hotplug

- GPU Overclocked to 600mhz ( since LOS15.1 still has a power drain issue higher gpu freq will def drain even more , keep that in mind )

- GPU Overclocked to 657mhz

- GPU UnderClocked to 27mhz

- Adreno Idler

- Kcal

- USB Fast Charge

- Kernel Samepage Merging

- LMK (soon switching to [MENTION=516058]fbs[/MENTION] 's version)

- Few TCP Congestion Algorithm

- and maybe other features to come..

Download : Rebasedv3 Latest Download ( !! This link will be updated with each release !!)

XDA:DevDB Information

OreKazu, Kernel for the Samsung Galaxy S5

Contributors

KazuDante, haggertk, sunilpaulmathew, LineageOS , [MENTION=516058]fbs[/MENTION] , [MENTION=4325945]ktoonsez[/MENTION] , [MENTION=365946]hispa[/MENTION]sian, [MENTION=4527059]CrazyGamerGR[/MENTION] and [MENTION=8871747]To[/MENTION] all of you for trying my kernel......Thank You.

Source Code: https://github.com/KazuDante89/android_kernel_samsung_msm8974

Kernel Special Features: Listed in Original Post

Version Information

Status: Beta

Current Beta Version: v2.0

Current Rebasedv3 Version: v1.4

Beta Release Date: 2018-01-27

Created 2018-01-27

Last Updated 2018-03-16
[Galaxy S 5 Original Android Development] KazuDante:
Reserved

01/27/2018 - Initial Release (Beta).

01/29/2018 - Added MSM MPDecision Hotplug

- Sound Control

- Sound Control Gain Level increased by default ( thanks [MENTION=7060205]sunilpaulmathew[/MENTION] ).
[Galaxy S 5 Original Android Development] KazuDante:
Reserved
[Galaxy S 5 Original Android Development] sunilpaulmathew:
Nice to see your kernel [MENTION=6928202]KazuDante[/MENTION]

Good luck...
[Galaxy S 5 Original Android Development] KazuDante:
Its mostly thanks to you that this was possible. Thank you Mathew:highfive:
[Galaxy S 5 Original Android Development] ariel5zal:
Great work...
[Galaxy S 5 Original Android Development] KazuDante:
OreKazu-Kernel v1.6 Released

check the OP for download link (updated as always)

Check reserved for changes made to the kernel.

Enjoy!!
[Galaxy S 5 Original Android Development] KazuDante:
Update

V2.0 is now out .

Kernel as been started back off from the ground ( :crying: ) up due to some issues i faced , heck it might start off from scratch again but that time it would be due a switch to a different ( new laptop) workstation.

-sound control was removed due to instabilities from initial Lin15-1 so adding sound control only made it worst ( in my experience)

-a few other stuff are not added back yet but a few thing were added.

- since this is not stable/official release i won't bore you with the details , as always same download link from OP is updated to current release.
[Galaxy S 5 Original Android Development] KazuDante:
OreKazu-Kernel-Rebased_v1.0

This is just a re-base launch ( yep started from scratch again lol ) but decided to switch it up a little .

Pretty much the same features with some new added ones that were not in the original Orekazu-Kernel.

Latest Lin15-1 kernel commits as of today.

Also added another gpu gov , and i dont remember if the other Orekazu-Kernel had the added cpu frequencies.

Download link in OP.

Enjoy!!
[Galaxy S 5 Original Android Development] ZS-Man:
WireGuard

Hi, what about WireGuard support? Is included in this kernel? Or will be?

Thanks
[Galaxy S 5 Original Android Development] KazuDante:
I will look into it , ive never heard of wire guard b4 , but it is an interesting feature. Can't say for sure that it will work unless you know of another samsung kernel that already had the support in it ( that would be much helpful ) , but i will take a crack at it and see if it will work and not cause a loss in anyway.:highfive:
[Galaxy S 5 Original Android Development] sunilpaulmathew:
It will be difficult to include Wireguard support to any klte kernel atm as it is only available and intended to work on Linux Kernel versions 3.10.y and above.
[Galaxy S 5 Original Android Development] KazuDante:
3.10.x kernels and up? , then sadly it wont be able to be supported.

i guess the only option is if Lineage can support it unless it depends on the kernel aspect as well ,if so then thats a no-go for WireGuard.:crying:
[Galaxy S 5 Original Android Development] jprimero15:
Hi.. Awesome kernel.. Btw i manage to port it on hlte with lineage defconfig... I got many features but some are missing and may not work properly because u're using MSM8974PRO.. Can u support MSM8974 too?? Thanx.. Im new in this kind of things btw..
[Galaxy S 5 Original Android Development] KazuDante:
Not sure , since my setup is limited and manually applying the commit for hlte might be a a troublesome task , but none the less i'll give it a shot .
[Galaxy S 5 Original Android Development] limalvin1203:
Can the CPU increase 3.0 oc
[Galaxy S 5 Original Android Development] kenedielh:
It will burn out your phone
[Galaxy S 5 Original Android Development] limalvin1203:
Boot loop and how long does it take to boot
[Galaxy S 5 Original Android Development] KazuDante:
as [MENTION=7540174]kenedielh[/MENTION] stated , it will overtime burn(sort of speak)out your device, kill the cpu at one point , also to avoid even more battery drain as Lineage has not fully fix battery drain plus the gpu is at 657mhz compared to stock 578mhz max , also due to past experience testing 3.0ghz its very unstable so keeping max at 2.4ghz is the best course of action in this kernel's case. For example when i was testing Venom Kernel my max cpu freq was always set at 15xxmhz and nothing more and gpu at 657mhz max and between a 100-105 - undervolt ( silicon lottery , your mileage may vary ) .

Also since this is just beta thread im just compiling , testing and sharing builds here , Stable release when ready and very stable/smooth/and power efficient even for gamers like myself , it will be in the Unified section and this beta project will be deleted , think of this as a rough-draft for the main thing to come.( hopefully)
[Galaxy S 5 Original Android Development] KazuDante:
You need to update your lineage to [MENTION=2693412]haggertk[/MENTION]'s ( taking this opportunity to thank [MENTION=2693412]haggertk[/MENTION] ) latest build , i doubt my kernel will work on an old build of lineage since many changes have been made on both kernel and rom sides.

Yours: Kernel date : december 2017

Rom : december 2017

Heres the latest klte build : https://androidfilehost.com/?fid=673956719939820275 " download and flash it then flash OreKazu-Kernel-Rebased right after "

that what everyone else is using if running this kernel , both have to be up to date.
[Galaxy S 5 Original Android Development] DavidRN:
Does the governor performance set the clock at the maximum frequency, if it is coming out of the maximum frequency will the throttling be working?!. I tested with 2 cores at 2.8ghz, the clock slowed down to 2.4ghz before reaching 56c. I believe it has not warmed up because of my low Vcore and the room temperature.
[Galaxy S 5 Original Android Development] KazuDante:
performance gov yes , performance profile in zzmove no. but i asked another kernel dev regarding this and he also informed me that even on his device that he works on intellithermal is broken but the way he said so was as if its been broken from the very start , so i think i might remove intellithermal overall since its not so intelligent , but i did notice that temp readings are different even when they on the same format , so it might not be a driver issue from intellithermal but more of a sensor issue regarding actual temps from the hardware.
[Galaxy S 5 Original Android Development] KazuDante:
no i switched to crdroid for now
[Galaxy S 5 Original Android Development] KazuDante:
no i switched to crdroid for now.
[Galaxy S 5 Original Android Development] limalvin1203:
I just try out update drivers 330 adreno for 6.0+ loveing the performance

Have any one try it

https://xdaforums.com/galaxy-s5/unified-development/drivers-qualcomm-adreno-330-drivers-t3794305
[Galaxy S 5 Original Android Development] KazuDante:
probably gonna drain even more of battery
[Galaxy S 5 Original Android Development] Devilsho:
Hey Dev

Can i use this on klteduos ( 900fd ) .if not can u make it for klteduos users. [emoji4]

Am using DotOs oreo 2.2
[Galaxy S 5 Original Android Development] NPina:
Hey! How do you have QF2 Bootloader, i have modems and firmware up to date, but your Bootloader are must more recent compared with mine QB2, I would like to know if exist QL1 ABoot
[Galaxy S 5 Original Android Development] KazuDante:
If you know your variant click here Also this thread is not bootloader related (sort-of) so keep it clean , now i dont know if all those bootloaders are dev friendly or not so it's best to ask [MENTION=2693412]haggertk[/MENTION] since those are from his AFH. I did flash one b4 from his AFH and it was for a 900V variant the QL1 both boot and modem dev friendly version . If yours is a 900v ( verizon ) variant here's the proper thread for that for the modems modem upgrade for 900v variant thread
[Galaxy S 5 Original Android Development] NPina:
Thanks for replying, yes i have modem up to date, i have QL1, but not Bootloader, yes i have one 900V, thx for your help
[Galaxy S 5 Original Android Development] KazuDante:
No problem.
[Galaxy S 5 Original Android Development] Kirito.sh:
Hi,

On my S5 with AOSP Extended ROM don't working the fast charging, what can i do for fix this issue?
[Galaxy S 5 Original Android Development] KazuDante:
https://www.xda-developers.com/improve-fps-pubg-android-games-gfxtool/

For the PUBG Players , this def helped my game out a little.
[Galaxy S 5 Original Android Development] Ramzir1:
s5 g900h

s5 g900h LineageOS 15.1
[Galaxy S 5 Original Android Development] Carlo Borbor:
hello is there an update for this kernel? thank you
[Galaxy S 5 Original Android Development] KazuDante:
No changes on lineage kernel yet so no updates to this kernel for now since this kernel is based of Lineage's kernel.
[Galaxy S 5 Original Android Development] Carlo Borbor:
Thank you. I'm using it right now on Official Nightly build of Lineages 15.1 . It fast and smooth but a little bit battery drain I think because I set the cpu/gpu to performance level.
[Galaxy S 5 Original Android Development] KazuDante:
Lineage still has some major battery drain issues kernel wise and maybe rom wise as well , yes if you set it to performance its def going to really i mean really drain your battery. Im working on a Slim variant on this kernel as well , keeping it like stock just some useful addons like kcal voltage control ioshed and gpu oc , but most of the work is behind the scene , all to attempt to lower battery drain .
[Galaxy S 5 Original Android Development] KazuDante:
Poll request

Just wanted to see everyones honest opinion -straight-to the-point .

Thank You for the feed-back.
[Galaxy S 5 Original Android Development] ItzRsh:
I flashed this kernel on klteduos. It doesn't have kernelsamepage merging,CPU overclocked to 2840(you didn't said it in features). And another problem I faced is every time I want to do antutu benchmark it stuck at first test. But anyway its stable and smooth.
[Galaxy S 5 Original Android Development] KazuDante:
:fingers-crossed: this project was only tested on klte and kltevzw variants , so issues on the other variants are unknown and as always at the user's own risk but I'm glad to hear that its pretty much works fine on the duos variants as well . Since as of today ive seen post regarding Lineage-16 depending on how it goes on that ( Android P on S5 that's crazy ) this project willl most likely go on to the next android build but the naming of the kernel wont be so easy this time , Oreo+KazuDante = OreKazu Kernel , Pie+KazuDante = ????? .
[Galaxy S 5 Original Android Development] Carlo Borbor:
OreKazu is awesome name but PieKazu is a little bit (????). but no matter what name is that I will definitely use your work :) Two Thumbs up!

or PiKazu like Pikachu... just joking
[Galaxy S 5 Original Android Development] KazuDante:
:highfive:
[Galaxy S 5 Original Android Development] limalvin1203:
Ops I download the wrong build
[Galaxy S 5 Original Android Development] irtrin:
This kernel is very good, especcialy rebased version. I tested all kernel which cooperate with rr 15.1 and this is my favorite. Kernel is stable. I do not have problem with camera. Author gave many governors of cpu, I like it. Big thanks.
[Galaxy S 5 Original Android Development] KazuDante:
Important Notice

Just got a surgery done today sadly,

so this project wont be updated as much for a while (not too long i hope) but i will try my best to update it and include a few more while not to bloat it up. In my time using this kernel i found zzmove and using zzmove's hotplug gave me better performance smoothness and battery life ( set hotplug_limit_max to 2 = only 2 cores will be used ) and setting the sleep frequencies to 300 ( setting it to 268mhz i noticed that notification dont come while its in that low state which is good for those who really want battery savings ) ive tested around other hotplugs like allucard or mako and even when its set to 2 core max it always overides the user's desired configuration and again i see zzmove does a better job in that department .

So for anyone that enjoyed my Beta work so far please reply to me what you think about the kernel so far , please dont just ask to add this n that i mean you may but i will consider it since im not trying to make just another bloadted-up kernel with crazy features that 70-80% of users will never use.

My main goals for this kernel - keep it light

- snappy

- keeping game as smooth as possible which is why i went balls to wall on the gpu

- but most important of all the battery life (SOT) standby time ect...

So please share your inputs with me for the moment , LineageOS-15.1 is getting closer n closer to being Official ( the way i see it ) so i have to prepare the final draft to push this out of beta to stable by the time Lin15.1 is also stable.
[Galaxy S 5 Original Android Development] KazuDante:
also there another gov got the gpu ( kt-simple thanks to [MENTION=4325945]ktoonsez[/MENTION] for that one. ) since its the only one that works compared to the crashing of simple_ondemand.

But im glad someone enjoys my work , the better that lineageOS-15.1's kernel get the better for this kernel as well until it can be pushed out of beta to stable.

I will try to make another update soon just to keep it up to date with lin15.1's latest commit.
[Galaxy S 5 Original Android Development] irtrin:
I found problem with one gpu governor. It is a problem when I change gpu governor to cpubw_hwmon and I have set min. freq 27 mhz, phone vibrated and restarted. For example: I use as standard gpu governor msm-adreno-tz and I set freq of 27-462 mhz, when I change without change freq governor to cpubw_hwmon I get restart phone. In my opinion, on this governor 27 mhz is too small, other governors on 27 mhz are active. In my opinion to good choice is remove this governor because is problematic. I use last verion of Kernel Adiutor. I use the RR from the 2 March.

Problem is huge, because I must use recovery TWRP and recovery my rom because phone stuck on bootanimation and I heard of vibration and come back to start of phone. I could not turn on rom. Kernel Adiutor is not too good, in similiar situation aplication like Boefla config set standard settings and rom was active. Recovery could not help me, because I recovery my rom with this kernel. I must flashed rom again.

Nevertheless, this kernel is genial and still love it. Finally, it is only beta.
[Galaxy S 5 Original Android Development] KazuDante:
that problem is not only bound to my kernel all , s5 kernel have that gpu issue , thats why i added kt-simple as a replacement for simple_ondemand .
[Galaxy S 5 Original Android Development] Drhedphuk:
Wishing you a speedy recovery my friend.
[Galaxy S 5 Original Android Development] vd69:
I wish you the best and a fast recovery.
[Galaxy S 5 Original Android Development] KazuDante:
Thank you so much.
[Galaxy S 5 Original Android Development] BrunoFox:
I'm going to use your kernel today, I'll be back to tell you how it works on my device! Thanks for taking the time to Galaxy S5, good work!
[Galaxy S 5 Original Android Development] limalvin1203:
Thank for your help and kepping s5 alive
[Galaxy S 5 Original Android Development] zihar:
jajaj i only found a low perfomance using the default cpu governor i change it ro zzmove zzrelax profile and it works like a charm nice work Kazu uwu
[Galaxy S 5 Original Android Development] KazuDante:
that is what i stated a few days ago , the main star of this kernel is zzmove and its built-in cpu hotplug if used/configured correctly and turning off mpdecision for zzmove hotplug to work its magic.
[Galaxy S 5 Original Android Development] KazuDante:
Rebased Updated to 1.4.3

Not a major update to the rebased variant

-updated to the latest lineage15.1 commits ( see git : https://github.com/KazuDante89/android_kernel_samsung_msm8974/commits/lineage-15.1 )

-switched back (ftm) to stock google 4.9 toolchains due to ubuntu-budgie 18 problems ( libmpfr-dev removed but higher gcc's depends on it )

Download link is updated as always in OP ( rebased version that is )

P.S also noticed that dt.img aka dtb increased in size , normally its suppose to be 1.8mb now its 1.9mb , not sure why but tested it myself and I dont see it affect anything , not sure if the change was due to a commit from Lineage or the change of the toolchain.

Do remember zzmove cpu gov is the main star of this kernel and its best to enable it's hotplug and turning off mpdecision if zzmove hotplug is enabled.

Enjoy!!
[Galaxy S 5 Original Android Development] kenedielh:
I have got disable-hotplug=0 in tunable does this mean hotplug is enabled im a bit comfused there
[Galaxy S 5 Original Android Development] mrclaver:
disable=1 means it is successfully disabled. :)
[Galaxy S 5 Original Android Development] KazuDante:
Updated to V1.4.4

Version 1.4.4 Update

-zzmove hotplug enabled by default for all profiles

-zzmove set as default cpu gov by default

-zzmove zzopt profile set by default

-mpdecision disabled (still there but just disabled since zzmove is enabled and set by default)

- kt-simple gpu governor set as default

-not sure if its a bug but LazyPlug did a magic trick and disappeared :laugh::laugh:

If you are simply updating the kernel over previous version , all setting in Kernel Auditor will still reapply once boot is complete besides Lazyplug.
[Galaxy S 5 Original Android Development] kenedielh:
V 1.4.4 mirror isn't working (Opps no mirrors)
[Galaxy S 5 Original Android Development] KazuDante:
try again , i just clicked on it ( RebasedV1.4.4 in the OP ) but to make it snappy here is the link : https://androidfilehost.com/?fid=818070582850499391
[Galaxy S 5 Original Android Development] LokifiedMee:
Alright I Have Been Waiting A While For Someone To Post Something To See If I Was The Only One Who Had These Problems.

Problems:

1. After Flashing The Latest Rebase v.1.4.4 My Device

G900f Says No Sim Card

2. Also After Flashing I Lost Sound In Games, Playing

Music Etc.

Just Wanted To Know If Anyone Else Had these Problem.

By The Way I'm On The Latest Lineage os March 7/8 Built. Thanks In Advanced
[Galaxy S 5 Original Android Development] KazuDante:
Just tested your report and you are right about #2 , the weird part is that v1.4.4 had no commits regarding either ril or sound , but I was using unleash-OS with the same 1.4.4 and 1.4.5(not released) but the sound and sim are working just fine , which leads me to think that the issue came from Lineage itself .

So , as this is def an issue , i am currently working on a Rebased_v2 (specifically for Lineage) for now run it on stock lin march 7/8 boot , hopefully i will be ready tomorow ( looks like im going to be working all night long ) .

But i do have a request , can you set your phone to screen-timeout 15 seconds and bring the brightness down to the lowest and dont touch the screen until it times out but keep a close watch on the bottom half of the screen and report back if you notice the bottom half of the screen flickers as the screen dim down b4 shutting off.
[Galaxy S 5 Original Android Development] limalvin1203:
Same here
[Galaxy S 5 Original Android Development] KazuDante:
also ril issue? (sim card)
[Galaxy S 5 Original Android Development] limalvin1203:
Sim card and no sound
[Galaxy S 5 Original Android Development] KazuDante:
!!! Notice Regarding OreKazu-Kernel !!!

Recent issues with the kernel has occurred - no sim and no sound.

At first it did not make any sense how these issues came up since (i think) v1.4.3-1.4.4. After those bugs have been reported I tested it out myself again and noticed they are present .

So i rebased the kernel again from scratch ( Re-based v2 ) and the issue still persist. But testing the same kernel on Unleash-OS and RR-6.0 there was no such issue ( since both Unleash and RR-60 are the roms i use as of now as my daily drivers ) so I came to the conclusion that the issue is from Lineage-OS. If it was the kernel itself the same issues should have been reproduced on both Unleash-OS and RR-6.0.

So for now users that have experienced those issues please revert back to a previous working version of the kernel or flash the boot.img of the specific Lineage-OS build that you are currently running . For now all i can do is wait for a newer version of Lineage-OS or some new commits on the kernel side of Lineage-OS-15.1

But for those that run either Unleash-OS or RR-60 will post new build ( Rebasedv2) either way

!!! Kernel Rebased V2 !!!

- was built from the ground up again

- downgraded workstation to ubuntu-budgie 17.xx to gain back a working UberTC 8.0 gcc

- switched to [MENTION=516058]fbs[/MENTION] version of LMK

- added 266 , 600 and 657 GPU frequencies

- applied fix writeback cache trashing

- applied set mc_power_saving to 2 ( in theory this should pack workloads into 1 core instead of 2 or 3 or 4 depending on the workload and help with battery life )

- disable crc to improve performance

- added fix occasional slow sync(1)

- removed ksm ( for now )

- async I/O latency increased

- zzmoove hotplug and hotplug sleep enabled on all profiles by default

- zzmove set as default cpu gov

- kt-simple GPU gov set as default ( simple_on_demand replacement ) since all other gpu governors never work:crying:

- Added IntelliThermalv2

- Fast Charge

- Voltage Control

- Added KCal

- Added many cpu steps

If you are already familiar this kernel then this is pretty much the same kernel except for KSM not being added for the moment .

Download Rebased_v2 : Rebased_v2-Beta
[Galaxy S 5 Original Android Development] irtrin:
Where is allucard cpu governor? I like it and use it. From my experience it is a very good cpu governor. Bad solution.

".Added many cpu steps". Good solution.
[Galaxy S 5 Original Android Development] KazuDante:
If i add allucard cpu gov then you would have to use mpdecision hotplug (turning it on since its off by default because of zzmoove being the default cpu gov and using zzmoove's hotplug by default)
[Galaxy S 5 Original Android Development] irtrin:
I made it always. It was my favorite connection. I tried various options in Kernel Audiutor when I use your awesome kernel.
[Galaxy S 5 Original Android Development] KazuDante:
If your okay with that then I will include it in the kernel since i have more work to do on the kernel right now.
[Galaxy S 5 Original Android Development] irtrin:
I will appreciate it. I wait with pleasure. I do not see ever so much cpu frequency steps, it is cool.