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

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

Search This thread

Omar-Avelar

Senior Member
Feb 3, 2013
1,119
2,235
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)

(Recommended) Stock Tasha XML Audio Mixer FIles : Click Here

(Recommended) Stock Thermal Engine with Tweaked Values Flashable : Click Here




SOURCE



NOTES


KNOWN BUGS
  • Two second delay between plugging charger and detecting it.

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: Testing
Current Stable Version: 9.0.0
Stable Release Date: 2019-09-21

Created 2019-06-16
Last Updated 2019-09-21
 

Omar-Avelar

Senior Member
Feb 3, 2013
1,119
2,235
CHANGELOG

  • 9.0.0 - Increased responsiveness by adjusting input boost and stune values. Updated the thermal mod values again, revert LA.UM.6.5.r1-11700-8x96.0 to fix green tint crashes and updated to AnyKernel3.
  • 8.0.0 - Merging LA.UM.6.5.r1-11700-8x96.0.
  • 7.0.0 - Update SDCARDFS driver. And updated the thermal mod values to account for GPU undervolt.
  • 5.0.1 - Re-enabled -O3 optimizations and increased little cores boost.
  • 5.0.0 - Compiled with Linaro GCC 8.3.
  • 3.2.0 - Biased a little towards better performance and keeping power consumption almost intact.
  • 3.0.0 - Working camera with Lineage OS 16.0, and extended screen with notch enabled.
 
Last edited:

mikekote666

Senior Member
Jan 30, 2018
212
110
Thank you for your amazing work @Omar-Avelar keep up the good work!A suggestion tho,wouldn't be better to switch on a newer GCC version i think it would be a help to you work as 9.1 which is the latest one has many improvements over the previews versions.
 
  • Like
Reactions: MEMO#22

jtay419

Member
Aug 25, 2017
21
18
VS995 Bugs

Thank you so much for this awesome kernel, makes the V20 usable ? Only bugs I'm seeing are no flashlight and camera.

Update: They both work now! Not sure what I did but I'm glad I did it lol
 
Last edited:

heoxum1

New member
Jan 10, 2019
1
0
any way to use this on an F800L V20?
It's running the US996DS version of LOS16 perfectly, but Gamma Kernel cannot be installed as-is :confused:

did do.devicecheck=0, worked :)
 
Last edited:

Enicity

Member
Mar 29, 2019
5
0
How is everyone getting the camera to work? Nothings detecting it on my US996-DS...

Edit: [NVM I'm retarded]
 
Last edited:

Nachitoo

Member
Jul 1, 2014
45
3
Unfortunately, it made my phone even laggier, scrolling was laggier and everything felt worse, I even did a clean install of LOS 16 and it was the same, I don't know if I installed it wrong, I installed the ROM, then gapps, then the kernel and the add ons, and finally magisk. Is there anything I can do to fix this issue?
 

karkand

Senior Member
Jan 31, 2012
797
317
Jakarta
Unfortunately, it made my phone even laggier, scrolling was laggier and everything felt worse, I even did a clean install of LOS 16 and it was the same, I don't know if I installed it wrong, I installed the ROM, then gapps, then the kernel and the add ons, and finally magisk. Is there anything I can do to fix this issue?
No offense but you should try go to nougat stock and do the dirty santa process all over again.
 

Nachitoo

Member
Jul 1, 2014
45
3

mikekote666

Senior Member
Jan 30, 2018
212
110
The phone touch becomes unresponsive at times many users have reported that on LOS 16 i thought posting it here as possibly is kernel related as with stock lineage never had this issue even on the latest build.Again thanks for your work!
 
  • Like
Reactions: karkand

Koognod

Senior Member
Dec 19, 2013
291
148
Oceanside
So I just flashed the most recent version onto my 710 running rr and now my display extends up into my second display except theres a notch where the camera is. Is this supposed to be a feature or have I done something wrong? Am I missing something?

---------- Post added at 08:54 PM ---------- Previous post was at 08:50 PM ----------

Also those who said their camera and flashlight weren't working, what did you do to fix?

Figured it out. I was flashing gamma for the wrong Los version. It's hard to tell when you're on a rom that doesn't state who their base version is. My bad guys
 
Last edited:
  • Like
Reactions: Omar-Avelar

Sigil_Thane

Senior Member
Dec 19, 2015
87
22
LG V20
LG V60 ThinQ
Running lineage-16.0-20190625-X86CPU-h910.zip with the latest OpenGApps and v4 plus all the recommendeds from the OP.

I have Bluetooth connection issues with my car stereo/hands free.

What can I provide to help troubleshoot?

* I will be reflashing with the same config minus the v4 kernel just to be sure that's the issue.

Sent from my LG-h910 using Tapatalk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 34
    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)

    (Recommended) Stock Tasha XML Audio Mixer FIles : Click Here

    (Recommended) Stock Thermal Engine with Tweaked Values Flashable : Click Here




    SOURCE



    NOTES


    KNOWN BUGS
    • Two second delay between plugging charger and detecting it.

    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: Testing
    Current Stable Version: 9.0.0
    Stable Release Date: 2019-09-21

    Created 2019-06-16
    Last Updated 2019-09-21
    21
    CHANGELOG

    • 9.0.0 - Increased responsiveness by adjusting input boost and stune values. Updated the thermal mod values again, revert LA.UM.6.5.r1-11700-8x96.0 to fix green tint crashes and updated to AnyKernel3.
    • 8.0.0 - Merging LA.UM.6.5.r1-11700-8x96.0.
    • 7.0.0 - Update SDCARDFS driver. And updated the thermal mod values to account for GPU undervolt.
    • 5.0.1 - Re-enabled -O3 optimizations and increased little cores boost.
    • 5.0.0 - Compiled with Linaro GCC 8.3.
    • 3.2.0 - Biased a little towards better performance and keeping power consumption almost intact.
    • 3.0.0 - Working camera with Lineage OS 16.0, and extended screen with notch enabled.
    6
    Thank you Omar for keeping this phone alive
    can we please get a change log or what new in new kernel versions?
    thank you awsome job!!
    5
    does anybody know how to turn up the DAC volume so it will be more similar to stock on high impedance mode?
    i have very low volume on any headphones using LOS 16 with this kernel
    btw which version of this kernel should have best battery? 4, 5.0.1 or other version?

    I have reasons to believe that ES9018 Quad Dac is not properly working on any RR or LOS builds. Proof of that is that no one is able to trigger high impedance mode even forcing it through mixer_paths_tasha.xml as always worked in Oreo. I have a pair of Audeze LCD2's Fazor , (70Ohm Planar) which should trigger high impedance mode by themselves but it does not happen.

    Also typing in terminal "su -c tinymix | grep Es9*" returns me this status flag: ES9018 State Bypass when it should be ES9018 State HIFI for proper Dac use. Also the flags AVC Volume and Headset Type both show 0 and 0, should be 1 for AVC Volume and 2 for Headset Type.

    Im using Poweramp with Hi Res Output activated. No matter what i do its always the same result. I would be grateful if skilled devs could share some help here because this is one of the best qualities of this phone! Thank you very much and excuse me for my rusty english!
    5
    Thank you Omar, just realized v13 is out. It's running really well on h990ds. Phone feels so quick! What changes have been done?

    I'll report back if any issues.