No graphics after uninstalling amdgpu-pro


I have a AMD Radeon RX570 graphics card in a system currently running Leap 15.1. I use the amdgpu-pro driver for its OpenCL support. In preparation for a system upgrade to Leap 15.2, I wanted to uninstall the driver using the included uninstallation script amdgpu-pro-uninstall. But after uninstalling the driver and rebooting the system, the login screen won’t show anymore. If I login on the consol xrandr lists no display at all while dmesg shows the amdgpu driver loading fine.

I can see the following errors in the logs:

sddm-greeter[1907]: QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
sddm-greeter[1907]: Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile  QSurfaceFormat::OpenGLContextProfile(NoProfile))

I already checked whether I have the required packages installed and as far as I can see, that should be the case. Here are the related packages installed:

rpm -qa --qf "%{NAME}
" | grep -i -e amdgpu -e mesa -e drm -e 'libe?gl' -e x11  | sort | tr '
' ' '

dbus-1-x11 ghostscript-x11 libdrm2 libdrm_amdgpu1 libdrm_intel1 libdrm_nouveau2 libdrm_radeon1 libqt4-x11 libQt5X11Extras5 libva-drm2 libva-x11-2 libvigraimpex11 libX11-6 libX11-data libX11-xcb1 libxkbcommon-x11-0 Mesa Mesa-dri Mesa-gallium Mesa-libEGL1 Mesa-libGL1 Mesa-libglapi0 Mesa-libOpenCL Mesa-libva patterns-base-x11 patterns-base-x11_enhanced patterns-base-x11_opt patterns-yast-x11_yast perl-X11-Protocol pulseaudio-module-x11 x11perf x11-tools xf86-video-amdgpu xorg-x11 xorg-x11-driver-input xorg-x11-driver-video xorg-x11-essentials xorg-x11-fonts xorg-x11-fonts-core xorg-x11-libs xorg-x11-libX11-ccache xorg-x11-server xorg-x11-server-extra xorg-x11-server-wayland xorg-x11-Xvnc xorg-x11-Xvnc-module yast2-x11

I also didn’t change the X11 configuration (at least on purpose):

grep -v '^#' /etc/X11/xorg.conf.d/10-amdgpu.conf /etc/X11/xorg.conf.d/50-device.conf

/etc/X11/xorg.conf.d/10-amdgpu.conf:Section "OutputClass"
/etc/X11/xorg.conf.d/10-amdgpu.conf:    Identifier "AMDgpu"
/etc/X11/xorg.conf.d/10-amdgpu.conf:    MatchDriver "amdgpu"
/etc/X11/xorg.conf.d/10-amdgpu.conf:    Driver "amdgpu"

What surprises me is that this is not the first time I uninstalled amdgpu-pro. And when I did before, I had no issues using the graphics card with the default kernel driver. One thing that strikes me, though, is that I think (if I recall correctly) when uninstalling amdgpu-pro there were other packages around MESA reinstalled in order to meet dependencies. That does not happen when I uninstall the driver now. I might be mistaken in my recollection, though.

Am I missing something? What else could prevent the default amdgpu driver from being usable?

Thanks and regards,


First thing I’d try is removing 10-amdgpu.conf and 50-device.conf and rebooting. These files are normally not necessary for any FOSS DDX to function. Try from a login after Ctrl-Alt-F3

susepaste /var/log/Xorg.0.log

It may produce a failure message, but when you goto you should find it tops the list and can paste its URL here for our examination.

You need uninstallation script that matches installation one:

# Use this for All-Open components
$ amdgpu-uninstall

# Use this for Pro components
$ amdgpu-pro-uninstall

Check for remains of AMDGPU-Pro drivers.
Delete them if found.
Then install Mesa 3D packages.

Right now AMD don’t support Leap 15.2.
You will need AMD ROCm to get OpenCL support.
Her is instruction to install it:

That didn’t help unforturnately.

I checked the log and found nothing noteworthy (at least to my untrained eye). I’d have posted it, but in the meantime I solved the issue, without really understanding what went wrong (see below).

Actually, on my system I only have amdgpu-pro-uninstall (at least in my $PATH), so I assume you only end up getting the uninstallation script that matches what you installed in the first place.

Not really knowing what and where to look for, I uninstalled dkms as well as the kernel package and reinstalled the kernel package to make sure no kernel modules are left from the amdgpu-pro installation. That unfortunately didn’t help either.

Well, that kind of did the trick.:wink: I actually reinstalled all the mesa/xf86-video/libdrm packages without installing new/additional ones - and the system boots up and runs fine again. I just don’t know what the problem actually was.

I’m aware, which is one of the reasons I wanted to remove it before attempting to upgrade.

Unfortunately, at this point ROCm doesn’t play nice yet with my primary OpenCL application. It may produce incorrect results or even crash - problems AMD has acknowledged, but wasn’t able to fix yet. So, I will have to stick to amdgpu-pro for the time being - as much as I would love to replace it with an open/free OpenCL implementation.