yashsingh1/xdaforums huggingface dataset:
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] mario0318:
Just to confirm since I'm not terribly savvy when it comes to kernels, but for this Lineage 15.1 ROM on the K20 there are no current custom kernels to flash at the moment, is that correct?

I know there is a thread for Fusebox on here but that's for 32bit systems and wouldn't work with this ROM, as I understand? I wanted to try out setting up performance governors and other CPU tweaks.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
I'm working on that too. Both of the Aristo devices will be getting 64bit pie once I get it functional on this device
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
That is correct, the only kernel currently available for lineage 15.1 is the one built into the roms, but it's not a completely stock kernel it does have a few tweaks baked in
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] london629:
Been running your RR rom for the past couple of months now, its great! Decided to switch it up today and flashed the PBRP and Lineage 15.1, man it runs smooth and I love how you can customize the recovery. Keep up the great work!
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Cyconumnum:
my post was originally chewing someone out for even hinting a demand for an ETA...

then... after i deleted my angry wrist slapping...

.i guess i did the same thing...

you tell us everything ....

you've gotta be one of the more tolerant DEV's ever :) ...
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
Weed does that to people lol.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
I found a new "bug", apparently "SIM Lock" is ignored in lineage 15.1 I tested an AT&T sim and it works on a SIM locked MetroPCS branded K20 Plus with working LTE.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] matronmalicexxx:
which zip file

is it three different zip files???
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
Magisk, gapps and the ROM, the ROM itself is only 1 zip file but there are multiple different dates. The latest is the most stable.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] matronmalicexxx:
im seeing 3 rom zip files but there not dated 2 are 1.5gig the third is 519mb
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
try desktop mode in a browser, because the information you've provided is 100% false. All 3 zip files are near the same size, each one uploaded on a different date with the build date in the file name.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] iesous-kurios:
The date is in the name of the file. Just clarifying that in case it isn't apparent.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Tyreethetruth:
Can I still make/get calls/text with this rom? If so I'll install
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
Yes you can
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Tyreethetruth:
Aight cool I'll install it in the morning and give feedback, too high to set everything up right now ?
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
You'll be satisfied with the difference in performance. I guarantee it
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] mario0318:
Is there any guide or lead anyone who is experienced using Lineage OS regarding battery life and solving wake lock problems?

I've got an issue with the home screen keeping the screen on. It doesn't happen when other apps are open to foreground where the screen goes to sleep like normal. It seems to only happen on my launcher's home screen (Nova Launcher, btw) and a few other apps.

I have AppOps installed so I can go in and disable certain permissions like Keep Awake and Run in Background, Start in Boot, etc. But that doesn't seem to have any effect and it's killing a lot of my battery charge daily. The phone holds a superior charge when asleep screen off, 8 hours can pass and it will only drop about 10% or less. But with screen on it easily kills a percent every 10 minutes or less!
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
There is a way of setting apps as inactive so they don't run in the background but i forget where I found that setting
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
I intend to limit the framerate to 30-35 fps for the next build.

I will be making one last Oreo build which will fix a majority of remaining bugs:

AudioFX issues

A rare WiFi kernel crash ( I encountered the issue once in 4 months and managed to get the kernel log from that one crash. For the Android Wizzes it was a WCNSS crash.)

Potentially camera fixes as well.

My reason for limiting the FPS to 30-35 is quite simple to explain but I'm going to explain in depth why I want to do thisl.

Let's start with "What is FPS?" FPS stands for frames per second, which is how many times your device's display will refresh each second. Your average display has a max refresh rate of "60hz" which would be 60 frames per second. Some devices (Phones, TVs, computer monitors) support 90hz, 120hz, 240hz, and then there are the bulky Plasma TV's which support up to 600hz, that's a whopping 600 frames per second. The higher the framerate (to a certain point wh

Which in my opinion just came out way before its time, 4k-8k plasma screens would be great with support for devices that can utilize the technology such as AMD Freesync or Nvidia Gsync.

So we've established what FPS is, now why would we want to limit the device from its 60fps capability down to 30fps?

The answer is battery life.

For each frame processed your CPU (central processing unit) or both the CPU and GPU have to work together in sync to render each individual frame before it shows on the display.

When the FPS is left uncapped your CPU or/and GPU will work as hard as they can to produce as many frames as possible each second.

Ever wonder why stock

gets better battery life than my builds?

Or why my builds seem to run much better than stock?

This is caused by two things:

Stock implemented a "global" (everything displayed within the OS) FPS cap of 24 or 25 maximum FPS and ran a 32bit OS to lower RAM utilization at the expense of more processing capabilities.

Currently all of builds (both Nougat and Oreo) do not include any sort of a FPS cap, but the phone still struggles to produce smooth 40 fps even in a basic app such as settings.

The sharp spikes in framerate you likely notice when using more immersive apps (like Facebook, Snapchat, games, etc) are mainly from the CPU/GPU from being overloaded with so many frames to render and other things going on in the background.

So if we were to limit the FPS to 30 or 35 FPS, we would see more consistent performance and improved battery life when the screen is on.

There could be two possible reasons LG chose to lock the framerate that low, one would be to improve battery life/performance consistency. the other reason could be that they deliberately wanted to make the phone seem more like a "low end" device.

I want to hear your thoughts on this, should I limit the framerate? If so what do you think I should limit it to?
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] mario0318:
I say go for this experiment. It would absolutely make sense of the rampant battery discharge even when the screen is simply on and no app running.

