yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] irmaj:
Hi,

Was in the same situation. Fixed by adb (When in TWRP, connect to PC):

1. adb reboot bootloder

2. fastboot flash recovery twrp-3.2.1-0-h850.img

3. Boot in to recovery (volume down / power button)

see the Factory Reset screen. Click Yes.. Yes... to delete everything

4. Then You will boot to TWRP

5. Install ROM / gapps / Supersu. I installed:

Mokee (MK71.2-h850-180227-RELEASE.zip)

Pico gaaps (open_gapps-arm64-7.1-pico-20180301.zip)

supersu (UPDATE-SuperSU-v2.82-20170528234214.zip)

It booted to Mokee :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
Not needed ! Search thread for posts about how to handle updates, there are already many. Tip: search on "dd".

BTW, this thread deals with the LineageOS ROM., not with Mokee or whatever other ROM.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] hoy4555:
Really enjoying the ROM, thanks. (I'm using the 3/1/18 nightly with microg on my H830)

I've got everything working well, except for the wifi constantly dropping. It looks like it happens everytime the screen goes off/sleeps.

I set Tasker to reconnect when it drops, and also to beep so I know it's happening. The poor phone is just over there beeping constantly : ( Dropping signal and resetting the wifi a couple times per minute.

I set my router (ATT) and wifi settings to have a Static IP address, not sure what else to do. I have other devices that use the router, my computers, other Android devices, amazon Fire TV. Nothing else seems to have the problem.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Turn of either 2.4ghz or 5ghz or give them separate ssids, let me know if that solves it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Have you set the appropriate option in WIFI settings?

Go to WIFI in settings. Tap cog (top right).. Is the "Keep Wi-Fi on during sleep" option set to "Always"? If not, set it to that.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
If it is already set or it does not solve the problem then try my solution on your router and post feedback.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] hoy4555:
It's only been an hour but I think that's enough to say yes it worked. I now remember I've had to do this with other phones in the past. Is it an LOS thing, or should this just be standard procedure for home wifi, I wonder? ("splitting" the frequencies to different SSIDs)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Its a kernel issue with this device only, it appears to disconnect when switching between the two bands, normally this is seamless.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] hoy4555:
I may have spoken too soon. It's WAY better since splitting the frequencies, and just staying connected to the 5ghz. But it still drops once every 15-30 minutes. I'm six feet from the router.

What I've set tasker to do solves the problem, for now. Basically when the wifi drops, tasker beeps to let me know, turns the wifi off, then back on, and waits 20 seconds for it to reconnect. IF it still can't connect, it turns airplane mode off (as if I've driven away from home) and gives a different beep so I know what's going on.

Just wanted people to know what a potential workaround is. 9/10 times it reconnects just fine, so as far as I'm concerned the issue is resolved, but I'm still unsure what's causing it to drop so regularly.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Did you set the WiFi always on option mentioned in a previous post? Also try sitting on the 2.4ghz only band? Any battery saver programs / options turned on? Could also be a router problem etc. And many others. Maybe you've identified another kernel issue too.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drizzt:
It seems it works. Why don't you propose it on gerrit?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] buaser:
Hello. I have problem with cutted first notification sound after making phone call. Please check this scenario, enable ringtones, make phone call, end call. Ask someone to write to you on FB messenger - is the notification sound played fully or only the part of it? Mine is heard only the second half... I have latest nightly, clean install 14.1. I have disabled touch sounds so the notification may the first sound played after the phone call, but tested with enabled touch sound and the same problem.

Please check if the FIRST notification sound on speaker after call is played correctly, especially if it's short like FB messenger's one so it's easy to miss the message.

I came to this version week ago and found this bug, but can't post it on JIRA.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Sabbatiel:
Will it worki for h860 ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] antykat:
What camera is used in this rom? What about quality of photos compering to stock rom? Is it possible to use both of cameras?

Wysłane z LG G5 H850
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Anyone noticed a weakening of the cell signal since the last update?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wafebreaker:
Hey guys, i used search function but i did not find anything about my problem. I have LG H850 with latest lineageos installed and my battery drain is horrible. I charge my LG within 1 hour completly full but after 3-4 Hours Stand-By (no screen and no use of it) my battery is down to 20-30%. I have to charge my phone multiple times a day. My battery is new so i think thats not the problem, it has to be something with lineage os. Anyone can help me? Would appreciate! And sorry for my bad english :))
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Jolt151:
It probably has to do with the broken nfc. Use Link2SD to delete the nfc app, or search this thread for a magisk module that someone made to disable nfc. My battery got far better when i installed it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] brainsaw:
Does somebody know, if BT/NFC got fixed in LOS 15.x for msm8996 devices?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Kye2000:
BT not yet, I think it's close and NFC I'm not sure if it's just an issue for us or others such as the G6
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wafebreaker:
I did that, but my problem still exist. My Battery settings show that i have 4 hours left with my battery power (80%) . And i have not used it today at all. Anyone another idea?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] hoy4555:
I'm having trouble listening to my favorite podcast, which is released only in .m4a format. I see other posters saying that this is a known bug, and that the only known workaround is to play mp3s for a while. It's not working for me, I've been playing mp3s for an hour.

Ive tried various apps. Any other ideas?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Jolt151:
My next suggestion would be to download AppOpsX and seeing and wakelock detector and seeing if there's a rogue app on your phone. Also download greenify and try hibernating any apps that it gives you.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wafebreaker:
Alright. Downloaded all apps you suggest and test them few days. I saw in AppOpsX that so many apps have rights they didnt ask for, how is this possible? I need some time to understand wakelock detector but it wont take long. Thanks for your help. I will reply with some new information soon.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Jolt151:
Ikr, it's pretty crazy. I had an icon pack waking my phone up every couple of minutes. I just turned off its permission to wake the phone. Try using the usage stats part of appopsx, that'll give you more concrete info on what needs to be turned off.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
I've pulled it as well testing on my v20. No apparent changes, so if it fixes autofocus on the g5, I can push it. But I haven't heard many reports if it being an issue before, so unsure if it needs to really go in. (It also had to be adjusted slightly for the g6/v20 devices).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wafebreaker:
Okay after turning some Things off my battery drain got better. But now i only charge with under 100mA. I mean its incredible low. Im getting more and more disapointed =/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
The 100mA.. does that mean when you charge it's only going at 100mA rate? or you only charge when your phone gets down to 100mA?

Do you have the latest Lineage? I did fix the charging issue, so it should not be slow anymore.

To track down apps draining the battery, yours have to use tools like Accubattery or GSAM Battery. It should help narrow it down. (I use both)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] stoner007:
I am not sure if it will work for G5, but it could because it is same platform msm8996. Someone must try it , I dont have G5. Workaround is working on Los 14.1 G6.

See https://xdaforums.com/showpost.php?p=75890964&postcount=772
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wafebreaker:
I fixed it. Problem was the cable (unbelievable). But i have another Problem: magisk wont Stick after installation. Every 2 or 3 restart its gone. How can i make it stick? :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] hoy4555:
Just to add to my bug report: Not all .mp4s fail to play, just long ones!

I use a voice recorder app which records in mp4. Anything less than about 30 seconds plays back fine. Longer tracks, about 30 seconds on up to my two-hour podcasts will not play
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
If your only using it to deal with the nfcservice then use link2sd instead, don't delete the nfcservice, try freezing it instead, the status will remain after dirty flashing. Let us know of if this solves your wakelock/ battery drain issue concerning this service.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Ignore this it will not work, unless they remove them from the rom, the best way would be to create a patch to flash after each flashing of the rom to remove the nfc service.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wafebreaker:
Freezing didnt work. But after deinstalling nfc my battery drain is hundred times better. Its unbelievable. Before deinstalling AccuBattery told me that i lose arround 10% battery while display is inactive. Now i lose 1 % per hour :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
I discovered after installing there was still battery drain from other NFC components left so I manually removed them all.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wafebreaker:
Where do i find that "other components? Or how?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
I'm not sure which was the culprit, but you'll find some in the lib directories, the menu may disappear when remove these.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] russ722:
Is fast charging working yet? Did a search but closest reply reguarding was feb 23
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] TheBiggestNoob:
Yes, fast charging is working since about 2 weeks ago. When you update the ROM, manually download the ZIP file from LOS website, place it on your phone's root folder, manually boot into TWRP, flash the ROM, clear dalvik cache.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] russ722:
Appreciate it.i wont be updating (coming from fulmics) whats the best way to go about instaiing?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Jolt151:
Clear data partition and flash lineage zip.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
I have attached a flash to remove/uninstall NFC via TWRP. It will remove the two NFC services causing battery drain. The NFC option from settings will also be removed. You'll need to flash this after every flashing/ updating of the Los ROM.

For existing options, simply freezing the NFC service with link2sd wont have any impact while uninstalling it will remove one of the services. As I haven't used it, I'm unsure whether the magisk module disables both services, it certainly disables one. Remember there are two NFC services that are draining the battery.

After applying the patch, in standby with only cell on, battery drain was 3% over 7 hours. After setting the screen to 1080p, the screen on time while playing a 1080p video over wi-fi on YouTube with Bluetooth off and cell on (3g) was 6hrs 30mins.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Rumzie:
It is UNBELIEVABLE how many people don't know how to search a thread for questions that have already been answered.

