• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#Setup for newer devices
2
3if [[ "`id -u`" -ne "0" ]]; then
4  echo "WARNING: running as non-root, proceeding anyways..."
5fi
6
7stop thermal-engine
8stop perfd
9stop vendor.thermal-engine
10stop vendor.perfd
11
12echo 0 > /sys/devices/system/cpu/cpu0/online
13echo 0 > /sys/devices/system/cpu/cpu1/online
14
15echo performance  > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
16echo 2150400 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
17
18echo 13763 > /sys/class/devfreq/soc:qcom,gpubw/max_freq
19echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governor
20echo -n 624000000 > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq
21