• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[KERNEL][AOSP][AnyKernel][LOS-14.1+EAS] Gamma Kernel for [All Lineage Variants]

Search This thread

Ruckamongus

Member
Apr 4, 2011
35
16
Omar, thank you so much for all of your hard work! The LOS 15.1 kernel so far is awesome! It does feel quite a bit snappier than the stock LOS kernel (I don't think it's placebo effect) and I haven't had any issues yet. SafetyNet passes as well for anybody wondering.
 
  • Like
Reactions: Omar-Avelar

cityneversleepz

Senior Member
Feb 7, 2011
1,634
618
Dallas, TX
www.sunqifitness.com
Thanks for the kernel. Immediately the v20 is cooler when charging. I just realized the vendor warning was already posted. So I edited this comment but already attached the screenshot. Disregard it. Thanks again.

LS997
 

Attachments

  • Screenshot_Ruthless_Launcher_20190506-235215.jpg
    Screenshot_Ruthless_Launcher_20190506-235215.jpg
    194.7 KB · Views: 422
Last edited:
  • Like
Reactions: Omar-Avelar

Omar-Avelar

Senior Member
Feb 3, 2013
1,119
2,235
Can anyone using the Kernel let me know of the following two things:

1. Does IR blaster work fine or is it the same as LineageOS 15.1 vanilla kernel?
2. Does internal encryption work? I didn't change anything much when going from 14.1 to 15.1 Kernel as my source code goes, so if encryption worked on 14.1 it should also work here...
3. USB OTG might (most likely) is also broken on my Kernel, but don't have a USB type C adapter to try, trying to get one this week...

@x86cpu has told me the possible reason why we might be getting the vendor mismatch warnings on boot. So next build will have a fix here soon. But want to know if I should re-visit (1) and (2) with some feedback. And I might re-introduce input frequency boost for now in the kernel on these builds (for now) to get the touch performance up to par as perfd continues to be investigated.
 
Last edited:

Phoenix591

Senior Member
Oct 15, 2017
678
756
Can anyone using the Kernel let me know of the following two things:

1. Does IR blaster work fine or is it the same as LineageOS 15.1 vanilla kernel?
2. Does internal encryption work? I didn't change anything much when going from 14.1 to 15.1 Kernel as my source code goes, so if encryption worked on 14.1 it should also work here...
3. USB OTG might (most likely) is also broken on my Kernel, but don't have a USB type C adapter to try, trying to get one this week...

@x86cpu has told me the possible reason why we might be getting the vendor mismatch warnings on boot. So next build will have a fix here soon. But want to know if I should re-visit (1) and (2) with some feedback. And I might re-introduce input frequency boost for now in the kernel on these builds (for now) to get the touch performance up to par as perfd continues to be investigated.
Encryption has the same issue that the stock lineage 15.1 has: once encrypted, the encryption password gets stuck as the first one set, attempting to change it via changing the lockscreen password (saying yes to require pin at startup sets the password to
the new pin/password, saying no sets it to the "default" automatically decrypted password) results in getting stuck at the boot animation after entering the password to decrypt requiring a battery pull (and the system boots fine but still with old decryption password next time).

Usb otg is still broken like it has been in 14.1.
Camera/ir/flashlight are still flakey like stock 15.1, working briefly then never again. (flashlight worked fine first boot, after several reboots testing encryption neither it nor the camera or ir blaster work anymore)

This was on this mornings 0.9.2 (us996)
Edit:update: after formatting data and restoring my backup, the camera/ir/flashlight are all working fine after 3 reboots. Perhaps the bugged encryption somehow mucked them up.
 
Last edited:
  • Like
Reactions: Omar-Avelar

x86cpu

Senior Member
Aug 25, 2010
1,759
4,094
Rochester
Google Pixel 6 Pro
Encryption has the same issue that the stock lineage 15.1 has: once encrypted, the encryption password gets stuck as the first one set, attempting to change it via changing the lockscreen password (saying yes to require pin at startup sets the password to
the new pin/password, saying no sets it to the "default" automatically decrypted password) results in getting stuck at the boot animation after entering the password to decrypt requiring a battery pull (and the system boots fine but still with old decryption password next time).

Usb otg is still broken like it has been in 14.1.
Camera/ir/flashlight are still flakey like stock 15.1, working briefly then never again. (flashlight worked fine first boot, after several reboots testing encryption neither it nor the camera or ir blaster work anymore)

This was on this mornings 0.9.2 (us996)
Edit:update: after formatting data and restoring my backup, the camera/ir/flashlight are all working fine after 3 reboots. Perhaps the bugged encryption somehow mucked them up.

I'll be testing encryption more now that I have figured out the OTG issue (new builds will be incoming), I should be able to fix 14.1 as well.

I tried once testing encryption and as soon as I pressed encrypt the last time I ignored the warning and unplugged my device. Everything worked first time, no battery pull needed. Weird, but that worked.
 
  • Like
Reactions: Omar-Avelar

Phoenix591

Senior Member
Oct 15, 2017
678
756
I'll be testing encryption more now that I have figured out the OTG issue (new builds will be incoming), I should be able to fix 14.1 as well.

I tried once testing encryption and as soon as I pressed encrypt the last time I ignored the warning and unplugged my device. Everything worked first time, no battery pull needed. Weird, but that worked.

this time I even left it plugged in and it worked fine.
 
  • Like
Reactions: Omar-Avelar

partyman66

Senior Member
Dec 2, 2014
119
21
FYI, I can't flash this kernel from TWRP to h910a on lineage 14.1. I get the "Unsupported device, aborting" both on h910 gamma kernel versions 30.0 and 29.0. Those are the only 2 versions that I tried on this phone.
 

partyman66

Senior Member
Dec 2, 2014
119
21
Are you using the latest TWRP by Phoenix?

Yup, that's your problem. That will not work. Find TWRP by Phoenix and you should be good.[/QUOTE


Now that I think of it... the root method I used a few months ago was a combination root method base on US996 version of LG V20 so it is probably being detected as that in the bootloader.

Is this what you mean for the right TWRP?

https://androidfilehost.com/?fid=674106145207485129
 
Last edited:

cityneversleepz

Senior Member
Feb 7, 2011
1,634
618
Dallas, TX
www.sunqifitness.com
Yup, that's your problem. That will not work. Find TWRP by Phoenix and you should be good.[/QUOTE


Now that I think of it... the root method I used a few months ago was a combination root method base on US996 version of LG V20 so it is probably being detected as that in the bootloader.

Is this what you mean for the right TWRP?

https://androidfilehost.com/?fid=674106145207485129
Yes
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    7177sw.png


    DESCRIPTION
    Hey guys, I have started a custom Kernel based on LineageOS sources with 98% CAF. So I would like to share my own performance and usability improvements with minimal feature and enhancements on top. The intention is to have a minimal light-weight kernel that is very fine tuned for the device.

    FEATURES

    • Minimal Kernel with a stripped defconfig base to be more streamlined and have less memory footprint
    • User space display color calibration (KCAL) with screen calibrated against iPhone 8 Plus, also helps reducing screen retention
    • Schedutil governor making use of EAS features with updates from Linux 4.4 and 4.12
    • Up to date with LineageOS sources for maximum compatibility and security bugfixes
    • Memory and cache subsystem optimizations, you will feel it
    • Adaptive LMK enabled by default
    • Transparent Hugepages are enabled
    • ZRAM/Swap partition is disabled by default
    • BFQ IO scheduler set by default to avoid slow-downs on task intensive scenarios
    • No overclocking was chosen to avoid unnecessary heat, optimizations were focused on other different areas
    • Kernel Samepage Sharing enabled with deferred timer by default to gain some memory usage optimizations, the process sleeps on regular basis and I've profiled it so that there's no battery drains due to it
    • Simple temperature controls for msm_thermals exposed
    • Compiled with GCC 6.x optimized toolchain and -O3 plus other hardware specific flags
    • Undervolted the Adreno 530 GPU voltage rail to keep things cooler
    • CAF Rebase on major portions of the Kernel has helped lower the memory footprint a lot
    • ES9218 Quad DAC automatic toggling working inside the kernel for headphone HIFI playback, please read here for details


    DOWNLOADS


    AnyKernel: Click Here (Or check top of the post, download tab)

    (Optional) LineageOS 14.1 Netflix Black Screen Fix : Click Here

    (Optional) Updated Adreno Drivers by @BlackSoulxxx : Click Here




    SOURCE



    NOTES
    • Here is a GeekbenchV4 result example : http://browser.geekbench.com/v4/cpu/7618872
    • These is intended to be used primarily with LineageOS, I have not tested other ROM's
    • Since LineageOS uses a way newer Bluetooth stack, this Kernel will most likely not work on old ROM's such as ResurrectionRemix
    • This will not work with LineageOS 15.1, please see the other thread


    KNOWN BUGS
    • When using v1.0.0 will fail to boot if you had Magisk previously installed. Please install something newer if using Magisk.
    • When using v13.0.0 - v15.x.x infrared remote control will not work.

    I would also like to thanks to various people who contribute tremendously such as:

    @x86cpu
    @EvilHowl
    @USA-RedDragon
    @savoca
    @albinoman887
    @emdroidle
    @Rashed97
    @joshuous
    @RenderBroken
    and many others! :)

    << If you like my work here is my hat, please donate! >>



    XDA:DevDB Information
    Gamma Kernel, Kernel for the LG V20

    Contributors
    Omar-Avelar
    Source Code: https://github.com/oxavelar/V20-Kernel-Gamma

    Kernel Special Features:

    Version Information
    Status: No Longer Updated
    Current Stable Version: 46.0.0
    Stable Release Date: 2018-07-11

    Created 2017-12-10
    Last Updated 2018-10-22
    9
    I've got a working Kernel for LineageOS 15.1, thanks to @x86cpu, @Phoenix591 and @emdroidle for their recent development:

    Download: https://www.androidfilehost.com/?w=files&flid=266788

    Right now it is missing partial panel update (would help lower battery consumption and tearing in the long run if we get it working again) and for this initial build I've skipped exFAT SD Card support. Posting this experimental builds now as I just switched to the unofficial LineageOS 15.1 by @x86cpu today (just had time to do so today... :))

    It has everything listed in the OP, and it is Linux 4.4 EAS based, LineageOS 15.1 right now lacks the perfd binary but performance is ok from what I can tell. It will get better, just give it time ;)

    No optional zip flash from the OP download sections is recommended at the moment, since LineageOS 15.1 changed some things around to the vendor partition... once I get this more stable and optimized I will fork this thread to a new one...

    UPDATE: I've now added exFAT support based on LIneageOS in v0.9.1...
    8
    CHANGELOG

    • 46.0.0 - Started msm_irqbalance by default on boot, disabled lp11 and enabled allow mdss phy powerdown during idle screen.
    • 45.0.0 - Smoother memlat ramp and tuned the schedTune DVR cpusets a bit for better performance overall.
    • 44.0.0 - More deep sleep enhancements.
    • 43.0.0 - Update to Oreo TouchScreen firmware and more MDSS PLL merge fixes that help deep sleep.
    • 42.0.0 - Missing MDSS Oreo merges are now in place.
    • 41.0.0 - Added IPA_WS as a default in the wakelock blocker, as well as enabling CONFIG_PM_SLEEP which if missing would in turn cause some ueventd wakeups.
    • 40.0.0 - Disabled CONFIG_RMNET_DATA_DEBUG_PKT. Full fix for USB OTG and added missing slimport drivers. Tweaked the random wakeup values, added some extra cpusets based on Marlin's android-cts-8.0_r8/init.common.rc and fixed some BFQ IO possible hang.
    • 39.0.0 - Disabled CONFIG_RMNET_DATA_DEBUG_PKT. Full fix for USB OTG and added missing slimport drivers.
    • 38.2.0 - Removed LGE's battery manager alarms.
    • 38.1.0 - Fixed potential wireless packet loss.
    • 38.0.0 - Further tweaked the wlan_rx_wake wakelock, migrated the audio and thermal workers to power efficient queues, and added an arm64 prefetching optimization for memcpy.
    • 37.0.0 - Better deep sleep enhancements with the charger infrastructure borrowed from the V30 Kernel Oreo sources.
    • 36.0.0 - Full fix for 6a00000.ssusb wakelocks while keeping fast charging enabled.
    • 34.0.0 - Added boeffla_wl_blocker to tame NETLINK wakelock, this wakelock is caused by IPC between the wireless driver in the Kernel and Android. This was the reason why when on wireless the battery would drain more compared than radio. Also disabled OTG as this keeps the phone from deep-sleeping for now.
    • 33.0.0 - Enabled OTG.
    • 32.0.0 - Fixed a bug from Oreo merge that causes video to go green and crash sometimes. Disabled ZRAM from the compilation rather than AnyKernel patch.
    • 31.0.0 - Merged some V20 Oreo Kernel changes in, as well as some DAC enhancements to prevent popping, better USB PD and QC 2.0/3.0 charging code.
    • 30.0.0 - Oreo Kernel changes in, trying to unify the Kernel to keep support for a little while on 14.1.
    • 29.0.0 - Merged msm idle from Linux 4.4 as well as full EAS 1.4 support from Linux 4.4, reduced the memory subsystem timer ramp values for speedier operation.
    • 27.0.0 - Enabled wifi.supplicant_scan_interval on boot, and disabled IPv4 TCP Timestamps and ICMP responses as well as CCKM fast secure roaming.
    • 26.0.0 - Full EAS 1.4 from Wahoo (Pixel 2XL) backported.
    • 25.0.0 - Updated EAS (schedutil, walt, fair scheduler) to be in sync with Wahoo (Pixel 2XL) latest changes.
    • 24.0.0 - Fixed another performance regression in multi-core scores within schedutil.
    • 23.0.0 - Screen brightness is 50% while booting to reduce heat when it is regenerating cache on boot. v22.1.0 was 25% but this was barely visible if you were rebooting under direct sunlight. So went for the safe value.
    • 22.1.0 - Reduced the screen brightness while booting to reduce the heat of the device during cache wipes.
    • 22.0.0 - WALT and schedutil cpufreq commit fixes backported from RenderBroken.
    • 21.0.0 - The GPU Voltage rail undrervolt is now ~60 mV, do not see any problem and games run way cooler.
    • 20.0.0 - After feedback on frequency utilization/distribution I've put 3 WELT commits that should help alleviate this. And enabled some extra configurations from our wireless driver for better power savings.
    • 19.0.0 - Trimmed around ~40 mV from the GPU voltage rails, and updating the wireless stack to DHD 1.80.13 - 2017.06.22, from us997 V16a.
    • 17.0.0 - Increased the multi-core benchmark scores.
    • 16.1.0 - Reverted the binder to be Nougat only, since Oreo support will be on a separate Kernel anyway. Fixed the Infrared Remote Control support that I had broken, and tuned the memory scaling to be more responsive.
    • 15.0.0 - More audio fixes. This audio CAF merging has fixed the speaker-phone that suddenly stops recording or suddenly stops recieving audio from the phone call in LineageOS. Also have increased the schedutil timer values to be similar to the Pixel 2 XL (Wahoo). And finally have fixed a CONFIG_LGE_PM_LGE_POWER_CLASS_CHARGER_SLEEP problem, so that the charger module now sleeps better and uses less power in idle.
    • 14.0.0 - Updated WALT (Window Assisted Load Tracking) fixes aggregated by RenderBroken. Fixed an audio bug introduced in 13.0.0 where headphone insertion could change the sampling rate of other audio sessions. Changed again the schedutil timer values to favor benchmarks a tiny bit and increased the external SD read-ahead and minimum number of requests so that there is better merging when using slow SD cards while keeping the internal storage device in a low-latency configuration.
    • 13.0.0 - Merged CAF audio upstream changes and enabled transparent hugepages.
    • 12.0.0 - Tuned the memory subsystem frequency scaling parameters further down to focus on batter savings as well as the EAS timers.
    • 11.0.0 - Added cpuidle optimizations to idle more, bumped up the memlatency trigger.
    • 10.2.0 - Reintroduced back QuickCharge 2.0 and QuickCharge 3.0 fast charging support into the Kernel.
    • 10.0.0 - Bumped up the Kernel to version 3.18.71.
    • 9.0.0 - Full arm64 arch CAF update done to the Kernel based on CAF LA.UM.6.5.r1-05300-8x96.0. Added support for H918 variant too.
    • 8.2.0 - Partial update to get the Kernel in a big percent that of CAF LA.UM.6.5.r1-05300-8x96.0, no bugs introduced and using a CAF / LineageOS kernel base. Using the binder interface that works both for Android Oreo and Nougat to be prepared for Lineage15. Also fixed a bug that I had introduced in previous versions related to wireless access point, hence why I had pulled versions 7.x from the server.
    • 4.1.0 - Reintroduced into the LineageOS kernel the partial-update in the panel, to gain some power savings and overall performance feeling when refreshing the panel and screen elements.
    • 4.0.0 - Raised the EAS schedutil timers and the memlat governor threshold to kick in faster. This will bring up the responsiveness to similar levels to HMP even when still using EAS. Brought back KSM after profiling on battery utilization, it doesn't hurt as long as a the timer value is between 4000.
    • 3.0.x - Bugfixes and testing with Magisk compatibility, I think there are no more compatibility problems with Magisk after this, had to remove KSM for testing.
    • 1.0.0 - Initial version, with KCAL, and streamlined defconfig based on cm-14.1 kernel sources and minor commits on top.
    7
    Seeing the same message on H918. Regardless, thank you for supporting Lineage 15.1. Your kernels tend to deliver Pixel-like performance which is certainly quite the accomplishment! Many thanks and great work!

    Thank you, yeah I will see if I can fix the vendor warning (which seems harmless for now).

    A note on performance on this builds with LineageOS 15.1 (since the Kernel is EAS based) this will get better once perfd gets implemented in the builds :), due to lack of perfd right now we dont have input boost nor application launch boost hints.
    6
    I've added another optional but heavily recommended zip to flash under the OP downloads section.

    (Optional) LineageOS 14.1 Hotfixes (GPS Stability and Wireless Battery Drain)

    This has a patch to get GPS 100% rocks stable under LineageOS 14.1 as well as the idle Wireless Battery drain which you will see in "Battery" as "Android OS" consumption being a heavy offender. I've root caused the problem to be in LineageOS 14.1's com.qualcomm.qti.tetherservice.apk. So by flashing that optional fix it will remove that and now we're back into amazing idle consumption and extra juice for day to day activities! :)...

    You MUST wipe cache and Dalvik/ART cache as that Qualcomm service might be cached and continue to run if you don't wipe cache after applying the workaround.

    EDIT: @x86cpu has helped me and I've put an updated zip in here #162