Skip to content

Instantly share code, notes, and snippets.

@Flashwalker
Created March 5, 2024 12:29
Show Gist options
  • Save Flashwalker/6121d467da6f75a03ead0e0b027f2229 to your computer and use it in GitHub Desktop.
Save Flashwalker/6121d467da6f75a03ead0e0b027f2229 to your computer and use it in GitHub Desktop.
Disable Ryzen turboboost

Disable Ryzen turboboost

Tests first

Check if turboboost is active

$ sudo cpupower frequency-info | grep 'boost state support' -A2 | grep Active

Active: yes ❌

Check the current driver

$ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver

amd-pstate-epp ❌

Disable amd-pstate-epp driver

Add grub kernel boot param - initcall_blacklist=amd_pstate_init:

/boot/grub/grub.cfg

...
menuentry ...
...
    linux ... initcall_blacklist=amd_pstate_init
...

/etc/default/grub

...
GRUB_CMDLINE_LINUX_DEFAULT="... initcall_blacklist=amd_pstate_init"
...

Check the current driver after system reboot

$ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver

acpi-cpufreq ✅

Set turboboost off

$ sudo sh -c 'echo 0 > /sys/devices/system/cpu/cpufreq/boost'

Check if turboboost is active

$ sudo cpupower frequency-info | grep 'boost state support' -A2 | grep Active

Active: no ✅

Check if the turbo boost is working or not under CPU load

$ watch "sensors"
$ while true; do true; done

... Ctrl+C

Limit max temperature via ryzenadj

https://github.com/FlyGoat/RyzenAdj (GUI - https://ryzencontroller.com/)

(Ryzen 7945HX currently is not fully supported but looks like partially works)

FlyGoat/RyzenAdj#280)

$ sudo ryzenadj --tctl-temp=85

@seanmamasde
Copy link

man thank you so much for this comprehensive guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment