We need a custom kernel asap can anybody do something?

Manhas

Senior Member
Jan 4, 2017
131
22
0
Don't ask for gsi ROMs working or fully working twrp unless someone develops a custom kernel for mi 8 se só lets help each other and make a custom kernel for mi 8 se
 
  • Like
Reactions: firefoot007

longnt2007

Senior Member
Nov 2, 2015
100
138
0
Xiaomi just released kernel for Android P:
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/grus-p-oss/

I've tried to compile that source and everything working good now (unlike previous Android O kernel which 2nd camera not working in Portrait mode and sound is broken when turn off display). Here is my compile kernel with a lot tweaks now can be change in EX Kernel Manager (KCAL, fsync, iosched, block wakelocks...) to gain more battery and performance, I've only tested with MiuiPro 9.3.1 and EU 9.3.1 but this kernel should work with all MIUI roms based on Android 9.0.

Kernel features:
  • Compiled with GCC 8.2.1, mtune=cortex-a75.cortex-a55 (best for Kyro 385 arch.)
  • KCAL Advanced Color Control
  • KLAPSE
  • Min Backlight Control
  • Fsync Control
  • Vibration Control
  • CRC Check Disabled
  • Reduced latency 6ms to 5ms
  • Disabled Gentle Fair Sleepers
  • Power Efficient Workqueues
  • LZ4 Compression Algorithm (default)
  • Westwood TCP Algorithm (default)
  • Boeffla wakelock blocker
  • More I/O scheduler: fiops, sio, mapple, zen, tripndroid, anxiety (default).
  • kgsl: Removed POPP / Wake GPU upon receiving an ioctl rather than upon touch input.
  • Added devfreq boost driver and cpu input boost driver.
  • Added more buffer to enhance EIS.
  • CONFIG_HZ=300
  • Workqueue powersaving.
  • Enable deepest state for CPU cluster.
  • Boost to the max for 1s whenever the top app changes (improves app launch speeds).
  • Zipped up with AnyKernel2.
Download link v1.15 (last update 04/03/2019):
https://drive.google.com/open?id=1lQrpQqgs4Z6v-_SqlKFlttFLkrd951DA
 
Last edited:

Manhas

Senior Member
Jan 4, 2017
131
22
0
Xiaomi just released kernel for Android P:
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/grus-p-oss/

I've tried to compile that source and everything working good now (unlike previous Android O kernel which 2nd camera not working in Portrait mode and sound is broken when turn off display). Here is my compile kernel with a lot tweaks now can be change in EX Kernel Manager (KCAL, fsync, iosched, block wakelocks...) to gain more battery and performance, I've only tested with MiuiPro 9.3.1 and EU 9.3.1 but this kernel should work with all MIUI roms based on Android 9.0.
https://drive.google.com/open?id=1SOeCNa8KT38bP5Qg-OO8ncMEQOm9Xgas
Thanks for Your effort keep updating the kernel everything works in 9.3.7 you can add features to kernel
 
Last edited:

longnt2007

Senior Member
Nov 2, 2015
100
138
0
Sorry for asking , this kernel is for Mi 8 se or Mi 9 se? :confused:
For Mi8 SE. Xiaomi use same source for both Mi8 SE and Mi9 SE but this kernel use Mi8 SE config to build source.

Thanks for Your effort keep updating the kernel everything works in 9.3.7 you can add features to kernel
It's already have a lot features like other custom kernel, tell me if you need another features that useful
  • Compiled with GCC 7.2.1
  • KCAL Advanced Color Control
  • Fsync Control
  • CRC Check Disabled
  • Reduced Latency
  • Disabled Gentle Fair Sleepers
  • Power Efficient Workqueues
  • LZ4 Compression Algorithm
  • Westwood TCP Algorithm (default)
  • Boeffla wakelock blocker
  • More I/O scheduler: Add fiops, sio, mapple, zen, tripndroid.
  • Zipped up with AnyKernel2
 
Last edited:

TacoNikky

Senior Member
Dec 12, 2013
887
1,270
0
Istanbul
It's already have a lot features like other custom kernel, tell me if you need another features that useful
  • Compiled with GCC 7.2.1
  • KCAL Advanced Color Control
  • Fsync Control
  • CRC Check Disabled
  • Reduced Latency
  • Disabled Gentle Fair Sleepers
  • Power Efficient Workqueues
  • LZ4 Compression Algorithm
  • Westwood TCP Algorithm (default)
  • Boeffla wakelock blocker
  • More I/O scheduler: Add fiops, sio, mapple, zen, tripndroid.
  • Zipped up with AnyKernel2
Thanks for your awesome work for our device.
I tried it on Xiaomi.eu 10.2.2 stable version, it didn't boot. After restoring boot partition phone boots but your kernel is gone.

Tried with magisk 18.2 installed, after that I uninstalled magisk and tried again but no luck :eek:
 

longnt2007

Senior Member
Nov 2, 2015
100
138
0
Thanks for your awesome work for our device.
I tried it on Xiaomi.eu 10.2.2 stable version, it didn't boot. After restoring boot partition phone boots but your kernel is gone.

Tried with magisk 18.2 installed, after that I uninstalled magisk and tried again but no luck :eek:
You can try with MiuiPro 9.3.1 in this link (it's based on Miui China developer version with a lot tweak, enhancement... more than Xiaomi.eu, also it's paid version).
https://drive.google.com/open?id=1ZjhLU6Sj7D83g7q2P86r34hek-j3gW2N

I'm using MiuiPro as my daily driver atm so I can't switch to other rom to test my kernel.
 

Manhas

Senior Member
Jan 4, 2017
131
22
0
You can add performance tweaks like overclock CPU and GPU update to 4.9.161 or later battery tweaks and make it compatible with aosp ROMs thanks
 

mysa50

Senior Member
Oct 5, 2014
335
80
48
Installed on masik 2.6 (9.2.28) didn't try any tweaks on ex kernel. Kcal is not working with savoca.apk but phone is working smoothly so far
 

longnt2007

Senior Member
Nov 2, 2015
100
138
0
You can add performance tweaks like overclock CPU and GPU update to 4.9.161 or later battery tweaks and make it compatible with aosp ROMs thanks
I've tried overclock GPU from 504Mhz to 610Mhz but phone insta freeze after boot completed, I think overclock not available for SDM710 (maybe they use efuse lock to prevent clock going higher than default, as SDM710 actually a downclock version of SDM845). For kernel upstream, 95% changes will not affect any performance or bring new feature for Qualcomm ARM64 cpu.

Installed on masik 2.6 (9.2.28) didn't try any tweaks on ex kernel. Kcal is not working with savoca.apk but phone is working smoothly so far
savoca is too old (last update from 2015), you must use EX kernel manager to change KCAL (in Graphics -> Advanced color control).
 

TacoNikky

Senior Member
Dec 12, 2013
887
1,270
0
Istanbul

longnt2007

Senior Member
Nov 2, 2015
100
138
0
I just let you know. Last time when i tried miui pro 9.3.1, wifi didn't work on my device. Does it work with your kernel?

Thanks
Maybe you downloaded a corrupt zip file of MiuiPro 9.3.1 rom (which cause Error 7 when flashing rom in TWRP), that will make wifi doesn't work. I got that corrupt file too and I've fixed that corrupt file and reuploaded again to GDrive in above link.