yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dextructor:
Today I had a few moments to spare so I decided to search for my only smart watch that I have, the Samsung Galaxy Gear. Yes it was never intended to work without a Samsung Smartphone, there was a few guides and attempts/workarounds to make it more compatible, but I have fun enough.

The battery was drained after 2+ years of keeping it inside some drawer and after charging it for 1 hour it was 100% and ready to test.

Pairing with the latest Lineage (2023-10-08) + Swan2000 extreme was a breeze. No problems at all. I used my H990N

Tested sending a FLAC file to the watch and recieved after 2 minutes.

Used the recorder on the watch to test if the mic was working and send the recording to the V20, just perfect.

Since the original plastic armband was dried to a point where it cracked I replaced but I believe that I made a mistake on removing the flex cable to the speaker, so isn't working, but let's continue.

I tested making a phone call to test if the mic on the watch would work, and YES it worked! Of course the quality of the mic isn't great, but even increasing or decreasing the distance from the V20, it still be connected. If I call any number that required pressing numbers during the call, it was recognized coming from the watch.

Probably next week with more time I'll test with the H990DS the same scenarios, and will test sending audio to my machines as a bluetooth speaker. Also I'll find my bluetooth mouse to test with the keyboard and see if I would have any problems.

For now at least on my device it works.

Thanks everyone.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
10/16/2023 build is up!​

Yet another release, though this one is rather small and barely counts as a new release.

Quick Summary:

More updates to the revamped Quad-DAC (V20 only, unless you got your hands on, and managed to unlock a G6 with this feature).​

DT2W is now fixed (fix found by @xc112)​

Both of these will be making their way onto lineage's official kernel soon, so stay tuned!​
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Arya_3RDNumber:
flashed the latest release

tested DT2W for few hours and it works normally

anyway, where I can find Quad DAC Panel App/Option? I can't find it
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dextructor:
For what I could understand from the devs answer... Soon, let's wait because it would be worth.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xxseva44:
The rom side changes have not been implemented yet. However they should be arriving soon.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Alagazam15:
So I'm having an issue on my H990DS running LOS 20(2023/11/13 build) with the latest Swan2000 Stable+Gaming.zip kernel where if I'm using WhatsApp or making a regular voice call, if I'm on speaker mode, the other side can hardly hear me because there is some sort of distortion noise. Regular non-loudspeaker works fine though.

I don't know if the issue is Kernel or LOS related, so any thoughts/assistance would be appreciated.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
That's definitely not on the kernel. Our qdsp6 and wcd9 drivers don't deviate all that much from other phones that use this same SoC.

Most likely it's something rom-side, like mixer profiles... evidenced by the fact that normal calls work just fine.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Alagazam15:
Oh okay, thanks for the response. Well I guess I'll wait an see if anyone responds to me on the LOS 20 thread. If not, I guess I'll submit a bug report.

Not sure if it's possible but I'm curious if the mixer profiles from other LG v20 versions would be compatible with the H990 version so I could probably try using files from those.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
They should be interchangeable, yes. At least i don't think there's any real hardware difference between them as far as mic layout goes.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
11/27/2023 build is up!​

Okay, THIS one feels like a proper BETA9:

CAF Upstream updates pulled straight from lineage's qcom_msm8998 repo while keeping wifi intact

Multiple compiler Warnings Fixed (still a few to go in some of the supported models)

Removed some useless logging

General optimizations to string routines, dcache, PM QoS and UFS

Kanged sony's vmalloc backport for improved performance at high memory usage

Some eBPF JIT commits backported to prepare for the big backport from 4.14 (Android 15 will need it apparently)

Other small fixes and adjustments on G5 and V20 (more to come especially on battery)

Note: I'll be gearing towards source and driver fixes on the upcoming builds instead of performance improvements. There's still a few things to fix on usb and power as a whole and i've been neglecting them for far too long... those are also the kind of commit that gets into Lineage's official kernel without issue.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] taketwicedailey:
Thanks for all your hard work on this.

Sorry if this is an obvious question, but is there a way to make this kernel persist over LOS updates?

Sometimes the kernel remains, sometimes it doesn't for me.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dextructor:
I asked this question almost 6 months ago, and the dev already answered. Please search next time before posting.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] taketwicedailey:
Oh, my bad. I did search, but I did not realize that is what you guys were talking about there.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] taketwicedailey:
A while ago I mentioned on the LOS20 for the LG V20 XDA thread that I was still experiencing crashes and screen freezes on my LG V20 H910 both with the stock kernel and the BETA8 version of this one.

I just want to say that ever since I installed the BETA9 version of this kernel, I have yet to experience crashes or screen freezes. Whatever you have done here has made my device much more stable, so thanks so much for that.

Hopefully this stability will trickle down to the stock kernel.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
It might, or it might not. There's no real commit up to the TRUE BETA9 that was focused on fixing anything, it's mostly optimizations here and there, with some major ones at that... basically the main difference compared to prior versions is that now the phone doesn't use as much power to do the same tasks, especially those that allocate large chunks of memory.

Also, those bigger optimizations are out of luck getting into the stock kernel since they either violate Lineage's charter, or are big squashes with tons of changes bundled in a single commit.

Though to be fair those random reboots might very well be caused by a bad battery, since i can only trigger them on some of my cheaper not_original 3200mAh batteries. 4100mAh perfines or other high-quality ones like heliotion never ever had those symptoms on my H910.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] coogans_bluff:
Could you recommend a shop where to buy these batteries from?

I still have lot of trouble with random crashes, and I'm using two 4100mAh maxxxjuice.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dextructor:
I already recommended a good/reliable source for Perfine Battery on another thread
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Removablebatteryonly:
Can I use this kernel on SuperRom V20, im trying to keep VOLTE enabled so I can still use my phone in America
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
No, i doubt it'll even boot on stock, and if it does, everything will break since 4.4 was a MAJOR overhaul from 3.18 which is used there.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
01/21/2024 build is up!​

And here's the build that matches Lineage-21's latest kernel state!

...it's actually housing a few improvements and fixes that didn't make their way there yet, but oh well...

Brought a few backports with fixes and improvements from linux 4.14 and newer

More CAF Upstream patches with general kernel fixes

_Even more_ warning and driver fixes (binder should be the only one spouting real warnings now, which is expected due to the partial reverts to keep IR functional)

More eBPF improvements and cherry-picks

Lineage's charge limit feature should now be working as expected, or at least close to it.

A few general improvements to memory management and logging

Due to the focus on fixing things, this one shouldn't be any faster compared to the last release, except for some very specific scenarios where one of the backports should make it almost twice as fast, but it's not something users will notice unless they specifically benchmark that backported change.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dextructor:
Maybe I got the impression of being snappier than the previous version, but since I don't care enough to benchmark I don't have the numbers to support my claims, and as someone wiser than me once said: "if you don't have the numbers/evidence, you just have an opinion".

But the only "numbers" that I could have it's the Accubattery real-time overlay that using the same environment of Lineage (2024-01-15) + Extreme Kernel with the same softwares and even tasks, the idle consumption now are reaching lower numbers than before, but on load it also reaching higher numbers.

On the higher as much as ~25% and lower about 15%.

There's a more accurate way of measuring it, and what changes could produced such behaviors?

Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] taketwicedailey:
Thanks for all your hard work!

Now that (knock on wood) crashes are a thing of the past for me with this kernel and a fresh battery, I tried out the stable-gaming version, which makes the whole experience feel like a brand new phone (H910).

I am a little hesitant to try the Extreme version though, with it's "borderline unstable undervolts", even though it seems others like @dextructor have been using the extreme versions for a while.

I guess I am just looking for reassurance that the worst thing that will likely happen is a crash and reboot. At least that is what I am used to when undervolting a laptop. I know you guys won't guarantee anything of course.

Looking forward to the day I get to try this with LOS 21!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xxseva44:
Yes worst case scenario your device will simply reboot unexpectedly. No damage should occur. Also in terms of stability, it'll really be another game of silicon lottery; you'll either win or lose.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dextructor:
Yeah, let me explain my choice of the Extreme Kernel:

Since my variants are H990N and H990DS are known for being the most battery hunger of the v20 variants because of dual sim functionality.

It may seems that isn't much, but if you take into consideration SDCard, dual sim, QuadDAC, 1440p LCD screen , over-engineered USB port and other things, the v20 needs a lot of power.

So I would love to overclock my device, but since I don't play games because I find most smartphone games kinda lame; or at best acceptable, and don't have physical buttons. I would love the next Nintendo "Switch 2".

So If overclock didn't have a real need, why not undervolt? Better consumption, more battery at the end of the day and so far 0 crashes with my usage case.

I'm under the impression that with every manufacturing process improvement node, each time smaller and smaller... The lottery itself it's "being equalized", because I heard a lot in the past and was a community (with CPU's in this scenario) serializing and trying to make it more understandable.

But I besides some sites that are "specialized" in selling those lottery silicon's, maybe I'm out of the relevant discussion channels.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
Not really, msm8996 power readings do vary a ton for the same task (since the surrounding environment and tasks are never exactly the same anyway, android logs a TON of things on the background which can amount to a power spike depending on how close it is to the next poll)... so i wouldn't really bother with that.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
Worst case scenario you'll get a "GSOD" (Green Screen Of Death) or something similar. No actual data loss should happen... tbh a random hard reboot is far more likely to cause data corruption, and even that one is unlikely.

Swan2000 Extreme is said to have "borderline unstable" undervolts because on my H910 they pretty much are and anything lower by 5-10mV risks a crash. (granted it's running a msm8996pro actually, so different bin and clocks, but still)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] taketwicedailey:
I decided to give the Extreme-Gaming Kernel a try. Fairly stable on my h910 for the most part, and a performance uplift. I got about 10% better scores on GeekBench 6 CPU vs the Stable-Gaming Kernel. That doesn't make sense to me unless the Stable-Gaming Kernel is thermal throttling in comparison, which I don't know how to test. Maybe the SoC is more complicated than I think. Anyway, this is a huge plus!

I was able to trigger a series of looped app crashes when trying to download my song library on Spotify. I could stop the crash loop by tapping the power button. If I stop the download, the phone acts normally, but during the download every app would crash after opening. I decided to keep my library undownloaded for the time being. Not sure what is going on here.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dextructor:
The only app that I tested to explore the throttling was CPU Throttling Test but the link to PlayStore it's down for whatever reason, so your only chance it's the apk sites that I can't vouch blindly, but you can try.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] taketwicedailey:
Another thing I have experienced is that apps seem to refuse to stay open in the background. Switching between two apps seems to make the new app reload rather than start where I left off. As far as I can tell, I have the correct developer options checked to allow background apps to run. Is this behaviour expected, or am I missing something?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dextructor:
What I experienced with my v20 it's quite similar, but again it depends on the whole scenario.

You gotta remember that the v20 "only" has 4gb of RAM and the Lineage depending of your configuration, foreground apps, background apps etc will reserve a lot just to keep things running.

If I try to keep open NewPipeSponsorBlock (Youtube but better) + Mull (Firefox but more private) with 2 tabs like this forum and other page... One app will be "suspended", but again It depends on the workload, and Low Memory Killer configuration.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] blur.png:
i feel like this kernel is way to agressive with its memory management compared to the stock lineage one, even just 3 light apps won't stay open in the background. I believe this isnt a "4gb ram issue", its memory management issue. the device idles at around 55% ram usage and wont exceed 65% regardless on how many background apps i spam open, while in lineage it would've been around 70%, and the killing won't start until its somewhere around 85%.

any possible way to modify this? or maybe a kernel branch with a multitasking oriented ram management to keep as much in ram as possible instead of killing them ?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
I'm assuming you're comparing against lineage 20's stock kernel? Because if so, Lineage-21's is already bundling a patch that will make memory management "just as bad", because it won't be the in-kernel lmk managing it, but android's userspace daemon instead through lmkd for improved responsiveness.

There's some work being put into it not being this horrendous for multitasking, but it might still not match the older setup.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] blur.png:
yes, I was comparing it to LOS20 since LOS21 felt too unstable for my taste at its current state. My solution now is just using google's recommended profile for "low ram" devices with lmkd which is perfect for my case (thrashing limit 30, downgrade pressure 30, zram 3gb).

Great to hear work is put into making the memory management better for multitasking.

I still prefer to use this kernel since it makes certain parts felt snappier, like quad dac being more reliable to toggle compared to stock LOS20. Though i still encounter weird issues with music player regardless of kernel or LOS20/21 where if i use a 3rd party player and puts the phone to sleep it starts stuttering, and occasional stutter when i use formats like aac instead of mp3 at sleep. Did i miss something or is this a known bug for the V20 too?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
You could also try the ro.lmk.use_minfree_levels property to see if it helps further, as it would effectively make lmkd work like the kernel's lmk.

DAC has been wonky ever since Lineage 19.1, and is going to be one of the major features on LOS 21, where it won't be just a tile anymore. Can't say i've had those issues you're describing recently, but then again i only use the dac sporadically when i have the time to debug its patches.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
02/13/2024 build is up!​

A V20-Exclusive BETA10+ build since the only actual changes from BETA10 are for our Quad-DAC

Not much on this one, just two small patches to help our DAC work with the new panel implementation, which was successfully approved, merged, and should be coming on the very first Official LOS 21 build!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Hadi99:
Revert to V9 and tune the lmk levels to your liking. Works fine for me with a browser open and a few apps.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] taketwicedailey:
Would anyone mind explaining what this means? I am still fairly new to this, how does one go about this?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dextructor:
Never tried because my use-case scenario the current behavior don't cause any problems for me, but I believe that you need to read a few things to understand what it's being talked about when the subject is LMK (Low Memory Killer)

