[kernel] [7.x.x] [Lineage/Aosp] Paradox Kernel R4 [condor]

DarkElf

Senior Member
Nov 20, 2015
96
151
73
Paradox Kernel
HTML:
#include <std_disclaimer.h>
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this KERNEL
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */
Hello everyone...This is my first step towards developement...I created Paradox kernel for learning and after adding many features, its time to release it to community...Paradox kernel is based on latest Lineage 14.1 sources and supports LineageOs 14.1 and all other lineage based Aosp (7.x.x) roms...My moto is to make a stable and balanced kernel having better performance as well as good battery life with usefull features :):)

Once again, Paradox kernel is for NOUGHT ONLY (LINEAGE 14.1 and AOSP 7.X).

Features

* Based on latest lineage 14.1 sources
* Compiled using Linaro 5.4.1 toolchain
* Added cpu governores

-Impulse
-Smartmax
-lionheart
-ondemandplus
-wheatly
* Added i/o schedulors
-Sio
-Tripndroid
-zen
*Wake gestures (DT2W,S2W,Pocket Mode)
* Faux sound 3.4
* Franco Fsync control (enabled by defualt)
* KCAL colour control
* Powersuspend and LCD Notifier
* Power efficient workqueues
* Optimised crypto routines
* Push readahead to 512kB
* Optimized square root algorithm
* Lz4 compression
* Many Zram tweaks
* Disable crc check for faster performance (upto 30% increase in i/o operations)
* Blocked some wakelocks for extra battery life
* Added many tcp controllers

default : westwood

Many more features to be added...so stay tuned

Installation Instructions

Note:- If you are coming from other kernel, flash your rom before installing it(dirty flash will work too) to avoid any conflicts.
Also if you are updating to latest release of paradox kernel,you must flash your rom before flashing latest paradox kernel.


Steps to flash :-
- reboot to twrp recovery
- clean cache and dalvik cache
- flash paradox zip
- reboot
- enjoy

Downloads

For download link and changelogs have a look at post #2


Credits

@LineageOs @google @savoca @faux123 @fransiscofranco @rainforce279 @hurtsky @xda community

I am doing it as my hobby in free time...and i am asking for just one thing in return...press the thanks button...it will encourage me to make this kernel better and better.
XDA:DevDB Information
Paradox kernel, Kernel for the Moto E

Contributors
DarkElf
Source Code: https://github.com/Akshay7273/MotoE

Kernel Special Features: DT2W,S2W,KCAL colour control

Version Information
Status: Stable
Current Stable Version: R4
Stable Release Date: 2017-10-10

Created 2017-08-27
Last Updated 2017-10-10
 

DarkElf

Senior Member
Nov 20, 2015
96
151
73
Downloads + Changelogs

Downloads

Download latest release :- Paradox Kernel R4

Changelogs

*Paradox R4 10/10/17)

Merge latest lineage changes
Optimized ARM RWSEM algorithm (RWSEM implementation for ARM using atomic functions)
Lock the initial TCP window size to 64K
Optimize copy_page for modern ARM platforms
Entropy : random write wakeup thresh to 256)
Selinux : permissive
Silence some selinux logs

Older changelogs:-

*Paradox R3 (04/09/17)

Added Ondemandpus and Wheatly cpu governors
Added Conservative gpu governor
Enable lionheart cpu governor (forgot to enable in last update)
Revert KCAL commit (it was already integrated,i readded it by mistake and thus some conflicts occured...But now its fixed)
zram: set default compressor to lz4
lib/int_sqrt.c: optimize square root algorithm
init: don't force selecting debug
mm: push readahead to 512kB
proc: much faster /proc/vmstat
block: scheduler: add ZEN
USB: android: Fix memory leak in mass_storage_function_init()
sync: don't block the flusher thread waiting on IO
writeback: fix occasional slow sync
writeback: fix race that cause writeback hung
readahead: make context readahead more conservative

its not over...many other patches

*Paradox R2 (30/08/17)

Switched to Linaro 5.4.1 toolchain
Remove anykernel method and using new template zip (thanks to @rainforce279)
Added wake gestures :-
DT2W
S2W
Pocket mode for dt2w

Added KCAL colour control
Added lionheart cpu governor
Added fsync on/off support
Enable fsync by default
arm: crypto: Add optimized SHA-256/224
crypto: arm/aes update NEON AES module to latest OpenSSL version
sched: cpu_power: Add controls for sched features
sched: archpower: disabled by default
bfq-sched: Forcefully lookup entities when the cache is inconsistent
some more patches

*Paradox-R1-08/26/2017

initial release
merged latest lineage 14.1 sources
added cpu governors :- impulse,smartmax
added i/o schedulors :- sio,tripndroid
added faux sound 3.4
added powersuspend and lcd notifier
disable crc check (faster performance)
added power efficient workqueues
block some driver wakelocks
added many tcp congestion controllers
set default tcp controller to westwood
 
Last edited:

DarkElf

Senior Member
Nov 20, 2015
96
151
73
FAQ section

FAQs

[Q] This kernel works in stock rom?
NO, this kernel is based on lineage sources and works on Lineage 14.1 and all other AOSP 7.x.x roms.

[Q] Got errors during flashing/after flashing this kernel...what to do now?
Well if you are coming from any other kernel you must dirty flash your rom once to avoid any conflicts.After dirty flashing your rom flash this kernel and you won't face any problems.Also use twrp latest version (recommended)

[Q] I am having some random reboots/bugs...what to do?
Just report it with last_kmsg which is located in /proc/last_kmsg or in case of any bugs report it with logcat and proper information about how you encountered it.I will do my best to resolve it asap.

[Q] how to tweak this kernel for advanced features (like dt2w on/off,s2w on/off or changing cpu governor or i/o sechdulors) ?
Use kernel adiutor app for playing with the kernel and change the settings according to your own taste.

[Q]How to ask for any features ?
You can ask in this thread...if I find feature useful and logical then it'll be added...I would appreciate if you link me with commit. It's really hard to dig in the sources and find the exact commit.
 
Last edited:

DarkElf

Senior Member
Nov 20, 2015
96
151
73
Update R2

Hello guyss...here comes a big update Paradox R2.Many features have been added and many things have changed to make it better.
Remember to dirty flash your rom before installing this update

*Paradox R2 (30/08/17) Download here

Changelogs -

Switched to Linaro 5.4.1 toolchain
Remove anykernel method and using new template zip (thanks to @rainforce279)
Added wake gestures :-
DT2W
S2W
Pocket mode for dt2w

Added KCAL colour control
Added lionheart cpu governor
Added fsync on/off support
Enable fsync by default
arm: crypto: Add optimized SHA-256/224
crypto: arm/aes update NEON AES module to latest OpenSSL version
sched: cpu_power: Add controls for sched features
sched: archpower: disabled by default
bfq-sched: Forcefully lookup entities when the cache is inconsistent
some more patches
 
Last edited:

DarkElf

Senior Member
Nov 20, 2015
96
151
73
after installing it my screen looks green and calibrated the colors and returns to look green
Luis actually its LiveDisplay conflicting with KCal...turn off live display from settings>> Display >> LiveDisplay ...after that display willbe normal. Thanks for trying my kernel by the way...
 
  • Like
Reactions: Luis Infante

Luis Infante

Senior Member
Jun 20, 2016
298
97
0
Luis actually its LiveDisplay conflicting with KCal...turn off live display from settings>> Display >> LiveDisplay ...after that display willbe normal. Thanks for trying my kernel by the way...
Ok i Will try it but i like use live display, another solution? And s2w is not working
 

DarkElf

Senior Member
Nov 20, 2015
96
151
73
Ok i Will try it but i like use live display, another solution? And s2w is not working
Edit :- Ok guyss...i figured out the real issue...it was a tiny mistake by me and that's why when kcal colour was caliberated it automatically turned back...All is well now nd i will be updating it in an hour...this time the changelogs is gonna be huge.
S2W is working without any issues...its just disabled by default...if you want to use it then enable it first by kernel adiutor app.
 
Last edited:

DarkElf

Senior Member
Nov 20, 2015
96
151
73
Update R3

Paradox kernel R3

Download here

Remember to dirty flash your rom before installing this update (as always)

Changelogs

Added Ondemandpus and Wheatly cpu governors
Added Conservative gpu governor
Enable lionheart cpu governor (forgot to enable in last update)
Revert KCAL commit (it was already integrated,i readded it by mistake and thus some conflicts occured...But now its fixed)
zram: set default compressor to lz4
lib/int_sqrt.c: optimize square root algorithm
init: don't force selecting debug
mm: push readahead to 512kB
proc: much faster /proc/vmstat
block: scheduler: add ZEN
USB: android: Fix memory leak in mass_storage_function_init()
sync: don't block the flusher thread waiting on IO
writeback: fix occasional slow sync
writeback: fix race that cause writeback hung
readahead: make context readahead more conservative

its not over...many other patches
 
Last edited:

DarkElf

Senior Member
Nov 20, 2015
96
151
73
Update R4

Yo guysss...its time for an update... I have been pretty much busy due to exams...finally its over and i'm back to developement.
This is the build for 7.x.x only...i haven't started on oreo yet...but i will do that shortly.
Paradox kernel R4

Download Here

Dirty flash you rom once before flashing as always...

Changelog

Merge latest lineage changes
Optimized ARM RWSEM algorithm (RWSEM implementation for ARM using atomic functions)
Lock the initial TCP window size to 64K
Optimize copy_page for modern ARM platforms
Entropy : random write wakeup thresh to 256)
Selinux : permissive
Silence some selinux logs
 
Last edited:

praveen139

Senior Member
Jun 16, 2017
193
41
28
Pune
Yo guysss...its time for an update... I have been pretty much busy due to exams...finally its over and i'm back to developement.
This is the build for 7.x.x only...i haven't started on oreo yet...but i will do that shortly.
Paradox kernel R4

Download Here

Dirty flash you rom once before flashing as always...

Changelog

Merge latest lineage changes
Optimized ARM RWSEM algorithm (RWSEM implementation for ARM using atomic functions)
Lock the initial TCP window size to 64K
Optimize copy_page for modern ARM platforms
Entropy : random write wakeup thresh to 256)
Selinux : permissive
Silence some selinux logs
I have installed this and working fine.
 
  • Like
Reactions: DarkElf