yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
No problem, I enjoy working on it and lol no lullaby please :p

I'm going to try and implement sound control when I get a chance. As far as the B&O modules or any of the modules, can't really do anything for this. The source for the modules is closed source from what I know and even if it wasn't wouldn't know where to begin with it, sorry. I'm not a Dev, just doing this as a hobby and using it to learn :D

Technically the models aren't even really fully supported on any rom other than stock or stock based anyways.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] juanantofb:
Hi, very thank.

Regards.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
--------- Updated to version 1.6 -------------

Download links are in OP. Main addition is adding spectrum profile management support. Download the app from the playstore and make sure to disable any "apply on boot" settings you have in your kernel management app. Then open Spectrum and click on which profile you want to use (Performance, Balanced, Battery & Gaming), each has preset optimizations so you don't have to set your own settings if you don't want to. I will continue to optimize these profiles as time goes on, just wanted to get support added and profiles working and push an update. Change log is below:

May 21st, 2017 (v 1.6):
Added dancedance gov
Added spectrum profile management support (download app from playstore)
Misc changes
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
Thanks :good: :)

I switched to crDroid yesterday to try out ... will your kernel work on it too?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Yes it should. Technically it should run good on any Los based ROM that's up to date (i.e. Android 7.1.2 - as that's what I used as my Kernel source).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lentm:
My sim card is not detected after installing this kernel, reflash LOS again to replace the kernel, then everything is fine.

Had the issue with v1.5, and I tried v1.6 today; no luck...:(
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Did you boot into LOS and set everything up first before flashing my Kernel? This kernel can NOT be installed on a clean flash, you have to install ROM, boot into ROM then reboot to recovery and install kernel or it won't work, usually it won't even boot.

If on the other hand you installed kernel after already having let it boot into ROM first time then I'm not 100% sure. I'm on RR and it detects Sim card no issue, also kernel shouldn't affect Sim card in anyway but who knows. If after installing it the proper way it still happens let me know. Also I need to know if you're using h830 or h850 and which version of LOS you're running. Thanks :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lentm:
Yes, it was installed and booted first.

I'm with Magisk though...Do you think this is the cause?

Tried installing kernel before and after installing Magisk, I got the same result. :(
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
No, nothing to do with magisk. What variant are you using h830 or h850? Also what build date on LOS?

Also, anyone else have issues with Sim card not working after installing my kernel?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lentm:
My device is h830 and using the latest LOS build, 5/16.

Without the kernel, sim card works fine.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
I'll try it out later then. I have h830 so I can test it. Using on RR without any issues right now but won't have a chance to install Los and look at it for at least a few hours. Weird thing is that nothing I've changed has anything to do with ril, so don't understand why it would affect Sim. But anyways I'll check on it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lentm:
Thanks for checking! v1.5 was my first try,

so I'm not sure if any previous versions worked.

If you need any logs, please let me know your favorite log app and options, and I will provide.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Did you do a clean install of Los? I just did a clean install of LOS 5-16 then installed my kernel and all is running ok. See attached screenshots. Im using dual boot, but doubt that would make any difference.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lentm:
I clean flashed LOS 14.1 5/16 build + Magisk, used it for 2 days,

then tried this kernel.

I get "no sim card detected"

Hmm...let me try again with a clean install + magisk and let you know the result...

---------- Post added at 11:29 AM ---------- Previous post was at 11:02 AM ----------

And the result is...yes, this kernel + Magisk kill the sim detection...:(

Without Magisk, the sim detection is fine.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Then maybe it is magisk, try using the following version of magisk:

https://github.com/stangri/MagiskFiles/blob/master/Magisk-v13-170521.zip

It's magisk v13 unofficial which is what I use so maybe earlier versions of magisk have issues.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] fede_rico:
my lg g5 h850 become a fireplace in standby too,without oc :( i ve seen on kernel adiutor and cpu/gpu aren t working at max frequences so idk why it become so hot,and battery life too become a problem :confused::confused: but btw i love your work on this!good job
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
I don't recommend using kernel auditor, has been issues with ka some reason sticking on high frequencies and that it's affecting multiple people's kernels, so I started using ex kernel manager, but you could use kernel toolkit or similar as well. Also, I highly recommend at least wiping system and reinstalling ROM zip when updating to 1.6 (I meant to put that on update post but forgot, sorry) because I changed a lot of stuff related to boot script and adding support for spectrum. Realistically, probably best to clean flash if coming from a previous version. I'd recommend downloading spectrum from Google play, disable kernel tweaks "apply on boot" settings and then try the spectrum profiles. Also download better battery stats XDA version (search XDA) and check for wakelocks. I've been running 1.6 on clean flash without those issues on RR on h830 so not really sure :confused: What ROM are you using the kernel on, what phone (h830, h850) and what version of my kernel? But I'll continue to try and check things out, and can anyone else confirm these issues?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] fede_rico:
i ve fixed it with new version of kernel,btw i m using last LOS,didn t reset all,only flashed the new kernel xD if i have others problems i will reinstall all from 0 :good: i m bored of resetting always my phone and lose all :rolleyes: (sry for bad english btw)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] markyc25:
Can't download it, says can't find dns server

Got it now will test it....

Thanks.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Yeah can't blame you, tired of always doing clean flashes but titanium backup is my friend :D In least few weeks since I started building this kernel I've probably flashed test kernels over 100 times and probably 15 clean flashes of the ROM if not more, lol. I don't think there will be a need for clean installs after 1.6, just changed the way I run the boot scripts but problem is I didn't include any lines to remove old ones so they may cause conflicts. I'll see if in next release I can edit the install to remove the old boot scripts to remove any previous conflicts. Happy New version is working for you though. :D
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Links work, just downloaded both to test. Make sure you click link and then direct download (you can't right click on link to download, is not a direct link). You can also go-to downloads tab at top of this thread and download the latest version for your phone.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] fede_rico:
i will flash completly my phone with next update of LOS and your kernel :D u done rly good job and i fixed my ghosting with display colours too :angel: finally:angel:

can i share a vid on youtube about your kernel bro?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] 4r44444:
Does he work with Mokee AOSP?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Thanks and yes you can share a video on YouTube about the kernel if you want to.

I'm not sure yet, just downloaded mokee, going to set it up in dual boot and try it out. I'll edit this post and share if it works or not with it when I test.

Edit:

Just tested on mokee and Kernel works. After installing Kernel it seemed like it was sitting at boot screen for a long time (I'm probably just impatient lol) so I pulled battery and restarted and it booted right up and ran good :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] godhand96:
Hy man,it s possibe that the kernel uses more than 50% of battey in standby without oc in 6h?:/ used from system android:confused::crying:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tavocabe:
Anyone running v1.6 with latest Resurrection Remix release? For some reason wifi won't turn on, it says "Disabled". Tried also wiping system and again same error. Both times reverting to v1.5 fixed the issue. It may be time for a clean flash...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
No, most likely wakelocks from other apps. Download better battery stats and greenify like I stated in LOS thread. Also if you're not 100% sure what kernel settings to use, I recommend not changing them yourself and instead using spectrum app and selecting battery profile unless you're needing more performance, then select performance or gaming, but highly recommend using battery during standby.

I'm using version 1.6 on latest RR without any issues. WiFi works just fine, might be time to try clean flash :) Also, what device are you using h830 or h850?

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

Just for reference I always test all my kernels before release on latest build our RR on h830 device. So, RR should always be most stable with my kernel.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tavocabe:
I'm on a h830, maybe something to do with magisk? I can't think of anything that could be causing a non-working WiFi. Anyway, I'll stick to v1.5 for now it's working just fine abd don't really want to clean flash lol Btw, will you be taking over the maintenance​ of RR? Doing a nice job with SpeedyKernel.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Not sure, others have had issues with magisk 12 and my kernel, so it's possible, just really odd as I'm using magisk as well :confused: I'll start working on the kernel again, just been busy last few days. Happy you like my work :) As far as RR, there's someone that's going to setup a Jenkins server to do auto builds for us, so I won't be taking over. Probably best, will allow me to focus on the kernel and I would probably have to reset up my machine to do RR builds, tried it on bbqlinux and had too many issues plus it would have taken about 8+ hrs to build each version without upgrading my laptop.

-----

On a separate note, not really happy with latest kernel version. It doesn't appear to really be showing device to go into deep sleep and standby isn't great. I'm getting about 1.84% / hr in standby where I used to get about 0.6% / hr in standby. Going to have try out v1.5 again and see if it's better, may have to scrap my changes from 1.6 and go back to 1.5
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] fede_rico:
so i need to install the kernel after i launch OS?or i can install all together?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] maxniper:
You can flash all at once
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
I personally recommend flashing after your first boot. My kernel does not include a boot image, it only edits current ramdisk. If you end up with problems flashing it all at once (like a bootloops), then flash rom, gapps, root and boot up then flash kernel. I've personally had bootloops sometimes when flashing all at once but they could have just been because it was one of my experimental builds :p
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Okay, taking a look at some different things regarding battery life issues, and from what I can tell it's not my kernel. I noticed phone is not going into deep sleep with latest RR, LOS or Mokee with stock kernel or my kernel and is showing some powermanagement kernel wakelock, but if I go back to the RR 5/ 03 version with stock kernel or my Kernel, phone goes into deep sleep without an issue. My guess is something upstream that LOS pushed messed up deep sleep and any newer Los based ROM seems to have that issue.

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

Can anyone else download better battery stats from XDA and check into this for me as well. See if on latest RR, LOS or Mokee if on stock kernel your phone is deep sleeping and with my kernel if it deep sleeps. I just want to isolate if it's truly my Kernel or the LOS base (ROM issue).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] blachamlet:
I'm on RR 5/21 with kernel version 1.6 on h830. I got 5 mins of deep sleep in 2 hours.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
I was gonna go back to RR and flash the latest update, but now I'll stay on crDroid for a bit longer since that has no sleep issues (update from last monday). So thanks for that "report" :good: :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Can you use stock kernel and see if it's deep sleeping. I did a clean install of that version of RR and left it on stock kernel and still only would get maybe a couple minutes of deep sleep. I went back to 5/3 version and installed my kernel v1.6 and deep sleep worked fine, so I'm thinking it's something with latest rom update. Just would like more people to confirm so I can rule out it being my kernel :D
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] fede_rico:
yes is rom problem bro,i m using LOS without your kernel and still have battery problem..does kernel work with fulmics rom?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
That's what I figured. Because I tried without my kernel and had same issues but went to older version of the ROMs and everything works just fine with or without my kernel. Also, my kernel will not work on stock but if you want to use stock you can always use Asgard kernel by [MENTION=5264701]lordodin912[/MENTION] for stock.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tavocabe:
This is with lates RR and Speedy Kernel v1.5, must be an upstream LOS problem
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Yeah, that's what I thought. I went back to RR 5/03 version and have no issues with phone sleeping. Whatever the issue is affects RR 5/22, LOS 5/16 and Mokee 5/22 (haven't tested the new versions of Mokee yet). Hopefully it gets fixed soon :D For now, if battery life is important I'd recommend staying on the older version of the ROMs without the wakelock issues.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
Here are another screenshots of wakelock. NFC seems to be active but it can't get deactivated.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
If you don't use NFC you can just freeze it in TiBu. I did that on crDroid because the switch to turn it off doesn't work, now at least that wakelock is gone :cool: :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
Yes i did that but there are still other wakelocks active. Switching to latest crdroid now and i hope there are no wakelock issues.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
I'm wondering if maybe they've been pushing some upstream NFC changes then. I might be able to disable it via kernel but think it's more rom controlled than kernel (to disable or not) but not sure. Whatever is causing it it's affecting all of our latest LOS based rom releases (with stock kernel or mine, also why I don't think it's kernel related because I haven't updated my kernel base since before last RR was released yet :p) Mokee appears to be getting released nightly, so I'll check with their latest nightly release tomorrow and see if it's fixed on stock kernel then try mine out.

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

On a separate note, planning on releasing version 1.7 this weekend. I've added some control (headphones), a few governor's, adreno boost and some other misc changes. I'm going to add fsync and more governor's before I release it though. If anyone has any features they want to see for next release let me know and I'll try to add it (other than f2fs file system, don't think I'm going to be able to do that one, however if anyone that knows how would like to help me then I'll add it).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
[MENTION=7188028]jeffsga88[/MENTION] It is possible to add undervolting?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
It has some, but a lot are simply the old *alarm*, *launch* + Icing wakelocks that you can block with the built-in wakelock blocker.

Unfortunately crDroid doesn't have the 2-column dashboard setup and it uses that silly built-in superuser app, so I'm still debating if I should ditch it and go back to RR, wakelocks or not :laugh:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Yeah biggest wakelock is PowerManagerService :( It's almost always at 100% now. Could always use RR 5/03 version, it sleeps very well still, lol.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
I'll look into it again. Unfortunately haven't seen many others using sd820 do undervolting so it'll be a bit of an expiration of all those files. I think I know what needs to change but not 100% sure. Are you wanting undervolting for CPU or you, or both? (Gpu I know for sure where the volt freq table is, just not 100% sure on the CPU if it's what I'm thinking it is or not).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
If it is possible CPU & GPU :) On my S4 i undervolted my cpu and gpu and battery life increased. Want the same for our G5 :D
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Yeah I did same on LG G2 and it helped a lot on battery life. I'll look into it and see what I can do.

Going to bed is 2am lol. I swear every time I start working on the kernel I stay up until 2 or 3 am lol.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
I just took 2 screenshots of BBS in crDroid. It's been only 12 hours since I had to reboot, about 7 of those it was on airplane mode (at night), but the KWL are still ok on that version :good: :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] veryjo:
I also had good experience with undervolting with the LG G2.

But I miss the support for f2fs???
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Sorry, f2fs support most likely won't be added unless someone is willing to help me add support for it. I've looked into adding it but not 100% sure how and I don't want to try and add something and it mess up anyone's phone.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tavocabe:
I went back a few version of RR when video was working and there were no wakelocks and re-discover these performance profiles settings. Are these the same as the spectrum profile management? Just curious lol
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Nope not the same. Those are the old battery performance settings from Los. Not sure if Los still has them or not but RR removed them.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
03.05 build RR with this kernel. Wakelock still persist
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Did you clean flash? On a clean flash I don't get that wakelock on 5/03 build with stock RR kernel or with my kernel. I only started having that wakelock on latest RR.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
--- --- --- --- --- --- --- --- ---

Updated to version 1.7 (May 27th Release):

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

Links in op, or click on downloads tab at top of this page.

Note: I attempted to add F2FS support, but was unable to get it working no matter what I tried. Ended up spending a lot of time in bootloops and wiping and restoring system trying to get it to work, lol. Unfortunately, since I was unable to get it working and can't find any decent information on how to successfully add support for it, I will not attempt to add F2FS support myself. If any devs would be willing to help me figure out how to add it or anyone knows a good guide to use to add it, I'd be happy to do so in the future. As far as undervolting / overvolting CPU / GPU, I haven't had a chance to look into it and will try to take a look at it in the next couple weeks. Hope you all enjoy :)

Another Note: Latest RR, LOS and Mokee (at least 5/22 version) all had wakelocks killing the battery (phone was not deep sleeping). This is not kernel related, it affects the stock kernel (kernel that comes with rom) as well as my custom kernel. Either use an earlier version of the roms that weren't affected by the wakelocks or wait for the issues to be fixed. It will show up as PowerManagerService:Wakelocks.

Change log:

May 27th, 2017 (v 1.7):
Added adrenoboost
Added darkness gov
Added blu active gov
Added sound control
Tweaked autosmp hotplug
Added gpu gov. whitelist (only allows you to select stable gpu govs)
Tweaks to hotplugging
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ggelo10:
hi

i have stenforce 1 notification on start

this is good? i have kernel adiutor
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
So setenforce 1 means is that kernel is booting in enforcing mode, which is normal. But getting that notification is specific to kernel auditor.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
So after looking around found out the wakelocks killing the battery in latest Los based rom releases was to die with NFC. In most of these ROMs you can't disable NFC via settings menu (is greyed out in settings menu) so you had to block the wakelock for NFC or your phone would not sleep. I found another solution:

Fix: Simply add NFC to quick settings tiles and use that to disable it, then enjoy the normal battery life :) No more wakelock.

Hopefully this helps. :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] einhuman197:
Hi.

Does this kernel work with fulmics 3.2?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] N1ko5zAN:
No ! This is a kernel for Lineage OS based ROMs like Resurrection Remix etc...

For Fulmics you use Asgard Kernel .. search for it on the forum ...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] einhuman197:
OK. Asgard doesn't support overclocking :(. Thx anyways
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] iLuvMudkips:
Really enjoying this kernel! Not sure what it is but music sounds great! I'll edit later when I've had a chance to run it for longer.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jeffsga88:
Glad to hear you enjoy it :) Haven't changed anything related to audio in my kernel though (other than adding sound control) so think that's a placebo effect but I'll take credit for it :p lol.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] iLuvMudkips:
That's very possible! Could have been something in the 5/30 LOS update too or placebo as you suggested. Great work though! So far my device hasn't crashed playing YouTube videos like it did before. Overall this is the best experience I've had in this device.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] juanantofb:
Hi, thanks for add audio support.

Regards.

---------- Post added at 02:35 PM ---------- Previous post was at 01:41 PM ----------

Hi again, witch kernel manager i can use to control volume gain? with Kernel Adiutor no apear the sound section.

Thanks.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] obol2:
Ex Kernel