[Xiaomi Mi 5X ROMs, Kernels, Recoveries, & Other De] bragon01:
Velocity Kernel • Mi 5X Installer Port

by kdragon and tytydraco​

Introduction

Velocity Kernel was made to provide the best possible experience on all devices. We strive to provide the perfect balance of performance and battery life. Features are also plentiful, but features that nobody uses will not be included. We also completely debloat all our kernels and aim for small sizes relative to other kernels. Due to the small size and careful debloating, boot time is also improved.

Compatibility

This kernel ZIP supports only Mi A1 ported custom ROMs. Simply flash the kernel after flashing your Mi A1 ported ROM like my [PORT][OFFICIAL][ROM][8.1][Pixel Experience][07/06/18]

Features

​ ​ ​ ​ • Latest upstream Linux LTS 3.18.

112

​ ​ ​ ​ • CPU underclock to 307 MHz to save battery

​ ​ ​ ​ • CPU overclock to 2208 MHz for a good performance + battery balance

​ ​ ​ ​ • Max performance overclock: 2400 MHz

​ ​ ​ ​ • GPU overclock to 855 MHz

​ ​ ​ ​ • Undervolted CPU on lower frequencies

​ ​ ​ ​ • Optimized GPU governor

​ ​ ​ ​ • Improved 3.5mm jack output

​ ​ ​ ​ • Energy Aware Scheduling

​ ​ ​ ​ • CPU governors: elementalx, zzmoove, yankactive, relaxed, alucard, nightmare, chill, blu_active, darkness, intelliactive, bioshock, impulse

​ ​ ​ ​ • EAS CPU governors: electroutil, schedutil, pwrutilx, sched,

helix_schedutil

, energy-dcfc, alucardsched, darknesssched

​ ​ ​ ​ • IO schedulers: fiops, zen, sioplus, row, tripndroid,

maple

, cfq, noop, deadline, bfq

​ ​ ​ ​ • Updated ExFAT drivers that support TRIM (faster long-term performance)

​ ​ ​ ​ • Compiled with latest DragonTC Clang 7.0

​ ​ ​ ​ • Polly optimizations

​ ​ ​ ​ • Full flashable zip is only 9.4 MB, compared to other kernels at 14+ MB

​ ​ ​ ​ • Faster boot due to removing unnecessary drivers and boosting CPU speed

​ ​ ​ ​ • Higher touchscreen scanning frequency

​ ​ ​ ​ • Quick wakeup and input boost for faster wake

​ ​ ​ ​ • Fingerprint boost for faster fingerprint wake

​ ​ ​ ​ • Updated timer subsystem

​ ​ ​ ​ • 100 Hz timer to maximize performance

​ ​ ​ ​ • Ultra Kernel Samepage Merging (UKSM)

​ ​ ​ ​ • ZRAM compressors: lzo,

lz4

, lz4hc, zstd (higher compressing)

​ ​ ​ ​ • Reduced pop when plugging headphones in

​ ​ ​ ​ • Intellithermal 3.0

​ ​ ​ ​ • KCAL advanced color control

​ ​ ​ ​ • Wakelock blocker with predefined list

​ ​ ​ ​ • Customizable CRC check and Fsync

​ ​ ​ ​ • Hotpluggers:

autosmp

, thunderplug, blu_plug, intelliplug, thunderplug, lazy_plug, msm_hotplug

​ ​ ​ ​ • Adreno Idler

​ ​ ​ ​ • Backlight dimmer (extremely low brightness)

​ ​ ​ ​ • Adreno Boost

​ ​ ​ ​ • Sound output control

​ ​ ​ ​ • Forced USB fast charge

​ ​ ​ ​ • Westwood TCP congestion control

​ ​ ​ ​ • High performance audio

​ ​ ​ ​ • Improved scrolling performance

​ ​ ​ ​ • Various optimizations from Google Pixel kernels

​ ​ ​ ​ • ChaCha20 crypto algorithm, NEON accelerated

​ ​ ​ ​ • Good battery life

​ ​ ​ ​ • Fast and cryptographically secure random data source based on NEON ChaCha20 (faster than frandom)

​ ​ ​ ​ • Tuned interactive governor

​ ​ ​ ​ • Works on stock and custom ROMs

​ ​ ​ ​ • Vibration intensity control

​ ​ ​ ​ • Wakelocks blocked by default

​ ​ ​ ​ • Double tap to wake

​ ​ ​ ​ • Qnovo charging driver for temperature regulation

​ ​ ​ ​ • Latest WireGuard VPN snapshot

​ ​ ​ ​ • Updated crypto algorithms

​ ​ ​ ​ • Removed legacy drivers

​ ​ ​ ​ • Improved boot time

​ ​ ​ ​ • Optimized and updated touchscreen driver

​ ​ ​ ​ • Ext4 optimizations

​ ​ ​ ​ • Transparent hugepages

​ ​ ​ ​ • Updated zsmalloc

​ ​ ​ ​ • Sweep2wake, sweep2sleep, and doubletap2wake gestures

​ ​ ​ ​ • Updated memory management, mutex, locking

​ ​ ​ ​ • Updated Wi-Fi drivers

​ ​ ​ ​ • Explicit prefetch instructions

​ ​ ​ ​ • Optimized memory page copying

​ ​ ​ ​ • Countless other improvements and optimizations

​ ​ ​ ​ • Transparent

Project Treble

: one kernel zip supports all

​ ​ ​ ​ • Flash and forget - sensible defaults are set

Downloads

Google Drive

How to install:

- Unlock your bootloader

- [Optional] Flash A1 Oreo Firmware

- Flash Oreo TWRP modded

- Flash Mi A1 ported ROM zip through TWRP (my [PORT][OFFICIAL][ROM][8.1][Pixel Experience][07/06/18])

- Flash port Velocity Kernel from Download section

- In TWRP go to Advanced->File Manager to replace a1oreo.dtb in /sbin/a1oreo.dtb with this one

- In TWRP go to Advanced->Terminal->File Manager to check mode 777 for a1oreo.dtb

- In TWRP go to Advanced -> Terminal -> Write "a1to5x" -> press Enter

- Reboot to System

[Optional] Install Spectrum and select predefined profile

Credits

Without the help and contributions of these people, this kernel would not exist:

​ ​ ​ ​ • nathanchance: upstreaming, kbuild commits, Flash kernel, many other commits

​ ​ ​ ​ • ghpranav: MetaPhoenix kernel, wake gestures on kernel_tissot (savoca, showp1984, ryan-andri), EAS, help, and more

​ ​ ​ ​ • franciscofranco: config options, fsync control, many other commits

​ ​ ​ ​ • Flex1911: Void kernel, base commits

​ ​ ​ ​ • flar2: old wake gestures, many other commits that shaped the kernel

​ ​ ​ ​ • frap129: Maple I/O scheduler (base for Marrow), Electron kernel, many other commits

​ ​ ​ ​ • Alek Dev: overclocking values for CPU and GPU, undervolting and overvolting values

​ ​ ​ ​ • nine7nine: EAS governors, EAS commits, optimized ext4 fsync, many other commits

​ ​ ​ ​ • gougous3: help with tuning Spectrum profiles, helix_schedutil tunables

​ ​ ​ ​ • Everyone else mentioned in Git history

Enjoy!

Contributors

kdragon, tytydraco

Kernel Special Features:

Version Information

Status: Stable

Current Stable Version: r7

Stable Release Date: 2018-06-06