yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
That's what it was. Specifically, the 'crc error' means it's possible the zip was corrupt either after building or didn't upload correctly, or there's an issue with your internal storage somewhere.

I've re-built the vs995 version of the kernel, the anykernel zip that you flash and also re-uploaded it so give it a go now (it's still called 'gamma-kernel-SS-v39-vs995.zip').

This time, can you please try this process for me:

1. Update your TWRP to the latest version in Phoenix591's thread (you're a couple versions outdated)

2. Do a TWRP backup of everything except 'System Image' and 'Data Image w/ storage'

3. Wipe all partitions except 'Internal Storage' and 'Micro SD Card'

4. Flash your ROM .zip first, then the kernel .zip. If it fails, send me another log (but please include the kernel log this time as well) but if it passes, reboot to system, wait for it to get into the OS and then reboot to TWRP. Then flash Magisk, etc. and reboot and see if it still works.

5. If the above works, wipe all the same partitions as in step 2 and restore your TWRP backup. From there, flash the ROM zip and kernel zip and see what happens (this is known as a 'dirty' flash).

Let me know, many thanks for the log :)

Edit: I just flashed the updated vs995 zip on my H990 by disabling the device check when flashing, and it successfully flashed with no issues in the log, so hopefully this is fixed now. Feel free to simply try flashing the updated zip.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mrdzu165:
https://pastebin.com/kRhV93Es

still failed :(

i tried flash RR-O-v6.1.0-20180907-vs995-Unofficial-ssdev.zip then flash this kernel, it still fail
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
I'm thinking it might be a problem with your specific device as flashing works fine on mine when I did the test, but I'm not certain as a clean flash should (?) have fixed that.

If it works on the older build but not this one then it's probably something to do with the updated Anykernel binaries, and it looks like it's failing to mount partitions and create temporary folders to use.

It failing to mount /vendor is of particular worry, but I wouldn't know how to go deep enough to solve that.

If anyone else with a vs995 can chime in as to whether or not they can flash successfully, that'll let us know for sure whether or not it's your specific device. As I said before, it worked fine testing it on my H990DS which makes me believe it might something to do with yours. Perhaps Omar or someone else can chime in and see what the problem is exactly from reading the log (the kernel part is near the end).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] TheIronMaiden:
[MENTION=5988026]iDefalt[/MENTION] I understand , I respect your reason. It makes sense as well, kinda hits 2 birds with one stone.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
I'm pretty sure this is a ROM issue laying in the mixer paths file but u have issues with Google voice and mic working until I turn on speaker then turn it off. I mean it seems like not all the mics are working even after as it is still dates in and out and it's quiet.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xttapolatakettle:
I'm on VS995 and flashed the v39 SS kernel about 15 hours ago. No issues here. I'm running on the latest LineageOS 15.1 with TWRP 323-0
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Gamma Kernel Second Screen v40 Release

Gamma Kernel Second Screen v40 is out

Edit: Re-download v40 if you downloaded the initial v40 before this edit, see post #457

Now that I've settled into the routine to building the kernels, builds are a-lot quicker and easier

Features:

- Up-to-date with Gamma Kernel Single Screen v40 (built from the 'gamma' branch) which includes these changes since the last release (v39):

Always tested on these ROMs before a new release:

- Latest UNOFFICIAL LineageOS 15.1 second-screen version by x86cpu

- Latest UNOFFICIAL Resurrection Remix second-screen by Blaises

Flashing process:

It's the same as any other kernel.

Make sure your TWRP is up-to-date

Do a TWRP backup (I do everything except a full system image because that's like 50GB in my case)

(If flashing a ROM, clean or dirty) Flash your ROM first, then the kernel. Please refrain from flashing anything that modifies a boot image (such as Xposed or Magisk) before flashing the kernel, as modifying a ROMs stock boot image and then having the kernel do the same can cause conflicts.

(If not flashing a ROM and you just want this over your existing ROMs kernel) Flash the kernel

For good measure, wipe caches/dalvik

Reboot to system from TWRP

Enjoy!

Downloads are here

Or here: https://androidfilehost.com/?w=files&flid=282339
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] itchydroid:
v40 not working. v39 works as expected

Not working for me. Im on RR-O-v6.2.1-20181011-h918-ARB1-Unofficial (Non-SS).

Resurrection Remix (non SS) with your v39 worked.

Installed v40 and second screen does not work. Everything is bumped down to the main screen and second screen area is just blank.

Reverted back to v39 - working as expected (second screen area becomes part of the main screen).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Gamma Kernel Second Screen v40 (Fixed)

Ah, thanks for this. I've re-uploaded v40 and confirmed it works on my H990DS, you should see the updated builds appear in the downloads folder once they propagate to the AndroidFileHost mirrors.

I know what the problem was, was an easy fix (like most things these days) :p

Apparently git (among other things) had updated after I was finished with the v39 builds, and when I built it this time it had "forgotten" some automated steps I put in place (probably due to a database update or something, beyond me what it was exactly) so I just had to re-apply those. Will remember to check those are still there in the future ;)

I use a seperate copy of the H990 defconfig when testing it on my device before a release to make sure everything is okay, which is why it worked when I tested it. Apologies.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] itchydroid:
Redownloded v40. Working as expected. Thanks again for all your contributions.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Alfanizer:
Can I gamma kernel ss on rom non (ss)??
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Koont:
Yes.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] highgel:
ss v40 fine work on ma ls997.

thx.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rab3072:
Any audiophiles on Gamma?

I've noticed recently my music sounds a but crap and I'm wondering if high impedance is working still...

I used to be blown away by how my music sounded.

Now it sounds a bit... forced? Hard to explain. It definitely feels worse than a the earlier days. Same earphones and everything.

Just curious if anyone else feels the same? Could be just me being para...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
High impedance does indeed still work. I wouldn't call myself an audiophile, but I'm... fussy with my sound gear :P

You could try another music player (Rocket Player is what I use personally because of the EQ options available, and it works with the DAC), another kernel or if you search the recent pages of the LineageOS thread, Omar posted a link to his flashable zip that brings the audio levels back closer to stock, which gave an improvement for me (this should work on any kernel as far as I know).

I've noticed over time my ears have gotten used to how the music sounds and it DOES tend to sometimes sound "bland" when it probably actually isn't. It's a bit like having a warm shower, your body gets used to it so you keep adjusting the temperature until you realise it's like lava (the same goes for audio production and volume in headphones).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
The zip is present under downloads section on the first page of this thread as well.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Ice Bear:
Ice Bear would like to request Adrenoboost for Gamma kernel if possible. Adrenoboost is a GPU boost parameter by [MENTION=4684315]flar2[/MENTION]. Ice Bear has seen Adrenoboost on mk2000 kernel for the V20.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
I have updated the "(Optional) Stock Tasha XML Audio Mixer FIles" files to those from the Oreo drops and to be even more "stock-like".

I have not tried overriding or force-turning on the DAC with them, but I like the volume levels more and mic in the speakerphone mode doesn't suddenly stop working with them.

They are linked in the first page in case anyone else wants to play around with them.

I have also re-added the optional thermal config files as well, since when using the LOS thermal engine checking with logcat (logcat | grep -i therm) I noticed the GPU freq dropping pretty frequently to 510 MHz (caused by the vts aka virtual temperature sensor) as well as an odd reading skin_pmic (CHG_MONITOR) that sometimes read +150°C. Putting back my optional thermal config files now reports temperatures on skin_pmic that make sense of 28-30°C and don't seem to be hit by the GPU freq drop under regular use either.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DesertEagleSlim:
Running this on Resurrection Remix on my v20 and using ex kernel manager I am unable to get my max cpu frequencies to go above 652 and 1036. But on the stock kernel I'm able to set to whatever I want. Am I missing something?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
[/COLOR]

[MENTION=5103965]Omar-Avelar[/MENTION]. After I flash the stock tasha, when in-call, it automatically turn on speaker. I can't turn it off. I can't put it on earpiece.

H990DS. Lineage OS
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Oops, you're right... I hadn't done a phone call yesterday myself. Re-uploaded! :fingers-crossed:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
Will try and report.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jl10101:
Interested to know if this fixes bluetooth calls and speakerphone calls (all with regards to the mic / listeners sound quality)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
It seems the spekerphone problem is solve. But I don't know about the quality. Will try it out. Thanks [MENTION=5103965]Omar-Avelar[/MENTION]
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EnterTHEvoiD:
Thanks for this great Kernel Omar, I've been using the SS v40 together with resurrection remix 6.2.1 and it's an amazing combination! Full screen with notch on the left :D

Quick question, are you still updating the SS version?

Thanks again
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
What variant is this? Seems like the thermal engine is kicking-in, see the freqs that the thermal engine uses to lock here

When that happens, can you open adb as shell and do "logcat | grep -i therm" ?

UPDATE: I have added a modified thermal configuration file based on comments from [MENTION=7223975]rjavc[/MENTION]. It is not that extreme, so phone shouldn't overheat at all and charging current is still controlled when screen lights up. It can be found in the first page under downloads. Called "(Optional) Stock Thermal Engine with Adjusted Throttling".

