yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rjavc:
Agree with [MENTION=1325580]Tilde88[/MENTION]. In my case i didnt really change anything at all, just the color calibration. And I noticed a very noticeable lag when Im browsing. I checked the cpu and the frequencies are locked to the same frequencies he mentioned.

---------- Post added at 06:03 PM ---------- Previous post was at 06:02 PM ----------

Update: I enabled oreo's stock battery saving mode, and the frequencies seem to go back to where it should be, and the frequencies are not locked. Disabling the battery saving mode locks it again to 1036 though.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Jongla:
Thanks! Thats a lot of info and new things to try out, for some weeks my battery life has been agonizing ( probably battery became too old ) , let's see if I can do something myself.

Well uninstalling kernel auditor solved it for me.

But now I am testing Helix Engine after deleting perfd, let's see if it pays off or just punish me for not hearing dev's warning.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rjavc:
Im using a different kernel manager though. Will uninstall just to test.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
I see. Thank you for the clarification, and for the insight. Amazing work!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
So I ended up disabling and/or deleting perfd from /vendor/bin (not found in /system/vendor/bin), doing .rc edits, reflashing, clear data and uninstall on kernel tuning app and reboot= same issur, stock gamma kernel flash =same issur, clear caches, flash stock LOS followed with stock v19.0 gaa kernel, same issue. Anytime the CPU is put under load, it gets gimped. Kill all processes and wait a few mins, frequencies go back to normal. Give CPU load again, gimped at 1000/700 . Regardless of frequency changes and tunable changes. Doing nothing and leaving everything stock is the same symptom. I also did these things with perfd active/enabled, and tried various stop/start perfd edits, no change across the board

Switching back to los kernel resolves the issue immediately regardless of how many changes I do (or don't do), or how much load I put the CPU through

Also, changes done in .rc for kcal don't seem to set (at least saturation. The setting itself sticks, but it won't set. Changing the value by 1 after system boots does cause it to set. For example, if I flash kernel with saturation at 60, the screen still looks like 30 (even though you can see its at 60). But if I then change it to 59, or 61 (after boot), it does set at that point, to whatever number I choose.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] zacharias.maladroit:
Eliminate the following commit:

irq: Set CPU affinity right on thread creation

(dupe line)

is already in source:

https://github.com/oxavelar/V20-Ker...a8f#diff-4950c969b0cdc7fba4c3b15593d89972R897
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rjavc:
Anyone here still having the same problem as [MENTION=1325580]Tilde88[/MENTION]? I wiped everything and flashed the kernel.But after sometime it still locks the frequency to 1036. I have not installed anything to change something. All stock
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
It's a "feature", bro!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rjavc:
Oh, it kinda kills the experience though. Sometimes when im browsing heavily with mutiple tabs (????) and using messaging apps, it stutters and lags chrome.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Yea, that was the punchline of the joke lol.

It is a bug, but OP won't agree.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
v21 seems to be working beautifully! thanks :)

edit: may have spoken too soon :\
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Jongla:
It's not a bug, After uninstalling kernel tuning apps I never had my frequencies locked, and if I delete perfd, I can do whatever I want.

:/
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Wish I could say the same. Just for the sake of science, and my sanity, I will do more clean flashes today. I will again not Install any tuner apps, or scripts, or mods, or edits. I will not even

touch perfd. I will also do another clean flash, with perfd deleted prior to first boot. Failing all this, I will do yet another clean flash just the same with no perfd, but with the .rc ramdisk edits that come with stock gamma disabled
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rjavc:
I just did a clean flash without installing anything at all. Checked the frequencies, and yes, theyre normal. But after hitting 50% battery or i think (i noticed the lag at mid day) and checked the frequencies, theyre locked again.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Yep, or even full battery with heavy load on the CPU
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Can anyone tell if if the people noticing the lag or freq pegged @ 1036800 are by any chance using non-stock batteries?

There's a Qualcomm driver called BCL that is responsible to kick-in and that might be the cause of this.... I haven't noticed it and would like to see if I need to do some enhancements in order to change the behavior...

grep . /sys/devices/soc/soc:qcom,bcl/*
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Definitely stock battery. Have 2 OEM. I can tell you that I use magisk. Do you?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rjavc:
Yep, stock battery too. Maybe i should try clean flash again but without flashing magisk. I dont know, maybe it would work haha
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Jerry SQ:
Hello, sir. Your kernel is great. But could you make a second screen supported version??? it's functional in some ways now. Thank you.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Use the stock kernel if you want second screen support in the ROM. It's working which means it's a completely optional feature for this kernel to have it added to. I want it as well, but it's up to [MENTION=5103965]Omar-Avelar[/MENTION] to implement when he's ready, and to be honest I'd rather wait until all the kinks are worked out
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
I highly doubt Magisk is the issue. Magisk takes the boot.img and unpacks it, modifies the kernel for CTS = TRUE {always}, and repacks it. Does not modify the ramdisk or anything CPU-related.

I just threw Magisk out there for the sake of transparency.

One more thing, which is probably nothing. CPU-Z (android) shows the kernel as HMP. Might be application-specific where it just doesn't know... Just throwing that out there.

---------- Post added at 09:56 PM ---------- Previous post was at 09:54 PM ----------

Perfectly said!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Op may be on to something with the charging profile. It seems that if the battery drops under 15% (and the phone goes into power save mode), that the edits from the .rc go away (I notice immediately since the kcal settings go away). After charging, I can play games and load the CPU, frequencies are normal. Strange
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
[MENTION=5103965]Omar-Avelar[/MENTION] What was changed in v21? Wanting to flash it with the latest LOS update but someone above said it may not be working fine.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
I will build them, but haven't had time recently to do much with work. And will be traveling in the upcoming weeks again... :angel:

Are you using the automatic power saver that turns the status screens in red? I still want to be able to reproduce this in order to see where to start looking... I have added recent BCL changes into v22 but unsure if that's all that's needed (doubt it is sufficient but want to know, if it's triggered with power modes then I might need to add a new trigger point in the init*.rc files...)

v22 is more stable. v21 had me doing some experimental Kernel scheduler tunables that I wanted to hear some feedback about... ended up changing it on v22 to more traditional settings ;)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
V22 working okay here with the latest LOS 15.1 build. Frequencies and scheduling too. Many thanks!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Yes, sir I am. I noticed another user mentioned he enabled the default power saver, and this fixed it. I am thinking maybe it was a typo on his part, and he meant that he disabled it? Would you like me to turn off auto extreme power save? I'm currently at work, and can't do too much, but I will do whatever you need when I get home.

Thanks a million!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rab3072:
I noticed lag today after updating to LOS 8/8 build, and the latest v22 gamma kernel.

Went to play a couple of games and it was noticeable.

After reading the thread, I too have this lock issue. I'm a bit noob so I don't wanna argue against **** I don't know... But there was an obvious slow down in my games.

After enabling power save, the max would change to whatever I wished.

H990DS
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] phr00t:
I'm trying to build Gamma v22 with the second screen enabled & I'm having trouble getting it into a flashable ZIP.

Gamma appears to have compiled, and I've gotten a Image.gz, Image.gz-dtb etc. set of files. However, all of the instructions on converting it to a flashable zip say to find your "zImage" file... but I have no zImage file. I've tried the AnyKernel2 tool with the Image.gz file, and I just get pushed to fastboot on boot after flashing. I've also tried replacing the Image.gz-dtb file from a working Gamma installer with my built one, and it booted to a green "screen of death". There were some "kernel parameters" applied with that working Gamma installer (which was an older Gamma build for my device), so I'm not sure if it is my build, the parameters or my packaging process to blame. Any help would be really appreciated!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
What toolchain? Any failures on the build? I had a few issues building stuff in ../firmware. Didn't invest too much time trying tbh though. It would give the Image and boot to fastboot (sounds tthe same as you).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] phr00t:
Using linaro 7.3.1 from here: https://releases.linaro.org/components/toolchain/binaries/7.3-2018.05/aarch64-linux-gnu/ (cc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz)

Build seems to complete OK. It did have a bunch of "unallowed warnings" that I had to ignore (I didn't change any code, so I presume the warnings were intended).

I've been just getting to the green screen of death now. It says something about ipa2 check uC not loaded. It tries to reboot, then fails to do so.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] phr00t:
I got it to compile & boot with linaro 4.9, also using oxavelar's KCFLAGS. However, it seems to kernel panic on my lock screen after booting, looks to be related to the wifi. I posted details in the BOUNTY 2nd screen thread too:

kernel panic complaining about a NULL pointer dereference @ 000000014

wificond

PC @ ieee8O211_get_num_supported_channels+0x10/0x3c

LR @ nl80211_trigger_scan
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
v23 working great here :D
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] reflux24:
Is it possible to add a static screen fix for us996 dirtysanta as I cant try any Oreo second screen builds as the static would simply not go away deeming the ROM unusable (and I have tried to block the proximity sensor and turning it back on with no success of removing the static), thanks.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] phr00t:
Anyone with an H910, wanting second screen support, the latest Gamma v23 & the latest Lineage 15.1 -- I just built it all here:

https://xdaforums.com/showpost.php?p=77310143&postcount=735
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] puzzimassa:
If I use this kernel will it affect the dac or Viper? I can't seem to get Viper to work. If I figure it out I'll delete my posts about it but if anyone got any tips or help then I'd appreciate it
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Works with the DAC. Unsure about viper.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] puzzimassa:
Is there a way to disable or toggle it? Thank you for the answer, I really appreciate it
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
If you do a bit of looking around, in a post somewhere you might be able to find the line in the file you need to toggle it off, or a bit of a Google might help. Currently on my phone so I'm not sure where it is, but it does exist somewhere. There's not really a need to disable it though, since it boosts even stock levels quite well.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] puzzimassa:
Okay thanks, just wanna get Viper working and I don't want it eating up battery life
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] puzzimassa:
Anyone experiencing a yellow tint of screen retention on this kernel? Mostly noticeable on dark apps. I'm going to try and edit the screen calibration in kernel auditor and see if it helps
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] :
The v20 is known to get screen retention. The kcal settings to help get rid of most if not all of the screen retention are in this thread. https://xdaforums.com/v20/how-to/lg-v20-screen-burn-fixed-t3661631/post73521097
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
I've noticed it suddenly got worse around the time that [MENTION=2881807]x86cpu[/MENTION] released a build with THIS commit in it. I know it looks like it's not supposed to have any impact, but after that build I've had to adjust KCAL more to compensate. It's still worse than it was though.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] puzzimassa:
Changed my settings according to these so I'll see if it gets better and I think it already is
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] :
Are you using your own values and if so, I'm interested in knowing what they are. You can never go wrong with anything that can help screen retention.

---------- Post added at 12:20 AM ---------- Previous post was at 12:18 AM ----------

It should minimize most of the screen retention. Let me know how it goes!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
That just lowers the minimum available setting for the night temperature when using live display. It was 2500 and not low enough for me at night, so I changed it. Turn off live display.

I have 0 issues in any of my v20 with any screen retention.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
LiveDisplay is off, I don't use it.

---------- Post added at 11:01 AM ---------- Previous post was at 10:59 AM ----------

[MENTION=9172235]RainbowJudge101[/MENTION] HERE are my colour settings as set in Kernel Adiutor's Screen section.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] :
Oof. For some reason, I thought you were using your own values.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
They're slightly modified ones of the thread above that you linked to, as they've always been since I rooted stock months ago and installed the DOTS kernel. Just lately in some LOS update, they're less effective.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Trustlover™:
it seems that the max freq it can go upto is 1000.any fix?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Although I cannot speak for the developer, it is a known issue, and I think he is trying to fix it. In the meantime, I just added kcal to a stock Lineage kernel and compiled it. Can't stand ugly washed out colors
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
I am not using the second screen builds. Have been out due to work without access to my PC, except for a very few days as I have to travel again. But I gave it a shot and have now uploaded the second screen builds in here so that you guys tell me if it is working well or not:

Download : Gamma Kernel with Second Screen Support

After proven it works I could upload to the regular downloads section.

As a side note I still haven't reproduced the frequency getting stuck using Gamma Kernel and Lineage 15.1 20180808-X86CPU-*.zip myself. I need better directions to understand what reproduces that on your end to fix it.

UPDATE: Fixed the link to not ask for username/password
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
As soon as there's a new second screen build out that's more up to date, I'll flash it and this Gamma version and let you know. Keen to see what's what!

Side note to the frequency issue, I too haven't had this problem. If you're using Kernel Adiutor app, uncheck the apply at boot CPU section and reboot. As stated many times, if any governor settings get changed it messes with EAS. EAS does a fine job on its own anyway.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] scottyrick:
Download link requires your login. Will not allow access to files.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Thanks, it's now fixed :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Here is how it goes for me.

Reboot to recovery. Wipe->Advanced,Wipe system, wipe data (not internal), wipe cache, wipe dalvik cache. Back to normal wipe menu, do swipe to factory reset (redundant, I know).

Flash zip, select LOS, select GApps, select gamma, select magisk, reboot.

Login, setup as new device (no restore), install Pokemon Quest. Login, as CPU gets load, it gets gimped. Flash stock LOS kernel (keeping magisk, which has a built-in script to fix new boot.IMG as they are flashed). Run Pokemon Quest, no lag. Reflash gamma, run pokemon quest, CPU gimped. I'm positive it isn't Magisk

I've also flashed Gamma with blank .rc files, and it is the same, so we can rule out that the init changes are causing it.

Thank you for the support, and don't rush. We all have lives, we know how it is.

Take it

Edit: Just to be 100% it isn't magisk I'm going to clean flash everything minus magisk. I know I did it before but I don't recall if I had deleted perfd and other mods. So I'll just redo it rq
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] scottyrick:
Kernel works but second screen shows one line down from it's proper place. Rest of display is compressed to fit. H918.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
New SS build is out.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] c0mpl3xy:
Vs995 here, using v24 with lineage causes the second screen to be forced on main display. I just got this phone yesterday, so I'm a noob

Pic attached
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
I've been not installing KA at all. I've been using CPU-Z which is strictly a reporting tool, no modification. No root even.

Also, changing things on the kernel side should not cause this, EAS or not. But as a constant, I've avoided it altogether.

Downloading latest LOS and latest gamma now (both without 2nd screen), will do a clean flash, no magisk.

And as other users reported, switching to Extreme Power Save mode (the red bars), completely eradicates the issue, but it is an unmodified kernel power profile, it even removes the init settings placed in the .rc files of gamma.zip

---------- Post added at 02:41 AM ---------- Previous post was at 01:59 AM ----------

Ok, so just as I stated above... I did a complete full wipe, including system.

Flashed (in this order, and set to reboot when done in TWRP)

lineage-15.1-20180813-X86CPU-h918-10p.zip (H918 post 10p fw, no second screen support)

open_gapps-arm64-8.1-nano-20180814.zip (latest nano gapps for arm64 8.1)

flashable-h918-gamma-kernel-v24.0.0.zip (latest no second screen gamma for H918)

I skipped passed everything in initial setup. Opened Play Store. Logged in with Google account. Downloaded Pokemon Quest. Started tutorial. Pressed App Switch button multiple times to make cores go 100%. Switched back to Pokemon Quest. Lagging hard.

At this point I downloaded CPU-Z from the Play Store. Checked, and cores are stuck at 729, 1036.

Wait a few minutes, go back to Pokemon Quest, no lag. Check CPU, no cores stuck, all maxing out. A few minutes in to the game, happens again. Phone is not overheating or charging, nor are any thermal events triggering (at least they shouldn't be as I run my AC super cold in the house, and the phone is not even in the slightest bit warm.

No modifications, no Magisk, no root even, didn't change a single setting anywhere (let alone a kernel tunable --couldn't even if I wanted to as there is no root). Didn't change KCAL, modified nothing. Fresh basic install, downloaded 1 game, ran and setup nothing else.

If I switch to extreme power save mode (red bars), there is no lag/stutter/frequency lock.

Reboot phone, same symptom. Plug in to charger, same symptom (and unable to enable extreme power save, of course).

This is erratic behavior.

I flash LOS kernel with KCAL baked in, no issues.

Good luck with this, and thank you for all your work.

Waiting for my Note 9 to come in, can't wait!

---------- Post added at 02:57 AM ---------- Previous post was at 02:41 AM ----------

If this issue is happening on one device, it should be doing the same on all others too.

Maybe you aren't taxing it enough? Maybe open all your apps, play music in the backgroud, open maps, and start a screen recording session. Thatll tax the CPU.

Anyway, just in case you guys don't believe me, or think I didn't wipe or that I do have root or other apps installed. I am uploading 2 screen recordings. They will prove everything I have said.

https://www89.zippyshare.com/v/7KBCCYO2/file.html
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Same here. See my reply in the LOS thread HERE
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
Since changing power profiles "alleviates" the issue I have done some piggybacking on QCOM power profiles and triggering the schedutil changes after those events also happen.

Specifically these two:

on enable-low-power
trigger enable-gpu-tweaks
trigger enable-mem-tweaks
trigger enable-cpu-tweaks
trigger enable-lmk-tweaks

on property:sys.perf.profile=1
trigger enable-gpu-tweaks
trigger enable-mem-tweaks
trigger enable-cpu-tweaks
trigger enable-lmk-tweaks

The only thing I can think of is that games switch power profiles to performance (sys.perf.profile=2) which changes governor or also (sys.perf.profile=0) for battery saver that upon returning it would have messed up schedutil. So I tried to add safeguards for power profile switchings now. Do let me know if you can find anything else while testing v24.1.0.

Keep in mind that I haven't tested in power hungry games as I haven't had much time, so I would like to hear from you if you can do some testing.

Another question, do you know if the LOS kernel that you're using right now running sched or schedutil? I've lost track
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xttapolatakettle:
Flashing this SS v24 build on top of 0814 LineageOS SS adds squashed screen for me

EDIT: vs995
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
This makes sense.

The los kernel doesn't have schedutil. So when I dirty flagged los kernel over gamma it defaulted to interactive. I have it set to sched ( no schedutil). At work now , will try 2410 the moment I can.

Thank you
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rjavc:
Seems like the locking happens when the cpu gets loaded. I dont play games,tested it using the best apps to load the cpu, Facebook and Chrome, and voila, it locked the cpu to 1036.