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 24 25echo 0 > /sys/class/kgsl/kgsl-3d0/bus_split 26echo 1 > /sys/class/kgsl/kgsl-3d0/force_clk_on 27echo 10000 > /sys/class/kgsl/kgsl-3d0/idle_timer 28 29echo 7102 > /sys/class/devfreq/qcom,gpubw.19/min_freq 30 31echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governor 32echo 300000000 > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq 33echo 300000000 > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq 34 35echo 4 > /sys/class/kgsl/kgsl-3d0/min_pwrlevel 36echo 4 > /sys/class/kgsl/kgsl-3d0/max_pwrlevel 37