yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
It's not that hard to find the information on it. There was a post HERE by OP explaining it, and I've confirmed myself (through use of high impedance headphones) that it does indeed work. It's linked in the OP too.

The line, specifically from that post that says "The tasha XML's configuration could have had less gain on the versions and could correspond to different volume levels than what stock uses since the xml's for the audio path.. " would be why the audio output vs stock is different.

There's a kernel analysis in the post I linked and, as an audiophile (and hobbyist producer) myself, I've looked at other files relevant to the DAC and it does indeed work. The reason most people likely notice the sound difference is because of the different values in the XML file compared to stock. If you're a dev yourself, you can follow the instructions in that linked post to toggle the DAC and see if you hear a difference. There's also 3 different "levels" according to the impedance of the headphones that are connected, so may be noticing less of an overall different unless you had 600Ohm+ headphones connected.

LineageOS has audio offloading to the DAC on by default, and perhaps there's things missing from LG's stock source that makes it sound different to AOSP ROMs (remember, there's even models that are DAC-tuned by B&O on the stock OS) but the DAC definitely does work. You're probably not going to notice it as much on an app like YouTube where the videos are 192kbps audio at best, but through a music player it should be more apparent. I use Rocket Player and can notice a difference in audio quality vs other players, so it might just be a case of finding one that works best. Foobar2000 will definitely give you a better result than an app like YouTube would, and it's quieter for the reasons I already said above.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lybxlpsv:
h990ds here with lineageos 15.1, Just tried the v30 (single screen) kernel and the touchscreen doesn't seem to work for some reason. I'll post a boot logcat later cuz its nearly monday and I need the phone working for now.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Gamma Kernel Second Screen v30 Status

Hey all,

Just wanted to let you know that I am getting a green-screen on boot with Gamma v30 Second Screen with errors that look like they are related to the new touchscreen firmware. I have sent a photo of the green-screen and other relevant details to [MENTION=5103965]Omar-Avelar[/MENTION] for him to look at.

I also tried single-screen v30 dirty-flashed over v29 and it works (no green screen on boot) but the touchscreen is unresponsive (same as the post above) so for now I don't recommend updating to v30.0.0. builds of Second Screen v30.1.0 will be out later today.

I am currently getting ready to go away on a 2-week trip and my personal PC will be out-of-order for a GPU upgrade while I'm gone, so I will build from my laptop if updates come out while I am gone.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Oh well, took down the v30.0.0 build since H990DS didn't want to cooperate with the new firmware files. Uploaded v30.1.0 which has those reverted, hope it boots again ;)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NippleSauce:
Wow, I don't know how I missed that post. Thank you so much for linking it! =)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] TheIronMaiden:
I downloaded your file from AFH , and my anti virus detected a trojan virus in your latest h910 second screen kernel. your AFH handle is "Redline"? my computer wont even download it. just a heads up
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
That's my current alias yeah, iDefalt is a fairly old one of mine and I don't even know if you can change your username on XDA.

Thanks for the report, I ran that zip through Bitdefender on my laptop and I didn't get anything. The zip just contains the compressed kernel image and instructions on how to unpack it for TWRP. Source code is identical to Omars at this point save for some defconfig changes which are text-only. It's possible if your A/V software has the ability to scan the compressed kernel image it's seeing code that modifies something it shouldn't and flagging it.

IIRC it can be fairly common with some A/V software to get a false positive on phone kernel zips, in fact I had this happen multiple times while going through the original Dirty Santa process with my Bitdefender, but I'm happy to run future builds through virustotal if it satisfies.

Unless you're not using an ad blocker and you clicked one of those "alternate" download buttons there shouldn't be anything wrong. Battery life is delicate enough to manage as it is, and it's not like Crypto is currently worth distributing miners for ;)

(This was a joke, seriously.)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] kadajawi:
Thanks for the clarification. I saw that post, but I thought it said it was all just in theory. Due to lack of an high impedance headphone he couldn't confirm it.

As for the tasha XML config... I'm not talking about the steps, but about maximum volume. Now gain could be lower, yes, but it seemed much like how it is when not using the DAC and amp.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] CrUxXxX:
flashable-h910-gamma-kernel-v31.0

Thanking you all very much.

Anyone knows about changelog?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Second post in the thread. Under the OP.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Is that the G5? I could try building you one and you let me know how good it works... are you willing to try? :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] CrUxXxX:
The new changelog for v31. 0 wasn't there before I send this. Thanks anyways, though
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Ice Bear:
[MENTION=5103965]Omar-Avelar[/MENTION] What is the adjusted Tasha xml file?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
It changes values for the sound and some other things to be closer to stock. People commonly complain that music for example is quieter on AOSP than it is on stock, and although you could fix this by simply adding a gain equaliser to your music (Spotify, Rocket Player, etc. have this) you can also flash the XML zip if you want a more true-to-stock experience.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Can anyone with a H990* variant let me know if v31/v30 single screens are working well? :) Greatly appreciated!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
H990DS. It's been working well for me. Didn't notice any bugs. Currently in the process of flashing v32
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Demitel:
H990DS user here, I've been using rr6.2 and gamma kernel for about 3 weeks now and its really great. very satisfied with the performance of the gamma compared to the built in kernel, Thanks to all developers doing this kind of stuff :)

---------- Post added at 04:26 PM ---------- Previous post was at 04:23 PM ----------

They are doing great, i don't see any bugs or anything ruining the experience, i am currently using v32 :) Thank you very much sir for the effort :)

-h990DS user
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rjavc:
Can we change the camera2 api level? I checked and its not Level_3, shows only full.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
I think I'll try it too. You move the time to the left and include all the things like date, day etc. So that this stuff is what gets cut out in the "notch"
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Finalbrez:
Hey, I've been loving this kernel! Running it for a month or two and all has been great. Would it be possible to get Wireguard built into the kernel though? I've been really missing that as the Userland implementation is kinda poor running with a limit of 1 connection at a time.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Black6spdZ:
Last couple kernels and my phone doesn't charge.. Back to v26 and all is well again
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
..Do you have anymore info? I don't know what charger you're using, what cable, what version of the kernel, what OS or what device.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SketchyStunts:
Ls997 here... Version 30.1 to 32 & phone won't charge. Actually will also show 1% upon flashing & shutdown.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Black6spdZ:
Lineage 15.1 "non DS" x86 20180903. I use a USB-C to inductive charge adapter under the cover on a Samsung fast-charge inductive base. It's a slow charge 500-1000mA but gets the job done overnight on the nightstand. v26 charges fine but with the newer kernels the base lights like it is charging but monitoring the battery voltage and SOC it doesn't increase at all. Very odd
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Seems like I am able to reproduce with a weak (less than 1 A) USB cable/charger. Let me check during the week and see where the problem was introduced... thanks

UPDATE: I think I've fixed it with v33.0.0. Please let me know if everything works well with the inductive charger as-well!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] CrUxXxX:
With brightness level. Problem with it sometimes. I'm on RR-O-v6.2.0-20180927-h910-Unofficial, flashable-h910-gamma-kernel-v33.0, flashable-lge-v20-tasha-xml-patch and magisk 17.2. I think gamma kernel v33 causes problem on brightness level?

---------- Post added at 05:14 PM ---------- Previous post was at 05:10 PM ----------

FYI, with NO automatic brightness level. I did 0-100 % brightness level not even switch it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
It happens to me some boots (not all) using lineage-15.1-20180903-X86CPU-us996.zip (personal phone). If it happens -- it happens at boot. But if I have to reboot -- and this reboot I don't get affected by it and it starts working again.

Using an older release lineage-15.1-20180903-X86CPU-us996.zip on another family member phone same Kernel and don't have the issue.

Now... I don't know if the problem comes from using a GCC Compiled Kernel with an OS compiled with Clang, of it is something else?... Didn't feel like doing a clean wipe so I am waiting to see if a new LOS builds comes to test :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
I'm not missing the dirty Santa version for us996 am I?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] muckc:
Can i underclock my phone with Kernel Audiutor, the clock just swith back to default after a while.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
You can set a max frequency in Kernel Adiutor and the kernel abides by it. I use this to cap my CPU at 1.5Ghz since the most demanding thing the phone handles is app installs/updates.

You can't however change the governor, as stated in the first post of the thread:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
[MENTION=5103965]Omar-Avelar[/MENTION]

Can I request a dirty Santa us996 version since my phone is bpt version (bright point us996) and has to use ds. Also anyone with us cellular version us996 would need it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Sent you a PM, let me know if it works ;)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Let me check. If you flash the us996 version of mine as it is -- is the only problem is the static on boot?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
38.0.0 is out with a couple of changes that I was experimenting on -- I was micro-benchmark focused during these changes. It seems to be able to reach a decent enough Geekbench score without any overclocking and didn't seem to affect battery life (much) from what I can tell. (The Geekbench score sucked a few builds ago).

​

Feedback appreciated as I removed a lot of factory/testing code from LGE's charging code, this should have fixed the "no charge" under certain circumstances or chargers with my Kernel. Also noticed that the colors were not iPhone-like calibrated anymore after I had merged a few *.dtsi from the Panelf rom Oreo. So I adjusted that again from the KCAL default values at boot itself (this should also prevent screen-retention).

