yashsingh1/xdaforums huggingface dataset:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
Latest update has been a step back for me, in terms of efficiency / battery life. Mostly I miss blu_active governor. I felt that battery drain with screen on was higher than before, and actually the kernel is using much more the highest frecuency compared to previous release.

The screenshot was taken after some very light usage: using telegram and reading a few articles on the web.

Thanks for your work and I hope we can find a better governor or interactive parameters
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Hey, thx

I suspected that might be the case. I will disable prediction, and tweak the settings a bit more.

You can try yourself and disable "enable_prediction" in governor settings for each cluster.

After enabling it at first, I read that on 3.18 kernel that feature doesn't work very well. I though I'd give it a go anyway since

this newer Oreo CAF release has updated many things in the kernel.

Why not just use settings from blu_active ?

They may be a bit too conservative perhaps, and I'm aiming to use what seems to be the optimal high-freq of ~1800Mhz by

forcing the governor to use it more.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
Thanks. I'll try and report!

BTW, I've always been curious about max frequency in little cluster. How is it it goes from 1500 to 2100MHz without any intermediate number? In stock kernel, anyway, it is limited to 1500.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Really..?

On msm8996 (non-pro) small cluster max is 1,5936 Ghz.

I thought it was something similar on sd821 but actually now that I look, I see 2,1888 Ghz in the device tree.

If there is a difference here vs. stock kernel, then the only thing I can think of is triton/cancun.

The triton stuff may do something to limit the frequency. Otherwise I have no idea, I haven't done anything

that would affect this.

Though there should be two steps between 1,5168 and 2,1888 Ghz.

Perhaps I should adjust the governor settings to rarely go above 1,5ghz ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
It happens on every custom kernel I think.

I just limit max cpu frequency to 1,5Ghz in Ex kernel manager. I've always done this because i think it may be unstable at 2,1Ghz, but I may test it when I have time.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
[MENTION=3390974]blackhawk_LA[/MENTION]

Hey

Perhaps you could test this exkm cpu gov profile? Just to see if you notice improvements in low demand situations.

I'm brushing up last touches on v2.0 final, just trying for a good sane governor config.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
It's getting better, but I still think it uses highest frequency too often. The test was done mainly while browsing through Firefox and sending some telegrams.

I don't know why the total time is different on every cluster ; maybe there is a bug on Ex Kernel Manager?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] hector2001:
After flashing the Kernel in TWRP, my phone is stuck on the LG Logo screen.

I had to restore it using a KDZ stock firmware and restart everything from scratch...

Is it possible to have clear instructions for the installation process ?

Thanks a lot.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] paul_zm:
Maybe it is off topic , I think latest stock (20G) is better than before version , I don't know if there are some changes of kernel , maybe you should have a look
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] russtyd:
Did you flash Magisk after flashing the kernel and before you rebooted?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Bunsenbrenner:
that is the wrong question because there were no problems with us !!

Do not let us ask you everything you did and what you use for a cellphone model. Just write us what and how you did it!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] The_Anomalist:
Every time I try to flash the kernel it hangs at boot animation. Ive even pulled the source and successfully compiled the kernel with no changes to anything and it still hangs at boot animation. On the H872 btw running stock 8.0
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] hector2001:
I flashed Magisk to get root.

I did not flash Magisk again After flashing the mk2000 kernel. I use a H870 with 20G stock firmware.

I will retry. Thanks !
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
H872 is completely untested AFAIK. I don't even have any G6 model. But H870 and US997 has always worked smoothly so I thought the same would apply to H872 as well.

I can't say why it doesn't, it will need some investigation. That won't be me though. Better it be someone with an actual H872 device.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
It's pure speculation, but what if the "overclock" to 2188Mhz on little cluster causes this kind of issues on certain devices? [MENTION=6332061]beany23[/MENTION] Maybe you could try to limit with a script
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] The_Anomalist:
Yes it would cause issues but the phones are still the same for the most part. It should boot eveb if it froze it still should tho. Btw the 2188 step is actually pretty stable as well, ive seen people saying it is unstable but its not. It just the boost frequency for the little cores. The max freq would still be 2188 without itermediate frequncies inbetween 1596 and max.

---------- Post added at 11:42 AM ---------- Previous post was at 11:25 AM ----------

This was just testing but at the time i wanted to see what tue deal was and came up with this for sh** and gigs.

https://imgur.com/Aq7EHSx

Thats the small cores.

This the big cores.

https://imgur.com/WYioAPV
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
I've updated first post with Version 2.0

If anyone should think the interactive governor and the current settings, is worse than previous blu_active governor and settings (for low power consumption):

Disable "use_sched_load" and "use_migration_notif" - then it should be practically the same as before, as the settings are similar, and 'interactive' is practically

the same as blu_active governor.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
Thanks!

Should we start with a fresh boot image or is it ok to flash over the beta?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] lgnd:
Flashed it over the latest beta without issues. H870. Thanks!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Ijspegel:
Thanx but the interactive feels smooter then the blu. And thank you for the update!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ErickG233:
[CODE # Set scheduler parameters

write /proc/sys/kernel/sched_upmigrate 99

write /proc/sys/kernel/sched_downmigrate 72

write /proc/sys/kernel/sched_boost 1

write /proc/sys/kernel/sched_spill_load 95

write /proc/sys/kernel/sched_spill_nr_run 9

write /proc/sys/kernel/sched_restrict_cluster_spill 1

write /proc/sys/kernel/sched_upmigrate_min_nice 0

# Set power cluster governor settings

write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"

write sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1593600

write sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay "9000 979200:31000 1363200:63000"

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse_duration 30000

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load 60

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq 902400

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/ignore_hispeed_on_notif 0

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/max_freq_hysteresis 1000

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time 9000

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads "37 460800:64 768000:82 1056000:79 1209600:93 1440000:88 1593600:97 2188800:99"

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_slack 1190000

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_sched_load 1

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_migration_notif 1

# Set performance cluster governor settings

write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "interactive"

write /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq 2342400

write /sys/devices/system/cpu/cpu2/cpufreq/interactive/above_hispeed_delay "9000 979200:39000 1670400:27000 2150400:79000"

write /sys/devices/system/cpu/cpu2/cpufreq/interactive/boostpulse_duration 30000

write /sys/devices/system/cpu/cpu2/cpufreq/interactive/timer_slack 30000

write /sys/devices/system/cpu/cpu2/cpufreq/interactive/go_hispeed_load 90

write /sys/devices/system/cpu/cpu2/cpufreq/interactive/hispeed_freq 1056000

write /sys/devices/system/cpu/cpu2/cpufreq/interactive/target_loads "75 460800:60 806400:85 1132800:78 1440000:88 1824000:92 1977600:80 2150400:97 2342400:99"

write /sys/devices/system/cpu/cpu2/cpufreq/interactive/max_freq_hysteresis 9000

write /sys/devices/system/cpu/cpu2/cpufreq/interactive/ignore_hispeed_on_notif 0

write /sys/devices/system/cpu/cpu2/cpufreq/interactive/min_sample_time 19000

write /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_sched_load 0

write /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_migration_notif 1

# Set Input boost parameters

write /sys/kernel/cpu_input_boost/ib_freqs "0 0"

write /sys/kernel/cpu_input_boost/ib_duration_ms 600

write /sys/kernel/cpu_input_boost/enabled 0][/CODE]

i think my profile is better, so i share about it.

hope it could help you.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] disnomia:
Flash v2.0 over the previous beta and works fine (H872_20f)

Great job thanks!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Ah, it works on H872...

Someone told me just earlier it didn't. Well that's good news.

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

On a unrelated note:

I have noticed something weird with how the fuel-gauge works with latest release.

No longer it seems to "take a break" on 100% level, also seems to suddenly drop quick, and in other cases, doesn't drop for very long.

Seems like it's nothing else wrong, though I'll look into it and maybe release an update later.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] disnomia:
I'm not having any issues, the device boots and run smoothly!

With your kernel finally manage to remove the force encryption, what a pain that was.

If you will need something to test send a msg.

Thank you once again!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] The_Anomalist:
[/COLOR]

That might be why it doesnt boot [MENTION=6814590]askermk2000[/MENTION] because when I compiled the kernel myself it said v3.0?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] The_Anomalist:
So finally got it working fine on my h872 but now I have am issue with magisk not installing or being stuck on the boot animation. I did see that I wouldnt have to flash it over kernel, so ive tried installing magisk before kernel and still nothing? Im trying to install magisk 18 btw.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] thespearczar:
how do I install this?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Ijspegel:
Flash in twrp
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] disnomia:
Try installing the rom, then magisk and reboot,

go back to recovery and flash the kernel

Hope it works this time!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
Flash stock boot.img (or whole rom if you dont know how to extract it) ,then mk2000 kernel and then magisk.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] The_Anomalist:
i understand but i dont think my question was completely understood. i compiled the kernel myself using the source but when i make changes in the msm8996pro.dtsi the kernel seems to not want to accept magisk(without magisk it now boots btw). but if i revert all changes within that file it works? its quite confusing.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] The_Anomalist:
Fixed

I figured out what was the issue and after all my changes/overclocking this is my score.

https://imgur.com/a/fuMC9NO
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Wow! That's quite the score you got.

I wouldn't have thought snapdragon 820 could get that high, but surely this oc can't be practical

for regular use on a mobile device. The perf/watt must be something like 3x worse...

Edit: Anyway, that's impressive :good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] The_Anomalist:
it is actually more power effecient(or at least looks that way) battery remained at 70% while going through benchmark.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Oh I see. So you not only OC, but also enhance the SoC with magic. Ok
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] The_Anomalist:
something like that. it didnt just overclock the clusters but also did the same for ufs, axi, sdcc1 etc etc. power consumption is just as normal as when i started.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Maybe you don't notice it much because thermal/bcl throttling keeps things in check.

Besides; don't think you can gauge battery drain by looking at the android battery-bar. It is highly relative.

Also I was not speculating before. It is impossible for power efficiency to be better/same. It is worse, I just don't know by how much.

In case you're confused; geekbench doesn't actually run the cpu at full all the time while benching, so while it may show impressive scores,

that won't translate to real applications that demand raw sustained power. Well, maybe if you transform the phone into a "desktop pc" with

custom cooling solution etc. but then it might not be stable either at such stress levels.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] disnomia:
Nice Benchmark, mine is the half of yours!

Can you share it for a test or is for personal use only?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] STALKER18:
Hello.

I have H872, would it be safe to intall it over the stock ? (Dirty flash) magisk and xposed are installed !
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] disnomia:
you can flash it over stock but firstly make a backup
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
[MENTION=6332061]beany23[/MENTION]

I just want to say; I'm not trying undermine your efforts or anything.

You may know more about overclocking than me, you oc'ing all kinds of busses and stuff.

Though I know well enough that when it comes to the cpu, this is just a matter of the physics of the manufacturing process.

Going above a certain frequency, the cost will increase exponentially. It is limitation of manufacturing and materials, nothing esoteric about it.

What is this frequency? Well obviously in the case of msm8996 it's about where qualcomm has put it. The sweet-spot, from various observations,

seems to be around 1800Mhz (perhaps a little higher for pro version) and QC probably used frequencies a little higher than that to have extra omph

or something like that (though I'm not sure about this, maybe the spot is actually around 2200Mhz).
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] The_Anomalist:
I get its all good bro i understand completely what your getting at. Regarding the cpu, i only increased the clusters a little bit. Small cluster at 2246mhz and big cluster at 2419mhz(not much of a jump) I also didnt have to increase any voltages except for the gpu voltages. And most of the other overclocked busses and clocks where increased by 200mhz. All temps from Each sensor only read 31°c

---------- Post added at 06:45 PM ---------- Previous post was at 06:17 PM ----------

Sure. As soon as I get it more stable no problem. I might create a thread for mine as well. Also im using [MENTION=6814590]askermk2000[/MENTION] source. So all that's on your current kernel will also be on mine. Since his is far more efficient than others that I have tried, it was the best pick of the litter lol.

---------- Post added at 06:45 PM ---------- Previous post was at 06:45 PM ----------

Sure. As soon as I get it more stable no problem. I might create a thread for mine as well. Also im using [MENTION=6814590]askermk2000[/MENTION] source. So all that's on your current kernel will also be on mine. Since his is far more efficient than others that I have tried, it was the best pick of the litter lol.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Cool :good:

I just did a force push, btw. :eek:

Removed a few commits (post v2.0). I'll try not to do that too often, though I previously didn't expect too many to be impacted.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] The_Anomalist:
awesome

alright. ill re sync here after awhile. btw you said you had the neccesary files for voltage control correct?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
You can find a commit here: https://github.com/DevG6/android_kernel_lge_msm8996/commit/631b12750e40136653619a787f42dc805b3b3e61

That should add cpu voltage control. I haven't tested it though.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] The_Anomalist:
Confirmed

Voltage control works as far as I can tell.

https://imgur.com/a/psjygsQ
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Nice.

That voltage table tells me something useful. Previously I had to guess on some things for governor tuning. Now I see that 1,824Ghz is

the

frequency to use for both pro and non-pro.

As you can see the voltage requirement suddenly spikes after this freq. That is why I chose this as a kind of semi top-freq in my latest interactive tunings, and also because

sultanxda used that for his underclock in his OP3 kernel.

Edit: Strange that 2150Mhz has 930mV current, and the freq below has 960mV...

or maybe I don't understand exactly what min, max and cur is supposed to be.

I would assume 'Vcur' is a static number.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] The_Anomalist:
I'm not sure what vcur is myself but when I increase or decrease the voltage the phone seems to hang for a second also as weird as this may sound webpages don't seem to load when voltage control is implemented into the kernel. I tested by removing voltage control and webpages load fine?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Have no idea, sorry.

As for the voltage settings themselves; I would guess you adjust vcur. The other two just shows the valid range of choice.

Actually I was trying out this patch, or almost the same, a while back. I never did try to change to voltage though, it was mostly to see the voltages, like above.

What I noticed was that exkm couldn't handle the format properly, but it seemed to work in kernel aduitor. Didn't notice any weird symptoms from having it enabled that I remember.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
Experiencing quite a bit of lag when waking the phone. Also experience lag during music playback, where it would actually skip while playing. Which did not occur earlier. Using the new 2.0.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] STALKER18:
Just flashed it over the stock, H872 20f, I can say there is really a huge different. so fast and smooth, no issues ;)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
v2 beta15 seems to perform better and more fluently than 2.0.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] suhridkhan:
Where are these Beta builds located?

Edit: Nevermind, found them. :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] bou87:
but drain battery
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Did you wipe dalvik & cache after installing V2.0 ? Also (but not exactly critical) use a new/clean boot.img from your stock rom.

Also on these LG phones on Oreo, you need to reboot another time after wiping cache. The system doesn't get finished doing

all the stuff it's supposed to do after just one reboot. Quite annoying.

Don't know if this is just some LG quirk or what.

Edit: The above possibly doesn't apply to G6, it does for G5 at least.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
Rebooted multiple times.

---------- Post added at 20:02 ---------- Previous post was at 20:01 ----------

Not really, mine easily lasts all day. But yeah, it is missing adreno idler. Also, i'd rather have a phone running smooth than lag.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
Just wanted to chime in here. I'm on the US997, using 2.0 and my phone has never run better. Killer battery life and super low temps.

Thanks again, [MENTION=6814590]askermk2000[/MENTION]!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
I tried v2.0 again, did everything correct. Still lags a lot, especially during music playback to my BT headphones. Flashed beta15 again and now everything is fine.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] bou87:
new kernek 2,1??? [MENTION=6814590]askermk2000[/MENTION]
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] STALKER18:
Encountering the same issues besides that heat is always ~50° in comparison with stock ~37° .

Gonna try the beta one.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
Flashing 2.1 now.

EDIT: After +30min playtime, it seems alright. Not feeling any difference to beta15, yet.

EDIT2: Beta3 still lags a lot, it does feel better than 2.0, but still way too laggy to be recommended for daily use imo. Returning to beta15.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] The_Anomalist:
New beta runs pretty good.

On another note, the voltage control i implemented. I understand what the vcur and other are all about. Vcur is quite literally the current voltage for that frequency as is the min/max voltage settings. It seems to me like the person would have even more control over the voltages than older voltage controls like seen on the g4, galaxy s3 etc. But when adding more frequency steps it starts to wig out a bit.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ragen123:
Can I flash this on a custom rom (aquarios)? Or is it only for stock.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LPMatt:
Stock only. It says it in the title.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] davidecicerone:
Profile request

Hi, can anyone share his Kernel adiutor's profile for making battery life longer?? I don't need performance too much.

Thank you :D
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Version 2.2 BETA

Up here.

See github, or 'gitlog' inside zip for list of changes.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
This is the only kernel I'll use. 2.2 beta working great! Thanks!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Happy to hear it :good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] paul_zm:
How about 2.2 official kernel:)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
2.2 beta 26 was released a few days ago.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] paul_zm:
How did you get this:confused:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
I don't understand. I clicked the link and downloaded it.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
He just found the link in my AFH folder and posted it here.

I didn't update the thread, as I'm mostly active in the V20 forum, and doing mostly internal testing for now.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] paul_zm:
I see, waiting for next update:)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Version 2.2 BETA34

https://www.androidfilehost.com/?w=files&flid=294332

* Experimenting with using the stock CFQ scheduler. Disabled Maple.

* Added K-Lapse (v5.0)

* Updated to AnyKernel3 - Flashing very fast!

* Various stuff I won't bother you with.

As usual, look at my github and 'gitlog' inside zip for extensive changes.

When I checked few days ago, only SmartPack supports the newest version of K-Lapse. The other apps should follow soon.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Stone. Cold:
Glad to see you back! :D

Testing right now