[KERNEL][13/08/16][CM][UT]KTO Kenzo Kernel[Stable]V1.3

ktomov

Senior Member
May 10, 2011
320
583
0
By flashing this kernel, you accept your fate.

This is my personal project, because of the lack of any custom kernels that had the features I want. So let me introduce myself. First of all, I'm noob in kernel developing. I've been using many great kernels on my Desire HD and Nexus 4. I've been hoping for such a kernel for our devices for the last 3 months but as it seems, more time is spent on cooking roms instead of kernel development. So well, here we are. I've been working on that for the last two weeks so, this is probably stable, but the alpha tag will stay at least till more people confirm that it works on different roms.

Initial kernel features:
Compiled with stock toolchain (for now)
Disabled software CRC + option to turn it on
Disabled fsync + option to turn it on
Fixes for high cpu load times, which can cause some governors to not work as they should
Disabled zram - with 2/3 GB of ram in our devices, we don't really need that.
Added Kernel Samepage Merging - off by default
Added FIOPS and SIO i/o schedulers
Added ZZmove and ElementalX cpu governors
Added toggle for Touch boost - you can now turn that off.
Added full KCAL display settings support.
Other optimizations

Safe roms confirmed to be working with the kernel
Official AICP - tested by me
Official RR - tested by @nexuspur (Huge thanks to you mate!)
AOSP+RRO - tested by @sheshuvadrevu
Official AOKP - tested by @DarkHero140
CM by banmeifyouwant - tested by @CodeBreaker13
DU - tested by @Windslash31 and @DarkHero140

Not safe roms
Mokee - giving bootloops
Santosh's CM13 - giving bootloops.

Flashing Instructions
Flash only if you're using CM based roms that follows the official CM device/kernel/proprietary repos! That kernel IS NOT FOR MIUI or AOSP Rom
Make backup of boot in twrp
Flash the kernel zip and reboot

About feature requests
I'm sure that many of you will ask for feature A B C. Please don't mention wake gestures as dt2w and swipe2wake, because I will NOT add them. To rework all the gestures for that is a massive job. Even if it was an easy commit to cherry-pick, I still wont add it, because this is battery drainer. We have FP sensor so use it, or wake the device with the power/volume buttons.

Everything else as request is welcomed, but not guaranteed that it will get in the kernel. Remember this is my project and I'll be adding only features that I find useful.

Downloads
KTO Kenzo Alpha4 (09-07-2016)
KTO Kenzo Stable 1.0 (11-07-2016)
KTO Kenzo Stable 1.1 (17-07-2016)
KTO Kenzo Stable 1.2 (21-07-2016)
KTO Kenzo Stable 1.3 (13-08-2016)

Recommended settings and app for tuning Kernel Adiutor-Mod
CPU
Governor: Alucard on both clusters
Touch boost: Off
Freqs: Little cores - 691-1440; Big cores - 400-1804

GPU
Don't touch it. Let Adreno idler do its job

Power and battery
Power suspend mode: Hybrid

I/O Scheduler
Scheduler: bfq
Read-ahead: 512kb
Add random: on
I/O stats: on
RQ Affinity: 1

KSM
KSM: Off

Entropy
Read: 192
Write: 384

Network
TCP congestion: Westwood
Android logging: Off
Software CRC: Off
Fsync: Off

XDA:DevDB Information
KTO Kenzo, Kernel for the Xiaomi Redmi Note 3

Contributors
ktomov, banmeifyouwant, TheStrix
Source Code: https://github.com/ktomov/android_kernel_xiaomi_msm8956

Kernel Special Features:

Version Information
Status: Stable
Current Stable Version: 1.0
Stable Release Date: 2016-07-11

Created 2016-07-10
Last Updated 2016-07-11
 
Last edited:

ktomov

Senior Member
May 10, 2011
320
583
0
Changelogs:

KTO Stable 1.0
Added adreno idler driver for lowering the GPU power usage
Added the following tcp congestion algorithms: veno, reno, bic, westwood, highspeed, hybla, htcp, vegas, scalable, lp, yeah, illinois (Cubic as default)
Some optimizations here and there

KTO Stable 1.1
Added Alucard and Darkness governors. They both perform well. I'm using Alucard which is tuned a bit.
Some vibration tunes
Changed the toolchain from google's default to @DespairFactor UberToolchain 4.9. Sadly I get bootloops after Miui logo with 5.X so can't even get a logcat. Will debug that in the future.

KTO Stable 1.2
Unlocked 1440MHz for a53 and 1804MHz for a72 cores freqs, just like on Xiaomi's original kernel. (Thanks for the tip @Umang96)
QC 2.0 is added - Haven't seen any change with the stock charger. Temperature is normal. Charging around 1600 mah.
Alucard - tuned one more time for the new freqs.

KTO Stable 1.3
Synched with latest CM sources, so we have new led driver and many bugfixes.
Added hardware CRC32 accelerator
Fixed -2/50% bug for people that had if before
Fixed the sudden 2% battery drop bug
Added power suspend driver
Remove the so called "qc 2.0" fast charging. To be fair, I haven't seen any improvement in charging time, but the batter was going hot. Charge your device overnight.
Some entropy tuning
Other patches for better memory speeds
 
Last edited:

picarito

Senior Member
Feb 10, 2012
516
144
0
Damn finally someone understands that dt2w is pointless on our device lol.thanks for another kernel.will flash on mokee and let you know?

Sent from my Redmi Note 3 using Tapatalk
Update: doesn't work with mokee.it boots and stays in mokee bootscreen and stays there.i wiped cache and dalvik before and after flashing kernel.oh well thanks for the kernel anyways.[emoji106]

Sent from my Redmi Note 3 using Tapatalk
 
  • Like
Reactions: ktomov

ktomov

Senior Member
May 10, 2011
320
583
0
"First of all we are usung atmel touchscreen driver" Not true

check output from geteven -l and post ur screenshot here sir :)
My mistake. It looks like I got focaltech. Guess I got confused with xiaomi's changes to the atmel folders in their kernel source :)

Update: doesn't work with mokee.it boots and stays in mokee bootscreen and stays there.i wiped cache and dalvik before and after flashing kernel.oh well thanks for the kernel anyways.[emoji106]

Sent from my Redmi Note 3 using Tapatalk
Can you share what recovery are you using?

Working on aosp too [emoji4]
Sent from my Redmi Note 3 using Tapatalk
Thanks for the info! Will add it in the first post :)
 
Last edited:
  • Like
Reactions: Plamb1r

ktomov

Senior Member
May 10, 2011
320
583
0
i am on aokp rom) official one, but ater will flash dirty unicorns, dont like cyanogen based roms, they are getting laggy after some time, but aosp based roms still smooth even after 2-3 month))
The reason I'm asking, is so to know on which rom the kernel is working fine so I could add it on the first post. No one wants bootloops lol :D
 

picarito

Senior Member
Feb 10, 2012
516
144
0
My mistake. It looks like I got focaltech. Guess I got confused with xiaomi's changes to the atmel folders in their kernel source :)



Can you share what recovery are you using?



Thanks for the info! Will add it in the first post :)
I'm using alka twrp recovery

Sent from my Redmi Note 3 using Tapatalk