http://browser.geekbench.com/v4/cpu/10264423

UPDATE: Still no Wireguard
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Gamma Kernel Second Screen Update Status

The problem was fixed courtesy of [MENTION=6814590]askermk2000[/MENTION]

The Anykernel folder in Phoenix's kernel builder was outdated, and Osm0sis patched some files after Phoenix last updated his kernel builder to fix an issue with a typo causing the boot image unpacker to not function properly.

New builds will be up later today :D
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rab3072:
I'm getting a lot of battery train with this latest kernel
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Alfanizer:
When battery below 40% performance dropped,
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
I am also seeing this as I was doing micro-benchmarking and Geekbench with different battery levels. I have been wanting to get more documentation and data on this. In theory the culprit of this must be the BCL monitor. I (and many others) have left the BCL values default from LG's source ourselves, does anyone have any reports of this same symptom happening in stock LG ROM's for the V20?

For example the *.dtsi defines things such as:

* qcom,high-threshold-uamp: The battery current, in microampere, after
which the BCL driver should cap the maximum frequency.

* qcom,vph-low-threshold-uv: The battery voltage threshold below which the
BCL driver starts monitoring the battery current thresholds and
mitigates the CPU on the event of high load.

* qcom,soc-low-threshold: The battery SOC percentage threshold below which
mitigation needs to be applied.

But I haven't noticed anything strange. But do want to investigate this... as it could also be something else entirely...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nakashima Taiki:
I notice it as well. In my case playing games (pubg).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
I haven't faced this in v20 stock based super V20 rom with mk2000 kernel on my 990ds
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] askermk2000:
Maybe it's not on stock rom because of the thermal-config and perhaps some other configs which overrides device tree.

If it's the bcl settings in msm8996.dtsi, I'd try lowering these two by 0.1v like so:

qcom,vph-high-threshold-uv = <3400000>;

qcom,vph-low-threshold-uv = <3200000>;
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Alfanizer:
Yup me too lol
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
/sys/devices/soc/soc:qcom,bcl # grep . *

adc_interval_us:0
big_freq_max:1036800
grep: driver: Is a directory
driver_override:(null)
freq_max:1036800
high_threshold_ua:4200000
hotplug_mask:12
hotplug_soc_mask:8
hotplug_status:0
ibat_state:0
low_threshold_ua:3400000
modalias:of:Nqcom,bclT<NULL>Cqcom,bcl
mode:enabled
grep: power: Is a directory
grep: power_supply: Is a directory
soc_low_thresh:0
grep: subsystem: Is a directory
thermal_freq_limit:1036800
type:bcl_peripheral
uevent:DRIVER=battery_current_limit
uevent:eek:F_NAME=qcom,bcl
uevent:eek:F_FULLNAME=/soc/qcom,bcl
uevent:eek:F_COMPATIBLE_0=qcom,bcl
uevent:eek:F_COMPATIBLE_N=1
uevent:MODALIAS=of:Nqcom,bclT<NULL>Cqcom,bcl
vph_high_thresh_uv:3500000
vph_low_thresh_uv:3300000
vph_state:1

The voltage looks ok (49% battery here) but the voltage will drop most likely when under heavy load.

/sys/devices/soc/soc:qcom,bcl # cat /sys/class/power_supply/battery/voltage_now
3919502

I originally (few months ago) thought it was hotplug_mask and hotplug_soc_mask but those guys are not used it seems. They opted in for the voltage/current monitoring instead :eek:

Will run it as you suggested for a few days to see if it's indeed giving the problem or not (but I will be out of town again, so I will upload a zip with postfix "-bcl-mod.zip" to see if you guys using LineageOS like me see any difference.

I also see that the Axon 7 Oreo *.dtsi had these adjusted /commit/618c31a972858895b0615f4d2662a9ceac784abb mmm...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Thanks [MENTION=5988026]iDefalt[/MENTION] and [MENTION=6814590]askermk2000[/MENTION]... never thought the AnyKernel blobs could have been the bad apples! :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Gamma Kernel Second Screen v39 Release

Gamma Kernel Second Screen v39 is out :D

After delays caused by my overlooking simple things, another second-screen release is finally here. Many, many hours of thanks to [MENTION=6814590]askermk2000[/MENTION] for the fix I needed! :highfive:

Also thanks to [MENTION=5103965]Omar-Avelar[/MENTION] for the time he spent reading all my PMs and helping me out as best he could :D

After you flash, if you could please reply and let me know if everything went okay, that would be great, just to verify everything is finally right in the world once more ;)

Need to knows:

- Built from the 'gamma' branch as mentioned below.

Features:

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

- Touchscreen & fingerprint work this time (as opposed to the attempted v30 release) ;)

Personal Changes:

- Built using the new Linaro 2018 toolchain snapshot (identical to single-screen)

- Automated renaming of build .zips to '-SS' so I don't miss this when doing my builds at 3am :cyclops:

- Updated kernel builder (thanks to Phoenix591)

-

Updated the Anykernel folder in the kernel builder

look let's just not go there alright :)

- Flashing a build will now show 'Gamma kernel second screen for LG V20'

- Going to settings -> device -> about and looking at the kernel info will show the specific Gamma version you are running (e.g. Gamma-SS v39)

- Build .zips are now named 'gamma-kernel-SS-version-variant.zip'

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

(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] TheIronMaiden:
Good job dude I'll check on this later. you may want to open up your own thread if Omar doesnt object to it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
When I first released v29, it was after I'd messaged Omar asking how he wanted me to do things, since he does all the heavy lifting essentially (I just provide a way for the kernel to use the second screen framework by Zacharee1 and Blaises in a second-screen enabled ROM).

He responded by asking me to start with having the one thread for both versions, which is perfectly okay with me. I do realise that some posts (like the v39 update post) are quite large and take up a lot of space, and I don't want to seem like I'm clogging the thread in any way, I'm just doing what Omar asked me to do, especially as this is his thing.

That being said, I'm always open to starting a separate thread dedicated to the second screen version. If Omar asked me to then I would instantly. Under XDA-developer rules (rule 12 specifically) I'm able to do it myself provided I give satisfactory credit/thanks to the relevant people. Doing this would make second-screen Gamma essentially a "forked project" in Github terms and I'd also be able to do more personal changes to the kernel, as opposed to just implementing second screen functionality.

The reason I don't just do it is out of respect for Omar and how he told me to do things which, again, I'm totally okay with. At the end of the day as it's his kernel/project and if I went ahead and did it myself, he could have the project taken down since he hasn't expressly granted me to use it in that way, and the authority of the original developer of a project (including his ability to say "no") trumps my being allowed to do something like that myself, as thanks/credit isn't enough (at least IMO) to justify doing something without asking someone.

I hope you get what I'm trying to say (it's 5:30am here, I'm doing the best I can :P)

I'm glad you asked publicly though, it's a question I've gotten a few times :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Just because reporting/seeing issues is easier this way (as it will be the same shared source). And I don't mind the long posts, they are quite useful! Keep it up!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xXCoolGuYXx:
Hell yeah I missed this ROM thanks to a buddy I find it again ?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Alfanizer:
How about performance dropped when battery 40%? u Fix that on new update?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
Yeah static in boot let me try a full boot up.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] CrUxXxX:
FYI, Kernel crashed on flashable-h910-gamma-kernel-v39.0.0-bcl.zip over RR-O-v6.2.1-20181004-h910. heat in my pocket. So, Rolled Back to v38.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Does it do it on the non-bcl v39? I suspect it wouldn't, since I didn't get a crash during v39 second-screen testing (it doesn't have the bcl change from Omar implemented) which probably means it's something to do with that.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] CrUxXxX:
I flashed non-bcl v39 and clear cache/ davik. Hopefully not kernel crash awhile off screen in couple hours
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
Yeah just the static from what I can tell.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mrdzu165:
I can't flash gamma-kernel-SS-v39-vs995.zip, unzip failed
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
What's the error say exactly?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mrdzu165:
updater process ended with ERROR:1
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Can I have more information about your device, ROM, etc?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mrdzu165:
i use vs995

rom RR-O-v6.2.0-20180922-vs995-Unofficial-ssdev
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Okay, thanks.

Do me a favour and re-download the kernel zip, then reboot to TWRP and try flashing the ROM again for me (as well as any /system modifications you have like Magisk, Xposed, etc.).

Once you do that, reboot to recovery again and try flashing the kernel zip again (it'll succeed if you had a corrupt copy of the zip or will fail if you're having an issue). Then, go to Advanced -> copy log and enable "include kernel log". By default it should copy them to /data/media/0/dmesg.log and recovery.log (but it will tell you where these are).

Once that's done, pull those files from the phone on a PC and upload them somewhere I can access (or you can do it from your phone if it's easier) like copying the contents of each file to a pastebin, or just uploading the files themselves to any file host.

From there I'll see what the issue is, but I've not gotten any other reports of this so hopefully it's an isolated issue.

Basically: Re-flash ROM, reboot to recovery, re-flash a new copy of the kernel zip, advanced -> copy log with kernel logs, upload logs somewhere for me to view.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mrdzu165:
https://pastebin.com/A17YhtZb

Still failed

i flash kernel 13/9 it's ok