mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-18 07:34:45 +00:00
Update
This commit is contained in:
parent
a461012f35
commit
ddbe4e8859
10 changed files with 37 additions and 11 deletions
|
|
@ -1,13 +1,9 @@
|
|||
#!/usr/bin/env sh
|
||||
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
|
||||
if [ "$1" == "start" ]; 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
|
||||
tee /sys/devices/system/cpu/cpufreq/policy*/scaling_governor <<< performance
|
||||
exit
|
||||
elif [ "$1" == "stop" ]; then
|
||||
for fgovernor in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo powersave > "${fgovernor}"; done
|
||||
tee /sys/devices/system/cpu/cpufreq/policy*/scaling_governor <<< powersave
|
||||
exit
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue