yashsingh1/xdaforums huggingface dataset:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
I went straight from 3.1.1 to 3.2.1 so I am not sure if the issue was in 3.2.0.

The backups issue in 3.1.1 would not cause this, but format data may have.

In my recovery, try this via adb shell

umount /dev/block/sda19
e2fsck -f /dev/block/sda19

If you get errors, let it fix them. The "Format Data" issue I found in 3.1.1 created the /data partition with corruption.

I'm not sure why that would let fulmic's kernel work and not mine, considering my TWRP uses my kernel as well, but its always good to check just in case, you don't want the corruption to get worse, if its there.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
i have new twrp 3.2.1 and fulmics 2.1 with bootloader 10t and everything is fine for me with new release ver6 of Melina kernel :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Out of nowhere happened again. Random reboots, hangs, crashes. Had to format and start again. No idea what the issue is but only happens when using this.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
[MENTION=759634]zefie[/MENTION] do you think it would be possible to get rid of the terrible LG network switching? Or it's not a kernel thing?

I'll explain better, I work in a low signal area where 3G has 0-1 signal and 4G has 1-2, in this case my G6 keeps Switching between the two networks draining the battery a lot, using LTE-Only mode saves a lot of battery but I can't make or receive calls...

Thanks in advance!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
because you use LTE only, switch to auto mode or set to 3G only and it will be works better :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Maybe you didn't understand my post, it happens since English is not my primary language...

Auto (2G/3G/4G) is the problem, LGs keep switching between all the available network causing battery drain and bad network quality (there are moments where cannot see any WhatsApp or Telegram messages), the only solution so far was to use LTE-Only because 4G has the strongest signal there, but in this way I cannot make or receive calls because phone cannot switch back to 3G.

So my question is: is possible to improve this bad switching on the kernel side?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
its not releated to kernel but to network you using in your area, but if i set my network to LTE only i cant make a call to, so thats why im sugessting this solution.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
But it's not a solution because i prefer to be unable to make calls and receive them than lose 50% of the battery in 4-5 hours

If nothing is possibile on kernel side than no problems, i'll keep doing this when i'm at work xD
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
I have to use the auto mode all the time because Orange works tragically in my city and especially on its outskirts, apparently the new LTE antenna is to start at the beginning of the new year.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Good luck with that! Hopes than Vodafone Italy will put up a new 4G tower in the nearbies...

BTW [MENTION=759634]zefie[/MENTION] tried rel6 on 11G, booted up until android optimizing, this ended in a bootloop to the LG bootanimation...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
for now I do not worry about it because I'm on Fulmics 2.1 :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
You can force the modem to a specific protocol in the LGMENU. Dial *#LGMENU#*870# (*#546368#*870#) (replace 870 with 997 for us variant). Don't hit call. If it doesn't launch the secret menu after the last #, you did it wrong.

Go to "Field Test" > "Modem Settings".

"Network Mode" will let you force a specific 2G/3G protocol.

"LTE Band Selection" well let you force a specific LTE band.

"RAT Selection" sounds more like what you want, where you can force GSM Only, LTE Only, etc.

Though if this doesn't work for you, there isn't much I can do. The kernel really only offers a communication channel to the modem. Its the modem itself that decides when to switch.

Just seen this. Would need a logcat of when it's looping to see if I can address it.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] russtyd:
rel6 Installed without any problems on H870 11F - found a reason to root again :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] liushangrong:
Install it, I have a high RAM possession, the system occupies 2G+.I do not know if it is a mistake
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
It's normal, Android use as much RAM as it can.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] liushangrong:
No, from time to time he only takes up 1.5G.I did not run any APP
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
If you think that's the kernel than flash back the stock one and check if you have 1GB more free then.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] liushangrong:
Yes, flash back, it is normal now
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
[MENTION=759634]zefie[/MENTION]

Please improve RAM consumption because is too big.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Are you experiencing an issue? I've not had any problems. Of course it uses a bit more RAM, it's compiled for optimization rather than size. We have 4gb of RAM, I doubt a lil extra is gonna hurt much.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
im on fulmics ROM and i have more than 1GB of free RAM but with Melina kernel i have something about 400 mb or less check it in Delelopers options>Running services but performance is better than with stock. Maybe you can look ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Linux caches data into RAM, and if the RAM is needed by an application, will remove the data from cache and give the application priority. The idea behind this model is to never have wasted idle RAM.

Caching data allows access to it much faster. While I have benchmarked our internal storage at about 450MB/s read, the RAM is about 10GB/s read, much faster! Caching is where the system temporarly stores frequently accessed data from the slower storage into the faster RAM, thus it can be read much faster when it is needed again.

Since the cache is just a high-speed copy of existing data, if something needs that RAM, such as an application, the kernel will delete a portion of the cache so that the application has the RAM.

On the page you suggested I check, look on the top right and tap "Show Cached Processes".

Add "Cached" and "Free" together and this is your total actual free RAM.

As I type this on mine, I have 1.0GB Cached and 319MB free, for a total of 1.3GB free RAM. This seems about normal.

The actual "Free" RAM is doing nothing at all, where as the cached RAM is temporarly speeding up access to frequently used files until that RAM is needed for something else.

The reason we have a little extra performance on Melina is due to caching data more often.

IMO, unless the RAM usage actually prevents applications from running, or causes a notable issue, I would not worry so much about it.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
Yes but I have 400mb of free ram and 120mb cached with Melina and 0 bytes with 3/4 my apps but I suppose this happen if I have newer kernel than ROM with security patches.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
I wouldn't worry too much about the statistics of it. If it prevents you from running apps or causes crashes that does not happen on stock kernel, I'll look into it, otherwise, don't worry so much about it :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
How to change to default setting in this LG SECRET MENU?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Why ask it here in a kernel thread? And it's also explained in the post you quoted...

Just digit *#546368#*870# (for H870) in the dialer app and follow Zefie instructions.

If you have Fulmics installed you have a shortcut in the quick settings to do so, and also a shortcut to the LG secret menu in the Fulmics Tweak app.

If you need more help or if you have other questions regarding these things just open a new thread, let's try to keep this thread cleaned from off-topc posts pls
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
[MENTION=759634]zefie[/MENTION] do you think it would be possible to remove the RCTD process? Tried with a tool but it ended in bootloop, wasn't a problem with older versions of Magisk because the tool was unable to find root, but not now :(
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
What's the problem? I've Magisk root on mine.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
I'm talking about this: https://www.xda-developers.com/lg-root-checker-tool-slow-performance/

With older versions of Magisk wasn't a problem because it wouldn't find it, but now if I run the command in a terminal the tool is running.

Here it is a screenshot.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
try rel7 :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Thanks! Perfectly running and no more rctd process! :victory:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sergykm:
Thanks for new release, man!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] romcio47:
Great work, everything running great on H870 with Fulmics 2.1

Maybe you should put some sort of release date or version to thread's title so it would be easier for us to track the future updates? :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] motshek:
[MENTION=759634]zefie[/MENTION] Possibile add support linageos to your Kernel ?

Wysłane z mojego LG-h870 przy użyciu Tapatalka
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
No, at least not at this time.

For now, there will not be many updates to Melina, as I have a feeling official Oreo is just around the corner (rumors are saying March).

When official Oreo is released, a new kernel source will be as well, and I will likely have to start over with that kernel base.

So, for now, I am avoiding putting too much more work into Nougat Melina, as most of the work will be for nothing when everyone switches to Oreo.

When that happens, I may consider Lineage/AOSP support in Oreo Melina, as the kernel will be more long-term.

But for Nougat, Melina will remain stock compatible only (and since fulmics is based on stock it should continue work with it as well)

I hope that makes some sense. :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] tilen18:
is it possible to do a dirty flash of kernel over current one (i have Stock ROM) or you have to do a clean install of rom and kernel?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] COMI80:
Dirty is ok
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] marietto79:
Can I use your kernel with Fulmics 3.3?

Many thanks for your work
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Andolss:
Yes you can.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Moldeb:
I'm on H870 with Fulmics 3.3 and happy except for the lack of device encryption and safe boot. Can I use the Melina kernel v7 to enable encryption and safe boot? I would also have to use TWRP with Melina v3 right?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Safe boot requires relocking the bootloader right? That cannot happen, even if you lock with Melina already flashed the bootloader will go from Code Orange (the warning) to Code Red (refusal to boot). Boot images (and recovery images) need to be signed with a private key only LG has to get around that. This is a limitation of any non-LG recovery/boot. :(

As for encryption, I have not tested this. In theory it should work since it is an LG Based kernel but I am not sure how exactly Android's encryption works thus it might require an LG Key or something.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
After trial and error on fulmics 2.1 and this kernel crashing everything managed to get it working great on fulmics 3.3! love it so far.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Moldeb:
Thanks for your comment!

When I tried safe boot on Fulmics the bootloader did not complain but I got stuck at the point where you would normally enter your password to unencrypt /data and finish boot. Essentially I could see the password prompt but got a popup that System UI crashed and got no keyboard. That's why I thought it may be due to an issue with the image or the kernel.

On encryption - I may give it a try. On LOS for my Samsung encryption works ok and is based on the password I define. LOS on G6 cannot encrypt though and I've been told that's due to encryption being close to the hardware. That's why I thought it could be possible using Melina and Fulmics. Fulmics has encryption disabled, I guess to enable OTA.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
For the System UI crash, try wiping dalvik after flashing Melina.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Moldeb:
Thx, yes I always wipe Dalvik after flashing
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] micgeb:
Nice Kernel. It works with H870 great.

Can you disable triton?

On H870 is used this config file init.lucye.power.rc

Other devices used init.elsa.power
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] giutal:
What is triton? Thanks.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] micgeb:
Another unwanted service. :laugh:

Look here:

RCTD Remover Script and App - https://xdaforums.com/v20/how-to/rctd-remover-script-feedback-t3675968/page25
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Nope back to bootloops. Had to flash old kernel. No idea why I get so many issues with this.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Moldeb:
I'm on Melina now and it's smooth! Before I try encryption, I need to better understand how Fulmics/Magisk "force encryption" stuff works which is why I have asked some potentially naive questions in this post. Once I've been educated a bit further I'll give it a try.

As regards secure boot, I don't think a locked bootloader is needed - my Samsung does it fine with an unlocked boot loader. Also my H870 dis not go to code red when I tried last time, I just got a crashed System UI and hence no keyboard to enter the password when it showed the prompt to unencrypt...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
I'm not sure what fulmic's "secure boot" is, but I can assure you, there is no true secure boot while the bootloader is unlocked, aside from maybe encrypting data.

Even with a locked bootloader there are still exploits in LG's own LAF (their version of Odin), that allows us to read the partitions.

So really, encrypting /data is the only way to actually have a truly secure device.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Moldeb:
Secure boot in Fulmics is nothing else but the standard Android security option. Secure boot is not my main issue though - I'd be happy already if /data was encrypted. It is not using Fulmics and there is no "encrypt device" option in settings, only "encrypt SD card". That's why I asked about forced encryption in the Fulmics thread...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mprovi_15:
Seems to work fine on LG G6 H870 stock 11G. Thanks for the work and effort dev.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
I'd like more information first. That link doesn't explain WHY its unwanted, and a quick Google search didn't pull up anything.

Tell me what it does and why it should be removed :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] micgeb:
Btw, the rctd remove works not with this kernel. I think it's working only do remove on the boot Image. It's still running with this kernel. Forget my other question. I removed it in the boot image.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
I think that here it is the only thing we have on triton: https://xdaforums.com/showpost.php?p=74557740&postcount=185

I don't think there is something else on the net about it, and the dev doesn't even seem to know what exactly it does and why it should be removed lol
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Can someone explain how to install this correctly?

Everytime I flash this, wipe cache/dalvik once it reboots I get FC erros, crashes etc non stop.

Fulmics 3.5.

Can I get an idiots guide to installing as I must be doing something wrong lol
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Moldeb:
I just did this:

Used TWRP to install zefie's patched TWRP/Melina/R3 (see other thread, choose correct version for your device - h870/us997) over official TWRP. You will know that you extract the *.img from the *.zip and install as image to recovery, right?

Reboot into recovery now being Zefie's TWRP (purple)

Select to install Fulmics 3.5 (ZIP) (I dirty flashed over 3.3) and as additional ZIP the Melina kernel R7 from this thread (again, choose correct version for your device). When flashing Fulmics starts you'll get to the Aroma installer, make your selections but disable "reboot" at the end so that you get back to TWRP and it proceeds to flash as the second ZIP Melina.

Once flashing is done, wipe cache/dalvik, reboot.

That worked for me. You can probably also first flash Fulmics 3.5 and later Melina but I do it directly.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Yep being doing that way and still errors.

I have Zefies TWRP installed as it backup and restores correctly.

Flashed 3.5 (dirty) over 3.3, flash Melina after, no reboot inbetween. WipeDalvik etc and once it boots I get errors and FCs.

I cant even power off as the power menu FC too lol

Might try a clean flash of 3.5 tonight and see how it goes.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] nIsmoAddict:
Anyone else having trouble getting google assistant to recognize voice commands with r7 installed, or is disabling that part of the feature for the melina kernel?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Clean installed Fulmics 3.5 then flashed Melina.

Booted and working great.

Run a remove bloat script got rid of some crap and booted fine. LG update centre asked to update an app.

Bootloop.

I only get this issue with this kernel, I have tried everything now and still no luck.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Tried to not use the "remove bloat script" thing or not update the app?

Here I am with Melina an Fulmics 3.5, not a single one problem
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Debloat was fine, it wasn't until LG asked me to update LG Switch. Then bootloop and FC.

Why would this stock app update cause this?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Maybe because the script removed some important files? At least try to update the app without using the script, if it does it again then it could be something with the kernel.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
The debloat ZIP lets me choose what to remove, everything removed was just things like memo+, black theme (unused) etc. No important files.

I might try again soon but getting a headache constantly flashing and restoring etc.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Why use the script if Fulmics already let you decide if you want to uninstall QMemo+ and it comes without Black theme?

Let us know how it goes without the script :fingers-crossed:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Moldeb:
Due to (unnecessary) debloat I think as well because I have Melina on top of Fulmics 3.5 and have updated LG Switch - and it runs fine. I used the Aroma installer that comes with Fulmics to debloat. No issues at all with Melina.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Chinkopokomon:
фулмикс 3.5 и ядро мелина - лучший вариант

Respect to a brother from Russia for this wonderful fit

The performance of Hearstone/ NFS LIMIT has grown considerably

Looking forward to seeing you at 8.0 :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
So...

Flashed 11G stock using LGUP and started fresh, brand new, stock.

Unlocked bootloader

flashed Zefies TWRP with Melina

Flashed Fulmics 3.5 - Removed nothing, no bloat at all (didn't reboot)

Flashed Melina

Setup from scratch

2 days later, battery is awful and doesn't last a day, google assistant stopped working and FC, Lockscreen FC, System FC, Power off crashed.

Now on stock BL & a new debloated a few bits (Quickmemo+)

Battery has lost 11% in 6 hours with my usual use, also phone is always searching for signal at my work as I get none and rely on WiFI.

I have no idea why I have loads of issues with the kernel but afraid its not for me. Shame really.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Battery loss in this case is normal, unless you are saying melina is the reason you cannot find signal.

If you have no signal at work, the best practice is to enable airplane mode (then turn wifi back on after enabling airplane mode).

This will allow wifi without the constant network searching, and save battery considerably.

This method will also work without melina.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Edit: ugh, double post due to xda database lag/issue
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Sorry what I'm saying is I'm getting WAAAAAY better battery life on stock.

Would get even better with airplane but not fussed as having no issues on stock.

Not sure why Melina was FC and battery drain was so bad.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] K3V1991:
[MENTION=759634]zefie[/MENTION]

For me all works pefect, no high battery drain :D
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xdzeus:
What about the 8 and 9 rel?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
IMO they are not release worthy as I feel rel7 is more stable, and I have stopped working on Melina as we wait for Oreo.

You are welcome to try them as YMMV, but that is my reasoning for not releasing them here.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sergykm:
what is the best settings battery/performance for this kernel? [MENTION=759634]zefie[/MENTION] Do you use the default settings?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Currently yes.

A side note, those with battery issues with Melina, may want to try downgrading to rel6 and see if that helps.

rel7 has more security updates but as such with the linux kernel, it may have caused performance or power issues that were later fixed in a version I didn't patch to. rel6 is the closest to LG's code with my optimizations and "sufficient" security updates (the wifi exploit patches)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Mikes:
F2FS is still not working, it reverts to ext4 after reboot.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Not sure what you mean. F2FS support just means the kernel can mount F2FS. This is mostly designed for when using something like Apps2SD, to have a F2FS SD Card 2nd Partition.

If you are trying to convert your ROM to F2FS, (eg /system, /data, and/or /cache) you need to also edit some Android config files, of which I can't remember at the moment, some of them might be in the ramdisk (boot.img) as well. I forgot exactly where they define the filesystems off hand.