This commit is contained in:
Eduard Tolosa 2019-05-21 22:25:51 -05:00
parent fee575a446
commit 8386275de4
2 changed files with 12 additions and 1 deletions

View file

@ -1,5 +1,10 @@
#!/usr/bin/env sh
if [ "$1" == "start" ]; then
if [ "$1" == "start" ] && [ -z "$2" ]; then
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo performance > "${fgovernor}"; done
exit
elif [ "$1" == "start" ] && [ "$2" == "turbo" ]; then
echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo performance > "${fgovernor}"; done
exit
elif [ "$1" == "stop" ]; then