[KERNEL] [Nougat] [Voltage Control] Kawori Kernel for Oneplus 2 (r7, 2017/08/16)

aviraxp

Senior Member
Jun 24, 2016
482
896
0
Beijing
Some of you know me from the OOS3 kernel I built, and now I am moving to Nougat and starting working on it.

It mainly majors in keeping a balance between features and stabilities, so I did not add too many features (And I think features like adding 10+ governors is a bad practice), but the features I added is of great use. Some of the features are unique in existing OP2 kernels.

I am sick of those kernels which say it is the smoother than butter or is more powersaving than Nokia 1100, and I do not think that could happen. What I provide is an average kernel with some little tweaks. If you are looking for some specific features, this is not the place for you.

The features list:

Features:
- Catch up with latest Linux upstream 3.10.107
- Catch up with latest CAF source
- Catch up with latest sdcardfs, f2fs, exfat, xpad source
- Add flash and electron governor (both based on interactive, credits to The Flash and frap129)
- Tweaked interactive governor based on CAF MSM8996 branch
- CPU voltage control (The first for MSM8994?)
- Replace H-cube with core_ctl from CAF MSM8996 branch
- Remove powersave, conservative governor
- Add maple, sio, fiops, zen I/O scheduler
- Partly Faux sound control
- Partly thermal control
- KCAL
- Dynamic Sync control
- Wakeblock toggle
- Fingerprint boost tweaks
- Sultanxda's I/O switcher
- TheCrazyLex's memory automatic compaction mechanism
- Various improvements from AOSPA (thanks to TheCrazyLex)
- Various improvements from Sultanxda and myfluxi (The people I really admire)
- Various improvements from CAF
- Fix some ROM's ramdisk bug (why should I fix these?)
- ...

Usages:

Note that LineageOS based roms and other roms use different sysfs nodes for gestures. So I provide 3 versions, just use the one that your rom is based on, otherwise gestures may be broken. For non los based Roms, use other version, if it does not work (such as Pure Nexus), use pn version.

Use kernel adiutor to tweak it.

Source:
https://github.com/aviraxp/ONEPLUS_MSM8994_KAWORI

Credits:

Fist of all, thanks to Linux upstream and CAF. Without them, doing this work is impossible.
Of course, thanks to Lord Boeffla for a good picking source.
Then I want to thank to Sultanxda and myfluxi for the 30+ commits I picked and the guidance he provided. You are the real MVP!
I also want to say thanks to dorimanx, Joe Maples and Franco for the good features they provided.

Support:
Just like many other so-called "developers" for OP2, I do not major in computer science and know little about C. All my codes are written by guessing. Feel free to provide feedbacks, though I may not know how to fix it.
 

Attachments

Last edited:

chxei

Senior Member
Jun 26, 2015
483
117
63
tbilisi
thanks for kernel. have you tested undervolting? is it safe? whats basic rules to use voltage control without killing phone? never used this feature
 
  • Like
Reactions: gondc

MZO

Senior Member
Jan 5, 2015
1,883
2,190
0
thanks for kernel. have you tested undervolting? is it safe? whats basic rules to use voltage control without killing phone? never used this feature
Phone should technically reboot and discard changes before any damage occurs
 
  • Like
Reactions: aviraxp

almlex

Member
May 12, 2009
7
1
0
First of all: nice to see a new kernel of OP2, and I love new features! Good work!
Second: Unfortunatly, flashing this kernel for me kills WiFi on latest Unofficial RR. Had to flash stock boot.img to make it work again. Other than that it seems to work fine.
Defineatly gonna give it a try as my daily driver after WiFi issue is gone.
 
Last edited:

aviraxp

Senior Member
Jun 24, 2016
482
896
0
Beijing
First of all: nice to see a new kernel of OP2, and I love new features! Good work!
Second: Unfortunatly, flashing this kernel for me kills WiFi on latest Unofficial RR. Had to flash stock boot.img to make it work again. Other than that it seems to work fine.
Defineatly gonna give it a try as my daily driver after WiFi issue is gone.
I have tested my kernel on omni, du, aex and pn, no issues so far. Some lineage guys also flashed and encounter no issues. But I will try to look at it.
 
  • Like
Reactions: chxei

aviraxp

Senior Member
Jun 24, 2016
482
896
0
Beijing
First of all: nice to see a new kernel of OP2, and I love new features! Good work!
Second: Unfortunatly, flashing this kernel for me kills WiFi on latest Unofficial RR. Had to flash stock boot.img to make it work again. Other than that it seems to work fine.
Defineatly gonna give it a try as my daily driver after WiFi issue is gone.
Could you please flash boeffla kernel and report if it works? I suspect it is a toolchain issue.
 
  • Like
Reactions: chxei