[Huawei Ascend P6, Mate] HSD-Pilot:
SetCPU usually kicks in after the init. d Scripts, so it will overwrite the Values.

The Zip contains an Script called 80SetCPU, this will do the same like the App.

#!/system/bin/sh

LOG_FILE=/data/00_init.d_control_log/01Init.d_Control.log

echo ">>> SetCPU" | tee -a $LOG_FILE;

#---------------------------------------------#

# Configure your Values #

#---------------------------------------------#

# Set Scaling Governor

# k3hotplug minmax ondemand performance

GOVERNOR="k3hotplug"

#---------------------------------------------#

# Set IO Scheduler

# cfq deadline noop sio sioplus vr zen

SCHEDULER="zen"

#---------------------------------------------#

# Set Min & Max Frequency

# 200000 400000 600000 800000 1000000 1200000 1399000 1400000 1500000

CPU_MIN=200000

CPU_MAX=1500000

#---------------------------------------------#

# Apply Configuration #

#---------------------------------------------#

#Set CPU Governor

if [ -e /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then

echo $GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor; else

echo "- Unable to set CPU Governor. File NOT found!" | tee -a $LOG_FILE;

fi;

if [ -e /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor ]; then

echo $GOVERNOR > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor;

fi;

if [ -e /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor ]; then

echo $GOVERNOR > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor;

fi;

if [ -e /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor ]; then

echo $GOVERNOR > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor;

fi;

sleep 1

if [ /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor=$GOVERNOR ]; then

echo "+ $GOVERNOR Governor is running" | tee -a $LOG_FILE; else

echo "- $GOVERNOR Governor is NOT running" | tee -a $LOG_FILE;

fi;

#---------------------------------------------#

# Set Scheduler

dm=/sys/block/dm-*

loop=/sys/block/loop*

mmc=/sys/block/mmc*

mtd=/sys/block/mtd*

nbd=/sys/block/nbd*

ram=/sys/block/ram*

zram=/sys/block/zram*

for a in $dm $loop $mmc $mtd $nbd $ram $zram; do

if [ -e ${a}/queue ]; then

echo $SCHEDULER >> ${a}/queue/scheduler;

fi; done

sleep 1

if [ /sys/block/mmcblk0/queue/scheduler=$SCHEDULER ]; then

echo "+ $SCHEDULER Scheduler is running" | tee -a $LOG_FILE; else

echo "- $SCHEDULER Scheduler is NOT running" | tee -a $LOG_FILE;

fi;

#---------------------------------------------#

# Set MIN/MAX Frequency

if [ -e /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq ]; then

echo $CPU_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq; else

echo "- Unable to set MIN Frequency. File NOT found!" | tee -a $LOG_FILE;

fi;

if [ -e /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq ]; then

echo $CPU_MIN > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq;

fi;

if [ -e /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq ]; then

echo $CPU_MIN > /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq;

fi;

if [ -e /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq ]; then

echo $CPU_MIN > /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq;

fi;

if [ -e /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq ]; then

echo $CPU_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq; else

echo "- Unable to set MAX Frequency. File NOT found!" | tee -a $LOG_FILE;

fi;

if [ -e /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq ]; then

echo $CPU_MAX > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq;

fi;

if [ -e /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq ]; then

echo $CPU_MAX > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq;

fi;

if [ -e /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq ]; then

echo $CPU_MAX > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq;

fi;

sleep 1

if [ /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq=$CPU_MIN ]; then

echo "+ MIN Frequency is set to $CPU_MIN mhz" | tee -a $LOG_FILE; else

echo "- MIN Frequency is NOT set to $CPU_MIN mhz" | tee -a $LOG_FILE;

fi;

if [ /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq=$CPU_MAX ]; then

echo "+ MAX Frequency is set to $CPU_MAX mhz" | tee -a $LOG_FILE; else

echo "- MAX Frequency is NOT set to $CPU_MAX mhz" | tee -a $LOG_FILE;

fi;

#---------------------------------------------#

echo "@ $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;

echo " " | tee -a $LOG_FILE;

Just set your Values on top and reboot :thumbup:

Gesendet von meinem HUAWEI P6-U06 mit Tapatalk