Created
June 5, 2023 04:17
-
-
Save c2h2/ae2f4a3cdf4f1518561a9a6d83fb27d9 to your computer and use it in GitHub Desktop.
save your server cpu power this summer, powersave.sh
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
#!/bin/bash | |
#apt-get install linux-cpupower | |
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor | |
echo "Setting to Powersave" | |
cpupower frequency-set --governor powersave | |
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment