yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] PindoterO:
I got the unofficial build working, daily driving it now. It's an issue only on the official build.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] npjohnson:
I see the issue, fixing it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] loyukfai:
Pardon my ignorance, what's special about the Quad DAC and how can I make use of it?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] febbywidyaningsih:
First at all thanks for dedicated on this device!

Just curious anyone have issue when battery under 20% phone suddenly restart?

I on official H990 clean flash, I have 2 battery (original and weird double power) both have same issue when I plug in and wait until <20% battery phone just restart itself.

It runs great on LOS 18, If you need some info I can provided it.

Other than that, ROM looks good! Performance was improve from LOS 18 and thermal was little bit cool (I got 3c down when playing game, which GREAT!).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mmsp15:
I just tested this and mine happened at 11% however my h910 just shut completely off. It booted back up however with no issue and still at 11% but running any battery intensive app it would restart or shut back off again. Some different games or such refused to load at that battery level. No error was shown or give so unsure how to post a report to help solve the issue.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xxseva44:
Then your battery is bad. "Some different games or such refused to load at that battery level", is a tell tale sign that your battery is shot. I'd recomend getting a new battery, or turning off bcl through the terminal as a temporary solution.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
Time for a small wall of text to clarify a few things about the V20 since i don't think this has been posted on V20's XDA forum before:

The V20's SoC alone uses A LOT of power when stressed, upwards of 10W if you really know your stuff. Couple that with the V20 probably being the most feature-complete msm8996 phone in existence, and you can get some really high power figures out of it, which makes it hard for "standard phone batteries" to handle.

That's where BCL (Battery Current Limit) comes in: It's in place to prevent the phone from using too much power and damaging the battery in the long run... it has access to a range of mitigations that go from simply reducing the CPU clocks, to basically restarting the phone or turning it off in case of danger, but of course, LGE didn't tune it that well, so let's delve a bit on how LOS 19.1's (kernel 4.4) BCL differs from LOS 18.1 (kernel 3.18, using LGE's stock values).

On 3.18, BCL starts acting as soon as the battery hits around 3.5V~3.4V, which is very high for a "current throttle threshold" and doesn't care at all for battery capacity, which is probably why some users complained that LOS 18.1 was generally unresponsive, because the battery voltage could randomly drop when the SoC was pushed in short bursts and BCL would kick in without really being needed.

On 4.4, we had to balance responsiveness with BCL safety, so what i did was set BCL up in such a way that it would only start throttling the phone whenever the battery is around 3.1V (still within safe operating voltages with some additional headroom) or its capacity goes below 20%, whichever comes first. This way, the phone stays responsive for much longer, and when it really has to be throttled to protect the battery, BCL will kick in, and it WILL shutdown the phone if it notices that the voltage is still decreasing far below 3.1V while the clock mitigations are still in place to safeguard against serious battery damage.

You're using a H990, which is known to suffer random reboots pretty much any time it's pushed hard enough. This seems to come down to the dual-sim functionality that makes it use more power than the average V20 at any given time. The only solution for that (more of a workaround actually) is to undervolt and/or underclock the SoC. One needs a custom kernel, and the other, root.

Shutting down completely does point to a bad battery that can't hold the phone at lower capacities, though you really shouldn't be running "battery intensive apps" (which could be anything, from a camera app to Genshin Impact) at such a low capacity anyway.

Depending on the state of said battery, i agree that getting a new one is the best approach, but I definitely wouldn't recommend disabling BCL. It's there for a reason, that reason being shutting down the phone to prevent serious damage to the battery circuitry on those very cases. BCL already kicks in by default and caps the phone to 1.2GHz below 20% and their phone still died anyway, things wouldn't be any better if BCL was disabled and the phone was running the Snap 820 at full steam then.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] febbywidyaningsih:
Thanks for insight!

I will try recompile kernel with underclock for this case.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Black6spdZ:
at least what I've noticed so far is unofficial us996 build has the old corrupted video bug on an unlocked "not DS" device
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
Not a bug, it's just a side effect of the adjusments needed for dirtysanta unlocks.

dirtysanta vs non-dirtysannta just needs a few different hex values on the kernel's display data to get working video on boot on one but not the other. You can also just cover your proximity sensor while booting if i'm not mistaken.

