[Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco] mickael.webmaster:
Your lines of code are upset ?!

# Balance (default profile)
on property:persist.spectrum.profile=0
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 302400
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1708000
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor ondemand
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 633600
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq 1958400
write /sys/module/cpu_boost/parameters/input_boost_enabled 1
write /sys/module/cpu_boost/parameters/input_boost_freq "0:960000 1:960000 2:960000 3:960000 4:0 5:0 6:0 7:0"
write /sys/module/cpu_boost/parameters/boost_ms 0
write /sys/module/cpu_boost/parameters/input_boost_ms 40
write /sys/module/cpu_boost/parameters/migration_load_threshold 15
write /sys/module/cpu_boost/parameters/sync_threshold 0
write /sys/module/msm_performance/parameters/touchboost 0
write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/boost_count 5
write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/boost_ceiling 10
write /sys/devices/system/cpu/cpu4/cpufreq/ondemand/boost_count 10
write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/freq_step 6
write /sys/devices/system/cpu/cpu4/cpufreq/ondemand/freq_step 4
write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_threshold 60
write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_threshold_suspended 85
write /sys/devices/system/cpu/cpu4/cpufreq/ondemand/down_threshold 75
write /sys/devices/system/cpu/cpu4/cpufreq/ondemand/down_threshold_suspended 99
write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold 70
write /sys/devices/system/cpu/cpu4/cpufreq/ondemand/up_threshold 90
write /sys/class/leds/lcd-backlight/max_brightness 255
write /sys/class/kgsl/kgsl-3d0/devfreq/governor msm-adreno-tz
write /sys/module/adreno_idler/parameters/adreno_idler_active 1
write /dev/cpuset/foreground/cpus 0-2,4-7
write /dev/cpuset/foreground/boost/cpus 4-7
write /dev/cpuset/top-app/cpus 0-7
write /sys/module/lazyplug/parameters/nr_possible_cores 8

# Performance (based on DrunkSauce Lite)
on property:persist.spectrum.profile=1
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 302400
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load 75
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay 0
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate 40000
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq 960000
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_slack -1
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads 80 384000:33 460800:25 600000:50 672000:65 787200:70 864000:85 960000:90 1248000:92
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time 50000
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/boost 1
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/align_windows 0
write /sys/devices/system/cpu/cpu0/cpufreq/interactive/max_freq_hysteresis 166667
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor interactive
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 633600
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/go_hispeed_load 90
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/above_hispeed_delay 0
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/timer_rate 20000
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/hispeed_freq 1440000
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/timer_slack -1
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/target_loads 74 768000:73 864000:64 960000:80 1248000:61 1344000:69 1440000:64 1536000:74 1632000:69 1689600:67 1824000:72
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/min_sample_time 30000
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/boost 1
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/align_windows 0
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/use_migration_notif 1
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/use_sched_load 1
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/max_freq_hysteresis 20000
write /sys/devices/system/cpu/cpu4/cpufreq/interactive/boostpulse_duration 80000
write /sys/module/cpu_boost/parameters/input_boost_enabled 1
write /sys/module/cpu_boost/parameters/input_boost_freq "0:1248000 1:1248000 2:1248000 3:1248000 4:0 5:0 6:0 7:0"
write /sys/module/cpu_boost/parameters/boost_ms 80
write /sys/module/cpu_boost/parameters/input_boost_ms 420
write /sys/module/msm_performance/parameters/touchboost 0
write /sys/class/leds/lcd-backlight/max_brightness 255
write /sys/class/kgsl/kgsl-3d0/devfreq/governor msm-adreno-tz
write /sys/module/adreno_idler/parameters/adreno_idler_active 1
write /dev/cpuset/foreground/cpus 0-2,4-7
write /dev/cpuset/foreground/boost/cpus 4-7
write /dev/cpuset/top-app/cpus 0-7
write /sys/module/lazyplug/parameters/nr_possible_cores 8

# Battery
on property:persist.spectrum.profile=2
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 302400
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1040000
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor powersave
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 221600
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq 624000
write /sys/module/cpu_boost/parameters/input_boost_enabled 0
write /sys/module/cpu_boost/parameters/input_boost_freq "0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0"
write /sys/module/cpu_boost/parameters/boost_ms 0
write /sys/module/cpu_boost/parameters/input_boost_ms 40
write /sys/module/cpu_boost/parameters/migration_load_threshold 15
write /sys/module/cpu_boost/parameters/sync_threshold 0
write /sys/module/msm_performance/parameters/touchboost 0
write /sys/devices/system/cpu/cpu0/cpufreq/powersave/boost_count 6
write /sys/devices/system/cpu/cpu0/cpufreq/powersave/boost_ceiling 12
write /sys/devices/system/cpu/cpu4/cpufreq/chill/boost_count 12
write /sys/devices/system/cpu/cpu0/cpufreq/powersave/freq_step 6
write /sys/devices/system/cpu/cpu4/cpufreq/chill/freq_step 4
write /sys/devices/system/cpu/cpu0/cpufreq/powersave/down_threshold 70
write /sys/devices/system/cpu/cpu0/cpufreq/powersave/down_threshold_suspended 85
write /sys/devices/system/cpu/cpu4/cpufreq/chill/down_threshold 75
write /sys/devices/system/cpu/cpu4/cpufreq/chill/down_threshold_suspended 99
write /sys/devices/system/cpu/cpu0/cpufreq/powersave/up_threshold 75
write /sys/devices/system/cpu/cpu4/cpufreq/chill/up_threshold 90
write /sys/class/kgsl/kgsl-3d0/devfreq/governor powersave
write /sys/class/leds/lcd-backlight/max_brightness 100
write /dev/cpuset/foreground/cpus 0-2,4-5
write /dev/cpuset/foreground/boost/cpus 4-5
write /dev/cpuset/top-app/cpus 0-5
write /sys/module/lazyplug/parameters/nr_possible_cores 6

# Gaming
on property:persist.spectrum.profile=3
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 302400
write /sys/devices/system/cpu/cpu0/cpufreq/performance/go_hispeed_load 75
write /sys/devices/system/cpu/cpu0/cpufreq/performance/above_hispeed_delay 0
write /sys/devices/system/cpu/cpu0/cpufreq/performance/timer_rate 40000
write /sys/devices/system/cpu/cpu0/cpufreq/performance/hispeed_freq 960000
write /sys/devices/system/cpu/cpu0/cpufreq/performance/timer_slack -1
write /sys/devices/system/cpu/cpu0/cpufreq/performance/target_loads 80 384000:33 460800:25 600000:50 672000:65 787200:70 864000:85 960000:90 1248000:92
write /sys/devices/system/cpu/cpu0/cpufreq/performance/min_sample_time 50000
write /sys/devices/system/cpu/cpu4/cpufreq/performance/boost 1
write /sys/devices/system/cpu/cpu0/cpufreq/performance/align_windows 0
write /sys/devices/system/cpu/cpu0/cpufreq/performance/max_freq_hysteresis 166667
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor performance
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 633600
write /sys/devices/system/cpu/cpu4/cpufreq/performance/go_hispeed_load 90
write /sys/devices/system/cpu/cpu4/cpufreq/performance/above_hispeed_delay 0
write /sys/devices/system/cpu/cpu4/cpufreq/performance/timer_rate 20000
write /sys/devices/system/cpu/cpu4/cpufreq/performance/hispeed_freq 1440000
write /sys/devices/system/cpu/cpu4/cpufreq/performance/timer_slack -1
write /sys/devices/system/cpu/cpu4/cpufreq/performance/target_loads 74 768000:73 864000:64 960000:80 1248000:61 1344000:69 1440000:64 1536000:74 1632000:69 1689600:67 1824000:72
write /sys/devices/system/cpu/cpu4/cpufreq/performance/min_sample_time 30000
write /sys/devices/system/cpu/cpu4/cpufreq/performance/boost 1
write /sys/devices/system/cpu/cpu4/cpufreq/performance/align_windows 0
write /sys/devices/system/cpu/cpu4/cpufreq/performance/use_migration_notif 1
write /sys/devices/system/cpu/cpu4/cpufreq/performance/use_sched_load 1
write /sys/devices/system/cpu/cpu4/cpufreq/performance/max_freq_hysteresis 20000
write /sys/devices/system/cpu/cpu4/cpufreq/performance/boostpulse_duration 80000
write /sys/module/cpu_boost/parameters/input_boost_enabled 1
write /sys/module/cpu_boost/parameters/input_boost_freq "0:1248000 1:1248000 2:1248000 3:1248000 4:0 5:0 6:0 7:0"
write /sys/module/cpu_boost/parameters/boost_ms 80
write /sys/module/cpu_boost/parameters/input_boost_ms 420
write /sys/module/msm_performance/parameters/touchboost 0
write /sys/class/leds/lcd-backlight/max_brightness 255
write /sys/class/kgsl/kgsl-3d0/devfreq/governor msm-adreno-tz
write /sys/module/adreno_idler/parameters/adreno_idler_active 0
write /dev/cpuset/foreground/cpus 0-2,4-7
write /dev/cpuset/foreground/boost/cpus 4-7
write /dev/cpuset/top-app/cpus 0-7
write /sys/module/lazyplug/parameters/nr_possible_cores 8

Cleaning your job also trust