1if [[ "`id -u`" -ne "0" ]]; then 2 echo "WARNING: running as non-root, proceeding anyways..." 3fi 4 5stop thermal-engine 6stop perfd 7 8cpubase=/sys/devices/system/cpu 9gov=cpufreq/scaling_governor 10 11cpu=0 12S=960000 13while [ $((cpu < 4)) -eq 1 ]; do 14 echo 1 > $cpubase/cpu${cpu}/online 15 echo userspace > $cpubase/cpu${cpu}/$gov 16 echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_max_freq 17 echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_min_freq 18 echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_setspeed 19 cpu=$(($cpu + 1)) 20done 21 22echo -n 0 > /sys/devices/system/cpu/cpu4/online 23echo -n 0 > /sys/devices/system/cpu/cpu5/online 24echo -n 0 > /sys/devices/system/cpu/cpu6/online 25echo -n 0 > /sys/devices/system/cpu/cpu7/online 26 27echo 0 > /sys/class/kgsl/kgsl-3d0/bus_split 28echo 1 > /sys/class/kgsl/kgsl-3d0/force_clk_on 29echo 10000 > /sys/class/kgsl/kgsl-3d0/idle_timer 30 31echo 11863 > /sys/class/devfreq/qcom,gpubw.70/min_freq 32 33echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governor 34echo 305000000 > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq 35echo 305000000 > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq 36 37echo 4 > /sys/class/kgsl/kgsl-3d0/min_pwrlevel 38echo 4 > /sys/class/kgsl/kgsl-3d0/max_pwrlevel 39 40