Last active
September 13, 2023 13:38
-
-
Save iagoalonsomrf/0d1039dff8cd9757c6fba0a30741b3e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
read -p "Set scaling governor to: " GOVERNOR | |
if [ "$GOVERNOR" == "performance" ] || [ "$GOVERNOR" == "powersave" ] | |
then | |
for i in {0..11}; do echo "$GOVERNOR" | sudo tee /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor; done | |
else | |
echo "Value $GOVERNOR is not a valid scaling governor" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment