yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
LOS went back to schedutil with THIS commit. It doesn't look like its been merged yet (hasn't been marked as such by [MENTION=2881807]x86cpu[/MENTION] ) but looking through the patch set changes, it shows it's using the sched governor. If [MENTION=1325580]Tilde88[/MENTION] has it set to sched, this would tell us the ROMs kernel hasn't gone back to schedutil yet, just to clear any confusion up.

Also [MENTION=5103965]Omar-Avelar[/MENTION] I too can confirm that Gamma v24-SS does squash the screen on a SS LOS build. I'm unsure if the stock LOS kernel does it too since I couldn't get my V20 to boot just on a dirty ROM flash without Gamma.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
I mentioned in the post above why it's on sched, because I did indeed flash the LOS kernel. Since it does not include schedutil (i cloned the repo on the 11th or 12th, never updated). Since it was a dirty kernel flash, i think the the .rc files created/modified from the gamma anykernel installer remained. with gamma edits. Since LOS did not have schedutil, it was defaulting to Interactive, with minium freq set at 1100. I changed it to sched, and put minimum to 300.

[MENTION=5103965]Omar-Avelar[/MENTION] , would you like me to cherry-pick your sched-util governor into the stock LOS and see if maybe this reproduces the issue? Could be a governor issue with msm8996. I have nothing to substantiate that, just throwing it out there
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rjavc:
Hey bro [MENTION=1325580]Tilde88[/MENTION], have you tested the v24.1? Seems like it solved the issue, well at least for me. Will further test it.

---------- Post added at 04:16 PM ---------- Previous post was at 04:05 PM ----------

Seems like this solved the issue. Would be great to see it incorporated to the second screen build kernels. Thanks btw!!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] PhillyWonka:
I'm getting the same thing
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Sorry, boss... Same issue. No changes to tunables, or even a kernel tuning app. Launch games, immediately notice the lack of fluidity. I'm not up to more clean flashes, so hopefully that fixes it.

Thanks again!

Also I tried something new. Through a root terminal, I echoed in to force the performance governor. The governor setting sticks, but CPU freq still locks to 700/1000. Echo new max freq, immediately sets back to 700/100. I wonder what else might match those particular freq steps, its almost exactly half. Might give some insight. Does overheating and charging on a stock kernel cause the CPU to cap out?

I remember on either this phone or a different one, you had to modify something to allow the clocks to ramp up while charging. The phone would slow it, even though it wasn't hot. I can't remember ATM, I'll see what I can find sometime
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] :
Delete
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
Lineage has been back on schedutil for a while now.

---------- Post added at 01:57 AM ---------- Previous post was at 01:55 AM ----------

LineageOS has been back in schedutil for a while now, so not exactly sure how far behind you are.

---------- Post added at 02:00 AM ---------- Previous post was at 01:57 AM ----------

You're right, it is back to schedutil, but using a different test kernel repo before merging into the Lineage one. That's the only other way to test large kernel updates, as gerrit cannot handle merges correctly.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Not nagging or anything, simply asking what's new in v25 & v26? I'm hoping the SS kinks get ironed out at some point so I can use it with a SS build of LOS, I'm looking forward to combining my two favourite softwares that power my phone with the one feature that's eluded us.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] uxairmalik:
best app to tune the kernel?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] anotherdj:
Same thing here on LS997, on battery and while plugged. Running non-2nd-screen builds of LOS 15 and Gamma, versions:

LOS: lineage-15.1-20180813-X86CPU-ls997

kernel: tried flashable-ls997-gamma-kernel-v24.1.0 and flashable-ls997-gamma-kernel-v26.0.0

If I switch battery saving on, max frequency goes up to 2.1 GHz, but after I switch battery saving off, max frequency soon drops to 1036 MHz.

Observed that max frequency (ceiling) gets lowered gradually in steps, from 2.1 GHz down to 1.8 GHz, then 1.7 (roughly), 1.6, 1.5, 1.4, 1.1, then finally 1036 MHz. Same exact intermediate megahertz steps each time on the way down. Perhaps code responsible for setting appropriate

current

frequency instead sets the

max

frequency (ceiling) by mistake, thus lowering it each time?

Ah, could you please post it? I'd also like to switch between stock LOS and Gamma kernels till freq issue is solved.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Migush:
The second screen builds aren't working on my H990DS (twn). Clean flashed.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Used [MENTION=2881807]x86cpu[/MENTION] kernel source from his OP, apparently I'm a few commits behind, as there is no schedutil governor. I recommend you stick to sched. Thanks to [MENTION=5103965]Omar-Avelar[/MENTION] for the any kernel template (I just reused his zip lol, removed the .rc patches). This is completely stock, just has kcal baked in, with edits to Kconfig and Makefile only
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Probably using Rashed97's updated kernel
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
That plus a couple other commits from lineage that were missing and also nixed the last one (not ready yet) and the green commit (won't boot).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DarkFamiliarity:
Hi, does the latest Gamma Kernel work with the LOS 2nd screen builds? Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Bonz:
Not working on latest LOS version. My device is a H990DS variant
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
The stock one from x86cpu's OP running fine for me. I prob won't build this rashed one (or any other v20 ones) -- my Note 9 coming on fridayyy!! :D (unlocked US model-- just hope we get a bootloader unlock sooner rather than later)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Congratulations on your new garbage that will never ever get a bootloader unlock just like all US Samsung models since at least the S7. The international versions do, but then you don't get volte etc on US carriers and the band support might not match as well.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Apparently the models SM-N960F or SM-N960F/DS have bootloader unlocks, as well as the Hong-Kong and Latin-America Snapdragon variants. Without getting into it, Snap vs Exynos modems do work differently but you can check band support on a site like GSM arena. Let's try to keep it on topic, but congrats on the new hardware purchase [MENTION=1325580]Tilde88[/MENTION] :D
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Someone's having a bad day. Enjoy!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
nah, they aren't that bad, but considering there's no hope of a bootloader unlock for us models and the speed of updates wasn't super great (better than the stock V20 but not amazingly fast), lack of removable battery+IR I just don't see much to be excited about myself. I just really wanted to emphasize zero hope of bootloader unlock, hope you enjoy it despite that though.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] anotherdj:
Have you looked at [MOD] FIX CPU Throttling When Charging/Gaming (Increase Charging Speed Screen On) by Holyman007? I haven't looked in depth at how it works, but it's a root fix for:

1036 mhz ceiling is exactly the issue I ran into w/ Gamma kernel v24.1.0 and v26.0.0.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phop:
Just wanted to chime in. I too have been having the issue with the 1036 mHz ceiling. Well, 1036 mHz for I think the big cores and 600-something for the little cores.

I'm running basically stock LineageOS 15.1 with Magisk. Nothing else. I'm not even using a kernel editor or anything of that nature. I'm using the US996 version of this kernel, by the way.

No matter what, eventually the clock speed will ALWAYS go down and be stuck at that ceiling. If I turn my screen off for like 10 seconds then turn it on again then it stops being locked at that ceiling. But eventually 1036 mHz will become the ceiling again. Sometimes it takes a couple minutes. Obviously, it gets a little annoying turning my screen on and off every time my phone gets slow haha. I even went all the way back to Gamma Kernel v18 and I still had the same problem.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Roundtableprez:
Would somebody be so kind to send me a working link for the h918 version of this kernel? The one in op just keeps taking me to the same page when I hit direct download
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] PhillyWonka:
Open xda in broswer and then go to the tabs that say downloads . U see them in there
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rab3072:
I don't know what you have done Omar, but the last 2 kernel builds I have had SICK battery life....

Like night and day even from previous kernel versions!

I left for work today with 93% battery and left work with 72% with moderate use throughout the day... That is insane! I used to have a charging cable attached to the PC and have to fully charge it by around 2 o'clock...

Great work!

I do still have the clock stuck problem, but not been heavily playing games at the moment so not been an issue. However, if you can fix that and keep the battery life as is - I'll be delighted!

H990DS International dual sim
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Roundtableprez:
I think my works WiFi may have been preventing me from downloading it. As soon as I got home and tried on my WiFi it worked fine.

*edit* just flashed it on unofficial lineageos 15.1 and its working like a dream will report back if I encounter any issues :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rab3072:
I think you are onto something there!

I just tried this mod and it fixed it for me.

Standard file with Vainglory - runs like crap.

That modded file with Vainglory - buttery smooth...

Only 1 hitch. The phone heats up REAL bad. As in, I had to put it in the freezer bad... That concerns me. Although the phone is snappier and doesn't have any clock lock issues... ?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
What do you expect. You're replacing a file that controls the thermal characteristics of a device with very limited ability to cool itself with one that effectively removes the protection for overheating at the OS level. I did exactly what you're doing with my G3, had exactly the same outcome, and my phone died shortly after. IMO, you should never play around with thermals on a device with such limited cooling.

I see people complaining about the device overheating , lagging while charging, or that they can't get the CPU above x speed while charging, and I'm sitting here going, "Well, obviously". How else do you think they're able to charge a device so quickly even while a user is using it. The more a battery fills up, the more voltage you have to push to it to get it to keep filling up, which means more heat. You either have a device you can still do everything on except some gaming while it's charging, or you have a device that charges quickly and won't die sooner due to thermal boundaries being over-stepped.

A simple way to balance the two is to use a lower powered charger so less heat goes through your device, get a $10 replacement battery on eBay and swap them out when one dies, or don't be like some people and do intensive tasks in situations where direct heat exposure is a factor.

I've never had the 1036mhz ceiling problem, but it wouldn't surprise me if people's devices are becoming too hot relative to the high frequencies they probably have their CPUs running at, and are thermal throttling. I only EVER see this if I'm using the camera in direct heated sunlight, or if I'm updating many apps at once while charging.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rab3072:
I'm not complaining, I'm just highlighting whatever this mod does - it fixes the locked cores with the kernel.

So it may be something to look into then modify as necessary to find a happy medium. I wouldn't know, I'm not a dev.

What I do know is with the original file, I might as well not play games like Vainglory on my phone, and with this mod they run smooth as silk.

I also see choppiness scrolling apps like Facebook and Instagram with the original file, modded file once again no issues.

So it's safe to say you might not have the issue, but I certainly do.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zemnexx:
Anyone else having issues with the second screen taking inputs even while the screen is off? I've noticed it change settings while I am in calls and had to remove the airplane mode icon because of it. lol
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] GGLMNOP:
I had this problem even before flashing the kernel. I had to do the exact same thing. hahaha
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ProblmSolver:
Is there a way to enable the second screen on a non second screen rom? I wouldn't mind the missing corner and the extra screen real estate would be nice.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Koont:
+1
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rab3072:
So I have a quick update for anyone who cares.

Doing some testing with gamma. After trying some things, there's no way I can play vainglory with the core locks.

The mod works (posted about previously) however was majorly overheating.

It got me thinking... He said in the OP of that thread that he changed some GPU parameters as well. After having a look, I may have cracked it.

Realised it wasn't the CPU change that was the overheat issue, it was the GPU.

I changed to this:

[GPU_MONITOR]

algo_type monitor

sensor vts

sampling 5000

thresholds 38000 39500 41000 42500

thresholds_clr 37000 38500 40000 41500

actions gpu gpu gpu gpu

action_info 560000000 510000000 401000000 315000000

These settings are higher than default, but slightly less than the modification.

Seems to be running smooth AND cooler so far.

Will test further later.

H990DS
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] muckc:
Can I slow down charging speed, it's seem like my phone charge a little too fast compare to stock make it too hot.

I'm using this kernel with Resurrection Remix ROM, H990N.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
No, unless you use a lower-powered charger like 1.5A vs 2.1A. There's an xposed module if you have a look around that you can use to toggle on/off charging with a cable plugged in, but I've never used it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Legitsu:
I know this is a long shot but anybody mind seeing whats needed to port this to RS998

There the same SOCs and I know its in the kernel tree
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
It (AFAIK) wouldn't be that hard to do, especially since they're the same SOC, but I know [MENTION=5103965]Omar-Avelar[/MENTION] is busy most likely with IRL things as there hasn't been any activity on Gamma for a little bit now. Looking around at the kernel source files, there's configs for the G6 and the V20 among others, but none that I can see for the G5 or your variant specifically. Porting a kernel is a bit above my skill level and you'd want permission from OP to do it first.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Still impressed by how snappy Gamma is. Just switched back to it (rather my own second screen build of it with your ramdisk tweaks.. shame trying to disable the second screen disabling config on the command line didn't work out, perhaps you could switch the defconfig files to one with all the regular options set, but not lge_disable_second_screen, and then a separate one for regular no second screen builds that just has lge_disable_second_screen and imports the rest of the config from the other main config file).

Anyway, just wanted to say it's still snappier than the Lineage's kernel even with Lineage switching to building with clang and the other changes associated with that, and somehow the IR blaster is working great with gamma but not the Lineage kernel. ( [MENTION=2881807]x86cpu[/MENTION] )
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rjavc:
Still got issues with cpu locking though..
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
I think my kernel has LGE's VTS virtual temperature sensor module built-in. I will upload another extra attempt to disbaling VTS as well as SCHED (not SCHEDUTIL) from the Kernel build to see if that alleviates things. I was able to reproduce the freq lock by doing a single change to sched and then back to schedutil while being on travel, but I am still unsure what's the source of the problem.

In a couple of hours I will upload this v27 test version and see if this helps things up...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Grin59:
What IR app are you using?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Anymote, have to go into settings and enable alternate IR commands
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rab3072:
The mod from that other thread fixes it and is stable unless I play vainglory on high settings. Medium is acceptable for now.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rjavc:
Changing the cpu freq in thermal config file from 1036 to 1408 stops the cpu locking (just for me). Been a day and im having 5.5 hrs sot and cpus not locking. I dont know, but it worked for me. Thanks for the heads up!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phop:
How do you find the thermal config file? I'm not able to find anything about it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rab3072:
It's in vendor/system/etc
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Grin59:
That's really good, I never get that much sot
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phop:
Oh wow, thanks a ton! I thought that file only existed on stock LG ROMs. Looks like I was wrong.

The clock locking is fixed now! That's definitely what was clashing with the EAS features of this kernel.

Also, I adjusted the charging values and now my phone pulls 3000 mA maximum from my charger whereas before it did like maybe 1000-1500. Charges ridiculously fast now.

That, and the fact that AnyMote (the IR Blaster app) works with this kernel has made LineageOS 100% superior over stock LG software. It's literally night and day how fast my phone is now. I never have frame drops. It's as fast as my friend's Pixel.

Thank you OP for creating this kernel! Literally the only problem with it was the core speed locking sometimes, and now after editing /vendor/system/etc/thermal-engine-8996.conf even that's fixed.

Here's a copy of that file if anyone needs it: https://drive.google.com/file/d/1Z-rxCzs6sgNI7TH1eGkiqLEmUsiK_91K/view?usp=drivesdk

You've made my phone perfect and I'd be happy to use it and its removeable-battery-and-DAC goodness years.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] uxairmalik:
cant find the second screen builds.

anyone who can help me with the link.

---------- Post added at 03:31 PM ---------- Previous post was at 02:56 PM ----------

link has no builds
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Grin59:
He must have taken them down. I'll see if I have one on my phone I can upload

---------- Post added at 06:58 PM ---------- Previous post was at 06:55 PM ----------

I only have one ss gamma build for the H918, it's version 24. I'm hoping we get more builds. I get we all have our own life to live but hopefully soon

---------- Post added at 07:00 PM ---------- Previous post was at 06:58 PM ----------

Let's hope we'll see this change in the next build. On mine I get about 1000 mA screen on and almost 3000 screen off, except it slows down towards the end.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
That's how it's meant to work.

---------- Post added at 08:21 PM ---------- Previous post was at 08:13 PM ----------

@Omar-Avelar if you don't mind me asking, what's your plans for the second screen builds? I successfully built versions of Gamma v26 with the second screen working fine on x86cpu's second screen LineageOS builds for multiple variants, and I was just wondering because people have been asking in multiple threads for a version where second screen works (the previous ones you had linked didn't work, hence my attempts). If I've got your permission to, I'm happy to build second-screen versions of Gamma for people and their variants to use privately if all you want to focus on is Gamma itself, but if you plan to integrate second-screen builds automatically into your build environment, or even into the one Gamma version somehow, I wouldn't want to intrude so here I am asking. I'm happy to PM you about it if you'd like me to but it's 5am where I am so that'd be later today when I wake :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Go on and release the second-screen builds based on Gamma, thanks for helping ;)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Soon™

What does this mean? Well basically, I TWRP backup'd, clean-flashed the second-screen LOS build and the old Gamma v26 second-screen version I had on my SD card for my H990 to confirm it works, and indeed it does. Second screen is functionally usable and responds to touch, screen on/off, etc. I'm in the process of building the second-screen versions for the latest Gamma for all V20 variants, but I'm having some trouble getting them to build, which I've asked for help in PMs. Hopefully it's something simple, but I'm confident we're talking hours/days away so hold tight. Think of it as a rainy day while trying to build a house :p

The wheels are in motion

P.S: as per Omar's asking I'll put a post here when the builds are up for download, and unless he asks for it to be seperate, this will be a joint thread for Gamma/GammaSS.

P.P.S: Successful build of the latest Gamma with Second Screen enabled has completed for my H990. I'll do builds for the rest of the variants later today, it's currently 6am so I'm off to bed.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jl10101:
Thanks so much for doing this! Looking forward to they H990 build ?