Either way, it's possible to build for both US996, and US996D (you guessed it, US996 Dirty) as far as the kernel is concerned, but it doesn't amount to much other than that video glitch on boot.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Black6spdZ:
yeah I know it's just cosmetic but when I think about bragging to the friends that I have an old phone with the last of the removable batteries AND an up-to-date android OS.. I just cant show them the boot.. lol
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
Well you can just build the kernel for US996 non-D. That glitch at the start comes straight from the kernel, and only the kernel. It's far easier and faster to build compared to a whole rom.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Black6spdZ:
I wont look a gift horse in the mouth, I'm amazed that this phone is still supported "reminds me of my old HD7". I'm sure enhanced kernels for all the various models aren't far off anyway.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
They're already available (in fact, that kernel LOS 19.1 is using is actually based on what was previously intended to be a custom enhanced kernel, that's why the first betas of Android 12 were on unofficial CRdroid and ArrowOS), we just didn't publish them yet since we're still ironing a few things out such as IR that just got fixed on 3.18 a while ago, but i'd rather fix it "without compromises" on 4.4.

Edit: But in any case, that custom kernel is not eligible for support on this thread of course.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] loyukfai:
First of all I'd like to thank everyone who made this possilbe!

After a few days of usage, here are updated comments:

1. Camera freeze

2. Battery usage is a bit higher than 18.1

3. Double tap to wake works occassioanly

Other than these, for me the whole thing is a resounding improvement over 18.1!

Cheers.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
Alright, two of those are things we're tracking, and i have some info to share on them:

1 - That also happens on 3.18/LOS 18.1, though to a lesser extent. The reason why it's more pronounced in 4.4 is because the kernel got massively updated but our camera blobs on the rom side didn't keep up (and it can't really, not without a major overhaul). There's a few hex edits that help camera work better, but i'm not the one overseeing that part and can't say for sure whether they'll be merged into official or not.

2 - Power usage is expected to be slightly higher for now, that's because we didn't tweak the CPU governor to better balance power consumption with performance, and also because the kernel still has some debugging enabled on some subsystems such as USB... it's also building some things that our phones don't use so it needs some trimming here and there as well.

As for DT2W, it never failed here, though i must say that i rarely use it, so based on other comments that really seems to be a recurrent problem.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ar2000jp:
I just want to say thank you so much to the developers for keeping the amazing V20 alive.

I kind of stopped caring about phones after the V20. In a way, it's the last phone that feels like worth owning to me (wouldn't mind a few internal upgrades, though). When I read that LOS updates stopped because it's on 3.18, I got depressed. And now all that depression is replaced with joy. :)

Putting all that drama aside, here's a bit of info and a warning to people upgrading from LOS 18.1:-

I upgraded using the procedure in the wiki (including flashing the LOS recovery). My phone originally had LOS 18.1 + Magisk 25.2 and nothing else. The recovery was TWRP 3.6.0_9.0 recovery before I flashed LOS 19.1 recovery.

When I booted into LOS 19.1 + Magisk 25.2, it asked for the PIN to decrypt. I entered it, and got a screen saying "Decryption unsuccessful" and that I must erase my data to use my phone. I tried flashing back to LOS 18.1 + Magisk 25.2, but got the same thing. It might have been Magisk or something else.

Moral of the story?

Have backups and be ready to factory reset.

PS: Is there a pot or somewhere were I can donate to the LOS V20 developers?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] npjohnson:
Not really a pot, myself, Ashiningray, primduck and xxservas are all good people to hit up - or just donate it to LineageOS in general!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] stingbandel:
Same problem with me h990ds. My battery is good. Tried with 2 batteries. Same thing.

So I go back to LOS 18 and ecerything is ok. So there's nothing wrong with the battery…
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] stingbandel:
@npjohnson can u check if there's something wrong? Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xxseva44:
Nothing is wrong. The issue is a hardware quirk on h990ds, likely related to the modem which causes slightly higher power draw. This in addition with the 820's power draw under max loads means its nearly maxing out its power budget. Taking into account a poor battery, you are bound to see bcl related device shutdowns. This is normal, and protection for the battery to prevent it causing serious damage due to undervoltage. The solution? Underclock or buy a new battery. For a more detailed response, refer to:

https://xdaforums.com/t/official-lineageos-19-1-for-the-lg-v20.4566673/post-88371467
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
The thing is that for H990DS, a new battery won't fix the issue and it can also randomly reboot even on 3.18 / LOS 18.1 if pushed hard enough.

That was the reason why some V20 mk2000 builds shipped with lower max clocks... it's pretty much the only way of really remedying the situation on H990 besides making BCL overly conservative and severely kneecapping all V20 models anywhere between 50 and 80% battery capacity depending on the battery health, which is also not ideal.

