yashsingh1/xdaforums huggingface dataset:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
So far, so good with the US997 on 2.2 beta 34. :good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ehtisham ali:
The download link given in the post is not working..

Kindly provide me a link to download
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ehtisham ali:
How did you install xposed ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ehtisham ali:
There is only one version available for h872 nougat which is v 1.0 ... Or am I wrong ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] lgnd:
Tried to update from beta 36 to beta 38 h870 and it failed with error 1. Any ideas?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Maybe update TWRP?

I seem to remember; yes, there's not many Nougat versions.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ehtisham ali:
I flashed this version but installation failed it said it only can be flashed on oreo ...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
Correct. It's only for stock Oreo.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ehtisham ali:
It means there is no version available for h872 nougat
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] lgnd:
Flashed orangefox recovery and boom, beta38 flash was a success.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Simonkjam:
Sorry, I come from the Oreo stock rom V20i, G6 H870.

I decided to unlock the bootloader, so i installed TWRP and then the kernel (2.1) and everything seems to be successful.

Now I want to know if I can easily install Magisk or if I have to do something else, i wouldn't want to find myself with a bricked phone...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] paul_zm:
Which root tool did you installed, ir you will lose twrp. You can install magisk if you have twrp, it will root your device and keep twrp for recovery.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] varefaz:
I think there is something wrong with beta 38. Max frequency is 1056MHz. And if I changed it all return to default value. Why?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
First Post Updated With Version 2.2

Kernel Updated to Last 3.18.140 Release

Wireguard Updated to Latest Snapshot

Added Anxiety I/O-Sched by tytydraco

Added K-Lapse - XDA-Thread & GitHub

Much Updates (see mko-v2 on GitHub)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] paul_zm:
Can I flash this version on current v2.1 ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
Thanks, [MENTION=6814590]askermk2000[/MENTION]!

Yes.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] madis süvahavva:
So far so good,havent tested the games yet if they stutter or not,thank you for your efforts!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] madis süvahavva:
Okay,so the pubg plays fine for about 10 minutes and gets hot pretty fast and stutters occur every once in a while with some slowdowns.i dont know what results to excpect

Ps:im also using gfx tool to reduce everything to minimum except resolution,anyone care to comment their performance etc?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Vortell:
You could try to reduce the maximum frequency of the CPU. This could help with the studder. You would have to try tell you find the right frequency. You can also find a different thermal config. You would have to find it though. I know the v20 has one most things and most v20 files are cross compatible. Also did you upgrade your gpu driver?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] madis süvahavva:
Havent tried reducing it,will do later.i dont know anything abiut thermal configs so i dont know what you are talking about,sorry :D . no,i havent updated any gpu driver,didnt think it would be possible
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Simonkjam:
PLEASE ASKERMK2000 make for me and other people a kernel that disable the moisture sensor!!! We need it!!! I can't charge my phone anymore!!!!!! Tnxtnxtnxtnxtnxtnx!!!!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] paul_zm:
Hey, OP , will you update this kernel for stock pie:)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Roman_Likhachev:
Very lag kernel for stock h872 oreo :(

99% cpu on start phone :/

what kernel(beta maybe) without lag in system?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Hey G6 people

Just zipping in to let you know that I actually have a AOSP kernel, here. I understand that some g6 devs are now using a kernel based on this for their ROMs.

I've just recently updated the camera driver to latest V20/G6 Pie state, so that should work properly now for you guys. That's why I'm putting it out here now.

The kernel will be similar to what is used by said devs. I don't have zram enabled currently, but that is something I'm considering adding back since many want that I hear.

Here is the main thread.

Don't think I'll bother making a new thread for it, as I already have a v20 and g5 thread, and I don't have a g6.

Edit: update above link with latest version, 0.7 (stable, at least for v20 and g5)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] WojtekCC:
Maybe idiot(?) question:

- Will it work on A11 or newer?

If no, is it any chance to make ich happen?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Yes works with Android 11. It's what it was made for, but should work with older ones too.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Updated post above with latest version, 0.7 (stable, at least for v20 and g5).

Here's the link: https://www.androidfilehost.com/?w=files&flid=334978

Compiled with GCC 12.1

Removed KPTI for better performance

Upstreamed zram, zsmalloc and lz4, and enabled ZRAM
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Uploaded version 0.8 - Link

Found a bug with H872, should now work.

+ various other minor improvements.

REMEMBER this is for LOS/Custom ROM (I don't want to make a new thread for this).
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Re-uploaded the (above) builds. Had to recompile due to unstable compiler optimizations. Yeah, took a gamble there, should be good now.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] pelopsxalikias:
Using with los a11, everything working very well except from focus being broken on the main lens. This has been a known issue on a11, Bernardo could probably help you fix it. Thanks for your work anyways!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Hi

I just looked a bit at the kernel used in the G6 builds. It seems they are using a different firmware location for the camera. Official LOS uses "/system/vendor/firmware" -- for G6 it's "/system/vendor/etc/camera". It's a small matter to fix, though I wonder why they diverged like that.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
@pelopsxalikias Which model you have? H872?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] pelopsxalikias:
I have the H870
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
@pelopsxalikias Try this, just to confirm its fixed.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] pelopsxalikias:
Yep it works 👍
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
RE-Uploaded the v0.8 builds with camera focus now functioning.

Link
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] WojtekCC:
I'm using it for about week or two, maybe 3 on A11.

I think battery (original from 2018) lasts little bit longer and its little bit snappier. Stays somewhat cooler than before when browsing web or using some social/light(!) games/etc. But when playing some more demanding games (ludo club) for longer (with data enabled) it can be pretty warm. At first day or two some apps were crashing but after some reboots and 1-2 days everything was okay.

EDIT: 8th May 2023.

Nothing changed.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] motshek:
Download rom, then unzip and flash boot.img in twrp from image option...

Wysłane z mojego LG-H870 przy użyciu Tapatalka
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] K3V1991:
[MENTION=6814590]askermk2000[/MENTION]

Thanks for this wonderful Kernel :fingers-crossed:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
[MENTION=7752429]K3V1991[/MENTION]

Heeeey, no problem :)

You're welcome.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Version 1.1 uploaded

This is a behind the scenes optimization, and various fixes update.

As before I don't have the opportunity to test this myself, but considering 1.0 works fine, this should too.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] iliasarena@yahoo.gr:
Thanks for karnel 1.1 Everything works ok?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] K3V1991:
[MENTION=6814590]askermk2000[/MENTION]

Thanks for the update :victory:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
I tested this kernel a bit and for me it is a bit too slow, stock is better.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
I am aware of something I did with version 1.1 that affected overall performance (changed to a un-optimal compile flag).

Version 1 should be normal though, and faster than stock kernel for sure.

Because of this I will upload again updated build where this will be fixed, and also it will be patched to Linux 3.18.93

PS: This kernel has disabled CPU- Boost. That could also affect perceived smoothness, but this kernel shouldn't need it and thus also saves battery by not having that.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
These versions that you use are probably test versions? Will not be trouble with them?

I put the speed above the battery because the phone must be charged anyway ;)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Op updated.

Re-upload 1.1, still called the same.

Updated to Linux 3.18.93

Fix small blunder with compile flag that affected performance.

-----------------------------------------------------------------------------

Strangely the files won't show yet on my end, I assume its some lag with the forum. It has been abysmal lately.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
[MENTION=6814590]askermk2000[/MENTION] this kernel removes rctd?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
[MENTION=4580019]Killua96[/MENTION]

Yes, ofc
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] romcio47:
So far the kernel runs very well on H870 and Fulmics 3.5

I can't say anything about the battery because my usage is different every day plus I'm using AOD which by itself sucks the battery pretty quickly BUT I can say that it's not worse than on stock kernel ?

Keep up the good work!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Some changes

Hello

I have now made one kernel for all LG msm8996 devices. Meaning G5, V20 and G6 (12 device variants in total).

Therefore the next version of this kernel will be 1.5.5 since that is where I'm at currently on the other models.

I have here for anyone interested in testing, a beta/rc.

There are some significant changes that should make the phone faster but, with a small downside:

Boeffla WL Blocker doesn't work now, so I've disabled it. Some of you mentioned problems with WiFi wakelock on G6. I have already hardcoded a reduction of those, so hopefully a wl-blocker will not be necessary.

WireGuard is integrated.

USB2 900mA max current.

Also I disabled the "virtual memory tweaks" on G6. I'm not sure they where appropriate here.

EDIT: Removed -- sorry, somethings wrong.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
H870 with 11i here, loop to the LG logo "powered by android".
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] K3V1991:
Same :silly:

