[Android Software Development] kaiiori:
Reference information

freq cpu0
400000 691200 806400 1017600 1190400 1305600 1382400 1401600

freq cpu4
400000 883200 940800 998400 1056000 1113600 1190400 1248000 1305600 1382400 1612800 1747200 1804800

freq gpu
266666667 300000000 366670000 432000000 480000000 550000000 600000000

now with notepad ++ open the file thermal-engine.conf and locate the next parameter

Note

There may only be one or more parameters like the ones I show them, they must all have the same configuration as the first one

[emmc_therm__0.DEFAULT]
[emmc_therm__1.DEFAULT]
[emmc_therm__2.DEFAULT]

[msm_therm.DEFAULT]

we find this or something similar

[emmc_therm__0.DEFAULT]
algo_type monitor
sensor case_therm
sampling 1000
[color=red]thresholds[/color] 48000 48700 49000 49800 50000 50500 50800 50900
[color=red]thresholds_clr[/color] 46000 48000 48700 49000 49800 50000 50500 50800
[color=red]actions[/color] cluster0+cluster1+hotplug_4+hotplug_5+gpu+s_backlight+battery+s_cam cluster0+cluster1+hotplug_4+hotplug_5+gpu+s_backlight+battery+s_cam cluster0+cluster1+hotplug_4+hotplug_5+gpu+s_backlight+battery+s_cam cluster0+cluster1+hotplug_4+hotplug_5+gpu+s_backlight+battery+s_cam cluster0+cluster1+hotplug_4+hotplug_5+gpu+s_backlight+battery+s_cam cluster0+cluster1+hotplug_4+hotplug_5+gpu+s_backlight+battery+s_cam cluster0+cluster1+hotplug_4+hotplug_5+gpu+s_backlight+battery+s_cam cluster0+cluster1+hotplug_4+hotplug_5+gpu+s_backlight+battery+s_cam
[color=red]action_info[/color] 1401600+1248000+0+0+600000000+255+0+0 1401600+1248000+0+0+600000000+202+0+0 1401600+1248000+0+0+600000000+202+2+0 1401600+1248000+0+0+600000000+162+2+0 1401600+883200+1+0+600000000+162+3+0 1401600+400000+1+1+600000000+162+3+0 1382400+400000+1+1+600000000+162+3+0 1382400+400000+1+1+600000000+130+3+0

We will have to modify the parameters that frame in red color and change them by the following parameters

increases the battery charge

thresholds 42500 43500 44400 45500 46800 48300 49000 50300 51100 52300 53900 55400 57400 58400 59400
thresholds_clr 41000 42500 43500 44400 45500 46800 48300 49000 50300 51100 52300 53900 55400 57400 58400

Reference table

for now we will focus on the following parameters

in the frequency of CPU 0 the maximum frequency of the core will always be used as shown in the table and in the last frequency use an intermediate frequency

1401600
1401600
1401600
1401600
1401600
1401600
1401600
1401600
1401600
1401600
1401600
1401600
1324800

in the frequency of CPU 4 the maximum frequency will always be used and in a descending way, the last minimum frequency is not always used

1804800
1747200
1612800
1382400
1305600
1305600
1248000
1190400
1056000
1056000
998400
940800
883200
400000
400000
400000

the maximum frequency will always be used in the GPU frequency, the last minimum frequency is not always used

600000000
600000000
600000000
600000000
600000000
600000000
600000000
600000000
600000000
600000000
600000000
300000000
300000000
300000000
300000000
300000000

FPS

672000 (68fps)
614400 (62fps)
364800 (37fps)

staying in this way

1401600+1804800+0+0+0+0+600000000+255+1+100000+0
1401600+1747200+0+0+0+0+600000000+255+1+100000+0
1401600+1612800+0+0+0+0+600000000+219+3+100000+0
1401600+1382400+0+0+0+1+600000000+171+3+100000+0
1401600+1305600+0+0+0+1+600000000+141+5+100000+0
1401600+1305600+0+0+1+1+600000000+115+7+003600+0
1401600+1248000+0+0+1+1+600000000+95+9+003600+0
1401600+1190400+0+0+1+1+600000000+95+10+003600+0
1401600+1056000+0+0+1+1+600000000+78+11+001800+0
1401600+1056000+0+1+1+1+600000000+46+13+001800+0
1401600+998400+0+1+1+1+600000000+46+13+001800+6
1401600+940800+1+1+1+1+300000000+46+13+001800+6
1324800+883200+1+1+1+1+300000000+46+13+001800+6
672000+400000+1+1+1+1+300000000+46+13+001800+6
614400+400000+1+1+1+1+300000000+36+14+001800+6
364800+400000+1+1+1+1+300000000+26+14+001800+6

for each frequency table you must match with actions I will give you an example

actions
cluster0+cluster1+hotplug_4+hotplug_5+hotplug_6+hotplug_7+gpu+s_backlight+battery+s_cam_ltb_tim+s_cam

action_info
1401600+1804800+0+0+0+0+600000000+255+1+100000+0

save changes