FORUMS
Remove All Ads from XDA

Okitavera's Kernel for Mi 9 SE - v7.7

376 posts
Thanks Meter: 637
 
Post Reply Email Thread

okitavera-kernel
Disclaimer: don't expect anything about overclocked-SoC or high-score anchuchu benchmark

Features

Currently, this kernel incorporates :
  • Dynamic SchedTune boost with Input-Assisted SchedTune Boost
  • BBR(default) and Westwood TCP congestion-avoidance algorithm
  • Exposure Adjustment (DC Dimming)
  • AVB and SafetyNet bypassed
  • KCAL, KLapse, Vibration control, and Sound control
  • and other improvement and fixes, you can inspect yourself at GitHub
  • TL;DR : The best custom karamel (arguable)


ROM Compatibility
  • Kernel version 7.0 and up
    - AOSP-based ROM ONLY
  • Kernel version 1.0-6.1 [EOL]
    - AOSP-based ROM
    - MIUI Stable (Global and Xiaomi.eu)
    - MIUI Developer (Xiaomi.eu, etc) [v9.8.8 Has a bug on Audio, so you can't use it anymore]

Downloads
Zach said this link should be bigger and as you can see he's right


Installation
  • Download kernel.zip file.
  • Boot to TWRP.
  • Backup your dtbo and boot partition.
  • Flash the kernel.zip file.
  • Reboot and done! just like that, your root will be preserved.

Credits
  • Linus, of course.
  • Xiaomi, Thanks for providing the kernel sources (even though it doesn't get updated for the past 4 month)
  • nathanchance
  • RenderBroken
  • kerneltoast
  • kdrag0n
  • flar2
  • arter97
  • franciscofranco
  • krasCGQ
  • faust93
  • pengus77
  • osm0sis for his awesome Anykernel installer (on v1.0-v5.4)
  • ... and other awesome kernel hackers for all of the good patches and fixes


XDA:DevDB Information
Okitavera's Kernel, Kernel for the Xiaomi Mi 9 SE

Contributors
yuneharuka
Source Code: https://github.com/okitavera/msm-4.9-grus-okita

Kernel Special Features: Family friendly, no overclocked.

Version Information
Status: Stable
Current Stable Version: 7.7
Stable Release Date: 2019-09-19

Created 2019-05-26
Last Updated 2019-09-19
The Following 34 Users Say Thank You to okitavera For This Useful Post: [ View ] Gift okitavera Ad-Free
 
 
26th May 2019, 09:27 PM |#2  
okitavera's Avatar
OP Senior Member
Flag Malang, Indonesia
Thanks Meter: 637
 
Donate to Me
More
FAQ (Fricking Asked Question)

Q : When kramel update xdd ?
A : Whenever I want 😛 . fun project != ETA

Q : Can you add <something> ?
A : I made an blocked feature list at the bottom, you can look at that

Q : Can I request something other than that ?
A : You're free to request some features or patches that I can consider it later PM will be ignored 🙂

Q : Magisk user should flash it before or after installing this kernel ?
A : Starting from v2.5, you can flash magisk at anytime, it will be preserved 🙂

Q : What is your app recommendation for tuning this kernel ?
A : I'm using EXKM, and sometimes FKM, both are great apps.
Also, based on user report, Kernel Adiutor/SmartPack can't read the big cluster cpufreq table.

Q : I have an error, should I give you my system logs (dmesg) ?
A : Any additional information would be useful
26th May 2019, 10:17 PM |#3  
okitavera's Avatar
OP Senior Member
Flag Malang, Indonesia
Thanks Meter: 637
 
Donate to Me
More
Special sysfs paths

Input-Assisted SchedTune Boost
Code:
# Enable/disable IASB
/sys/module/iasb/parameters/enable

# Amount of schedtune boost added when boosting mechanism is active
/sys/module/iasb/parameters/boost_percent

# Duration of boosting mechanism
/sys/module/iasb/parameters/boost_duration_ms

# Minimal touch duration that will be accepted before boosting mechanism is triggered
/sys/module/iasb/parameters/min_touch_duration_ms


pengus77's patched Exposure Adjustment (DC Dimming)
Code:
# Minimal exposure that will be added when exposure adjustment is active
/sys/devices/platform/soc/soc:qcom,[email protected]/msm_fb_ea_min

# Enable/disable exposure adjustment
/sys/devices/platform/soc/soc:qcom,[email protected]/msm_fb_ea_enable

# Maximum brightness threshold before exposure will be restored to the default state
/sys/devices/platform/soc/soc:qcom,[email protected]/msm_fb_ea_elvss_off_treshold


Blocked Requests
  • Any weird, unused, or stuff that likely makes the phone in a dangerous or memeable state like overclocking cpu/gpu/display/slimbus and so on.
The Following 11 Users Say Thank You to okitavera For This Useful Post: [ View ] Gift okitavera Ad-Free
26th May 2019, 10:31 PM |#4  
Senior Member
Thanks Meter: 22
 
More
Thanks for your work.
It's compatible with xiaomi.eu rom?
The Following User Says Thank You to ale.giordano For This Useful Post: [ View ] Gift ale.giordano Ad-Free
26th May 2019, 10:36 PM |#5  
okitavera's Avatar
OP Senior Member
Flag Malang, Indonesia
Thanks Meter: 637
 
Donate to Me
More
Quote:
Originally Posted by ale.giordano

Thanks for your work.
It's compatible with xiaomi.eu rom?


Yes. in fact, currently I'm using Xiaomi.eu ROM


But also don't forget to backup your boot and dtbo partition just in case you want to restore it back,
since this kernel uses dtbo from global stable to match the kernel source from Xiaomi.
The Following 3 Users Say Thank You to okitavera For This Useful Post: [ View ] Gift okitavera Ad-Free
26th May 2019, 10:42 PM |#6  
Senior Member
Flag Teheran
Thanks Meter: 846
 
More
What is the kernel version? Thank you

---------- Post added at 11:42 PM ---------- Previous post was at 11:38 PM ----------

A question. I see this: Optional : Flash Magisk Installer zip file after flashing the kernel

I always seen the dev Franco to say that Magisk must be flashed before flashing the kernel because Magisk can mess with ramdisk, etc.. I have done alwys in this way with Pocophone and Franco kernel.
The Following User Says Thank You to denzel09 For This Useful Post: [ View ] Gift denzel09 Ad-Free
26th May 2019, 10:52 PM |#7  
okitavera's Avatar
OP Senior Member
Flag Malang, Indonesia
Thanks Meter: 637
 
Donate to Me
More
Quote:
Originally Posted by denzel09

What is the kernel version? Thank you

---------- Post added at 11:42 PM ---------- Previous post was at 11:38 PM ----------

A question. I see this: Optional : Flash Magisk Installer zip file after flashing the kernel

I always seen the dev Franco to say that Magisk must be flashed before flashing the kernel because Magisk can mess with ramdisk, etc.. I have done alwys in this way with Pocophone and Franco kernel.


it uses kernel 4.9.112 from MiCode with Merged CAF Tag LA.UM.7.8.r1-05600-SDM710.0


For the magisk situations,
I am using a customized AK2 installer for be able to flash kernel on a clean stock boot partition that doesn't have a ramdisk (yes, our boot partition doesn't have ramdisk on it) without needing to flash the magisk first.



So if you guys are not using magisk, just flash like a normal.
but if you're using Magisk, you can reflash magisk after installing or reinstalling the kernel
The Following User Says Thank You to okitavera For This Useful Post: [ View ] Gift okitavera Ad-Free
26th May 2019, 11:17 PM |#8  
PeppeCNN's Avatar
Senior Member
Thanks Meter: 310
 
More
why backup of dtbo n boot?
26th May 2019, 11:28 PM |#9  
bonbibonkers's Avatar
Member
Thanks Meter: 5
 
More
Many thanks )))(
26th May 2019, 11:32 PM |#10  
okitavera's Avatar
OP Senior Member
Flag Malang, Indonesia
Thanks Meter: 637
 
Donate to Me
More
Quote:
Originally Posted by PeppeCNN

why backup of dtbo n boot?


Just in case you want to restore it back to the default rom.

This kernel is using stock global stable dtbo.
And if you try to use dtbo from a custom rom like Xiaomi.eu, it will breaks the camera drivers since the dt aren't compatible with the camera source that are released by xiaomi in their github (well, typical xiaomi's behaviour)
The Following User Says Thank You to okitavera For This Useful Post: [ View ] Gift okitavera Ad-Free
26th May 2019, 11:39 PM |#11  
skyline91's Avatar
Senior Member
Thanks Meter: 59
 
More
Quote:
Originally Posted by yuneharuka

Just in case you want to restore it back to the default rom.

This kernel is using stock global stable dtbo.
And if you try to use dtbo from a custom rom like Xiaomi.eu, it will breaks the camera drivers since the dt aren't compatible with the camera source that are released by xiaomi in their github (well, typical xiaomi's behaviour)

can you flash it from stock img via fastboot? or need to backup?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes