[KERNEL][Affinity Kernel][OP5/5T][OOS/Custom][4.4.178][6 Apr]

Drop EAS?

  • Yes

    Votes: 6 35.3%
  • No

    Votes: 11 64.7%

  • Total voters
    17
  • Poll closed .
Status
Not open for further replies.
Search This thread

reffu

Senior Member
Feb 11, 2008
85
26
OnePlus 9
I can confirm, I'm also getting random reboots on OB26. I do have a few Magisk modules installed, but I don't think any of them should conflict (Pixel Wifi Mod, OP5 Camera Libraries Fix v3, Global Optimized GPS File Replacer).
 
Last edited:

khaos227

Senior Member
Feb 23, 2016
135
645
Tanvald
Affinity Kernel r22 is up! :)

This build brings compatibility for OmniROM and TreskMod, I've spent hours flashing different ROMs to ensure everything is working as it should be.
Tested on LineageOS, OmniROM, PixelExperience, DirtyUnicorns, Bootleggers and OOS.
Some commits that were considered as a bloat were removed or reverted. In favor of custom ROMs I had to remove Boeffla LED control (I doubt any of you used this feature)

Here's the changelog:
  • Compiled out temperature polling
  • Support for Omni based ROMs
  • Other touchups for init script
  • Fixed WiFi stability issues on custom ROMs
  • Fixed slow loading of the Settings app while WiFi is active
  • Added KLAPSE Driver (Think of it like LiveDisplay for any ROM implemented directly to the kernel)
  • Some sched improvements
  • Decreased swappiness down to 10
  • CPU boost improvements for better battery life
 

fjsferreira

Senior Member
Nov 16, 2009
3,180
2,027
Ponta Delgada
Affinity Kernel r22 is up! :)

This build brings compatibility for OmniROM and TreskMod, I've spent hours flashing different ROMs to ensure everything is working as it should be.
Tested on LineageOS, OmniROM, PixelExperience, DirtyUnicorns, Bootleggers and OOS.
Some commits that were considered as a bloat were removed or reverted. In favor of custom ROMs I had to remove Boeffla LED control (I doubt any of you used this feature)

Here's the changelog:
Compiled out temperature polling
Support for Omni based ROMs
Other touchups for init script
Fixed WiFi stability issues on custom ROMs
Fixed slow loading of the Settings app while WiFi is active
Added KLAPSE Driver (Think of it like LiveDisplay for any ROM implemented directly to the kernel)
Some sched improvements
Decreased swappiness down to 10
CPU boost improvements for better battery life
Is led control removed from the oos version? :(

Sent from my OnePlus 5 using XDA Labs
 

Revenant Ghost

Senior Member
Jun 24, 2012
443
250
I love how this kernel performs, but it breaks Bluetooth...which is unfortunate. My Sony Dual Shock 4 controller connects via Bluetooth, but the inputs won't work. No problems with stock kernel, though.
 

Revenant Ghost

Senior Member
Jun 24, 2012
443
250
I use a bluetooth headset for audio, I connect my smartwatch via bluetooth low energy and I do connect my car via bluetooth for calls and audio. All of this works flawless. So this kernel does definitely not break bluetooth.
It does for me. The controller connects, but the buttons don't work. I tested my DualShock 4 controller with both stock and ElementalX kernels without issues. So why on Affinity kernel am I experiencing this? Can you answer that?

And what does Bluetooth audio and connecting with a smart watch have anything to do with my issue with this kernel?

@LinuxUser0227, any actual input on this?
 
Last edited:

khaos227

Senior Member
Feb 23, 2016
135
645
Tanvald
It does for me. The controller connects, but the buttons don't work. I tested my DualShock 4 controller with both stock and ElementalX kernels without issues. So why on Affinity kernel am I having this problem? Can you answer that?

And what does Bluetooth audio and connecting with a smart watch have anything to do with my issue with this kernel?

@LinuxUser0227, any actual input on this?

If the PS4 controller works on stock and ElementalX, the PS4 controller support on Affinity might be broken by CAF patches.
 
  • Like
Reactions: Revenant Ghost

smint86

Senior Member
Jul 8, 2011
1,043
714
Dortmund
OnePlus One
OnePlus 7 Pro
It does for me. The controller connects, but the buttons don't work. I tested my DualShock 4 controller with both stock and ElementalX kernels without issues. So why on Affinity kernel am I experiencing this? Can you answer that?

And what does Bluetooth audio and connecting with a smart watch have anything to do with my issue with this kernel?

@LinuxUser0227, any actual input on this?
I just wanted to point out that your general statement "this kernel breaks bluetooth" is not true. There was and is no offense intended.
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 33
    Introduction:

    Affinity Kernel is a custom kernel based on the latest Stable Linux 4.4 release from kernel.org.
    This kernel is developed with performance and great battery life in mind offering some goodies cherry-picked from other popular kernels such as Flash Kernel, ElementalX, blu_spark, Boeffla Kernel, Sultan Kernel and Franco Kernel.
    The kernel is always up to date with mainline linux kernel and is regulary updated with the latest fixes.


    The goal is to provide a butter smooth experience, simmilar to what you get with the latest Pixel devices.
    Affinity Kernel is based on the official kernel source released by OnePlus.


    Code:
    /*
     * Your warranty is not void (Thank you OnePlus!).
     *
     * 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.
     */

    Features:

    • Upstreamed to the latest Linux Stable 4.4.x
    • Upstreamed to the latest CAF tag LA.UM.6.4.r1-11500-8x98.0 & LA.UM.7.4.r1-04800-8x98.0
    • Tunable with Kernel Adiutor and others
    • Additional CPU gorvernors
    • Sound Control
    • Adreno Idler by @arter97
    • Full WireGuard implementation
    • Sweep2Sleep gesture
    • Fast charging on USB
    • FS fsync toggle (enabled by default)
    • Additional IO schedulers (Maple, FIOPS, SIO, ZEN)
    • Qualcomm MDSS v2 (sRGB + KCAL)
    • dm(avb)-verity disabled
    • Faster app cold-launch
    • IO Tuning
    • Optimized with oFast and O3
    • Westwood TCP algorithm as default
    • Full Treble compatibility with Treble related fixes
    • Individual Input Boost frequency for each cluster
    • Disabled the BCL battery driver
    • Backlight Dimmer by @flar2
    • Boeffla Wakelock blocker v1.1.0
    • CDROM emulation
    • init.d support
    • ARM target optimizations
    • Passes SafetyNet check
    • Crypto Routines optimizations
    • High Brightness mode
    • Adreno driver improvements
    • EAS
    • Dynamic SchedTune Boost v3
    • KLAPSE Driver
    • Decreased swappiness

    Installation:
    Before you install the kernel, make sure you have
    a backup of boot partition in case something goes wrong!


    If you are coming from stock kernel:
    1. Reboot into TWRP
    2. Flash the Affinity Kernel.zip
    3. Reboot

    If you are coming from another custom kernel:
    1. Reboot into TWRP
    2. Dirty flash your rom or restore boot backup if you have any
    3. Reboot recovery
    4. Flash the Affinity Kernel.zip
    5. Reboot

    Updating:

    Just flash the latest Affinity Kernel build over the previous one :)

    Downloads:
    {Mod edit}
    On ROMs like Dirty Unicorns, WLAN won't work because the wlan module is required
    to load on device initcall rather than late initcall like other ROMs do. There's a workaround for it but
    it breaks WLAN on all ROMs that have the module built inline or the CAF way


    {Mod edit}

    Thanks to:

    @joshuous for his EAS commits and Dynamic Sched Boost
    @osm0sis for his AnyKernel2 installer
    @nathanchance for his android-linux-stable project and helping me
    @Lord Boeffla for Boeffla Wakelock Blocker and LED control
    @Sultanxda for his fixes and other stuff
    @eng.stk for his tweaks
    @flar2 for his Sweep2Sleep gesture driver
    @tanish2k09 for KLAPSE Driver
    And all those folks contributing to Linux Kernel :)

    XDA:DevDB Information
    Affinity Kernel, Kernel for the OnePlus 5

    Contributors
    LinuxUser0227
    Source Code: https://github.com/hejsekvojtech/Affinity-OnePlus5

    Kernel Special Features: Fast, Battery friendly, Stable, Up to date

    Version Information
    Status: Stable
    Current Stable Version: r24
    Stable Release Date: 2018-09-27

    Created 2018-09-27
    Last Updated 2019-04-06
    24
    Affinity Kernel r23 is up! :)

    Here's the changelog:
    • Upstreamed to Linux 4.4.177
    • Merged changes from OOS kernel beta branch
    • Fixed PS4 Controller support
    • RCU upstreams
    • Reverted LMK to the msm common kernel state
    • Minor Klapse fix
    • Fixed HBM on OmniROM
    • Deoneplusified devfreq driver
    • More arm64 related optimizations
    • Other stuff
    23
    Affinity Kernel r22 is up! :)

    This build brings compatibility for OmniROM and TreskMod, I've spent hours flashing different ROMs to ensure everything is working as it should be.
    Tested on LineageOS, OmniROM, PixelExperience, DirtyUnicorns, Bootleggers and OOS.
    Some commits that were considered as a bloat were removed or reverted. In favor of custom ROMs I had to remove Boeffla LED control (I doubt any of you used this feature)

    Here's the changelog:
    • Compiled out temperature polling
    • Support for Omni based ROMs
    • Other touchups for init script
    • Fixed WiFi stability issues on custom ROMs
    • Fixed slow loading of the Settings app while WiFi is active
    • Added KLAPSE Driver (Think of it like LiveDisplay for any ROM implemented directly to the kernel)
    • Some sched improvements
    • Decreased swappiness down to 10
    • CPU boost improvements for better battery life
    22
    Affinity Kernel r20 is up! :)

    This is an EAS build, do not expect HMP anymore because it just doesn't make sense to me to maintain those two branches since they both
    have the same feature set except EAS specific stuff and they both deliver pretty much the same battery life.

    Here's the changelog:
    • Upstreamed to Linux 4.4.175
    • EAS-ed the kernel
    • Got rid of Pixel2WiFi mod as suggested by @Pho3nX
    • Added oFast optimalization
    • Slimbus clock bump
    • Removed PM QOS changes made by OnePlus
    • Disabled some debugging stuff
    • Power Efficient Workqueues enabled for some key modules
    • Disabled auditing (it's broken and unstable in Linux stable kernel)
    • Decreased ZRAM swappiness so the system has to rely more on physical RAM which OP5/5T has plenty of
    • Crypto improvements
    • Re-implemented Dynamic SchedTune Boost v3
    22
    Affinity Kernel r13 is up! :)

    Happy New Year 2019! Another update is here!

    Here's the changelog:
    • Upstreamed ZRAM
    • Compress ZRAM with ZSTD by default
    • tcp_westwood improvements
    • Auto toggle OTG based on charging status (Dash or regular)
    • Merged latest OnePlus changes from OOS stable and open beta kernel
    • Adjusted CPU boost values
    • Nuked some OP's changes to QoS drivers
    • Improved load computing
    • Upstreamed LZ4 compression module
    • Merged latest changes for AnyKernel2 and cleaned up the whole thing
    • Another FS improvements
    • Adjusted CPU boost values
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone