Skip to content

Instantly share code, notes, and snippets.

@ExtremeGTX
Last active November 10, 2019 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ExtremeGTX/4552d15edd5f62c65de8921a61fdd5b1 to your computer and use it in GitHub Desktop.
Save ExtremeGTX/4552d15edd5f62c65de8921a61fdd5b1 to your computer and use it in GitHub Desktop.

Set Max CPU freq to 1GHz

add to config.txt arm_freq value sudo vi /boot/firmware/config.txt

arm_freq=1000

Check CPU Speed current, minimum, maximum:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq # Current Speed
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq # Minimum Speed
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq # Maximum Speed

Get Avaialble scaling governers:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
> conservative ondemand userspace powersave performance schedutil

Set scaling governer:

Note: sudo echo will not work, you need to make sudo -s or sudo sh -c

Will use performance to make CPU Speed always set to 1GHz instead of changing between 600MHz and 1GHz depending on the load.

sudo sh -c "echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment