AMD Radeon driver not loading [SOLVED]

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ajmarshall
Level 1
Level 1
Posts: 6
Joined: Tue Oct 20, 2020 5:57 pm

AMD Radeon driver not loading [SOLVED]

Post by ajmarshall »

I'm upgrading my system running Mint 20.2 by replacing an old Nvidia 650GT video card with a Radeon RX 6600 XT card.

With the Radeon card installed, Mint boots into low-res mode and gives me a message saying there are no video drivers installed. It also only detects one of my two attached displays. When I look in Driver Manager, it says no drivers are required.

I've seen several posts suggesting that AMD graphic drivers are installed with the Linux kernel, but those drivers do not appear to be loading. Do I need to remove the Nvidia drivers to prevent a conflict? Or is there something else I've missed?

I tried installing the Radeon drivers directly from AMD. I installed the installer package, but when I run amdgpu-install, I get the following:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-5.4.0-91-generic is already the newest version (5.4.0-91.102).
linux-headers-5.4.0-91-generic set to manually installed.
linux-modules-extra-5.4.0-91-generic is already the newest version (5.4.0-91.102).
linux-modules-extra-5.4.0-91-generic set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 amdgpu-dkms : Depends: libc-dev or
                        libc6-dev but it is not going to be installed
 rocm-hip-runtime : Depends: hip-rocclr
 rocm-opencl-runtime : Depends: rocm-opencl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Below is my system information with the Radeon card installed:

Code: Select all

System:    Kernel: 5.4.0-91-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 5.0.7 
           wm: muffin dm: LightDM Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Machine:   Type: Desktop System: Micro-Star product: MS-7B24 v: 1.0 serial: <filter> 
           Mobo: Micro-Star model: H370M BAZOOKA (MS-7B24) v: 1.0 serial: <filter> 
           UEFI: American Megatrends v: 1.00 date: 02/24/2018 
Battery:   Device-1: hidpp_battery_0 model: Logitech M570 serial: <filter> charge: 10% 
           status: Discharging 
           Device-2: hidpp_battery_1 model: Logitech K320/B550 serial: <filter> 
           charge: 70% (should be ignored) status: Discharging 
CPU:       Topology: 6-Core model: Intel Core i5-8400 bits: 64 type: MCP arch: Kaby Lake rev: A 
           L2 cache: 9216 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 33599 
           Speed: 3500 MHz min/max: 800/4000 MHz Core speeds (MHz): 1: 3500 2: 3500 3: 3500 
           4: 3500 5: 3500 6: 3500 
Graphics:  Device-1: AMD vendor: Tul driver: N/A bus ID: 03:00.0 chip ID: 1002:73ff 
           Display: x11 server: X.Org 1.20.11 driver: ati,fbdev unloaded: modesetting,radeon,vesa 
           alternate: nvidia resolution: 1024x768~76Hz 
           OpenGL: renderer: llvmpipe (LLVM 13.0.0 256 bits) v: 4.5 Mesa 21.3.1 - kisak-mesa PPA 
           direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Micro-Star MSI driver: snd_hda_intel 
           v: kernel bus ID: 00:1f.3 chip ID: 8086:a348 
           Device-2: AMD driver: snd_hda_intel v: kernel bus ID: 03:00.1 chip ID: 1002:ab28 
           Sound Server: ALSA v: k5.4.0-91-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI 
           driver: r8169 v: kernel port: 3000 bus ID: 05:00.0 chip ID: 10ec:8168 
           IF: enp5s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
           IF-ID-1: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter> 
           IF-ID-2: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter> 
Drives:    Local Storage: total: 931.52 GiB used: 276.33 GiB (29.7%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: WDS500G2X0C-00L350 size: 465.76 GiB 
           speed: 31.6 Gb/s lanes: 4 serial: <filter> 
           ID-2: /dev/sda vendor: Western Digital model: WDS500G2B0A-00SM50 size: 465.76 GiB 
           speed: 6.0 Gb/s serial: <filter> 
Partition: ID-1: / size: 456.96 GiB used: 276.32 GiB (60.5%) fs: ext4 dev: /dev/nvme0n1p2 
Sensors:   System Temperatures: cpu: 41.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
           1: deb https: //dl.winehq.org/wine-builds/ubuntu/ focal main
           No active apt repos in: /etc/apt/sources.list.d/amdgpu-proprietary.list 
           Active apt repos in: /etc/apt/sources.list.d/amdgpu.list 
           1: deb https: //repo.radeon.com/amdgpu/21.40.1/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/kisak-kisak-mesa-focal.list 
           1: deb http: //ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http: //packages.linuxmint.com uma main upstream import backport #id:linuxmint_main
           2: deb http: //archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http: //archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http: //archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/rocm.list 
           1: deb [arch=amd64] https: //repo.radeon.com/rocm/apt/4.5.1 ubuntu main
           Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list 
           1: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https: //updates.signal.org/desktop/apt xenial main
           Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
           1: deb [arch=amd64] https: //repo.skype.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/spotify.list 
           1: deb http: //repository.spotify.com stable non-free
           Active apt repos in: /etc/apt/sources.list.d/stebbins-handbrake-releases-focal.list 
           1: deb http: //ppa.launchpad.net/stebbins/handbrake-releases/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/teams.list 
           1: deb [arch=amd64] https: //packages.microsoft.com/repos/ms-teams stable main
Info:      Processes: 231 Uptime: N/A Memory: 15.58 GiB used: 818.1 MiB (5.1%) Init: systemd 
           v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Client: Unknown python3.8 client 
           inxi: 3.0.38 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31907
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: AMD Radeon driver issues

Post by SMG »

ajmarshall wrote: Mon Dec 06, 2021 5:57 pmI've seen several posts suggesting that AMD graphic drivers are installed with the Linux kernel, but those drivers do not appear to be loading. Do I need to remove the Nvidia drivers to prevent a conflict? Or is there something else I've missed?
If you are not using the Nvidia drivers, then, yes, they should be removed. If you created a custom xorg.conf file, that should also be removed.

To remove the nvidia driver files: sudo apt-get purge *nvidia*
To check for a custom xorg file: cat /etc/X11/xorg.conf
To remove a custom xorg file if it exists: sudo rm /etc/X11/xorg.conf

You will need to reboot after those are run to completely remove the Nvidia files, but since I recommend you upgrade your kernel and you will have to reboot after doing that anyhow, you can wait until you install the newer kernel to reboot.

You are correct the AMD drivers are in the kernel, but you have to keep in mind when the kernel version you are using was released in comparison to when your AMD GPU was released. That means you need to be using a newer kernel in order to get the correct drivers. The 5.11 kernel worked for the 6600XT in this topic Mint 20.2 New GPU in software rendering mode.

Graphics:
Device-1: AMD vendor: Tul driver: N/A bus ID: 03:00.0 chip ID: 1002:73ff
Display: x11 server: X.Org 1.20.11 driver: ati,fbdev unloaded: modesetting,radeon,vesa
alternate: nvidia resolution: 1024x768~76Hz
OpenGL: renderer: llvmpipe (LLVM 13.0.0 256 bits) v: 4.5 Mesa 21.3.1 - kisak-mesa PPA
direct render: Yes
ajmarshall wrote: Mon Dec 06, 2021 5:57 pmI tried installing the Radeon drivers directly from AMD. I installed the installer package, but when I run amdgpu-install, I get the following:
That looks like the install may not have happened, so just upgrade the kernel and see if that helps.

Instructions for upgrading to the 5.11 kernel:
  • Open Update Manager.
  • Select View > Linux Kernels and click Continue.
  • Make sure 5.11 is selected on the left panel and then click the top-most option on the right panel. An "Install" button will appear.
  • Install the kernel and then reboot for it to become active.
Let us know if that works. If not, there may be newer firmware needed for your GPU and we can let you know how to install it.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
ajmarshall
Level 1
Level 1
Posts: 6
Joined: Tue Oct 20, 2020 5:57 pm

Re: AMD Radeon driver not loading

Post by ajmarshall »

I updated the kernel (version 5.13), which seems to have worked. I still get the same error when running amdgpu-install to update to the latest driver version, but at least I have two monitors at full res again.

Thanks so much.
User avatar
SMG
Level 25
Level 25
Posts: 31907
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: AMD Radeon driver not loading

Post by SMG »

ajmarshall wrote: Mon Dec 06, 2021 7:22 pm I updated the kernel (version 5.13), which seems to have worked. I still get the same error when running amdgpu-install to update to the latest driver version, but at least I have two monitors at full res again.
I do not know if the driver version you pulled from the website will work with the 5.13 kernel. I think it may only work up through the 5.11 (unless they have put out an update since I last checked).

If your issue is now resolved, please go to your first post in this topic, click the pencil icon, and add [SOLVED] to the title so others know you are no longer seeking help on this issue.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
ajmarshall
Level 1
Level 1
Posts: 6
Joined: Tue Oct 20, 2020 5:57 pm

Re: AMD Radeon driver not loading

Post by ajmarshall »

I rolled back to the 5.11 kernel and got the same result. At this point I'm not sure if it is worth trying to get the latest official AMD drivers working or not. I'm having some issues on a couple of games, but everything else is working properly. I've seen a few posts suggesting that open source OpenGL rendering actually works better than official AMD drivers anyway.
User avatar
SMG
Level 25
Level 25
Posts: 31907
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: AMD Radeon driver not loading

Post by SMG »

ajmarshall wrote: Wed Dec 08, 2021 12:54 am At this point I'm not sure if it is worth trying to get the latest official AMD drivers working or not. I'm having some issues on a couple of games, but everything else is working properly. I've seen a few posts suggesting that open source OpenGL rendering actually works better than official AMD drivers anyway.
AMD supplies the drivers to the kernel developers. Thus, the drivers from the kernel are "official AMD drivers". Depending upon the version you downloaded from the AMD website, the amdgpu driver in the kernel may be newer than what you downloaded from the website.

The drivers from the website can include some OpenCL and vulcan components that are not available in the open-sourced kernel driver, so if you need those specific components then you would want to get the drivers from the website working. Otherwise just run the newest available kernel to get the latest drivers.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
ajmarshall
Level 1
Level 1
Posts: 6
Joined: Tue Oct 20, 2020 5:57 pm

Re: AMD Radeon driver not loading [SOLVED]

Post by ajmarshall »

Could you help me understand how the OpenCL and vulcan components work together with the driver? Are these installed with the amdgpu-install script provided from the AMD website?

Based on the error message I receive when I run amdgpu-install, I'm missing three packages: libc6-dev, hip-rocclr, and rocm-opencl. Based on my initial searching, I found libc6-dev and rocm-opencl in Synaptic Package Manager, although they both were missing dependencies. Do I need to just trace the dependencies back and ensure I have valid repositories for all packages listed as dependencies? (I'm still rather new to how packages work in Linux.)

I couldn't find where to get hip-rocclr, even with a web search.

This is getting away from my original post topic, so let me know if I should break this into its own thread.
User avatar
SMG
Level 25
Level 25
Posts: 31907
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: AMD Radeon driver not loading [SOLVED]

Post by SMG »

ajmarshall wrote: Wed Dec 08, 2021 6:16 pmThis is getting away from my original post topic, so let me know if I should break this into its own thread.
Yes, I would suggest creating a new topic on this issue if reading the AMD install documentation does not help you. There are specific parameters one uses to install those components when using the AMD website driver. Scroll down to the Scenarios section on the Using the amdgpu-install Script instructions to see the OpenCL options one must add when running the install script. Those options are appended to the end because they are not part of the standard install. An example command to install the ROCr OpenCL:

Code: Select all

amdgpu-install --opencl=rocr
However, AMD has slightly changed their install instructions with the 21.40 driver, so it is possible something is working slightly differently than it has in the past. I do not yet have feedback on that to know for sure what exactly has changed.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
ajmarshall
Level 1
Level 1
Posts: 6
Joined: Tue Oct 20, 2020 5:57 pm

Re: AMD Radeon driver not loading [SOLVED]

Post by ajmarshall »

I'm getting the same errors no matter which parameters I use on the script, so I'll post a new topic. Thanks for your assistance.
Locked

Return to “Graphics Cards & Monitors”