[OnePlus 7 Real Life Review] pawelmiernik:
I run this script on start up in FKM:

#!/system/bin/sh

sysctl -w kernel.sched_upmigrate="80 80"

sysctl -w kernel.sched_tunable_scaling="2"

sysctl -w kernel.sched_downmigrate="60 60"

sysctl -w kernel.sched_latency_ns="800000"

sysctl -w kernel.sched_schedstats="0"

sysctl -w kernel.sched_min_task_util_for_boost="70"

sysctl -w kernel.sched_min_granularity_ns="200000"

sysctl -w kernel.sched_wakeup_granularity_ns="0"

sysctl -w kernel.sched_autogroup_enabled="0"

sysctl -w kernel.sched_upmigrate="80 80"

I need to set sched_upmigrate twice because it doesn't set when ran just once in the script. I also set the schedutil governor down_migrate_ns to 40000 and up_migrate_ns to 10000 on little, big and prime cores, I change vfs pressure to 20, entropy write wake up threshold to 128 and swappiness to 1, under i/o scheduler tunables I edit nr_requests to 32 and turn off i/o stats. That's all I change. And that's how I get 12-13 hour SOT times, I also charge my phone powered off when I notice unusual drain from 100%, like sometimes in the morning I'll notice that the phone drops from 100% to like 97% within minutes, when I drain it down to about 5% I'll power it off and let it charge fully powered off, then turn it on and let it settle while plugged in and then unplug and use as normal, for about 3-4 charge cycles it'll be fine and then start losing charge abnormally fast after unplugging so I do a powered off charge to fix it. I should mention also that I haven't upgraded the Google app, I have its and YouTube's (I used YouTube Vanced magisk module) auto update ticked off under the settings (3 dots) menu for those apps in the play store. They sometimes do still update, I'll notice that YouTube Vanced becomes normal YouTube app and I know Google got updated too so I go to the play store and uninstall from there which reverts them back to the original versions. I don't let Google app update because some new features they come up with raise the idle drain, and since I don't use it or the assistant that much I don't care to have the latest Google app version. All other social media apps are updated to their latest version. If you have Instagram I would recommend you deny it location access because it wakes the phone up quite often to check location, even if you set it to "only while using this app" somehow it has permission to start a foreground service and it uses that to check location with the stricter permission applied when you're not using it, it can't get around the deny permission.

If you're worried about lag, you can either turn on the prefer.idle option in stune boost for top-app (better response but more power drain), or set top-app stune boost to 5 (acceptable response with less battery drain). If you are gonna use a custom kernel and tweak these settings go and check that cpu sets under /dev/stune/audio-app etc have schedtune.prefer_idle set to 0, this is by far the biggest battery drainer, it tells the task scheduler to prefer to run tasks on idle cores for whatever group those tasks are in, in many custom kernels this is usually turned on for foreground tasks, top-app tasks and sometimes background tasks. An article I read when researching this said that in the tests that the developers performed turning off prefer.idle and enabling stune.boost for those groups yelded same response latency with a 15% reduction in power use. Good luck with your tweaking!