Ryzen 2200/2400g Linux Build - Graphics problems

commissioneranthony

[H]ard|Gawd
Joined
Jul 2, 2008
Messages
1,274
I just built a new ryzen 2400 rig and so far it's been pretty good with ubuntu 18.04.2. However, I havn't been able to completely install the amd drivers for graphics.

Has anyone been able to successfully install graphics drivers for 2200/2400g raven ridge chips in linux?

There have been a lot of folks having problems with raven ridge and stability, but it seems the new ubuntu 18.04.2 build fixes a bunch of bugs. However, the amdgpu drivers seem to cause screen tearing on my machine and it isn't very clear how many packages are need to get the graphics working properly.

Thanks!
 
I just built a new ryzen 2400 rig and so far it's been pretty good with ubuntu 18.04.2. However, I havn't been able to completely install the amd drivers for graphics.

Has anyone been able to successfully install graphics drivers for 2200/2400g raven ridge chips in linux?

There have been a lot of folks having problems with raven ridge and stability, but it seems the new ubuntu 18.04.2 build fixes a bunch of bugs. However, the amdgpu drivers seem to cause screen tearing on my machine and it isn't very clear how many packages are need to get the graphics working properly.

Thanks!

Have you tried doing it through the control panel drivers part?
 
Do you need to install the AMD drivers? Ubuntu should come with the open drivers as part of the distro.

ChadD up yet?
 
I am not an ubuntu user and can't say I have ever tried to setup a raven ridge chip on ubuntu.

Some advice though. amdgpu is AMDs propritary kernel driver. I would only ever suggest using it on radeon pro cards in specific situations where software like higher end 3D applications require it. If your not running MAYA or Houdini or the like stick with the open source drivers.

MESA + the standard kernel drivers are good to go.

The issue you will run into with and older Ubuntu (and frankly Ubuntu in general) is that by default your going to be on an older kernel, don't quote me but I'm pretty sure your on kernel 4.15 right now and probably 18 something mesa. Neither of those is going to have good raven ridge support.

So your options are to either;
1) upgrade your kernel + mesa versions to more current versions. (anything that is 6 or so months old at the most should be fine for RR chips)
2) install the actual amdgpupro kernel driver as you are attempting. This should be stable but it is a kernel driver and can introduce issues there. Mostly it will simply going to suck for games. It is stable... but compared to the open source drivers it is lacking in performance. AMD directly supports the Linux open source driver development and they recommend most users run the MESA open source drivers on consumer stuff. (to be honest I Haven't checked but it is possible RR isn't won't even have official support for the pro driver)
3) Switch distros to something that keeps your software fresh to begin with. My go to suggestion is always Manjaro. Its rock solid, easy for new Linux users, one of the most powerful distros for power users, and its semi rolling... meaning your mesa will always be no more then 1-2 versions old, and you will be on a new kernel from the jump and be able to easily bounce to newer kernels.

If you decide to stick with Ubuntu here is some helpful stuff that should make it easy to upgrade your kernel and mesa. Under Ubuntu I understand ukuu gives you functionality sort of like Manjaros Kernel selection tool. I also understand that the Padoka PPA is still probably the best way to get the most up to date MESA installed. (I would stick with their stable PPA rather then the bleeding edge from git version)
https://www.omgubuntu.co.uk/2017/02/ukuu-easy-way-to-install-mainline-kernel-ubuntu
https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/pkppa/

PS:
https://hardforum.com/threads/inexpensive-1080-linux-gaming-pc.1974980/
I built my daughter a 2200g late last year. Installed manjaro and it just went. Out of the box everything worked she was playing games on steam in 20 min.
 
Last edited:
You just update the kernel using UKUU. If something goes wrong, hold shift at the GRUB bootloader and boot into an older kernel, once booted open UKUU and remove any changes made. Avoid any kernels flagged as regressions.
 
  • Like
Reactions: ChadD
like this
My KDE Neon 5.16 install based on 18.04 LTS received a mesa update this evening (sorry, 4k monitor so image may be large)...

qohgTwk.png
 
Hey guys! Thanks for all the advice. Here's an update.

machine specs:
-2400g
-ASRock Fatal1ty B450 Gaming-ITX/ac motherboard. latest bios (3.3)
-2x8gb Crucial Ballistix Sport LT 8GB DDR4-3200 PC4-25600 ram BLS8G4D32AESBK. listed in motherboard ram support table.


intention of machine:
main computer for very tech unsavy parents. They've been using a gnome-classic like interface for past 10 years.


What I've tried, in order:
-updated motherboard to latest bios
-fresh 19.04 install. Screen defaulted to 640x480 graphics and I could not change the resolution. I tried installing the "AMDGPU-pro" graphics and it made the machine black screen on reboot and it wouldn't come back after that. I later found out that AMDGPU-pro driver is not written for 19.04, so I switched to 18.04.2

-fresh 18.04.2 install. worked right out of the box at 1920x1200 and everything seemed normal. general use was pretty fluid, and the machine booted and operated normally. However, after mildly stressing the machine with basic games from the ubuntu store, there was visual scrolling horizontal line tearing while playing extreme tux racer. I thought it would be worth installing a new kernel (18.04.2 comes with 4.18 kernel). used ukuu to upgrade to the latest kernel (5.1.6) and installed the AMDGPU-PRO driver, but this caused a black screen on reboot. I reinstalled 18.04.2 and tried kernel 5.0, exact same results.

-reinstalled 18.04.2 and stuck with the native kernel 4.18. I went ahead and installed the latest MESA and the xf86 driver from xorg. This was definitely an improvement over stock 18.04.2 drivers and there was no more horizontal scrolling line tearing in extreme tux racer. I went ahead and installed the 19.20 radeon drivers. I verified the driver install via terminal it checked out. However, the AMDGPU-pro driver made the graphics situation significantly worse, and created horrific line tearing on even a simple window drag. Also, ubuntu x interface no longer worked, and ubuntu wayland was the only functioning gui environment.

-reinstalled 18.04.2 and stuck with kernel 4.18. Installed latest mesa and xf86 driver and left the native amdgpu driver that came with 18.04.2. I did not bother installing the proprietary amdgpu-pro drivers as didn't seem to help at all. The system seems to work best with these settings. However, every day or 2, I noticed a hard lockup on the machine. I could be web browsing, or playing ubuntu store games. it was very random. I tried updating the kernel with ukuu to 4.20 and it defaulted to 640x480 mode and blackscreened on bootup. I reverted to kernel 4.18 and my 1920x1200 resolution was back and the every other day lockups were back as well.

I did some research and it seemed that I did not have the correct gpu microcode installed. It kept reading the GPU as vega 8 instead of vega 11 (attached image)
https://forum.level1techs.com/t/rx590-ubuntu-18-04-setup-guide/137521
I tried installing radeon microcode from https://people.freedesktop.org/~agd5f/radeon_ucode/ for the raven ridge 2400g.
I installed the latest 3 .bin files (raven2_asd.bin, raven2_ce.bin, raven2_gpu_info.bin) in the /rv2/ folder and none of them worked.

lspci -nnk | grep -i -EA3 “3d|display|vga”​

still showed vega 8 for my gpu even though I have a ryzen 2400g, which should have vega 11. It shows vega 8 even with the latest mesa, latest xorg driver and on any of the 3 kernels I tried (5.15, 5.0 and 4.20).


I tried setting the ram xmp profile to 3200mhz in bios. lockups still occurred.
I checked for the amd segfault issue. My cpu did not post a fail after 15min of testing, so I think it's ok in that regard.


I posted this on ubuntu forums, and level 1 tech forums. so far there is no solution. I dug a bit deeper and found this gem:
https://bugzilla.kernel.org/show_bug.cgi?id=196683

I spent ~4 whole days troubleshooting this setup and for the life of me, I can't get this to be stable. It seems that this ryzen g platform has been riddled with bugs on linux since release and that getting a good reliable setup is hit-or-miss for a majority of the folks on bugzilla. AMD acknowledged some of these stability problems and mentioned that power supply idle currents are very low on the ryzen chips, causing power supplies to not perform properly since the ryzen chips don't meet the minimum power supply loading criteria. Frankly, I have no idea if my power supply supports 0A minimum load on the +12V circuit. I am running a sfx seasonic power supply from ~2009 and there is a good chance it may not. later on down the thread it mentions that additional settings in bios showed up on new bios revisions, showing a setting along the lines of "Power Supply Idle Control." It is suggested to set Power Supply Idle Control = Typical Current Idle. It just so happens this setting is missing from the latest bios for my mainboard. it turns out c-states were disabled by default in bios by asrock.

This amount of digging-down-the-rabbit hole is alarming for this chip on linux. It is completely unacceptable that more than a year after raven ridge has been released, I have to spend this much time to iron out bugs on a new system. This is not a flame post on the ryzen platform. I think it is really amazing what amd engineers have done with the ryzen series and it represents an incredible value for pc enthusiasts. However, I believe this is absolutely obnoxious to expect a buyer to have to essentially beta test a product on the linux platform. This should be finished by now.

At this point, I am throwing in the towel. Microcenter only has a 15 day return poilcy and it's been 8 days. I am incredibly let down by raven ridge. I really wanted this to work, as a one chip cpu+gpu solution would be ideal for my needs. The closest intel solution has graphics hd 630 and it blows in comparison.
My only solution is to wait and see about intel's upcoming core 10 series and hope their graphics drivers actually work in linux.
 

Attachments

  • screenshot.png
    screenshot.png
    381 KB · Views: 0
Ubuntu is the issue. You also do NOT want the amdgpu-pro driver. You don't there is zero reason to use that driver with a 2400g. Clean install.. update kerenel, update mesa. And that should be it. AMDs pro driver will replace mesa... and is more hassle then it is worth. On something like a raven ridge you have no need of it.

If your curious seriously install manjaro. It will just work I kid you not.

https://manjaro.org/download/gnome/

I really don't know why people are so married to that terrible crap distro. Ubuntu is horrible. (I know I'm not trying to start a fight with the Ubuntu lovers... but really I hate that stupid distro)

If the idea of a semi rolling distro for your parents scares you. (it shouldn't it will be less hassel in the long run ime) Then consider a proper distro like Opensuse. Leap 15.1 should have zero issues with raven ridge and just work out of the box. Although Manjaro is still the better option imo.
 
Last edited:
Ubuntu is the issue. You also do NOT want the amdgpu-pro driver. You don't there is zero reason to use that driver with a 2400g. Clean install.. update kerenel, update mesa. And that should be it. AMDs pro driver will replace mesa... and is more hassle then it is worth. On something like a raven ridge you have no need of it.

If your curious seriously install manjaro. It will just work I kid you not.

https://manjaro.org/download/gnome/

I really don't know why people are so married to that terrible crap distro. Ubuntu is horrible. (I know I'm not trying to start a fight with the Ubuntu lovers... but really I hate that stupid distro)

No problems here, my install updates Mesa by itself and I didn't add any PPA's for Mesa and I'm still running the default 4.18 kernel. The problem isn't Ubuntu, the problem is AMDGPU-PRO, it could even be a hardware issue. AMDGPU-PRO is not the driver you want, it's not the best driver for gaming.

Use UKUU and update the the latest kernel, isn't it 5.10 or something? The drivers you want are included in the kernel. Running Nvidia and no problems with drivers, and yet all the neck beard purists will tell me that Nvidia drivers are fraught with issues - Currently running 4k using fractional scaling under X11 no problems.
 
I just did a clean install of 18.04.2
18.04.2 natively has amdgpu driver (the non-proprietary one). I Updated kernel to 5.10 with ukuu. Screen resolution becomes stuck at 640x480. Machine black screens on reboot.
This happens every time I update the kernel from 4.18 to something else with ubuntu 18.04.2

The two things that keeps me with ubuntu is printer support and sleep functionality.
My last build (Intel i3 2120) refused to go to sleep with manjaro. worked on ubuntu without a hitch.
This machine is used literally 2-4 hours a day at best. Sleep functionality is essential.

I may give manjaro install a shot before I return it later in the week.
 
Last edited:
I installed manjaro gnome 18.04.4 and ran
inxi -Fz​
This is some of what it spit out in the terminal window:

CPU:
Topology: Quad Core model: AMD Ryzen 5 2400G with Radeon Vega Graphics
Graphics:
Device-1: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series]
driver: amdgpu v: kernel
Display: x11 server: X.Org 1.20.5 driver: amdgpu compositor: gnome-shell
resolution: <xdpyinfo missing>
OpenGL: renderer: AMD RAVEN (DRM 3.27.0 4.19.59-1-MANJARO LLVM 8.0.0)
v: 4.5 Mesa 19.1.2 direct render: Yes

I manually installed xdpyinfo and it picked up my resolution as 1024x768

I can't seem to get any other resolution to work other than 1024x768

It is identifying the cpu and the gpu, which is good sign, but I don't understand why im stuck at 1024x768 resolution. I am using a dell u2410 via displayport

I ran a xrandr and it output:
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 16384 x 16384
DisplayPort-0 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00*
800x600 60.32 56.25
848x480 60.00
640x480 59.94
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
HDMI-A-1 disconnected (normal left inverted right x axis y axis)
HDMI-A-2 disconnected (normal left inverted right x axis y axis)



EDIT: All the resolution problems I have had may be stemed from a very shitty not-true displayport cable.
im getting 1920x1200 no problem over hdmi now. I wonder if ubuntu 19.04 had resolution problems because of this same problem. That still can't explain the random system hangs I get. I find it extremely hard to believe a displayport cable caused system hangs.
 
Last edited:
I installed manjaro gnome 18.04.4 and ran
inxi -Fxzc0​
This is some of what it spit out in the terminal window:

CPU:
Topology: Quad Core model: AMD Ryzen 5 2400G with Radeon Vega Graphics
Graphics:
Device-1: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series]
driver: amdgpu v: kernel
Display: x11 server: X.Org 1.20.5 driver: amdgpu compositor: gnome-shell
resolution: <xdpyinfo missing>
OpenGL: renderer: AMD RAVEN (DRM 3.27.0 4.19.59-1-MANJARO LLVM 8.0.0)
v: 4.5 Mesa 19.1.2 direct render: Yes

I manually installed xdpyinfo and it picked up my resolution as 1024x768

I can't seem to get any other resolution to work other than 1024x768

It is identifying the cpu and the gpu, which is good sign, but I don't understand why im stuck at 1024x768 resolution. I am using a dell u2410 via displayport

I ran a xrandr and it output:
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 16384 x 16384
DisplayPort-0 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00*
800x600 60.32 56.25
848x480 60.00
640x480 59.94
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
HDMI-A-1 disconnected (normal left inverted right x axis y axis)
HDMI-A-2 disconnected (normal left inverted right x axis y axis)



EDIT: All the resolution problems I have had may be stemed from a very shitty not-true displayport cable.
im getting 1920x1200 no problem over hdmi now. I wonder if ubuntu 19.04 had resolution problems because of this same problem. That still can't explain the random system hangs I get. I find it extremely hard to believe a displayport cable caused system hangs.

I reckon Displayport might be your issue here, I wouldn't be suprised if the open source drivers don't support it adequately. For the record, DP under Nvidia hardware/drivers works perfectly at 4k. ;)

yuyblK8l.jpg
 
Do you think the displayport could have been causing the hard lockups? I think that is quite a stretch, but at least now when I update kernels I should not have the stuck-at-640x480 problem.
I think ubuntu 18.04.2 was so old that for some reason they did not require EDID information to the graphics card, which is why it natively worked at 1920x1200.
Jeez man, how the hell can a display port cause this much BS.

There is a special place in hell for non-certified displayport cables.
 
Interesting I would have never suspected the display port. Makes sense though. HDMI can be picky about cables as well but I guess it's a bit less common. Most ryzen apus get hooked up via hdmi, most of the 450 boards only have hdmi on them. I would have never looked at the cable first either. Well no matter what you do with the system I guess know your headaches taught a few people something new. lol
 
Do you think the displayport could have been causing the hard lockups? I think that is quite a stretch, but at least now when I update kernels I should not have the stuck-at-640x480 problem.
I think ubuntu 18.04.2 was so old that for some reason they did not require EDID information to the graphics card, which is why it natively worked at 1920x1200.
Jeez man, how the hell can a display port cause this much BS.

There is a special place in hell for non-certified displayport cables.

I don't think it's the cable, the drivers don't fully support the DP protocol.

EDIT: Oh...You just hacked up the cable...:wideyed:
 
I don't think it's the cable, the drivers don't fully support the DP protocol.

EDIT: Oh...You just hacked up the cable...:wideyed:

No worries. That cable was always mysteriously limited to 1920x1200 on my windows PCs for some reason. Never ran any of my 2560x1600 monitors. Good riddance.

I have not tested my dp certified cable yet, I'm using hdmi. Do you have more details about linux dp protocall support? You got me curious now... :D
 
Last edited:
No worries. That cable was always mysteriously limited to 1920x1200 on my windows PCs for some reason. Never ran any of my 2560x1600 monitors. Good riddance.

I have not tested my dp certified cable yet, I'm using hdmi. Do you have more details about linux dp prototypical support? You got me curious now... :D

Personally, I don't use AMD hardware on my own machines, so all I know is what I linked and it appears you aren't the only one with this issue. I'm sorry, that's the best I can tell you.

It used to be an issue under Nvidia hardware, but they recently rectified it.
 
And this is an APU, so...

I can say that Ubuntu 18.04.2 booted up and had no problem with the RX560 I have- from the USB stick, at 4k, with two more 1080p monitors attached, and then ran the 1080Ti at 1440p.
 
I haven't had any issues with 2200g builds... both hook up HDMI. My daughters goes through a pioneer receiver and my wife has her machine hooked up to her sharp TV. I don't think either of the boards I bought for those even have DP output on them. The Vega 8 on those APUs though is impressive for what it is. Zero issues with light gaming at 1080p. From what I understand the 2400 is only slightly better... still should be able to play a surprising number of games at around medium settings 60fps territory. IMO the vega APUs are your best option till you hit RX 570 at least. Anything less might as well use the APU.
 
I haven't had any issues with 2200g builds... both hook up HDMI. My daughters goes through a pioneer receiver and my wife has her machine hooked up to her sharp TV. I don't think either of the boards I bought for those even have DP output on them. The Vega 8 on those APUs though is impressive for what it is. Zero issues with light gaming at 1080p. From what I understand the 2400 is only slightly better... still should be able to play a surprising number of games at around medium settings 60fps territory. IMO the vega APUs are your best option till you hit RX 570 at least. Anything less might as well use the APU.

I purchased the 2400g because of the positive review from michael at phoronix. He mentioned the 2200g was unreliable in a few of his tests, so I avoided the 2200g.
So far, the hdmi cable has been quite the improvement. both ubuntu 19.04 and manjaro have not had any hard lockups. Both had amdgpu driver installed natively and I installed latest mesa on both.
I did notice that page scrolling is not as fluid as I would like (hiccups a bit when scrolling down a web page) with both manjaro 18 and ubuntu 19.04 and that there is horizontal line tearing in extreme tux racer on both distros. I'm going to do a clean install and see how it goes tomorrow.
I may give 18.04.2 a shot again since there were no scrolling or horizontal line tearing once amdgpu driver and mesa was installed. However, there were random lockups on 18.04.2, but again I have no idea if that was attributed to the shitty dp cable.

really wish microcenter had a 30 day return policy right about now. 15 is just not enough.

P.S.
Thanks guys for the constructive feedback. Really! ubuntu forums, level1techs and reddit have been a ghost town. stay [H] :D
 
I purchased the 2400g because of the positive review from michael at phoronix. He mentioned the 2200g was unreliable in a few of his tests, so I avoided the 2200g.
So far, the hdmi cable has been quite the improvement. both ubuntu 19.04 and manjaro have not had any hard lockups. Both had amdgpu driver installed natively and I installed latest mesa on both.
I did notice that page scrolling is not as fluid as I would like (hiccups a bit when scrolling down a web page) with both manjaro 18 and ubuntu 19.04 and that there is horizontal line tearing in extreme tux racer on both distros. I'm going to do a clean install and see how it goes tomorrow.
I may give 18.04.2 a shot again since there were no scrolling or horizontal line tearing once amdgpu driver and mesa was installed. However, there were random lockups on 18.04.2, but again I have no idea if that was attributed to the shitty dp cable.

really wish microcenter had a 30 day return policy right about now. 15 is just not enough.

P.S.
Thanks guys for the constructive feedback. Really! ubuntu forums, level1techs and reddit have been a ghost town. stay [H] :D

Wow!

I'm not taking a stab at anyone, but the number of so called Linux enthusiasts that have given me grief as a result of running Nvidia is actually quite shameful - I was of the opinion that the open source AMD drivers allowed for a perfect, simple, tear free Linux experience while apparently Nvidia was the devil and nothing but headaches and tearing.

I added the PPA, installed the Nvidia driver, set the refresh rate and enabled force composition pipeline and my experience using DP @ 4k is nothing short of faultless with absolutely no tearing whatsoever. I'm beginning to think the whole AMD thing is more about FOSS only than the actual experience.
 
Back
Top