AMD GPU 驱动程序安装问题!

AMD GPU 驱动程序安装问题!

Ubuntu MATE 20.04.3 LTS 6600XT GPU

用新的 gpu 替换旧的 gpu 并遇到真正的障碍。

下载了适用于 ubuntu 20.04.3 的正确 21.40.2 文件这里

遵循指示这里

甚至获得了专业套餐并遵循提取方法

运行更新、升级发行版、重启,然后....什么都没有。将 hdmi 插入 gpu 不会输出视频。

我检查了软件和更新,并检查了专有驱动程序,当我检查其他驱动程序时,没有显示任何内容。

跑步

  lspci -k | grep -A 2 -i "VGA"  

表明系统识别出我已安装正确的 GPU

跑步

  sudo ubuntu-drivers devices 

不返回任何内容

运行 amdgpu-install 和 amdgpu-pro-install 输出:

  user@user-LinuxDesktop:~/Desktop/amdgpu-pro-20.20-1098277-ubuntu-20.04$ ./amdgpu-install -y
  [sudo] password for user: 
  deb [ trusted=yes ] file:/var/opt/amdgpu-pro-local/ ./
  Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
  Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease
  Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
  Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
  Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
  Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
  Hit:4 http://us.archive.ubuntu.com/ubuntu focal InRelease
  Hit:5 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease              
  Hit:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease            
  Hit:7 http://dl.google.com/linux/chrome/deb stable InRelease                   
  Hit:8 https://repo.radeon.com/amdgpu/21.40.2/ubuntu focal InRelease            
  Hit:9 https://repo.radeon.com/rocm/apt/4.5.2 ubuntu InRelease                  
  Hit:10 http://security.ubuntu.com/ubuntu focal-security InRelease              
  Hit:11 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu focal InRelease
  Reading package lists... Done                 
  The amdgpu driver is already installed or was not uninstalled correctly.
  Please fully uninstall the driver before proceeding with installation
  You can try running the amdgpu-uninstall or amdgpu-pro-uninstall script 
  present in /usr/bin to clean up the previous installation
  user@user-LinuxDesktop:~/Desktop/amdgpu-pro-20.20-1098277-ubuntu-20.04$ ./amdgpu-pro-install -y
  deb [ trusted=yes ] file:/var/opt/amdgpu-pro-local/ ./
  Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
  Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease       
  Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B] 
  Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
  Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg            
  Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg       
  Hit:4 http://us.archive.ubuntu.com/ubuntu focal InRelease 
  Hit:5 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease              
  Hit:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease            
  Hit:7 https://repo.radeon.com/amdgpu/21.40.2/ubuntu focal InRelease            
  Hit:8 http://dl.google.com/linux/chrome/deb stable InRelease                   
  Hit:9 http://security.ubuntu.com/ubuntu focal-security InRelease               
  Hit:10 https://repo.radeon.com/rocm/apt/4.5.2 ubuntu InRelease                 
  Hit:11 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu focal InRelease
  Reading package lists... Done
  The amdgpu driver is already installed or was not uninstalled correctly.
  Please fully uninstall the driver before proceeding with installation
  You can try running the amdgpu-uninstall or amdgpu-pro-uninstall script present in /usr/bin to clean up the previous installation

但是当我用 dpkg -l amdgpu 检查时,amdgpu 已确认,但 amdgpu-pro 尚未确认。

我已经更新、升级并重新启动,但无法激活 gpu,它仍然没有出现在附加驱动程序下。

有什么想法吗?

答案1

这对我的设置有效。也许这对其他人也有帮助。

操作系统:Ubuntu 20.04(双启动)Ubuntu Studio 21.04

木板:华硕 Tuf Gaming B550M-Plus

中央处理器:AMD Ryzen 9 5900x 12 核,24 线程

内存:Corsair Vengeance 2x32GBCMK64GX4M​​2D3600C18

图形:XFX Radeon RX 6600XT

如果您已有先前版本或之前失败的尝试


amdgpu-uninstall -y

强制的重启


sudo reboot

更新并安装一些软件包


sudo apt update && sudo apt install git clinfo darktable -y

创建(可选)AMD 目录


mkdir amd

git 克隆固件


cd amd && git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/firmware/linux-firmware.git && cd

复制固件


sudo cp ~/amd/linux-firmware/amdgpu/* /lib/firmware/amdgpu && sudo update-initramfs -k all -u -v && sudo apt update

获取最近的适用于 Radeon RX 6600xt 的 AMD 驱动程序


wget -P ~/amd/ https://repo.radeon.com/amdgpu-install/21.50.2/ubuntu/focal/amdgpu-install_21.50.2.50002-1_all.deb

安装刚刚下载的文件


cd amd && sudo apt install -y ./amdgpu-install_21.50.2.50002-1_all.deb && cd && sudo apt update

安装驱动程序(检查可选的 --flags 以适应您的用例)


amdgpu-install -y --accept-eula --opencl=rocr,legacy --usecase=graphics,opencl

将自己添加到视频和渲染组


sudo apt update && sudo usermod -aG video $USER && sudo usermod -aG render $USER

强制的重启


sudo reboot

重启后,运行:


clinfo -l

或更详细


clinfo

还可以查看 Darktable


darktable-cltest

讲得好。

相关内容