User Tools

Site Tools


ubuntu:gpu:amd_gpu:overclocking:manually

Ubuntu - GPU - AMD GPU - Overclocking - Manually

NOTE: In sysfs, paths like /sys/class/drm/… are just symlinks and may change between reboots.

  • Persistent locations can be found in /sys/devices/, e.g. /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/.

Adjust the commands accordingly for a reliable result.


To set the GPU clock for the maximum P-state 7 to 1209MHz and 900mV voltage

echo "s 7 1209 900" > /sys/class/drm/card0/device/pp_od_clk_voltage

To set the VRAM to maximum P-state 2

echo "m 2 1850 850" > /sys/class/drm/card0/device/pp_od_clk_voltage

WARNING: Double check the entered values, as mistakes might instantly cause fatal hardware damage!


To apply

echo "c" > /sys/class/drm/card0/device/pp_od_clk_voltage

To check if it worked out, read out clocks and voltage under 3D load

watch -n 0.5  cat /sys/kernel/debug/dri/0/amdgpu_pm_info

Reset to the default values

echo "r" > /sys/class/drm/card0/device/pp_od_clk_voltage

NOTE: It is also possible to forbid the driver to switch to certain P-states, e.g. to workaround problems with deep powersaving P-states like flickering artifacts or stutter.

  • To force the highest VRAM P-state, while still allowing the GPU itself to run with lower clocks:
    echo "manual" > /sys/class/drm/card0/device/power_dpm_force_performance_level
    echo "2" >  /sys/class/drm/card0/device/pp_dpm_mclk

Allow only the three highest GPU P-states

echo "5 6 7" >  /sys/class/drm/card0/device/pp_dpm_sclk

To set the allowed maximum power consumption of the GPU to e.g. 50 Watts

echo 50000000 > /sys/class/drm/card0/device/hwmon/hwmon0/power1_cap

NOTE: The above procedure may have different behavior or bugs with different GPUs.

ubuntu/gpu/amd_gpu/overclocking/manually.txt · Last modified: 2023/06/19 00:35 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki