mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Update
This commit is contained in:
parent
fee575a446
commit
8386275de4
2 changed files with 12 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue