[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

sleepwalking0593

Senior Member
Jul 25, 2017
1,031
283
Noida
OnePlus 5
22nd Boot speed becomes very slow,Staying on the first screen`s 1+ logo for a long time
Can you try using other version or other kernel. The issue you mentioned happens if you keep flashing many kernel or keep dirty flashing. I had this same issue. I don't know the exact reason for this but clean flash solves stuck at 1+ logo for longer time. You can dirty flash and get back to stock kernel and check if it boots faster or no.
 

idkwhoiam322

Senior Member
Apr 19, 2015
578
1,335
Thanks for chiming in. So, any workaround for this besides using a different kernel?

To update a bit on this:
Well, while it does "break" when this patch is merged, the patch itself is not the issue according to a Sony employee. Basically, it's an issue with the Android BT stack and looks like it'll be fixed in Q unless the OEM(s) decides to patch it prior to that. Without this patch, you'll notice that you have terrible latencies, as reported by my user as well who had initially reported this to me.
The Q kernel DOES, however, have more related patches so I'll check if there's any improvements with them ¯\_(ツ)_/¯ I doubt tho.


Edit: It doesn't work, unfortunately. Looks like ROM fix is the only way. :/
 
Last edited:
  • Like
Reactions: Revenant Ghost

khaos227

Senior Member
Feb 23, 2016
135
645
Tanvald
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
 

KaszasM

Senior Member
Nov 8, 2013
1,186
559
Earth
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
r23 feels much faster, boot either .
thanks
 
  • Like
Reactions: reffu and SqooK

SqooK

Senior Member
Jul 7, 2017
102
14
a
Thanks.. Good kernel :)
 

Attachments

  • Screenshot_Ayarlar_20190328-110802.png
    Screenshot_Ayarlar_20190328-110802.png
    104.2 KB · Views: 317
Last edited:

Dirk

Senior Member
May 11, 2009
12,424
3,809
CrDroid Pie
Everything would seem to work perfectly; no problem with "phone is starting" and no problem with bluetooth and wifi.

Let me know if anything changes or if 'Phone is Starting' happens again? It's way to early to say yet that it's 'fixed', unless you were getting it on every single boot and now it's stopped.
 

mascian

Senior Member
Nov 9, 2004
715
68
55
Italy
Let me know if anything changes or if 'Phone is Starting' happens again? It's way to early to say yet that it's 'fixed', unless you were getting it on every single boot and now it's stopped.

In my case, phone Is starting, it happened randomly ... for now I have already rebooted a dozen times and it has never been presented again. If it happens again, I'll let you know.
 
  • Like
Reactions: Dirk

mascian

Senior Member
Nov 9, 2004
715
68
55
Italy
Let me know if anything changes or if 'Phone is Starting' happens again? It's way to early to say yet that it's 'fixed', unless you were getting it on every single boot and now it's stopped.

Nothing done. "... phone is starting" appeared again... :rolleyes:
P.S.: and I don't use Magisk (no root).
 
  • Like
Reactions: Dirk

Dirk

Senior Member
May 11, 2009
12,424
3,809
Nothing done. "... phone is starting" appeared again... :rolleyes:
P.S.: and I don't use Magisk (no root).

Thanks for letting me know. I got it again myself last night. Got a logcat but don't know if it'll help.

Edit: Might be worth noting "Affinity Kernel is based on the official kernel source released by OnePlus" The crDroid maintainer for the 5T says "OnePlus kernel implementation" when asked why the issue might affect Oneplus phones only.

Perhaps a Kernel that doesn't use Oneplus sources might be better for this issue? Does one exist?

@mascian
 
Last edited:
  • Like
Reactions: mascian

mascian

Senior Member
Nov 9, 2004
715
68
55
Italy
Thanks for letting me know. I got it again myself last night. Got a logcat but don't know if it'll help.

Edit: Might be worth noting "Affinity Kernel is based on the official kernel source released by OnePlus" The crDroid maintainer for the 5T says "OnePlus kernel implementation" when asked why the issue might affect Oneplus phones only.

Perhaps a Kernel that doesn't use Oneplus sources might be better for this issue? Does one exist?

@mascian

I think you're right; it is necessary to try another kernel that does not use the sources from Oneplus.
A lot of users have blamed the root (Magisk)... for example, I don't use any kind of root.
 
  • Like
Reactions: Dirk
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