[KERNEL] [PIE] Twisted Kernel V7.6 [Dipper] [21/11/2019-EOL]

Twisted Prime

Senior Member
Dec 24, 2016
417
1,504
0
London
This kernel supports MIUI and custom ROMS based on Pie only

Main features:
- Based on the latest Pie source from LineageOS, Kernel is compatible with custom ROMs
- Upstreamed to Linux 4.9.202
- Upstreamed to CAF LA.UM.7.3.r1-08200-sdm845.0
- Spectrum profiles
- Compiled with GCC 9.2
- Flash and forget

User features:
All these features can be used via EXKM app
- Vibration Control
- KCAL (Colour control)
- Klapse
- Sound Control
- Minimum Brightness Control
- MAC Randomization
- USB Fast Charge
- Flicker free mod (DC dimming)

CPU features:
- CPU Governors: Schedutil
- Schedutil updated with patches from newer Linux versions
- CPU idle improvements by kerneltoast
- CPU input boost
- RCU boost
- Power Saving Work Queues

GPU features:
- 770 MHz and 820 MHz overclocked GPU steps available (optional) (Use at your own risk)
- ULPS enabled for display panel

File system & memory related features:
- NTFS, exFAT, sdFAT and F2FS file systems supported
- IO Schedulers: CFQ, ZEN, Maple, NOOP, Anxiety, Deadline
- F2FS updated from Pixel 3
- RapidGC for better F2FS performance
- Dynamic F-sync
- CRC disabled for better storage performance

Network features:
- TCP algorithms: Westwood, Reno, BBR, Cubic
- Westwood set as default TCP algorithm
- Wireguard VPN Support
- TTL

Under the hood features:
- Xbox and Dualshock controllers supported with drivers updated to the latest
- Safetynet Flags Removed
- Pixel 3 Energy Model
- Audit disabled for less overhead
- Faster app openings
- Disabled Gentle Fair Sleepers for smoother UI
- 32 bit VDSO
- Unused Drivers And Logging removed for a lighter kernel


Known bugs:
- DC dimming not supported, disable it in MIUI settings


Requirements:
Magisk for recommended kernel settings to set

First Time Installation (clean flash):
1.) Download the Kernel from second post
2.) Have Stock kernel and ramdisk installed
3.) Flash Magisk (optional)
3.) Flash the kernel in recovery


Upgrading the kernel:

1.) Download the kernel from the second post
2.) Dirty flash the kernel (this means flashing the kernel without wiping anything)


Restore stock boot partition guide:
This guide will show you how to restore your ROMS stock kernel and ramdisk without losing any data. It will also uninstall Magisk which can be flashed again. Follow this guide if coming from another custom kernel or if something is not working like spectrum or the config file in twisted kernel.

Method 1:
1) Dirty flash your current ROM. This means installing the ROM without wiping anything.
2) Flash Magisk if desired.
3) You are now ready to flash a custom kernel.

Method 2:
1) Extract boot.img from your currently installed ROMs zip file.
2) Go to the install page in TWRP > Flash image > Select the boot.img you extracted and flash it to the boot partition.
3) Reflash Magisk if desired.
4) You have now restored your stock kernel and ramdisk and can now flash a custom kernel.


Hit thanks or donate to support my work

Donators:
Ricardo
Hellboy4

PM if you want your XDA profile linked on this list :)

XDA:DevDB Information
Twisted Kernel, Kernel for the Xiaomi Mi 8

Telegram https://t.me/twistedkernel

Contributors
Twisted Prime for doing all this
YTG for testing and support
milouk for build fixes and scripts
blackened mod team for scripts
bgcngm, abhishek987 for maintaining LOS kernel
Akhil Narang for the latest touchscreen drivers
nathanchance for maintaining linux stable repo
osm0sis for anykernel installer
SultanXDA for Simple LMK, CPU input boost and Devfreq boost
kdrag0n for many optimisations
tytydraco for anxiety IO scheduler and DSBoost
flar2 for vibration control and sound control
Joshuous for Dynamic stune boost
tanish2k09 for Klapse
Arter97 for RapidGC and many improvements
Raphielscape, argraur for work on Kat kernel
frap129 for Spectrum
fransiscofranco for Fsync control
Lord boeffla for Boeffla wakelock blocker
Everyone whom I cherry-picked from
Source Code: https://github.com/TwistedKernel/Twisted-845-P

Version Information
Status: Stable
Current Stable Version: V7.6

Created 2019-02-21
Last Updated 2019-11-21
 
Last edited:

Twisted Prime

Senior Member
Dec 24, 2016
417
1,504
0
London
Notes:

Twisted Kernel configuration file (Magisk required)

A configuration file is stored in internal storage /TKManager/twistedconfig.txt. You can edit this file to change kernel settings such as, performance profiles, vibration strength, fsync, double tap to wake and SELinux modes. Whatever is set in this file will take effect on boot.


Twisted Kernel log file (Magisk required)

Every boot, a log file is created and stored in internal storage /TKManager/log.txt. It shows the date and time kernel settings are applied. Use this to verify if configuration options are applied.


Applying custom settings

To apply custom settings on boot with a kernel manager, set the boot delay to 50 seconds.

Profiles

Spectrum is a simple, profile oriented kernel manager that allows developers to create profiles to serve to their users. This is useful for users who are inexperienced with kernel tweaking or users who want something that's a single click away.
https://play.google.com/store/apps/details?id=org.frap129.spectrum


USB Fastcharge

This feature increases the maximum charging current from a PC to 900 mA from the default value of 500 mA.

F-sync

Disable this to improve memory speed at the risk of data loss during a system crash. I recommend leaving it enabled if you want to keep your data.
 
Last edited:

darkwader18701

Senior Member
May 4, 2015
358
75
0
Welcome and thanks for your hard work[emoji13]
Im using your kernel now on pe experience rom with pixutil gov and faced zero bugs so far [emoji106]

Dude could you post balanced and battery settings here or on the op because i want to tweak the kernel by myself?

greetings

Gesendet von meinem Mi 8 mit Tapatalk
 

Twisted Prime

Senior Member
Dec 24, 2016
417
1,504
0
London
Welcome and thanks for your hard work[emoji13]
Im using your kernel now on pe experience rom with pixutil gov and faced zero bugs so far [emoji106]

Dude could you post balanced and battery settings here or on the op because i want to tweak the kernel by myself?

greetings

Gesendet von meinem Mi 8 mit Tapatalk
This kernel is already tweaked for balanced battery and performance. For more battery lower dynamic stune boost values.