Ryzen
Contents
Enable microcode support
Install the amd-ucode package to enable microcode updates and enable it with the help of the Microcode page. These updates provide bug fixes that can be critical to the stability of your system. It is highly recommended to use it despite it being proprietary.
Tweaking Ryzen
Power/Temperature Monitoring
lm_sensors should be able to monitor temperatures out of the box. However, for more detailed information such as power consumption and voltage, zenpower-dkmsAUR is needed. For GUI based monitoring tools, use zenmonitorAUR.
Power managing
RyzenAdj|| ryzenadj-gitAUR (CLI) is a tool created by FlyGoat to adjust power management settings for Ryzen processors using a terminal emulator.
Overclocking
ZenStates-Linux (CLI) is a tool made by r4m0n to adjust the clock speed and voltage. A detailed example was given in Level1Techs' forums by catsay for you to understand it.
Compiling a kernel
See Gentoo:Ryzen#Kernel on enabling Ryzen support.
Troubleshooting
Random reboots
See Gentoo:Ryzen#Random_reboots_with_mce_events if you are experiencing random reboots.
Screen-tearing (APU)
If you are using Xorg and are experiencing screen-tearing, enabling the "TearFree"
option will fix the problem.
/etc/X11/xorg.conf.d/20-amdgpu.conf
Section "Device" Identifier "AMD" Driver "amdgpu" Option "TearFree" "true" EndSection
"TearFree"
is not Vsync.Soft lock freezing
Some laptops with Ryzen CPUs such as the HP Envy x360 15-bq100na may experience CPU soft locks which result in a frozen system. These can be avoided with the "idle=nomwait" boot option.