Skip to content

Instantly share code, notes, and snippets.

@c2h2
Created June 5, 2023 04:17
Show Gist options
  • Save c2h2/ae2f4a3cdf4f1518561a9a6d83fb27d9 to your computer and use it in GitHub Desktop.
Save c2h2/ae2f4a3cdf4f1518561a9a6d83fb27d9 to your computer and use it in GitHub Desktop.
save your server cpu power this summer, powersave.sh
#!/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