It may just end up being the primary reason for the huge battery drain during SOT and would welcome any improvements towards it.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
That's my thought exactly. I'm sure many of us would prefer battery life and lower thermals over eye candy. I'm a PC gamer so I'm all about getting as much eye candy as possible without sacrificing performance, this is the best solution that I could think of.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
A new build has been uploaded. The fingerprint sensor now works, no clean flash required. Big shout out to [MENTION=4929843]messi2050[/MENTION] for sharing his work allowing me to utilize his FP hal and an additional FP blob. I also tried implementing a FPS cap of 30 but it isn't working yet. Oh well maybe next build
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] mario0318:
Flipping awesome. Am gonna install tonight! The news of being able to use fingerprint sensor alone has me ecstatic.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] psyck:
This ROM is awesome and I thank you for your work. +1 here for improved battery through 30 FPS and I'm looking forward to any future work.

I have a noob question tho.

After flashing I get two security notifications from Trust:

This build is signed with public keys -and- SElinux is not enforcing. Your security is weakened.

I have read through the thread and don't recall anyone discussing this issue so I'm sorry if this is a double question.

Is there a way to sign with private key and enable SElinux or are these somehow unnecessary now due to baked in workarounds? Any further explanation would be appreciated.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
Im glad you like it. Thats one of two things im currently working on. I have been working on setting up Sepolicy configs to allow me to build/boot with Selinux set to enforcing. The unsigned build issue is from not being official. I might be able to sign an unofficial build but that "trust" message doesnt really affect anything. The other thing im working on is an audio bug within certain games where it becomes very choppy and also affects gameplay. Hearthstone is one game that is affected by this bug. Once i get sepolicy set up right, this audio bug fixed, and a fps limit implemented im quitting oreo as it will be pretty bug free and move onto pie
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] psyck:
Thanks for the quick reply. Also I noticed in settings the LineageOS update. Does this have OTA?!?

and I sent PM
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
Nah, thats for official only. Which we will never have Official LINEAGEOS. (Spoiler alert). We cant meet the minimum requirements for official unless i can find where the stock WiFi MAC address is held. Last year i openned every single partition on this phone in a HEX editor looking for the wifi mac address and only found the bluetooth one. But that's just Lineage, there are other ROMs out there. I'm just using Lineage to ensure stability before switching to a new Rom again.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] psyck:
Well I got BlackScreenOfDeath. It happened like this: I flashed a different kernel and got a boot loop. Then I booted into recovery and did a wipe then flashed 15.1 then open gapps. Rebooted system aaannd... screen went black and bootloops. I could boot into download mode but screen was black. I could boot to fastboot but screen was black. Booting to recovery or system caused boot loops and screen was black. Always black. I was able to boot into download mode (screen still black so wait for haptic vibration to cycle then let go of vol up) and flash stock kdz with LGUP but the screen was still black and bootloops.

TO SOLVE BSOD FIX:

With adb: fastboot oem lock (relock the bootloader)

Then flash stock kdz with LGUP (and uppercut) - ALL GOOD
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
Loving the upgrade to Pie! Just looking at the pretty os is sufficient for me, thanks for making this a reality Travis :good::good:! WiFi Mac address is somewhat annoying but I turn it off and on and it usually helps. Battery usage seems to be more stable and memory usage is much better! I remember having to clear system cache seemingly every hour! Kudos m8 thanks for keeping us updated!! (Will post again soon with status of phone and errors/problems)

---------- Post added at 06:21 AM ---------- Previous post was at 06:11 AM ----------

Able to post pics in this thread? Wanna show how the phone is lookin
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
Yeah that's fine
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
Yeahhh, you can't currently use any kernel other than the ones that have come with my builds. Nobody has made an Oreo compatible custom kernel yet.

To fix that all you had to do is extract the boot.img from one of my builds. Fastboot flash boot boot.img and it would have resolved that issue.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
Hey, still thoroughly enjoying your work! Here are some things I have noticed while using: Aggressive WiFi handover messes w/connection(stutterers between WiFi and data uncertainly?).. Selecting notification from lock screen laggy(phone thinks about it while unlocking slowly;like 5-10 sec).. Initially selfie camera was 90° off but self corrected?? Restarted phone with OpenGL skia setting and reset to default.. Not really gripes, but things I noticed.. Fix it or not, I'm still loving it!!!!! :)
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
I had that odd camera issue happen to me too, reinstalled the rom and it fixed itself
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
Looking forward Pie :)))))
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
Any recommendations for build prop tweaks?
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
This build is super stable stock from Travis; being that I like to tweak under the hood for just about anything, I installed kernel auditor and began tweaking variable 'bout 3 days ago now. Still fine tuning and changing CPU scheduler settings for optimal efficiency... If anyone wants to see my settings lmk!! I really want to post pics of how pretty the OS is and device settings but apparently I need to have like 10 useful posts on XDA and I'm not quite there yet :/ lovin the community big time though! Been using XDA for years now, just never signed up -_- semi knowledgeable about this stuff but learning erry day! Plz keep us posted Trav :))))))))))
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
At this point there is a possibility that i may skip over pie and go straight for Q. We'll just have to wait and see
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
I love it :laugh: anything you do is greatly appreciated brotha! Thankfult to at least have 1 great ROM to work with. Peace and prosperity Trav and lg k20 users!!!!
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
How can I identify whether my screen is synaptic or not?
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
Also, if anyone would like to see my kernel auditor settings/ help me fine tune 'em, I will try n post pic but if not I'll type it out.. Either way I'll be posting soon
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] ninjasinabag:
There are apps on the play store that you can use to identify hardware. I'll link up after work.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
Using Antutu for benchmarking.. Started with scores ranging from ~39,000 to ~42,000. Had a 44,XXX run but never saved the settings :o nonetheless have been learning and tweaking VM, I/O scheduler, CPU gov, build.prop, and LMK. Currently sitting around 43,200... Testing w/ Antutu takes like 10 min a pop so I devote a lot of time (and batt) to phone performance and efficiency. I know it will make a difference in day to day performance as my music app doesn't studded nearly as much, YouTube app is so buttery smooth [and video is playing before page is done loading :) ], chrome is buttery, boot time improved, etc.. Tryna really understand all these variables to get a higher score while having sensible settings.. If I can get ~44,XXX+ I'll be posting specs
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
Device hw on the playstore
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] mario0318:
I'd love to learn what sort of modifications you have done, and which apps do you use to edit them? I have been trying to keep the boot time scripts or any ongoing schedulers to a minimum but have been experiencing some lag when multitasking between apps which causes some pretty frustrating background app force closing, apps refreshing too soon upon leaving and coming back to them, or just general lag when switching forcing me to wait a few seconds for the heavy processing to finish.

For the record, I've been experimenting with magisk modules like NFSInjector, FDE.AI, swap/ram manager, LKT, and they have their pros and cons but it seems i still need to modify some things to make this phone battery and performance efficient.

I've also used Ex Kernel Manager and LSpeed but still can't quite get the buttery smoothness I crave from this thing.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
Using kernel auditor and lspeed currently. Benchmarking w/pcmark currently. Was wondering if magisk is possible with this ROM and glad to see it is! Current settings for kernel auditor: 1 cpu gov to conservative, down thresh 20, up thresh 21 for benchmarking, freq step 25, ignore nice 0, sampling down factor 1. 2 GPU set to performance for bnchmrks. 3 io scheduler to deadline fifo batch 16 front merges 1 read exp 250 write exp 4500 writes starved 0, turn everything off, rq affinity to 0, read ahead 128mb, cpuboost disabled. 4 Low Men Killer, set manually, in order from foreground -> visible -> secondary -> hidden -> content -> empty; 4,8,12,24,32,40. 5 Virtual men dirty to 10, dirty background to 5, min free KB 6144, oom kill to 1, overcommit to 1, swappiness to 0, vfs pressure to 10, laptop mode to 1, extra free KB to 256, zram to 0. 6 entropy set to lowest. 7 post is getting lengthy but I will continue post in a day or 2. Should help your rig with these settings

---------- Post added at 07:06 AM ---------- Previous post was at 07:05 AM ----------

Next post gonna have dalvik values and lspeed tweaks
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
How's the tweaking going? As for the settings app, under dev options I turn on force GPU rendering and turn default renderer to open gl skia. Graphics are so much smoother and snappier w/ this setup.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] mario0318:
I'm gonna work on this set up over the weekend. Thank you very much for sharing this.

Does this set up you have currently show improvement with app multitasking? I noticed you have LMK values set to pretty low numbers which I assume would make multitasking snappy, but i wonder how often would apps be closed in the background which would force them to relaunch? That's the gist of my issue in finding the perfect set up for snappy response with just enough memory in place to switch back and forth between apps.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
Absolutely. I'm learning every day :o Upon further searching I found some default values for k20 and I have changed them as follows: (basically revamped the dalvik...) Heapstartsize 128m, heapsize 512m, minfree 28m, lockprofthreshold 500, growthlimit 80m, dexoptflags v=n,o=a (for no verification and optimize all). These settings are quite snappy and score pretty well with benchmarks. Also remember to reapply the graphics skia setting after every reboot. And reboot after every dalvik change to apply settings and wipe dalvik cache. Will be doing lspeed config soon :D
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] mario0318:
Which app do you use for the dalvik edits? I'm guessing it's not sufficient to edit build.prop, esp with magisk set up?

Btw, I don't intend to hijack the thread with this. But seeing it's one of the few active ones and it being a subject where there isn't much specific information out there for the K20, I'm taking my chances to get these details. Surely it will help some lurkers at least. Sorry and thanks!
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
Same here man I am new to XDA and I'm sorry if thread is getting convoluted.. One can find the build prop through a file manager or I scroll to build prop editor in kernel auditor app. Then search dalvik in the top field and the dalvik tunables appear. If I could upload pictures this would be much easier -_-

---------- Post added at 08:40 AM ---------- Previous post was at 08:38 AM ----------

Also switched dexopt flags to v=a,o=v. Switched execution mode to int:portable.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] kozyy:
do you still have plans to implement a finger sensor fix?
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] messi2050:
It's already fixed since few weeks
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] leopard_fist:
You guys who are running this rom, how big of an issue is it to you that the double tap to wake function doesn't work? I am testing the rom out, but I find it cumbersome to pick the phone up and press the button in order to turn the screen on. Otherwise it seems like a great rom, thanks very much to the developers who put in so much hard work to create this rom
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
You have the uncommon Synaptics LCD panel which I haven't been able to get my hands on yet to try fixing dt2w on it
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] leopard_fist:
Hey Travis - gotta question - before I go back to stock, is there any rom for this phone, where tap to wake works (with the lcd that my phone has) and is stable? Thanks alot
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
No there is not as I've been the only one working on the project.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] leopard_fist:
Alrighty- thanks for the help. Your lineage is a great rom btw, I'd be using it otherwise if not for my tap to wake issue, thanks again :)
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
Thank you, I understand completely. That would be a buzz kill for me too
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] leopard_fist:
Hey Travis thanks for taking some time to advise me about my phone via pm, I appreciate it
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
Hey Trav, I have the uncommon screen as well. O was wondering if I could logcat some data to help with dev... But if this is gonna be replaced by 9.x then by all means I'll wait.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
I'll have to have that display model myself because of how much debugging/trial and error it will take
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] supermario2360:
Gotcha! Any word on pie ROM??
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
No progress until I get a new motherboard
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] mario0318:
Shoot, dude. Are we talking PC mobo or phone. Because I've got a K20 lying around with a severely cracked screen that still works.

But if PC mobo is what you need, how much is that looking to run you?
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
K20 plus motherboard. I'll be upgrading my whole system soon with a new motherboard, cpu and RAM for much much faster compiling.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] hawknest:
Do you need another k20? I have an old one laying around. Has a crack across the screen but I've moved on from the device and no longer need it
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
Yeah I'm still waiting one someone to send me one since I ruined 2g sim functionality and full sim functionality on another by trying to take the back cover off wrong forgetting that it comes apart around the display and not from prying at the back like a lot of phones. Super dumb move on my part.
[LG K20 Plus ROMs, Kernels, Recoveries, & Other Dev] Travisholt92:
Since I already have the Pie trees brought up and "booting" (minus the live display HAL causing the phone to boot to a blank screen) I'm going to skip pie and move onto Android 10.

Hopefully the gf will let me borrow her screen to test these builds on a partially functional motherboard.

Sorry guys. No Pie for you! (Allegedly, see next post for explanation)