AMD-GPU driver 22.10 installation

Forum rules
Before you post please read this
Post Reply
dragonninja
Level 1
Level 1
Posts: 43
Joined: Wed Jul 15, 2020 11:25 am

AMD-GPU driver 22.10 installation

Post by dragonninja »

I own a pc with a "AMD Radeon RX 6700M" running on mint 21.

Blender requires some 22.10 amd driver or more to run with gpu.

how to install this driver?

thank you
Last edited by SMG on Sun Sep 18, 2022 1:08 pm, edited 1 time in total.
Reason: Moved from Istallation & Boot to Graphics Cards & Monitors because the question is about installing graphic drivers and not installing Linux Mint.
dragonninja
Level 1
Level 1
Posts: 43
Joined: Wed Jul 15, 2020 11:25 am

Re: AMD-GPU driver 22.10 installation

Post by dragonninja »

hello i'm reupping this topic because i need more informations

what is the good way to install lastest amd-gpu drivers?

thank you
User avatar
spamegg
Level 9
Level 9
Posts: 2776
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: AMD-GPU driver 22.10 installation

Post by spamegg »

Hello dragonninja

Normally you should NOT install those drivers on Linux. A lot of people break their systems by installing some third-party drivers. I made the mistake of installing them and got black screen, no boot. Usually they do not work very well, and the kernel drivers work much better.

If your system is working fine, then there is no need to do anything.

Are you having issues launching Blender? It's working fine on my PC (I also have AMD) without any drivers. Can you post any error messages?

Please share your system info by entering the command inxi -Fxxxmprz into a Terminal and posting its output here.
Image
User avatar
MiZoG
Level 5
Level 5
Posts: 570
Joined: Fri Jan 26, 2018 8:30 pm

Re: AMD-GPU driver 22.10 installation

Post by MiZoG »

Dragonninja
The answer to your question depends on how badly you need to run latest Blender on Linux or, if you like, how badly you want to stay on Mint for now.
If you are student, coder, professional, developer, whatever, you need the best environment for running new versions of Blender and this might not be an Ubuntu Jammy-based distro since you are on amd hardware. If you had an nvidia card, even a relatively older one, you would be alright on Mint 21.
Now in case you're toying with Blender and you like keeping Mint as your main daily driver, you could settle with the older distro package that does not rely on AMD HID support for rendering.
There's a middle ground: it is Kisak's ppa but best with Focal (Mint 20.3). You have to be cautious again but Kisak's is considerably more stable than Oibaf's. PPA offers Jammy packages as well but support is described as "preliminary".
Edit: dismiss that crap about ppa coz HID is implemented currently only on the proprietary RocM branch of AMD drivers. And it seems even those are still quite unreliable on Linux.
Either way, being serious or not about Blender, you can try dual booting. You could have a stable environment and another for experimenting.
Last edited by MiZoG on Sat Sep 24, 2022 5:27 pm, edited 1 time in total.
User avatar
SMG
Level 23
Level 23
Posts: 18698
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: AMD-GPU driver 22.10 installation

Post by SMG »

dragonninja wrote:
Thu Sep 15, 2022 12:42 pm
what is the good way to install lastest amd-gpu drivers?
Install a newer kernel version.

Please supply more information. You have not indicated what version of Blender you want to use nor how you installed it.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
dragonninja
Level 1
Level 1
Posts: 43
Joined: Wed Jul 15, 2020 11:25 am

Re: AMD-GPU driver 22.10 installation

Post by dragonninja »

i run the latest blender version (currently 3.3), i download my blender on the official website and then i unzip the folder and run the program.

blender works fine with CPU but i wish to use the GPU for :
Edit > Preferences > System > Cycle Render Device > HIP
HIP requires "AMD GPU with Vega or RDNA architecture and AMD driver version 22.10 or newer"

how about these .deb files ? :
https://www.amd.com/en/support/kb/relea ... ux-22-10-2

i prefer not to over-modify my linux-mint installation because i have installed a lot of tools that MUST keep working.
(apache, php, node, softwares...)

a dual boot could be a solution, what distribution would support this driver?

here is my inxi -Fxxxmprz :

Code: Select all

System:
  Kernel: 5.15.0-47-generic x86_64 bits: 64 compiler: gcc v: 11.2.0
    Desktop: MATE 1.26.0 info: mate-panel wm: marco 1.26.0 vt: 7
    dm: LightDM 1.30.0 Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: Micro-Star product: Delta 15 A5EFK v: REV:1.0
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Micro-Star model: MS-15CK v: REV:1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: E15CKAMS.103 date: 08/04/2021
Battery:
  ID-1: BAT1 charge: 66.4 Wh (82.5%) condition: 80.5/80.3 Wh (100.3%)
    volts: 17.0 min: 15.2 model: MSI Corp. MS-15CK type: Li-ion serial: N/A
    status: Charging
Memory:
  RAM: total: 15.02 GiB used: 1.9 GiB (12.7%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: 8-core model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64
    type: MT MCP smt: enabled arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB
    L3: 16 MiB
  Speed (MHz): avg: 1323 high: 1513 min/max: 400/4463 boost: enabled cores:
    1: 1297 2: 1297 3: 1297 4: 1297 5: 1297 6: 1297 7: 1297 8: 1297 9: 1295
    10: 1297 11: 1297 12: 1296 13: 1513 14: 1513 15: 1297 16: 1296
    bogomips: 102206
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT / 6800M]
    vendor: Micro-Star MSI driver: amdgpu v: kernel pcie: speed: 16 GT/s
    lanes: 16 ports: active: none empty: DP-1,HDMI-A-1 bus-ID: 03:00.0
    chip-ID: 1002:73df class-ID: 0380
  Device-2: AMD Cezanne vendor: Micro-Star MSI driver: amdgpu v: kernel
    pcie: speed: 8 GT/s lanes: 16 ports: active: eDP-1 empty: none
    bus-ID: 06:00.0 chip-ID: 1002:1638 class-ID: 0300
  Device-3: Acer HD Webcam type: USB driver: uvcvideo bus-ID: 1-3:2
    chip-ID: 5986:211c class-ID: 0e02
  Display: x11 server: X.Org v: 1.21.1.3 compositor: marco v: 1.26.0
    driver: X: loaded: amdgpu,ati unloaded: fbdev,modesetting,radeon,vesa
    gpu: amdgpu display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
    s-diag: 582mm (22.9")
  Monitor-1: eDP res: 1920x1080 hz: 240 dpi: 142
    size: 344x194mm (13.5x7.6") diag: 395mm (15.5")
  OpenGL: renderer: AMD RENOIR (LLVM 13.0.1 DRM 3.42 5.15.0-47-generic)
    v: 4.6 Mesa 22.0.5 direct render: Yes
Audio:
  Device-1: AMD Navi 21 HDMI Audio [Radeon RX 6800/6800 XT / 6900 XT]
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 03:00.1 chip-ID: 1002:ab28 class-ID: 0403
  Device-2: AMD Renoir Radeon High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 06:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-3: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
    vendor: Micro-Star MSI driver: snd_rn_pci_acp3x v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 06:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-4: AMD Family 17h HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 06:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.0-47-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: iwlwifi v: kernel
    pcie: speed: 5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:2725
    class-ID: 0280
  IF: wlp4s0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX210 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 3-3:3 chip-ID: 8087:0032 class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 1 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 476.94 GiB used: 34.36 GiB (7.2%)
  ID-1: /dev/nvme0n1 vendor: Kingston model: OM8PCP3512F-AI1
    size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: ECFK52.8 temp: 31.9 C scheme: GPT
Partition:
  ID-1: / size: 465.29 GiB used: 32.79 GiB (7.0%) fs: ext4 dev: /dev/dm-1
    mapped: vgmint-root
  ID-2: /boot size: 1.61 GiB used: 1.56 GiB (97.3%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 511 MiB used: 5.2 MiB (1.0%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 980 MiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/dm-2 mapped: vgmint-swap_1
Sensors:
  System Temperatures: cpu: 42.0 C mobo: N/A
  Fan Speeds (RPM): N/A
  GPU: device: amdgpu temp: 38.0 C mem: 38.0 C fan: 0 watts: 7.00
    device: amdgpu temp: 38.0 C
Repos:
  Packages: apt: 2985
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://packages.linuxmint.com vanessa main upstream import backport
    2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 438 Uptime: 3m wakeups: 332 Init: systemd v: 249 runlevel: 5
  Compilers: gcc: 11.2.0 alt: 11 Shell: Bash v: 5.1.16
  running-in: mate-terminal inxi: 3.3.13
thank you
User avatar
SMG
Level 23
Level 23
Posts: 18698
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: AMD-GPU driver 22.10 installation

Post by SMG »

dragonninja wrote:
Sun Sep 18, 2022 6:33 am
how about these .deb files ? :
https://www.amd.com/en/support/kb/relea ... ux-22-10-2
Those are not for the version of Linux Mint you are running. They are for older versions of Ubuntu.
dragonninja wrote:
Sun Sep 18, 2022 6:33 am
blender works fine with CPU but i wish to use the GPU for :
Let's step back and refine that statement.

Your computer has dual graphics--it had two GPUs. One is the graphics onboard with the CPU (an APU in AMD lingo) which is Device-2 in the below. The other is the separate dGPU device which is Device-1 (your RX 6700 XT).

Graphics:
Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT / 6800M]
vendor: Micro-Star MSI driver: amdgpu v: kernel pcie: speed: 16 GT/s
lanes: 16 ports: active: none empty: DP-1,HDMI-A-1 bus-ID: 03:00.0
chip-ID: 1002:73df class-ID: 0380
Device-2: AMD Cezanne vendor: Micro-Star MSI driver: amdgpu v: kernel
pcie: speed: 8 GT/s lanes: 16 ports: active: eDP-1 empty: none
bus-ID: 06:00.0 chip-ID: 1002:1638 class-ID: 0300
Display: x11 server: X.Org v: 1.21.1.3 compositor: marco v: 1.26.0
driver: X: loaded: amdgpu,ati unloaded: fbdev,modesetting,radeon,vesa
gpu: amdgpu display-ID: :0.0 screens: 1
OpenGL: renderer: AMD RENOIR (LLVM 13.0.1 DRM 3.42 5.15.0-47-generic)
v: 4.6 Mesa 22.0.5 direct render: Yes

The specifics of how your laptop is wired will depend on what options are available to you with regards to rendering graphics. Dual AMD-AMD graphics were less common in the past and the default install of Linux Mint and similar operating systems was designed to easily switch GPUs when the combo was Intel-Nvidia. The setup also usually makes the primary renderer be the onboard APU (AMD RENOIR) which is the situation in your case. Changing the graphics drivers does not change which GPU is rendering. It is likely Blender is picking up the fact Device-2 is the primary renderer.

Usually, the renderers for both GPUs load at boot time which means you should be able to switch to have the RX 6700 XT be the primary renderer presuming Micro-Star wired the GPUs so that is possible. In your case, both GPUs will still be needed because it looks like only the onboard graphics can paint the laptop screen (regardless of which GPU renders).

Normally, to switch from using the onboard as the primary renderer to using the dGPU to run as the primary renderer for everything one would run the following in a terminal

Code: Select all

DRI_PRIME=1
There is more explanation about switching in How to switch to the dedicated GPU on a laptop with Intel-AMD switchable graphics or AMD-AMD switchable graphics
dragonninja wrote:
Sun Sep 18, 2022 6:33 am
Edit > Preferences > System > Cycle Render Device > HIP
HIP requires "AMD GPU with Vega or RDNA architecture and AMD driver version 22.10 or newer"
Try switching the renderer to the dGPU with the command I listed and see if that helps. Blender 3.3: Linux – AMD indicates Blender is using OpenGL which your system already has. That link indicates OpenGL version 3.3 is needed. You can run

Code: Select all

glxinfo -B | grep -i "OpenGL"
However, different processes in Blender may have different requirements. I saw something which mentioned OpenCL (which must be installed separately), but Blender has been making changes related to AMD and I am not sure what is the current status for Blender 3.3 on Linux. It just came out earlier this month.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
SMG
Level 23
Level 23
Posts: 18698
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: AMD-GPU driver 22.10 installation

Post by SMG »

I just found the Blender 3.3: GPU Rendering information. I am not sure how the version number listed there relates to the actual amdgpu version number.

Run the below and see what it shows.

Code: Select all

$ apt show xserver-xorg-video-amdgpu | grep -i "Version" 
(I do not have AMD graphics, but I think I typed that correctly. If you get errors, just use the part to the left of the |.)
Image
A woman typing on a laptop with LM20.3 Cinnamon.
dragonninja
Level 1
Level 1
Posts: 43
Joined: Wed Jul 15, 2020 11:25 am

Re: AMD-GPU driver 22.10 installation

Post by dragonninja »

glxinfo -B | grep -i "OpenGL" returns :

Code: Select all

OpenGL vendor string: AMD
OpenGL renderer string: AMD RENOIR (LLVM 13.0.1, DRM 3.42, 5.15.0-47-generic)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.0.5
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.0.5
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.0.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
apt show xserver-xorg-video-amdgpu | grep -i "Version" returns :

Code: Select all

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Version: 22.0.0-1ubuntu0.1
how to use the DRI_PRIME=1 command? directly in the terminal?

thank you
User avatar
SMG
Level 23
Level 23
Posts: 18698
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: AMD-GPU driver 22.10 installation

Post by SMG »

dragonninja wrote:
Tue Sep 20, 2022 10:26 am
how to use the DRI_PRIME=1 command? directly in the terminal?
Yes. That will last for your current session (until you log out or reboot).
dragonninja wrote:
Tue Sep 20, 2022 10:26 am
apt show xserver-xorg-video-amdgpu | grep -i "Version" returns :

Code: Select all

Version: 22.0.0-1ubuntu0.1
As I already mentioned, I'm not sure what requirements Blender really needs from AMD. This output seems to indicate you are using version 22.0. If 22.1 is needed, you could install a newer kernel and see if that has a newer AMD version. You can install the latest 5.17-oem kernel with

Code: Select all

sudo apt-get install linux-oem-22.04
and reboot and see if that has a newer version if just enabling DRI_PRIME=1 does not work.
dragonninja wrote:
Tue Sep 20, 2022 10:26 am
glxinfo -B | grep -i "OpenGL" returns :

Code: Select all

OpenGL vendor string: AMD
OpenGL renderer string: AMD RENOIR (LLVM 13.0.1, DRM 3.42, 5.15.0-47-generic)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.0.5
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.0.5
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.0.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
I'm not sure what Blender needs but the next-to-last line is showing OpenGL ES 3.2 which is the latest available. Everything else is at 4.6 which I believe is also the latest.

OpenCL is different technology and usually needs to be installed separately. There are open-source options which I know one could use in the past with AMD. There is also the closed-source AMD option (which is only available from their website driver). I have not been able to find exactly what Blender needs and, unfortunately, others trying to install the AMD driver from their website have been running into issues.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
dragonninja
Level 1
Level 1
Posts: 43
Joined: Wed Jul 15, 2020 11:25 am

Re: AMD-GPU driver 22.10 installation

Post by dragonninja »

ok thanks for the informations,

also i take note of the other topic ( viewtopic.php?f=59&t=382259 )

can we have a clear recap about the situation?

is there any stable linux distribution can support the amd propriatary driver?
is it safe to upgrade the kernel of my linux-mint? will it make it support the driver?
will linux-mint be able to support this driver before the next major version?

thank you
deepakdeshp
Level 20
Level 20
Posts: 11254
Joined: Sun Aug 09, 2015 10:00 am

Re: AMD-GPU driver 22.10 installation

Post by deepakdeshp »

dragonninja wrote:
Thu Sep 22, 2022 5:39 am
ok

can we have a clear recap about the situation?

is there any stable linux distribution can support the amd propriatary driver?
is it safe to upgrade the kernel of my linux-mint? will it make it support the driver?
will linux-mint be able to support this driver before the next major version?

thank you
These questions can't be answered afaik. You can install other kernels and you can boot to any of the installed kernels by choosing advanced options in grub.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 20.3 Cinnamon 64 bit with AMD A6 / 8GB
Mint 20.3 Cinnamon AMD Ryzen3500U/8gb
User avatar
SMG
Level 23
Level 23
Posts: 18698
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: AMD-GPU driver 22.10 installation

Post by SMG »

dragonninja wrote:
Thu Sep 22, 2022 5:39 am
is there any stable linux distribution can support the amd propriatary driver?
Perhaps this is a translation issue so I will try to make this clear. The proprietary driver is closed source code. Only AMD has access to its code. No one else has access. This issue does not have anything to do with "stable linux distributions".
dragonninja wrote:
Thu Sep 22, 2022 5:39 am
is it safe to upgrade the kernel of my linux-mint? will it make it support the driver?
Yes, it is safe to upgrade your Linux Mint kernel to another kernel that is supported by Canonical (Ubuntu). The person in the other topic said the newer kernel did not give a newer driver version so it sounds like that suggestion will not work so you can keep your current kernel.
dragonninja wrote:
Thu Sep 22, 2022 5:39 am
will linux-mint be able to support this driver before the next major version?
Linux Mint has nothing to do with this driver. It is not Linux Mint's responsibility to support with this driver.

In the other topic I listed two bug reports: Those bugs are the responsibility of AMD. There is nothing that Linux Mint or Canonical/Ubuntu can do to fix the code so it works properly. It is proprietary code. You will have to wait until AMD fixes the code.

Or you can read through the bug reports and see if one of the workarounds listed works for you. I did not see a workaround that everyone said consistently worked for them so I cannot make a recommendation of what to try.

Many people have run into this problem. I suggest you contact Blender and let them know you need a different option. The Blender developers are the ones who designed the code to only work this one specific driver. This has nothing to do with Linux Mint.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
dragonninja
Level 1
Level 1
Posts: 43
Joined: Wed Jul 15, 2020 11:25 am

Re: AMD-GPU driver 22.10 installation

Post by dragonninja »

ok thank you so we wait

at some point, the guys from blender managed to run the amd thing.
is it possible to determine the versions of everything they used? (kernel, os, driver etcetera...)

and what about arch-linux?, will it gives opportunities for managing drivers?

here is my situation : i want a solution for running blender with gpu,
i will make a dual boot so,
i will accept non-stable or outdated environments,
only for the blender rendering job.

is it realistic to make such an installation?
User avatar
SMG
Level 23
Level 23
Posts: 18698
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: AMD-GPU driver 22.10 installation

Post by SMG »

dragonninja wrote:
Sat Sep 24, 2022 12:56 pm
at some point, the guys from blender managed to run the amd thing.
is it possible to determine the versions of everything they used? (kernel, os, driver etcetera...)
Blender software is not affiliated with Linux Mint so I am confused as to why you are asking here what the Blender folks did.
dragonninja wrote:
Sat Sep 24, 2022 12:56 pm
and what about arch-linux?, will it gives opportunities for managing drivers?

here is my situation : i want a solution for running blender with gpu,
i will make a dual boot so,
i will accept non-stable or outdated environments,
only for the blender rendering job.

is it realistic to make such an installation?
I suggest you search Blender Support for answers to your questions.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Post Reply

Return to “Graphics Cards & Monitors”