We could, of course, add some kernel adjustments to automatically limit the allowed max clock on H990 to work around this quirk, but i'm not sure if that would be in line with Lineage's official requirements as it also affects other H990 models that aren't DS. Not only that, but we would definitely need a lot of testing to make sure this actually helps.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xxseva44:
Ah did this issue also extend to new batteries? Wasn't aware of that. In any case H990DS is a special case for sure.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mfaridi128:
My phone is H990DS and I installed Lineagos 18.1 on it before and it was good. yesterday I install Lineagos 19.1 on this great phone.

Thanks all guys to make new life for this great phone.

from yesterday everything seem OK and H990Ds work like charm, but big problem is Camera,

Camera is Freez and stop working and can not take photo and video.

So I can use Camera.

Can I find way to solve this problem?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] febbywidyaningsih:
I still investigate this case, so far underclock / undervolt didn't have any effects (Tried various value). I ended up give up and revert bcl commit and testing edit threshold little bit.

Regarding camera you can use any third-party camera did trick for me on H990DS.

Kudos for developer for give some insight what happens.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mmsp15:
I had the same issue with the default camera app however I normally use a 3rd party camera app and its working just fine... The issue seems to be in the app itself as opposed to the hardware/firmware.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Black6spdZ:
I'm using one of the older GCam builds "7.3.018" with configs that works ok ~90% of the time. I'd just like something simple that operates fast "without all the garbage extras, face detection, etc that make it slow and crash" with access to the second rear cam
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mmsp15:
I use proshot (not free) and it has support for all rear cameras. It does have a lot of options however so its not fully simple interface but I'm sure there are other camera apps out there that aren't gcam based that also work well. Apps like open camera work and have the quick simple ui but i found it somewhat sluggish in the past but recently tested when i last posted to make sure other camera apps worked.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Black6spdZ:
interesting.. is it stable on our phones?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Black6spdZ:
as a side note I dirty flashed the unofficial build using latest TWRP and Pico 12L Open Gapps.. runs pretty well but I've also notice faster battery drain.. but it is smooth. I dislike new pixel launcher.. did Lineage drop the trebuchet launcher? I installed last available version of lawnchair.. fast and simple
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mmsp15:
It does sofar... I haven't had it crash yet
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xxseva44:
The camera issues are more complicated than the app. The added features while yes do slow it down, are not the causes of the crashing or slowness. The crashing is causing by qcamera segfaulting, not the features of the apps. As for the "slowness", i suspect this has something with perf locks not quite working as it should as lg made modifications in their hals in regards to how they acquired perf locks, amongst other things(I'll need to double check this so take this with a grain of salt). Regardless of what app you use, camera stability is a big maybe, as it's always been on aosp for the v20. I'm hoping we manage to figure out a solution however till then, don't assume camera is bulletproof.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mmsp15:
Yea proshot does seem quite stable... I have yet to have it close on me.... I was using nicogapps core originally on clean install of official ended up with mass drain and other issues... Sofar mindthegapps Def seems most stable I just wish it didn't install unnecessary extra apps and just basic playstore functionality
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Black6spdZ:
even the pico 12L package installs a bunch of trash... chrome, A auto, drive, google files, google TV, YT, YT music.. unless this comes in the base ROM now :/ you know even play store isn't needed with aurora store
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] taketwicedailey:
Hi, I would just like to extend my thanks to the devs for this, as others have done already, for bringing new life to the V20. The difference if performance for me between 18.1 and 19 is nothing short of remarkable. What used to take a second or two is now instant. I'll just use this as an opportunity to repeat some issues that others may have brought up already.

- Camera freezes are also happening for me, less so than 18.1 though. I am using Open Camera, the stock camera is essentially unusable and can hardly take one picture without crashing/freezing.

- The camera works fine in other apps, like Discord video calls for example. It does however make the phone very hot over the course of a 10 minute video call, and once it gets hot, camera freezes begin to happen.

- I can confirm that the Quad DAC is not an option as far as I can tell, but it seems that this is an easy fix as discussed above.

- I have also experienced app-unrelated freezing, like the whole phone becomes unresponsive for a few seconds, usually while charging.

- In both 19 and 18.1, I cannot get SD cards to work. It prompts me to format, and when done, it prompts me again, and never is readable or viewable in file managers.

I also have a few questions:

- Not to say that you haven't done so much work already, but is there any bottleneck for getting LineageOS 20 working? I know this one was hard because of the outdated Linux kernel, but such an issue wasn't brought up in the version 20 blog for example.

- Are there any developer options you recommend that might make the phone more stable or handle better? Again, not to say that it isn't already lightyears ahead of 18.1.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] npjohnson:
1. Camera issues are app specific - any other app works, the app on 20 works fine, so I'm meh on wasting a ton of time on 19.1

2. yeah, see above

3. Merged the fix, next build should work

4. weird, not on my h918

5. double weird, pls file bug ticket, it works for me.

20 is in progress, BT is broken horridly though, which holds it back - working on it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] taketwicedailey:
I am using an LGV20-h910. I fear both 4 and 5 don't have anything specific to do with LineageOS version 19, and might have something to do with the arduous process I had to perform many years ago to root the h910 to get the flash process to work. I have heard of people having the same problems after doing that, I think I followed this procedure. I have had this phone for something like 7 years. Did I thank you for this update yet?

I think I remember someone posting exactly this issue somewhere, thought I can't seem to find it anymore, and they said that flashing up a tree of previous LineageOS versions made it work again. I have used 17, 18.1, and now 19, so I don't know how that would help. I can try to post a bug ticket, I just don't want to send you on a wild goose chase.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Black6spdZ:
I have everything from 14.1 on up currently on my 400GB SD 😁
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
Camera freezes are expected unfortunately, there's few improvements that can be done, but it still won't be 100% stable unless we rework the whole thing (which takes a LOT of time)

Quad-DAC is in the process of being overhauled right now, so while it's being restored as a tile for 19.1, 20 will likely get a whole panel for it, with multiple configurable settings and such.

That general freezing never happened on any of the internal team's devices (be it G5, V20 or G6), though i guess your specific device could be hitting a corner case on USB or something since it also isn't fully implemented on the kernel yet and lacks some VERY specific features, like using the V20 as a MacBook and slapping a fully powered hub to it. As for SD... yeah, really weird, and definitely not something we have any idea how to fix since it already basically works (also have a H910 and it's been working perfectly fine).

Now for the questions, which npjohnson already answered but a bit more info is always welcome:

Up until a while ago, there was a big bottleneck for getting LOS 20 working, that being File-Based Encryption... It just did not work due to what seems to be our older Keymaster from LG. Funnily enough this problem is also shared by the V30 and it had official LOS 20 nearly unshipped because of it. But as of recently, we'll be able to ship 20 with an exception for FBE, so it should come at some point albeit without support for encryption.

Not really, no developer options or "magical tweaks" will help the phone become more stable, run faster, etc. Those kinds of improvements should be coming in future updates and it's not something a user can tweak inside the ROM.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Black6spdZ:
using L-Speed with everything on balanced seems to have helped battery consumption
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] 0ldsoul:
Nice update on 990DS. I only do light stuffs so I can't say anything about camera. OS is fast and smooth and I don't experience much heating compared to stock. One thing I notice though the double tap to sleep is not working on home screen or is it supposed to work only in status bar? And I'm kind of sad IR is still not working.

And this just happened last night I slept with the phone charged at 100% and when I woke up the phone notified me and died at 5%. Maybe an isolated incident because I flashed this rom already for a few days and this is the first time it happened and I forgot to close the apps before sleeping.

imo LOS 19.1 is so much better compared to stock in terms of smoothness and heating. I'm not seeing much lags anymore or maybe I also changed the way I use my v20 I don't push it as much as before anymore.

Many thanks to all the devs! We really appreciate it! :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] npjohnson:
In testing but the build posting this week for the unofficial should have fixed IR? Need string regression testing tho before pushed to official.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ROMSG:
IR has actually been figured out by @AShiningRay so hopefully that will be ready sooner rather than later
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
Yeah, something something binder updates broke IR, should be working now on both unofficial LOS 19.1, and also 18.1 (ironically pushed April 1st lol) for those that are still there... i kinda forgot to tell people about it.

It won't be on official 19.1 yet since i really want to be completely sure those binder adjustments won't break anything else, as that subsystem is used by pretty much everything in android, and this kernel will be moving on to newer android versions that might break due to this.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
Double tap to sleep has only worked on the status bar for all roms i've tested that had it, so that should be normal.

Edit: Smoothness has been vastly improved overall (especially compared to stock), so it's not that you're pushing the device less or anything like that, since the phone still goes full throttle when needed for smoother animations and such even on the Android UI.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mangokm40:
Is there a thread for these, unofficial, LOS19 & LOS18 ?

Thanks for everything.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AShiningRay:
Yes, unofficial 19.1 is right here on the first post, should be right below official builds. As for LOS 18.1, it's already on official, so as long as you get it from the LOS 18.1 thread you should be good to go.

Edit: However, i'd check the dates of the LOS 18.1 build if you're going for it. It should be updated monthly so anything newer than 04/12 should have IR working.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Black6spdZ:
what is the recommended IR app? couple I've tried dont seem to work on latest unofficial