Please for the love of XDA,

search a thread before cluttering it

with re-re-posted questions.

After so many fixes and updates to lineage (and the release of Lineage 15.1), I though I would update one of my older posts that contains a comprehensive list of bugs/workarounds.

Also, this is what I do every time I flash Lineage on my H830 (great standby time, and 3-4 hours screen-on-time before hitting 20% battery):

Disable NFC with either the Magisk Module or Zip below

Turn off WI-FI & Bluetooth scanning in settings

Watch your running services, and disable any you don't need (I saw a lot of Verizon services that I didn't need andxx froze them with TitaniumBackup)

Force 1080p through the terminal (Developer Settings > Terminal > Get root with "su" command > type "wm size 1080x1920"

Install the ported Pixel Camera HERE and the ported Pixel Camera (Wide Angle Lense) HERE. You would be crazy not to use these!

Install the Pixel Launcher Port HERE (I am running the 2.1 version, specifically because I like to swipe my Google Now cards, which is disabled on the newer releases).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Bluetooth audio in calls does not work.

VERY slow charging

This has been fixed.

LiveDisplay not working

Workaround: The f.lux app works fine. Automatically tuned display temperatures throughout the day/night.

NFC still not working

Note: Unless you disable NFC ( I used [MENTION=569729]drizzt[/MENTION] 's Magisk module, thanks!) you will get constant wake locks and horrible standby battery drain. There is also a zip that [MENTION=4579387]pedro1977[/MENTION] posted recently.

Vertical lines on the camera (specifically when focusing in low light)

Note: This happens even on stock (assuming you are using some 3rd party camera app). Using HDR from the Pixel camera port immensely helped image quality. Try it out! Pixel Camera Port Thread here!

Once phone gets thermal throttled (from being hot in general), seems like the throttling/lag sticks.

Note: I am running Kernel Adiutor, and have seen an immense improvement by disabling the "core control" setting under Thermal section.

Weird "warm-up" period before you can play higher quality audio files.

Workaround: This happens for files that are not your standard MP3 (like M4A and FLAC). There is an easy fix. Skipping between tracks, back and forth, will usually get the song to play after 10 or so skips. Either way, this issue should go away eventually after playing music for some time.

Magisk Module for NFC (open the original post to see download):
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] torsti:
got a little Problem. after installing LOS14.1 I cannot use my external SD-Card when OS is running.

In TWRP it works
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
The irony is after about another 10 posts everything you've stated will join the 310 pages of other posts and questions will begin once again. The op should place all this info in the first post and then continually update it, instead of expecting everyone to search through hundreds of pages of info, most of which is outdated o)

Btw are you sure your wm pixel example is correct or should they be reversed? 1080x1920??? (Item sizes will alter - settings - display - display size to compensate) you can also set the DPI too with "wm density 460" if you want to revert back its wm size 1440x2560 and wm density 640

Bluetooth audio calls works on h830.

Twilight is another alternative to flux.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] KCKitsune:
In your opinion, should I just sell off my H850 and buy a H830?

The ONLY reason I have not gone with a custom ROM is that I need bluetooth audio calls.

If the H830 works perfectly, then I'll make the jump.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Definitely not, esp as 8.1 is just around the corner. You're better off staying with stock or trying resurrection remix. I don't believe there are any bugs with RR.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] drizzt:
I downloaded the official H850 kernel (LGH850_Nougat_Android_v20k), and I can confirm it has this modifications.

I attached a lineageos (aligned to 6662a4256a82895e30f5e4093052d71cc58350c5) built kernel with, in addendum, only the commit (https://github.com/waau/platform_kernel_typhon_q/commit/8560686ab64ea08b07fad6148be24f579e903754) to fix the laser focus and I can confirm it works (tested on mirror + real focusing test).

If you want to test it (H850), just unzip it (since it's not a flashable zip!) and flash it using TWRP (as boot image) or Flashify
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
What I've been up to, Project updates and WEN ETA OREO!!

Hello friends, I haven't died, just been very inactive due my beautiful girlfriend falling pregnant :)

So I'm back and have a bit of spare time.

So what's next? Well 14.1 will be unsupported in the coming weeks (not sure on a timescale but can't imagine it being too long now) I've started work on the official lineage 15.1 update and most stuff is working in early tests, including our beloved NFC and a few other things I never got round to on 14.1, this thread will just be updated with new links when I decide to make my new work public, a new thread WON'T be created so keep your eyes peeled in this thread.

Thanks for the ongoing support, I've missed you guys!

Thanks,

King
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Genji-2d:
So far LOS 14.1 has reached perfection, but its giving me trouble with substratum any theme I apply will not let me see beyond whats in setting its all blank. Example: I open settings app go to I don't know WiFi menu.. Blank like completely blank
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
The March security updates broke themes - there are 2 commits that need to get reverted:

https://android.googlesource.com/platform/frameworks/base/+/7a722dcae9ac38887e4ae9d43ed22aea68ab828c

https://android.googlesource.com/pl...gs/+/aeea544e07ca92fedb99e4600ed1dbdef4ffc445

Then subs will work again :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Anyone having fast charging issues with generic cables since the last build?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Justatechie:
Been pretty busy lately, as I wanted to post this a few days ago but school continued to get in the way of things.

While ago I had posted some builds that attempted to fix nfc but it actually stopped the wakelocks associated and actually can turn on or off like normal and actually scan (just no beam due to the nfc service crashing for some odd reason yea annoying), edit: but I had stopped because more other bugs were continuing to pop up like quick charge, broken recording and offline charging. That and including the many changes were made to the nfc source code in lineage 14.1 on lineage's side were probably too much to catch up on.

Now that the Lineage 14.1 development is starting to cease, bugs are pretty much getting fixed and its nailed back to that pesky bug, NFC.

So in this short time, I have built some unofficial ones that will get rid of that wakelock for those who do have trouble trying to disable it, and who knows maybe it could be fixed (unintentionally). I haven't tested them but they have worked in the past,

This would probably be the last one before 15.1 comes into the mix. (Thanks to our OP, can't wait :D)

Keep in mind that it does have the newest security patch so substratum is kinda broken as [MENTION=4649623]Nimueh[/MENTION] pointed out.

However it can still work, just take a look

here

Download:

H830

H850
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Commits to fix it?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
Like I said yesterday:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Mojo Dodo:
Well, first of all, thanks for your dedication to LineageOS!

In the course of updating to 15.1, will the WiFi MAC issues get addressed that users have after wiping the misc partition?

I'm having quite some trouble getting WiFi working reliably after I made the mistake to wipe my misc partition. The recent posts here show that other users are also having problems: https://xdaforums.com/lg-g5/how-to/guide-fix-wifi-mac-address-changing-t3533841/page8
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
The WiFi and BT MAC address issues are sadly by design caused by a dirty hack we done when we started work on 14.1 and never cleaned that up.

With the bump to 15.1 we will need to rewrite that config in question anyway so should be fine when we get things moving again.

Thanks,

King.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] vampsm:
Hi Guys,

I have a big problem with LG G5 H850.

After a download via LOS Updater and manual successful update with TWRP, this phone always reboots into TWPR.

(LOS I use on many devices, update to LG's is not the first time and not just a device)

OK

This problem is known and solvable.

But I was not focused and I mistyped myself in the shell.

Now the phone is (...Bricket...?), and I can not get any further.

Normaly boot bring´s "Your device is corrupt...."

Factory reset is without success.

Fastboot flash unlock ->> "oem unlock is not allowed...."

New TWRP flash --> "device is locked..."

UPPERCUT (to flash STOCK ROM) brings --> "unknown Device ....."

I think i have a problem with the partitions.

Can someone help me?...

Thank you.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
How did you manage to intially flash and use TWRP if the device is locked? Have you tried flashing stock in emergency download mode?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] vampsm:
It was an LOS Update...

LOS ran smoothly before i made this update.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Try flashing stock ROM in download mode, I think it was hold power up button while plugging in usb cable and then using uppercut tool,ensure uppercut is setup correctly or it won't recognise the device - see other posts (can't remember where, at the very least follow the readme.txt supplied.). I think there is msmdownload tool too but I'm not sure if it works with this device.

You didn't specify what it was that you mistyped?

Also for unrecognised device - misc partition.

https://xdaforums.com/lg-g5/development/uppercut-lgup-loader-g5-variants-t3511295/page7

Let us know if and how you solved it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] untrue:
I had the same problem. I had to use LGUP and Uppercut to bring it back to stock (!) and then install TWRP and Lineageos again. That's kind of a ****ty process but now my phone is running real great. (see: https://xdaforums.com/lg-g5/develop...lg-g5-h850-t3494001/post75645237#post75645237)

Thanks again to the developers
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
This thread has seen the solution to this problem already many times.

Please search the thread before posting questions !

Tip: a search for "/dev/zero" yields the what you need.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ganaa0126:
I have problem Screen overlay detected. How to repair is it..?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
It appears that NFC may be on the cards for the next build.

Just in time for LOSCoins, which was added today. :)

Best wishes,

Bob