This commit is contained in:
Eduard Tolosa 2019-03-15 23:44:03 -05:00
parent 1776e07a20
commit f716032523
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#!/usr/bin/env sh
if [ "$1" == "start" ]; then
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo performance > "${fgovernor}"; done
exit
elif [ "$1" == "stop" ]; then
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo powersave > "${fgovernor}"; done
exit
fi