[Redmi Note 2 Android Development] jajk:
[MENTION=7260255]Brkge[/MENTION] [MENTION=7694222]vetriolo[/MENTION] I am guessing that you are both referring to ro.mtk_perfservice_support=0 edit? You must reboot for build.prop edits to take effect and you must ensure the permissions are set to 0644 after the edit is saved otherwise you will get problems.

Both the perfserver edit and the single sim edit work fine on 7.x.x and 7.5.x MIUI ROMs. Someone can tell me if this is also the case for MIUI8?

If you are on a CM based ROM, this stuff probably will not work since CM has lots of broken bits for our processor.

For those who are going to run

without perfserv

, here is a reference init.d script that works well as a starting point:

Remember that you do not have a touch boost function any more in this mode so it is more important to get the cpu up in freq earlier to compensate.

#!/system/bin/sh

# cpu freqs standard RN2: 403000, 806000, 1183000, 1326000, 1469000, 1625000, 1781000, 1950000
# cpu freqs PRIME RN2: 403000, 806000, 1183000, 1326000, 1482000, 1664000, 1885000, 2158000

#Set to permissive
# setenforce 0 # enable this line if SE permissive mode is required

# Tweak Interactive Governor
echo 806000 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq # factory default 1183000
echo 85 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load # factory default 99
echo 95 > /sys/devices/system/cpu/cpufreq/interactive/target_loads # factory default 90
echo 25000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate # factory default 20000
echo 10000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time # factory default 20000
echo 5000 > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay # factory default 20000
echo 35000 > /sys/devices/system/cpu/cpufreq/interactive/timer_slack # factory default 80000

# Limit CPU max freqs
#echo 1781000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq # To limit the maximum cpu freq:
#echo 1781000 > /proc/cpufreq/cpufreq_limited_max_freq_by_user # enable both of these lines and choose a valid max freq for your cpu

# Limit CPU cores Only for MIUI7.5.x or 8.x.x (0-1 min, 0-7 max) Example shows 4 cores
#echo 0-3 > /dev/cpuset/foreground/cpus

# Limit CPU cores conditionally (range 2 - 8) Example shows 4 cores for all situations
#echo 4 > /proc/hps/num_limit_low_battery
#echo 4 > /proc/hps/num_limit_power_serv
#echo 4 > /proc/hps/num_limit_thermal
#echo 4 > /proc/hps/num_limit_ultra_power_saving

#Tweak LMK
echo 6144,10240,14336,18432,22528,26624 > /sys/module/lowmemorykiller/parameters/minfree # equivalent to a medium setting

#Enable zram
#echo 536870912 > /sys/block/zram0/disksize # 536870912 = 512MB (for non-prime version) 1073741824=1GB (for prime version)
#/system/bin/tiny_mkswap /dev/block/zram0 # alternative line: /system/xbin/busybox mkswap /dev/block/zram0
#/system/bin/tiny_swapon /dev/block/zram0 # alternative line: /system/xbin/busybox swapon /dev/block/zram0
echo 0 > /proc/sys/vm/swappiness # disable line or set to factory default 100 if zram enabled

# Tweak IO Scheduler
echo deadline > /sys/block/mmcblk0/queue/scheduler # factory default cfq
echo 2048 > /sys/block/mmcblk0/queue/read_ahead_kb # factory default 128 Choose between 128, 256, 512, 1024, 2048
echo 0 > /sys/block/mmcblk0/queue/add_random
echo 0 > /sys/block/mmcblk0/queue/iostats

#Tweak Entropy
echo 512 > /proc/sys/kernel/random/read_wakeup_threshold # factory default 64
echo 512 > /proc/sys/kernel/random/write_wakeup_threshold # factory default 128

#Tweak for wifi router connection issues
#echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6

# Disable debugging on some modules
echo 0 > /sys/module/alarm_dev/parameters/debug_mask;
echo 0 > /sys/module/alarmtimer/parameters/debug_mask;
echo 0 > /sys/module/binder/parameters/debug_mask;
echo 0 > /sys/module/earlysuspend/parameters/debug_mask;
echo 0 > /sys/module/sbsuspend/parameters/sbsuspend_debug_mask;
echo 0 > /sys/module/snd/parameters/debug;
echo 0 > /sys/module/pvrsrvkm/parameters/gPVRDebugLevel;
echo 0 > /sys/module/musb_hdrc/parameters/debug_level;
echo 0 > /sys/module/lowmemorykiller/parameters/debug_level;

#FSTRIM
busybox fstrim /data
busybox fstrim /system
busybox fstrim /cache