This one is no longer using LGE's stock values, only the stock engine, let me see if that solves your issue!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
I'll endeavour to get a SS version update out with the release of Gamma v45. Right now Omar's github repo I get the updates from is in-between versions in that it's got new files added/updated but is incomplete (think of it as currently at Gamma v44.5). I tried to build from his current repo's state and it boots straight to fastboot, which I suspect means it's not in working condition.

I've PM'd Omar about potentially doing something to make it easier for me.

The way it currently works is that I have to update my source from his the moment he releases a new version, otherwise if I wait too long he starts adding additions for the next version, and I get in the situation I am currently, which is where the kernel isn't in a working state due to partially-merged updates for an upcoming version.

This means I have to wait until the next version is released and repeat the whole cycle, which delays releases.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rab3072:
I'm getting kernel crashes often. Then I restart and I've lost half my battery power. Weird.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Sounds like a battery problem imo, which would be the case if the battery isn't able to provide the amount of power the SoC requests from it at any given time, such as increasing/decreasing frequencies.

Try re-flashing your ROM and then the kernel over the top, wipe cache/dalvik and reboot. Charge the device if you can and leave it locked. It can take a few days for a ROM/Kernel update to settle on a device, so in that time you should have a solid period of it being plugged in with no use (i.e. overnight) and let it sit idle on the battery.

I'm not personally getting kernel crashes or the battery problem you mentioned. Might be worth picking up a spare one on eBay in-case your current one kicks it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EnterTHEvoiD:
Many thanks! Appreciate your and other developers' hard work, LG v20 is better than ever, no reason to change the phone :good:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DesertEagleSlim:
Checked the first post and did not see link for this thermal you mentioned. Saw the normal one then 3 others below. Which one is it?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Ice Bear:
Ice Bear has edited the Stock thermal engine with modified values that [MENTION=5103965]Omar-Avelar[/MENTION] has uploaded. Now the V20 has fast charging while the screen is on. The stock thermal engine really makes a difference in temps compared to the LOS thermals but Ice Bear needed fast charging while the screen was on so that's what the edit was about.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EnterTHEvoiD:
I've just flashed Tasha XML audio and still having issues, when loudspeaker is active and am speaking on the phone the other person can't hear anything...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
My previous problem is that when in-call, it automatically change to loudspeaker and can't change it. The new file that Omar-Avelar upload solve that problem. For your issue, I'm also getting it. The other person on my end tell me that my mic is distorting or echoing when using loudspeaker. This also happen to me when I'm playing PUBG Mobile. I don't know if my mic is the problem. [MENTION=5103965]Omar-Avelar[/MENTION].
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EnterTHEvoiD:
Exactly my problem, must be an issue that hasn't been resolved yet. I don't think the problem has to do with the mic as it works normally when loudspeaker is inactive.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Let me take a look, might me a problem with my *.xml files somewhere. Let me see :fingers-crossed:

So with stock LOS *.xml's you get the speakerphone/mic problem where they stop hearing you after a few seconds/minutes? And now with my with XML's they hear you but it starts to become distorted when the phone's loudspeakers are playing things, did I get both of you right?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EnterTHEvoiD:
The problem appears right after I activate the loudspeaker. If I disable it, the person I'm speaking with can instantly hear me again.

I should add that this issue was already present before your XML patch... I've installed it hoping that it would fix it, but it didn't.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
Same with me. Before flashing the tasha file I've already have the problem.

---------- Post added at 02:14 PM ---------- Previous post was at 01:30 PM ----------

Yes. The person on my other end say that my voice sounds echo(ey) and can't hear my voice when using loudspeaker. Using the earpiece seems to be working ok when in call. And when playing pubg my friend says the same when using loudpeaker. I have to use earphone's mic. I test the mic using recorder and it seems to works fine. Only when in call and games. Sorry for the long explanation. Seems to start having issue when flash lineage (I think).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
I think I've finally fixed it. Check the original thread for the updated link to the patch, md5sum 0feefc22cedbc8a196294a0ddf35f7b5.

There were a couple of lines in the XML that I removed that LOS had added that seems to introduce a problem when mic and loudspeakers activate. I validated it the best I could. Let me know if it solves the issues 100% for you guys now :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
(Recommended) Stock Tasha XML Audio Mixer FIles : Click Here. Is it this link?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EnterTHEvoiD:
Thank you Omar-Avelar that did the trick! :DD The sound quality seems a bit low but it does work!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
What sound quality? The recorded voice? Or which one you feel is lower? Also, lower quality vs what? I want to see if I can improve it even more
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
Just test it out. Seems to be working better than before. The person on my other end said that he/she can hear my voice (loudspeaker) but not as clear as when using the earpiece. He/she said my voice a little muffle and hear an echo of my voice and her's when using loudspeaker. Have not try when playing PUBG. Thanks [MENTION=5103965]Omar-Avelar[/MENTION].
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EnterTHEvoiD:
Exactly my words, voice on the other end sounds a bit muffled and not as crisp as when the loudspeaker is disabled. The sound quality of the mic seems to only be affected when loudspeaker is on, otherwise it's very crisp, on any app you use it for.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
I use PUBG and it seems it's affected as well. Have to try it again.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
I think I was able to reproduce it with a loud YouTube video playing while being in a loudspeaker call. I was further able to minimize muffling a little bit but what happens now instead of muffling is that it sounds a little "faded" or less "volume" since active cancellation is happening (I think) this is based on what I was able to test when loudspeaker kicks at higher volume levels.

Experiments here when the loudspeaker volume is not at max showed there was not echo with this patch. Let me know if you guys also see the same or at least better.

Patch is the same link as before with md5sum of 5cf73b38896ba3c217e8e1dbbc6636f7.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] thtkidsvm:
On the latest version of SS-RR with gamma ss v40 I experienced a spontaneous glitch where the second display backlight is brighter than the backlight for the main screen or the main screen backlight isn't on at all:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
I look at the changelog for the v37.0. It have re-adjusted the thermal and tasha files. Is it the same as the patch and will I have to flash the patch after flashing the kernel?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
No-need, they're all independent! ;)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
Edit from my previous post: V47.0

Thanks [MENTION=5103965]Omar-Avelar[/MENTION].

First test: Call using loudspeaker. Flashed kernel v47.0 without flashing the patch. The person on my other end said that she can't hear any muffle or the echo voice of her and mine. Seems to works fine. Need more testing with PUBG chat and more loudspeaker test.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Glad the latest Tasha *.xml patch is working well ;)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
Is there any difference between the xml patch tasha file and the re-adjusted tasha in v47.0? Before flashing 47.0, I have flash the latest xml tasha patch on top of v46.0, the results seems to be the same as before. The person on my other end said that there is an echo of my voice and hers.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Grin59:
Just a thank you to the devs on gamma kernel. I decided to go without the second screen, and just flash a non ss build with the non ss gamma kernel and everything has been smooth and amazing. No screen retention either, I thought my screen values were good until I updated to the latest gamma. Now everything is muuuch better :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
Update on loudspeaker call (2 person called): Test 2. I test 2 condition, v47.0 kernel and v47.0 kernel with optional tasha xml patch. Both have the same result based on the person on my other end. When on max volume, the person on my other end said that they hear their voice back (echo) but when on low volume, both can't. My voice sounds perfect they said. Not yet tested on online gaming (PUBG). Thanks [MENTION=5103965]Omar-Avelar[/MENTION].
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
I was reading reddit today and saw a similar behavior of what I see in LOS here https://www.reddit.com/r/lgv20/comments/9s9o58/not_repasted_but_the_cpu_stress_test_results/.

Apparently when they run the thermal throttling app with battery at even 44% the performance of the device remains @ constant 47,000 GIPS (2nd, screenshot) . The performance of this device should be 76,000+ GIPS constant before thermal constraints throttle.

But apparently this means that stock ROM also throttles performance and thus benchmarks are affected on battery level variations, have you seen this with mk2000 or stock based ROM's yourself?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
I will see if I can improve it even further during the week, but at least its getting better. Do let me know how PUBG goes. thanks for the feedback!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
Will do. No problem man. Happy to help.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
I did pay extra attention on alleviating screen retention with the Oreo screen values! Glad you're also enjoying it! ;)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] askermk2000:
This is not something I would typically notice with the way I use my phone. So I didn't know, but I ran that test now on G5 Nougat (Fulmics 5.5) and latest mk2k kernel.

As we see there's clearly the same artificial limit in place.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
[MENTION=5988026]Redline[/MENTION] Thanks for the update, was waiting for the SS version . Will flash it now.

One question for both SS and non SS kernels. If I flash the kernel, do I need to separately flash tasha audio zip and stock thermal? Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
The tasha audio zips, I'm fairly certain no. The zip only overwrites files in /system/vendor which the kernel doesn't touch AFAIK. You do need to re-flash these after a ROM update since this updates /system and /vendor.

The stock thermal zip I'm less sure about, Omar would be able to give a more definite answer. Again, this zip touches files in the above directories but I'm unsure if flashing a kernel update overwrites these, since it has its own.

I could be wrong on both fronts, where the kernel writes its files to that isn't anywhere a kernel normally should isn't something I've looked at yet. I'm sure Omar can give a better answer or you'd be able to find out from testing :)