What is needed to use Raven Ridge Ryzen 5 2400G?

I just bought a Ryzen 5 2400G with a motherboard GA-A320-S2H and I decided to install KDE Neon based on ubuntu 16.04, it worked but it was noticeable that I was not taking advantage of the resources, I opted to try to install the proprietary drivers and I had no luck , then I put kernel 4.16, it did not work either, then install 4.17 (http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17-rc4/) and it works in luxury. I had a small inconvenience with the network card r8168, so I installed the latest version of the driver: r8168-dkms_8.045.08-3_all.deb and everything works wonders. I can play 4k videos with CPU temperatures of 40ºC


I installed Kernel v4.16 using the .deb files here: http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.16/

I'm impressed, the APU is working very well!

In Steam I get better fps in all games than my laptop which has a dedicated GPU (GTX 860M).


This guy says it's working for him:

  • The Linux 4.15 kernel is an absolute minimum requirement if using the open-source driver stack due to needing AMDGPU DC for Raven Ridge, which was only mainlined for this newly-released kernel. Linux 4.15 is a must but with Linux 4.16 are a number of Raven Ridge fixes. Linux 4.16 will be released as stable in April if you are not comfortable using kernel Git snapshots. I'll have comparison tests of both kernels and DRM-Next as time allows.

  • Linux-Firmware.Git from around December or newer for having the necessary Raven Ridge files. Ubuntu releases, for example, don't yet have these needed firmware binary blobs, so you may need to clone that Git repository and update your /lib/firmware as without these microcode files you will not have working driver support.

  • Mesa 18.0 or newer is definitely recommended for best feature support and performance. You may have luck using later Mesa 17.x releases, but RadeonSI and RADV have both received a lot of feature work and optimizations for Vega in recent months that using Mesa 18.0 is worthwhile if not Mesa 18.1-dev Git.

  • The Mesa build should be at least against the LLVM 5.0 AMDGPU back-end but ideally LLVM 6.0 or 7.0 SVN for the best Vega support.

I tried hard to copy his setup but wasn't successful. I ended up using some proprietary driver from the AMD site which still doesn't utilize the Vega graphics on full (but helped a lot, before system was laggy, after I can play YouTube on 4K). I will do a fresh install of the system anyway as I experience system freezes (1x per hour), boot hangs every 2nd time, sleep and hibernation not working, CPU temp sensors only with a workaround. Be sure to have the latest BIOS upgrade.

This is my dump if it helps in any way:

inxi -F
System:    Host: ulkaspc Kernel: 4.15.3-041503-generic x86_64 (64 bit)
           Desktop: Xfce 4.12.3 Distro: Linux Mint 18.3 Sylvia
Machine:   Mobo: MSI model: B350M MORTAR (MS-7A37) v: 1.0
           Bios: American Megatrends v: 1.B0 date: 01/29/2018
CPU:       Quad core AMD Ryzen 5 2400G with Radeon Vega Graphics (-HT-MCP-) cache: 2048 KB 
           clock speeds: max: 3600 MHz 1: 1815 MHz 2: 2194 MHz 3: 2050 MHz
           4: 1958 MHz 5: 1714 MHz 6: 1716 MHz 7: 2079 MHz 8: 1965 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Device 15dd
           Display Server: X.Org 1.18.4 drivers: ati,vesa (unloaded: fbdev,radeon)
           Resolution: [email protected]
           GLX Renderer: N/A GLX Version: N/A



    RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
    Sensors:   None detected - is lm-sensors installed and configured?
    Info:      Processes: 266 Uptime: 27 min Memory: 3487.3/15042.5MB
               Client: Shell (bash) inxi: 2.2.35 

I have AMD Ryzen 240G on Asus Prime B350M-A Motherboard, and succesfully run Ubuntu 18.04 Pre-Release. It works at full resolution on DVI, VGA and HDMI output. I don't test sound output by HDMI, but system detects 2 soundcards(?). Mayby the second one is for HDMI?

I do not modify anything and not add extra drivers/modules/firmwares and it's works quite well. I'm only noticing some issues from time to time, like hanging desktop, but it's rarelly.


It seems the latest fixes from AMD finally resolved all my issues. See https://cgit.freedesktop.org/~agd5f/linux/log/?h=amd-staging-drm-next For now you need to compile your own kernel or wait till those fixes land in your distribution.