Results 1 to 4 of 4

Thread: No graphics after uninstalling amdgpu-pro

  1. #1

    Question No graphics after uninstalling amdgpu-pro

    Hi,

    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:
    Code:
    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:
    Code:
    rpm -qa --qf "%{NAME}\n" | grep -i -e amdgpu -e mesa -e drm -e 'libe?gl' -e x11  | sort | tr '\n' ' '
    
    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):
    HTML Code:
    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"
    /etc/X11/xorg.conf.d/10-amdgpu.conf:EndSection

    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,

    Timo

  2. #2
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    2,263

    Default Re: No graphics after uninstalling amdgpu-pro

    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
    Code:
    susepaste /var/log/Xorg.0.log
    It may produce a failure message, but when you goto https://paste.opensuse.org/lists you should find it tops the list and can paste its URL here for our examination.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 15.1,TW,15.2 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&15.1 on 965P/Radeon
    Tertiary: TW,15.2,15.1,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  3. #3

    Default Re: No graphics after uninstalling amdgpu-pro

    You need uninstallation script that matches installation one: https://amdgpu-install.readthedocs.i...graphics-stack

    Code:
    # 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: https://forums.opensuse.org/showthre...(AMD-hardware)

  4. #4

    Thumbs up Re: No graphics after uninstalling amdgpu-pro

    Quote Originally Posted by mrmazda View Post
    First thing I'd try is removing 10-amdgpu.conf and 50-device.conf and rebooting.
    That didn't help unforturnately.

    Quote Originally Posted by mrmazda View Post
    Try from a login after Ctrl-Alt-F3
    Code:
    susepaste /var/log/Xorg.0.log
    It may produce a failure message
    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).

    Quote Originally Posted by Svyatko View Post
    You need uninstallation script that matches installation one: https://amdgpu-install.readthedocs.i...graphics-stack

    Code:
    # Use this for All-Open components
    $ amdgpu-uninstall
    
    # Use this for Pro components
    $ amdgpu-pro-uninstall
    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.

    Quote Originally Posted by Svyatko View Post
    Check for remains of AMDGPU-Pro drivers.
    Delete them if found.
    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.

    Quote Originally Posted by Svyatko View Post
    Then install Mesa 3D packages.
    Well, that kind of did the trick. 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.

    Quote Originally Posted by Svyatko View Post
    Right now AMD don't support Leap 15.2.
    I'm aware, which is one of the reasons I wanted to remove it before attempting to upgrade.

    Quote Originally Posted by Svyatko View Post
    You will need AMD ROCm to get OpenCL support.
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •