yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 Questions & Answers] Nish53:
Hello people, I am on Op6 and this is an issue I really find irritating. I know this is built into system but was wondering of there is any way to get rid of. The thing i am talking about is receiving the same notification again and again after ignoring it. For example I am using whatsapp and have a message from a specific person whom i choose to ignore so I swipe the message away and its gone but again if i get a message from another person the same previous message pops up again. This happens overall in all messaging apps for me. This is really irritating because whenever i get a message all the previous ignored messages no matter how old popup as notification again. Any fix or help will be appreciated.
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this kernel
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.*/

RZ Kernel aims for as stock experience as possible. It is made from Samsung's stock kernel with stability updates thanks to great guys who made ELS (exynos-linux-stable) branch

It also attempts to increase overall multitasking performance while maintaining good battery life with proper settings

Features

I/O Scheduler: CFQ (default), noop

Governors

schedutil (DEFAULT FOR EAS)

CPU

Support EAS (Energy Aware Scheduling), which balances battery life while maintaining great overall performance

Fine-tuned schedtune values for super fluid user experience

GPU

Fixed interactive governor for better load burst handling

Memory

Support zRAM with default size of 3/4 RAM size

Multiple compression algorithms for zRAM: zstd, lzo, lz4(default), lz4hc

Other tweaks and optimizations

F2FS filesystem support (require latest TWRP)

Init.d support (A BIG MUST for scripters)

Disabled battery-hogging WAKELOCKS

Westwood TCP congestion algorithm (small boost on network speed)

SELinux Permissive (for V4A and etc...)

WireGuard and DriveDroid support

XDA:DevDB Information

RZ Kernel, Kernel for the Samsung Galaxy S8

Contributors

remilia15

Source Code: https://github.com/diepquynh/android_kernel_samsung_universal8895

Kernel Special Features: Energy Aware Scheduling

Version Information

Status: Testing

Created 2019-01-24

Last Updated 2020-08-27
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Download link:

Drive folder

CHANGELOG:

20190124 (OREO): Initial release

20190129 (OREO): Post #36

20190201 (OREO): Post #39

20190203 (OREO): Post #47

20190210 (OREO): Post #60

20190213 (OREO): Post #70

20190218 (OREO): Post #81

20190223 (PIE): Post #88

20190225 (PIE): Post #110

20190227 (PIE): Post #125

20190310 (PIE): Post #128

20190321 (PIE): Post #148

20190329 (PIE): Post #158

20190430 (PIE): Post #172

20190503 (PIE): Post #176

20190828 (PIE): Post #220

20190909 (PIE): Post #245

20191014 (PIE): Post #290

20200406 (PIE): Post #307

20200822 (PIE) [FINAL]: Post #339
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Notices and Q&A

The kernel is based on tw90-android branch of ELS, which is currently at stable state from my experience

Other related features of the kernel were picked from other sources. Credits belong to the owner

I have totally ditched Samsung's HMP implementation by myself, and adapted aosp-common kernel's EAS commits with the brand new kernel scheduler (called Exynos Mobile Scheduler (EMS)) from Exynos 9820 kernel source, which seemed doing nice on our Exynos 8895. Because HMP isn't doing really well on our 8895, and to take advantage of 64bit kernel, I've done EAS by myself

The kernel's EAS figures were self-made using specific CPU capacity benchmarks and energy usage measurements, along with performance benchmarks for better balance and improved as possible

Questions and Answers (Q&A)

Q: My phone gets hot while using this kernel?

A: Short answer: It's your own issue, fix it yourself. Nobody makes a kernel just to burn your hands

Long answer:

Install

Termux

app from Play Store

Enable screen rotation, open

Termux

in landspace mode

Type this command: su -c top -d 2

A list of processes will appear and refresh with 2s interval. Find which process consumes the most CPU usage with [%CPU] column and the package name in ARGS column. You should see the culprit of your issue

Reminder: There is no such thing as "I have nothing in background but the phone still heats up". There definitely something happen and 99% of the time it's some of the rogue apps running in background

Q: Can you add X Y Z feature to this kernel?

A: I want to keep the kernel clean and simple. However, if the feature is really useful, I'll consider adapting it with proper performance check before releasing

Q: I can't connect to any access point after installing this kernel?

A: If you can't connect to an access point on stock/stock-based ROM, simply forget its password and connect again

Q: This kernel is unbootable on my One UI ROM?

A: If you came from previous builds, it's because of Secure Folder. You can either continue using previous build (which I would not recommend) or uninstall Secure Folder, install the latest build and reinstall it again. It's all because I have removed Samsung's FIPS cryptographic API which breaks device encryption

