[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
Thank you so much!

It seems the best solution still awaits for coming up.

Having these hints and tips from the discussion have come up with this snippet:

################################################################################
# helper functions to allow Android init like script

function write() {
echo -n $2 > $1
}

function copy() {
cat $1 > $2
}

function get-set-forall() {
for f in $1 ; do
cat $f
write $f $2
done
}

################################################################################

# Enable governor for LITTLE CPUs (perrf cluster)
write /sys/devices/system/cpu/cpu0/online 1
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay 40000
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load 87
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate 20000

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq 1017600
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy 1
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads "80 400000:87 1017600:91 1190400:93"

###"78 400000:86 1017600:91 1382400:93"
###"50 691200:76 1017600:91 1382400:93"
###"53 400000:25 691200:45 806400:49 1017600:66 1190400:88 1305600:94 1382400:97 1401600:99"

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time 20000
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 400000

# Enable governor for Big CUSs (power cluster)
write /sys/devices/system/cpu/cpu4/online 1
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/above_hispeed_delay 40000
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/go_hispeed_load 85
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/timer_rate 20000
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/hispeed_freq 400000
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/io_is_busy 1
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/target_loads "87 400000:90 1017600:93 1200000:95"

###"36 400000:20 883200:35 940800:51 998400:56 1056000:61 1113600:68 1190400:77 1248000:89 1305600:95 1382400:96 1612800:97 1747200:98 1804800:99"
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/min_sample_time 20000
###write /sys/devices/system/cpu/cpu4/cpufreq/interactive/sampling_down_factor 40000
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 400000
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/max_freq_hysteresis 60000

# Configure core_ctl
write /sys/devices/system/cpu/cpu0/core_ctl/not_preferred "1 0 0 0"
write /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres 90
write /sys/devices/system/cpu/cpu0/core_ctl/busy_down_thres 80
write /sys/devices/system/cpu/cpu0/core_ctl/min_cpus 1
write /sys/devices/system/cpu/cpu0/core_ctl/max_cpus 4
write /sys/devices/system/cpu/cpu4/core_ctl/not_preferred "1 0 0 0"
write /sys/devices/system/cpu/cpu4/core_ctl/min_cpus 1
write /sys/devices/system/cpu/cpu4/core_ctl/max_cpus 4
write /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres 63
write /sys/devices/system/cpu/cpu4/core_ctl/busy_down_thres 40
write /sys/devices/system/cpu/cpu4/core_ctl/offline_delay_ms 200
write /sys/devices/system/cpu/cpu4/core_ctl/task_thres 4
write /sys/devices/system/cpu/cpu4/core_ctl/is_big_cluster 1

# set cpu_boost parameters
write /sys/module/cpu_boost/parameters/input_boost_freq "0:1382400 1:0 2:0 3:0 4:0 5:0 6:0 7:0"
write /sys/module/cpu_boost/parameters/input_boost_ms 200
write /proc/sys/kernel/sched_upmigrate_min_nice 15

# set (super) packing parameters
write /sys/devices/system/cpu/cpu0/sched_mostly_idle_freq 400000
write /sys/devices/system/cpu/cpu4/sched_mostly_idle_freq 400000

It works somehow indeed however its power saving performance is still worse than your previous release kernel (speciffically from 0319), havnt you somewhere those settings yet, please? ;)

HELIUM, LineageOS 14.1 r.03-27-2017 by*nijel8