Current Low Memory Killer Daemon Docs page

Another Official (Github like) Low Memory Killer Daemon

Understand behavior of Android at the time of lack of memory (probably it was written for LMK on kernel instead of deamon)

This guide "Tweak Android Low Memory Killer (LMK) to Your Needs" mentions Kernel Adiutor but I don't know if could work with this kernel or even on Android 13, but feel free to try and report.

But as always, backup first before anything.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] blur.png:
i have already figured out a way to mess with lmkd, some magisk module like meZram can be gutted and modified to just touch up the lmkd side without much effort.

the problem i now have with current los20 update and this kernel is that some apps seems to have issues with in-app downloading and errors out after a while, similar to the first unofficial los21 build.

another more critical problem is general stability, even with the safe kernel the phone has a bad tendency to freeze and hard rebooting in 1 day with no clear triggers/indication. It happen while swapping apps a-b, using the camera or using the quad dac and opening whatever app can freeze and kills it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Hadi99:
I don't face such issues on the latest release of LOS 20 combined with Swan v9 Gaming kernel and lenient low memory killer values set through a kernel manager

what apps cause such freezes?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] blur.png:
when i use the quad dac/playing music it seems like it makes it more crash prone when opening apps.

its not always the case but when it happens its usually because i open the camera, i'm using MTSLCam 7.2.

It starts off with the camera lagging/freezing, a common occurence in my LOS&Kernel experience, then when i'm unlucky instead of recovering it lags the whole phone before becoming unresponsive & forces it to reboot.

device is an H990DS with only 1 sim active if that helps
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Hadi99:
I'm using a H990DS

I admittedly haven't used the quad dac much due to problematic playback when screen is off, via bluetooth playback is fine. I'm using GCam 8.2. viewfinder is laggy but I was never forced to restart the phone.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] blur.png:
i experienced audio stutters too with quad dac on stock kernel but not on this with stock music player with any format except mp3, while for external music player it stutters regardless format & kernel used if the screen is off/device in sleep

maybe the devs can look into this for future los21 updates ?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
To do that, first we need to see how the major dac overhaul will fare for users on Official LOS 21, because the code-base for that changed entirely. We're not even using LGE libs anymore, it's all AOSP... which actually gives us a chance to solve these random bugs since we can control everything now.

But long story short, we're expecting it to be a bit buggier than the old implementation, as we're doing this from the ground up.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] blur.png:
ill gladly try the first official los21 build when it drops for the h990 & report back my findings.

Not to spam the thread but i also encounter problems with bluetooth as some devices like printers with their own app to operate doesn't seem to work/connect in bluetooth as it "crashes" the bluetooth pair new device window & left it unpaired. On an similar note, nearby share seems to be broken as i can't get anything shared to the device

attached the logcats for each situation, maybe it would help troubleshooting, sorry if it looks like im cluttering the thread
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dextructor:
I didn't listened to music for more than a month on my H990N and I never had this type of bug, so today was time to test that. Latest Lineage (2024-02-12) + Latest Extreme Kernel.

My music collection it's all FLAC files stored on the SDCard and using Auxio as music player. I added more than 78 min of music to the queue, plugged my phones, verify if the DAC was enabled, before playing the music.

So at first seemed that it disabled itself after enabling, and I tried to reproduce without success. After being sure that the DAC was enabled, starting playing 18 tracks without any stutter, glitches whatever, and more important, the DAC was enabled all the time with the screen off.

I don't know if the headphone detection was changed or anything like it, but the devs can clarify if necessary.

So at least right now working fine, more tests are needed
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] blur.png:
to be specific, i used simple music player from the play store, the albums i encounter problems the most are ones with apple AAC. with stock & swan kernel even on mp3's screen off play with the simple music player = stutters, but with lineage kernel it will stutter with simple music player playing either mp3 or aac, while on stock player it stutters playing aac when screen is off