Q: My touchscreen/XYZ hardware stuff doesn't work after flashing kernel

A: Make sure your flashing procedure is right. I'd recommend flashing the kernel with a clean stock boot.img (Magisk or SuperSU-patched one is also okay)

Also, check your device name first before downloading (S8/S8+ and it has to be EXYNOS)
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Installation instructions

Select proper kernel variant to download (Stock SE/One UI, LineageOS, Treble)

Put the downloaded kernel flashable zip in the internal storage or SD card

Flash the zip with ease (no root re-installation needed, because the kernel isn't shipped with prebuilt stock boot.img)

Selecting kernel variant:

Non-treble ROMs: RZ-LineageOS-* (might not compatible with all non-treble ROMs as each might use its own kernel and stuffs)

Treble ROMs: RZ-treble (note that it is meant to be used with hadesTreble). If you didn't install hadesTreble, use non-treble build for non-treble AOSP ROMs

One UI/Stock SE: The remaining build
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Reserved
[Samsung Galaxy S8 & S8+ Cross Device Development] ganish:
Thanks will try 6 hrs sot is great
[Samsung Galaxy S8 & S8+ Cross Device Development] steveman29:
Thank you for this great kernel!

Στάλθηκε από το SM-G955F μου χρησιμοποιώντας Tapatalk
[Samsung Galaxy S8 & S8+ Cross Device Development] gregou:
Is this kernel compatible for Android Pie ?
[Samsung Galaxy S8 & S8+ Cross Device Development] parser:
The more the merrier. Happy to see some more development. Was also curious about EAS feature, velocity had the governer (schedutil) but it freezes like hell.
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
For now none of the custom kernels has EAS by default. Samsung used HMP for our 8895 and recently implemented EAS for 9810

For more information about EAS, read here:

https://elinux.org/images/6/69/Eas-unbiased1.pdf

https://developer.arm.com/open-source/energy-aware-scheduling

schedutil is a governor born for EAS. It bases on the energy costs table to decide which frequency should be chosen under specified workload

This is different from load-based capacity calculations of HMP with interactive governor. It needs almost zero userspace interact. Installing a kernel with EAS is just "Flash and forget". Governor tweaks are unavailable for schedutil because the CPU up/down rates depends on CPU's transition latency, which is independent among all SoCs
[Samsung Galaxy S8 & S8+ Cross Device Development] Maverick Jester:
EAS on the S8? Superb work here, mate. Makes me regret selling my S8+ even more now :(

---------- Post added at 10:13 AM ---------- Previous post was at 10:07 AM ----------

[MENTION=7969495]remilia15[/MENTION] a question regarding the schedtune boost configuration: are you setting the same values for all cgroups (i.e. foreground, top-app etc.) or are these specific per cgroup? Also, when enabling schedtune via the Spectrum profiles, are you also enabling the prefer_idle value?
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
I use 10 and 0 for top-app and foreground with Performance mode, as well as 50 and 60 for Gaming mode

prefer_idle is always 1 for all modes

But I'm still investigating about Exynos thermal driver, because it is too agressive regarding frequencies handling
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Unfortunately no. There haven't been any P kernel sources yet for 8895
[Samsung Galaxy S8 & S8+ Cross Device Development] parser:
I had checked EAS when I first saw schedutil in the kernel I mentioned. Its good to see it implemented into our phone.

Installed the kernel and trying out now.

Alittle request if you don't mind. Wakelock blocker would be nice addon. And if its not much flickerfree.

Thanks for you great work mate!
[Samsung Galaxy S8 & S8+ Cross Device Development] Maverick Jester:
Appreciate the feedback. Thanks.

I agree with the other poster that the Boeffla wakelock blocker along with the PWM flickerfree module being incorporated into your kernel would be fantastic additions.
[Samsung Galaxy S8 & S8+ Cross Device Development] Vaughnn:
I would like to talk to you personally on telegram, please contact me at @ Vaughnell . Thanks
[Samsung Galaxy S8 & S8+ Cross Device Development] GuestK00315:
Hello, thanks for this kernel, i have real all posts on this thread but I can't find how do I change the Setting Spectrum profiles?
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Use Spectrum app. It's free
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
Both of these I have done several tests

For wakelock blocker, I couldn't find any actual battery differences. There weren't any drivers that trigger actual CPU wakelocks so I don't adapt it in the kernel

About flickerfree, it's pretty nice, but I'll still need to investigate more before adding this feature permanently because we all don't want weird burn-in in our AMOLED screen. Moreover, I think there will be another disadvantage of it, which is battery impact

Edit: I actually need to investigate more about wakelocks of this device
[Samsung Galaxy S8 & S8+ Cross Device Development] jgun007:
[MENTION=7969495]remilia15[/MENTION] your kernel has no way of rooting it with super su or magisk and ur kernel doesn't come pre-installed with a rooting method so am asking myself what is the real purpose of this kernel that i cannot root? ?*♂️
[Samsung Galaxy S8 & S8+ Cross Device Development] iamacow:
Hmm i wiped the device and formatted data. so it's a fresh clean install. not sure why i can't get it working.

1. Dirty device magisks 19 not working, so flashed new kernel => boot loop.

2. Didn't figure out what's wrong, so flashed fresh rom. Booted fine. double checked OEM unlock fine.

3. Wiped everything, formatted data, flash kernel => boot loop

4. Wiped everything, flash fresh rom, flash kernel + magisk 19 > boot loop

5 Wiped everything, flash fresh rom, kernel + magisk 18 > boot loop

6 uninstall magisk => boot loop

7 flash old kernel => Booted fine.

LOL don't know what's wrong boss.

<off topic>

Anyway trying out HadesRom now....

S8 is my secondary/play phone, this kernel issue got me around the idea that debloating/fixing up a fresh rom myself is troublesome..

haha.. I actually like many of Samsung's OEM apps over many 3rd party apps. Internet browser, Email, etc. Found that too many people provide "de-samsung" roms that will require lots of time to setup and get the phone working..

HadesRom is pretty good in that aspect.. Near Samsung experience without the bloat.
[Samsung Galaxy S8 & S8+ Cross Device Development] alaa96:
hi i have a question do i have to set the governer to schedutil to enable EAS or is it enabled for what ever governer i use because i use pwrutilx

---------- Post added at 07:04 AM ---------- Previous post was at 07:01 AM ----------

@iamacow did you try to redownload the kernel maybe the download got cut off and did you flash it via latest twrp ?
[Samsung Galaxy S8 & S8+ Cross Device Development] lambik333:
do you have the latest bootloader/ baseband??? im using hadesrom on my S8 also with same RZ kernel and it worx just fine....
[Samsung Galaxy S8 & S8+ Cross Device Development] shayanb2004:
how did you compare it to other kernels like nx?
[Samsung Galaxy S8 & S8+ Cross Device Development] iamacow:
bootloader and baseband from G950FXXU4DSBA_G950FOXM4DSBA_XSP

My fresh rom installation was stock samsung rom..

It may be a case of PEBPAC - Problem exists between phone and chair.

I just reported for the experts to have a look.

I just went from stock rom to Hadesrom, and went with NX kernel, so it's fine to ignore me.
[Samsung Galaxy S8 & S8+ Cross Device Development] GardenData61371:
Hello. Does this kernel support AOSP ROMs like LineageOS?
[Samsung Galaxy S8 & S8+ Cross Device Development] alaa96:
nope
[Samsung Galaxy S8 & S8+ Cross Device Development] bebas00:
I experiencing this issue, for me i got the fix because i use kernel auditor and turn on the "only use wake up cpu to do task" on the CPU tab. You need to turn it off and the kernel goes blazing fast. Goodluck.
[Samsung Galaxy S8 & S8+ Cross Device Development] kristi6.9:
where ?

, i cant find it.
[Samsung Galaxy S8 & S8+ Cross Device Development] bebas00:
If u had kernel auditor app it should be at the bottom of CPU tab
[Samsung Galaxy S8 & S8+ Cross Device Development] LU SONEVESSO:
Is this kernel stable??
[Samsung Galaxy S8 & S8+ Cross Device Development] Diego82:
For me it is
[Samsung Galaxy S8 & S8+ Cross Device Development] Bunkier:
How is the battery life? Is it good? Thanks in advance..
[Samsung Galaxy S8 & S8+ Cross Device Development] Diego82:
With gps ... 4g ... wiifi always on ... at work have very poor signal
[Samsung Galaxy S8 & S8+ Cross Device Development] skynamXIV:
Hmm not even 2h at 50%, that ain't great
[Samsung Galaxy S8 & S8+ Cross Device Development] Nex5x:
Hey,

I tried installing the last Oreo version on two different roms. Both times add_game command in su terminal returns "add_game: not found". I looked in sys/kernel and there is no gamimg_control to edit either.

I noticed using the stock boot.img is said to be the proper install method. I can't extract that from the stock firmware download from sammobile. I suppose that booting into download mode/using Odin is the only way? Just choose the boot image only then install RZ kernel from twrp, then root again? Seems like others would be asking about this if it is that involved. Never had to do this with a galaxy phone. I used the latest Oreo build. About to try Pie but need feedback. Thanks.

---------- Post added at 10:14 AM ---------- Previous post was at 10:12 AM ----------

Also, anyone try this kernel with CarHD rom? Or which ones are known to work (non AOSP I know).
[Samsung Galaxy S8 & S8+ Cross Device Development] Bunkier:
THX for answer. I'm gonna stay with Nx v22.1 coz I'm getting 10-11h sot (with underclocking).. Cheers
[Samsung Galaxy S8 & S8+ Cross Device Development] Diego82:
And this is another older kernel
[Samsung Galaxy S8 & S8+ Cross Device Development] quynhchi2901:
Can you give me the Nx v22.1 kernel link?
[Samsung Galaxy S8 & S8+ Cross Device Development] kooldool:
haha u guys are funny going for SOT only on an old flagship...

As long as EAS beats HMP in performance RZ will beat any non eas kernel on our old flagships.

And if u need to underclock to reach your endless SOT, u can do it on RZ kernel aswell and will get similiar sot...

I have made the eyperience that most people using RZ Kernel are gaming with their phones so the question "how is sot?" cant be answered for your usage patterns... give the Kernel a try or keep quite. i mean how respectless is it to call for another kernel in a Kernel Thread...

---------- Post added at 06:38 PM ---------- Previous post was at 06:24 PM ----------

i recommend the tg group a boot.img can be found in Data of the group. A lot of feedback u can read in tg aswell. but trying is always better than asking in my opinion.
[Samsung Galaxy S8 & S8+ Cross Device Development] LU SONEVESSO:
What's the difference between EAS and HMP?
[Samsung Galaxy S8 & S8+ Cross Device Development] kooldool:
Read OP carefully there are documentations or google.
[Samsung Galaxy S8 & S8+ Cross Device Development] alaa96:
SOT

for people sh*tting on the sot using this kernel check this

btw this is the small s8 ... you cant manage more than 8 to 8 and half hours with its small battery without sacrificing user experience ... iam getting this battery life with normal usage and the phone is blazing fast ...
[Samsung Galaxy S8 & S8+ Cross Device Development] skynamXIV:
This is on RZ kernel ?
[Samsung Galaxy S8 & S8+ Cross Device Development] Nex5x:
Fastest 3DMark OpenGL ES 3.1 and Vulkan score for all S8s!!!!!

Just wanted to let everyone I got the RZ Kernel working with Pie and got the fastest 3DMark OpenGL ES 3.1 and Vulkan score out of 2800 S8's no joke!!! I did the add_game instructions with 3DMark. Thank you to the OP for a great kernel! I can't remember which govenor I was using though, I think the default. Pwrutilx seems good as well for the GPU. For some reason my previous attempts at loading the kernel didnt work but with LightROM Pie version it did, I believe I wiped all including system, flashed the ROM, then the kernel, then the newest Magisk, then do first boot.

GREAT kernel and gaming profile. I also used the Mtweaks version of Kernel Adiutor included with LightROM (though I think it may be available off the play store for other ROMs, there is a github repo) to make a profile with max clock for cpu and gpu with min at the max for both and with a low work threshold triping max clock for some older unoptimized PPSSPP PSP emulation games that would not use more than 15 to 20% of the cpu and gpu. Doesnt get hot for Lara Croft Legend and did make a difference in that use case. I recommend watching usage of GPU and CPU for each game to decide your strategy. For the Mtweaks modded Kernel Adiutor (weird spelling is intentional by the author of it.

Check out the highest 3DMark score for Vulkan of all S8's! Maybe you can beat it. Pic attached.
[Samsung Galaxy S8 & S8+ Cross Device Development] KingPiccolo14:
using the last supported spectrum kernel for the s8 on alexis rom 7.8. getting about 4hrs sot, heavy usage with instagram, whatsapp and twitter, as well as spotify playback on the battery preset in spectrum. this is pretty good, with little performance loss imo

really wished the latest kernel supported spectrum, but this is a price we pay in modding (some features cant be added)

thanks for the great kernel!
[Samsung Galaxy S8 & S8+ Cross Device Development] alaa96:
spectrum is not needed iam getting way more tgan 4 hours of sot without it sometimes double your sot ;)
[Samsung Galaxy S8 & S8+ Cross Device Development] Nex5x:
Just need to clarify that in my post above I referenced using Kernel Adiutor, it was the Mtweaks modded version available here on github https://github.com/morogoku/MTweaks-KernelAdiutorMOD/releases . There is also an old XDA page for it. This version includes the ability to change GPU speed and how fast it ramps up. To make a profile look under Tools, Profile. I had to click Create, then New and make the desired changes then click the checkmark to finish and name it. I made the values wrong before starting the profile creation so it could detect the changes. Maybe it would detect the changes if you by switched the values back and forth real quick but I didnt try that. Also, 3DMark taxes your system like a stress test almost. At 572 Mhz GPU speed I had it stall a couple times but never had an issue outside 3DMark even in demanding games. So it's up to you. Also, you can change it to just run one of the tests if u want, not both everytime which is a bit annoying. Have fun. Thanks again OP.
[Samsung Galaxy S8 & S8+ Cross Device Development] LU SONEVESSO:
Dev I'm having a problem, everytime I try to add a game to gaming mode I get an error, please if someone know how to solve it, let me know :rolleyes:
[Samsung Galaxy S8 & S8+ Cross Device Development] johnx818:
Don't use the brackets with the name of the package.

How do I know gaming mode is working? I added my game and it says it's been added. Is there an app where I can monitor the CPU/GPU speeds while in-game?
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
CPUfloat is what you need
[Samsung Galaxy S8 & S8+ Cross Device Development] shayanb2004:
[MENTION=7969495]remilia15[/MENTION] may I ask why the big cores are doing most of the computing instead of little ones?

little cores are resting most of the time
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
I applied schedtune touch boosting, so it should migrate tasks to the big cluster to improve UI performance. The opposite is true if you don't touch the screen
[Samsung Galaxy S8 & S8+ Cross Device Development] shayanb2004:
thats why I got surprised cuz when I wasnt touching my screen big cores were working (with high freq) and the little cores were resting (on the lowest freq)

the direction of migrating tasks seems opposite :/
[Samsung Galaxy S8 & S8+ Cross Device Development] Nex5x:
Update ll

Remilia15,

Would it be possible to get an updated version of this kernel with the upcoming August security update? Thank you.
[Samsung Galaxy S8 & S8+ Cross Device Development] alaa96:
comming update will be amazing wait and see
[Samsung Galaxy S8 & S8+ Cross Device Development] Inasbae:
?

Anyone can help me? On stock pie

But when i try to restore my kernel backup, everything is ok again

[IMG="lock"]https://i.ibb.co/wwNMn68/Screenshot-20190819-170457-Vi-PER4-Android-FX.jpg[/IMG]

RZ Latest version
[Samsung Galaxy S8 & S8+ Cross Device Development] remilia15:
The long awaiting is over. Here comes the most stabilized and performant RZ build ever released, along with treble support

CHANGELOG:

Upgraded to Linux 4.4.186

Adapted hadesTreble build (found in treble Pie path in download link)

Adapted Samsung's new 4.14 (or IOW, S10's) EAS with better performance and stability

Adapted new RMM lock bypass method for One UI (thanks to [MENTION=4658360]corsicanu[/MENTION])

Adapted Exynos code optimization for kernel

Ditched gaming mode. It was way too unstable to use, though it will be back when an app is made for it

Fixes most of the crashes and performance/battery issues from previous builds

Killed unuseful features

Reconfigured thermal for performance and stability

Removed pwrutilx governor, in replace of new schedutil tuneables (can be found using EXKM or FKM)

Download link is updated in OP! Please check it out everyone
[Samsung Galaxy S8 & S8+ Cross Device Development] tomaasz:
Thanks! There are 2 versions now. Could you explain for what roms we can use them?

Wysłane z mojego SM-G950F przy użyciu Tapatalka
[Samsung Galaxy S8 & S8+ Cross Device Development] ih8snow.lc:
Just wondering is there a way you can overclock the display via the kernel and can you undervolt the cpu if it isnt at the lowest possible voltage yet.
[Samsung Galaxy S8 & S8+ Cross Device Development] nemesisexsp:
OneUI version is for stock based ROMs. Treble version is for GSI ROMs. Is this your doubt? Inside OneUI's folder there are two versions, one is the old one and the other is the newest. I think it's pretty self explanatory the way the dev organized the folders in Google drive, but let me know if it isn't clear enough yet. :svetius:
[Samsung Galaxy S8 & S8+ Cross Device Development] tomaasz:
Thanks, what GSI roms have got for S8? Trible and LOS only?

Wysłane z mojego SM-G950F przy użyciu Tapatalka
[Samsung Galaxy S8 & S8+ Cross Device Development] not named:
There are like 10+ GSIs compatible right now. Check here: https://xdaforums.com/showpost.php?p=79993398&postcount=3