Phone:

Fulmics + Magisk
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Put version 1.2 in OP.

I simply added some updates to the existing source.

There shouldn't be any problems because of that, so I upped to 1.2 right away.

It's basically the same as I described above, but without some extensive debug stuff removed from the kernel. Shouldn't matter much though.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Thanks, now is booting fine :D
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Working great for me.

One question as I'm new to it, but how do I use wireguard? I see it's built in to the kernel and I have the app. But other than that I'm blank.

TIA
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
I'm just a hobbyist kernel dev, not a networking guru.

WireGuard is just another way to connect to your VPN provider, if they support it.

The developer of WG is present here on xda, info about WG is abundant.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] russtyd:
+1 - thanks for your great work [MENTION=6814590]askermk2000[/MENTION] :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sergykm:
Any compare with melina kernel?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
You can't flash this, or melina kernel on Lineage/Aosp ROM.

Not compatible.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Shall we try this again ? :)

For those interested: Androidfilehost

Now compiled with Linaro GCC 7.2.1

Various fixes

I think I solved the problem with not booting on G6
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] K3V1991:
The new Beta runs very well

Thanks
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Version 1.5.5

released in OP :) :good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Underdoggg:
I like the kernel a lot.:good:

But could you add alucard in the next version again? It felt better (smoother) to me.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] moomoon03:
I made a thread for tweaking and having better performance in game and scrolling using your kernel:good:

https://xdaforums.com/lg-g6/how-to/setup-to-lg-g6-faster-heavy-game-smooth-t3763385
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Ok, nice.

I'm working on an updated version already because of the V20, it had some problems I did not encounter on my G5.

Here's beta for v1.5.6

There are a few changes;

Linux 3.18.98, and reverted something that potentially has a negative performance impact.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ZinX09:
Hi, I would love to try this out but I'm just asking if this kernel support the Fulmics Rom V10T bootloader? Sorry for my noobie question.

Thanks in advance!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
This kernel is compatible with Fulmics, don't worry, just remember to flash Magisk/SuperSU again after the kernel.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] K3V1991:
Hmm is the reflash of Magisk recommended?

I never reinstalled it and works
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
I've always had problem after flashing a kernel so to me it is, also because boot image needs to be patched if i'm not wrong.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
That's right, you don't need to.

That was in the past when you flashed a *boot.img* when flashing a kernel.

Nowadays we use Anykernel or similar method to first dump the existing boot, then modify it and re-flash.

That way Magisk or other stuff in the ramdisk will remain.

This I have mentioned in the *questions* section (post #2) also.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ZinX09:
I installed the kernel, everything works great! Thank you
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sergykm:
The latest beta (v3) for H870 is very good for performance and battery life on the latest fulmics v4.2.

I'm using the default settings.

Nice work [MENTION=6814590]askermk2000[/MENTION]. Thank you.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
You should put the latest version in the title, I was still on v1.2! Great work btw, only kernel that works for me and works well!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefix:
is this kernel work on 11I ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] K3V1991:
Yes :fingers-crossed:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] SosTatarski:
Thanks a lot. It's working great on H870 with Fulmics 4.2. Keep up with great work :highfive:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sealant:
Hi ;)

I have G6 H870 and im using v1.5.6 beta kernel.. All taking about v3 version.. Im blind? Because i cant find link for download v3 ;d
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xdzeus:
What's new/fixed in the beta v(5)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
The latest betas so far are mostly updates, i.e Linux 3.18.102 and various other patches.

As you can see I have added H872 as well to my supported models.

This is because there's been some development in LG rooting recently, and in all likelihood we'll see

root for that model, and maybe a few other's as well.

I'll upload latest BETA8 for us997/h870 as well soon, to be on par with H872.

You can see changes done to the kernel here.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
I'm testing your kernel and at first sight everything is working perfect. I am very happy with stock kernel performance, so I was more interested in battery life/ prevent overheating.

Do you plan to implement voltage control?

Thank you!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] awesomeweles:
Thanks for your work on this. I noticed that the high performance DAC option in fulmics tweaks or EX Kernel doesn't work on this kernel (works fine on stock and melina on H870. Is that something that can easily be added back in?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Hello

No I don't plan on enabling voltage control, sorry.

https://xdaforums.com/lg-g5/development/h850-mk2000-kernel-t3707822/post74984849#post74984849
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Michele_Catella:
Hi, can you please add the Drivedroid CD emulation module to the kernel? Thanks in advance ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kerdelgreen767:
H872 Beta

Hi i installed the beta version on my rooted h872 but lost my baseband and imei so had to flash back stock kernel.

Not to sure if it just me or other users had this issue too...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
I don't know of anyone else who tried it on H872 yet. It may be a problem with that device, but it sounds strange that the kernel could affect such things.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mprovi_15:
H872 can't be rooted at the moment... How did you get root? Only h870 and US997 can be rooted.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kerdelgreen767:
Root has been achieved bro ---- https://xdaforums.com/tmobile-g6/how-to/root-h872-to-including-11g-t3775518

That's also why the op made the Kernel available for h872
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mprovi_15:
Didn't know that, sorry.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] sun_is_shinning:
So, i just unlock my bootloader on my H870 variant and i get root and TWRP working on Oreo update since today and all runs perfect.

im here to ask to try to know when this Kernel will be available for Oreo?

thanks
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
[MENTION=7588155]sun_is_shinning[/MENTION]

I will make an Oreo kernel eventually. That will be some time after O get's released for the G5 and V20.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] sun_is_shinning:
ouch!! G5 will never receive Oreo, maybe late December i think if, a big IF!

but well, maybe someone came with one sooner..

thanks anyway.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
It doesn't make sense for LG to exclude G5 from the Oreo update.

With the G6/V20 update already here the code is perhaps 80+% done for G5 as well. Looking at the Oreo kernel source I can see that G5 is not excluded from the kernel, and it's specific coding has been updated for this new kernel as well.

It never even occurred to me that G5 might not get O.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] sun_is_shinning:
i didnt say G5 will not receive Oreo, i say wen they receive it is too damn away from today, LG is slow to release updates even more to a 2 year old device like G5.

i remember when i have G3 back in 2016 and nobody belives they will receive Marshmallow and then almost a year after the annoucement they did receive the update, a lot later than other flagships.

So, i think if you will do it when G5/V20 receive Oreo to make a unified Kernel for 4/5 devices at same time, i understand but people now are waiting for something fresh.

i learn a lot with people, if the phone dont get attention for too long they give up and go for something else with more development, and i am affraid this happens with G6, because i only got mine 3 weeks ago.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
Me, and I think, most users, will be grateful for a Oreo kernel WHENEVER it comes. And I think it's not fair to push the developers to release things faster. They're giving us A LOT of their spare time for free.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Brutale1090!:
Hi guys, I'm not a Kernel expert so I'd like to ask you if anybody could shortly summarize the differences between the Melina kernel (I already have his modded TWRP) and the mk2000 one.

Reading the OPs doesn't tell me that much ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] iblackrd:
this kernel work on LG G6 US997 with oreo stock?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] chum7291:
Lg g6 h872

I'm having the same issue as well and there is no way to even backup and restore the imei number afterward, sigh, hope this gets fixed in next release.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
I removed H872 from title and download.

I don't have any G6 so can't test myself, but seems very strange that the kernel would cause that kind of problem.

Also remember this is for Nougat only, and STOCK rom.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Hello

I've uploaded beta Oreo builds for G6, here: oreo folder

Source: github
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] marietto79:
Great news :D:good::good:

many many tahnks!!!

Are the feature same as the Nougat Kenel? or there's something new?

:good::good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Features of Oreo beta kernel, currently:

KCAL - Screen panel control

blu_active (by eng.stk) cpu governor

Integrated blu_active settings into ramdisk

Toggle USB2 900mA Fast-Charge on/off

Various patches and fixes

Maple I/O scheduler

WireGuard

Forgot; Boeffla WL Blocker is also there.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Hey,

I'm sorry this reply took a long time.

I remember playing around with that patch (and another one with similar functionality) a while back. I don't recall exactly, but I ended up removing it I think because

it didn't function as expected, or because it wasn't needed (I could get it working without any extra patches).

But I'll look into it again with the Oreo kernel. It is a feature I'd like to have, if it doesn't already work.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
I'm not sure i understand, is there a reason why people would still run N?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
Flashed and enjoying. I'm using stock rooted oreo 20b and everything seems smooth.

I'll have a look about battery life and performance over time.

For now, I'm using stock settings (only blocked timerfd wakelock and disabled zram)