Intel NUC Hades Canyon NUC8i7HVK (AMD Radeon RX Vega GH) 的图形驱动程序

Ken*_*ird 8 radeon drivers intel-nuc 18.04

我知道这是一个常见问题,但我遇到了这个问题..

我正在运行 Ubuntu 18.04。我不得不nomodeset在启动时在 grub 中使用参数才能正确启动。

uname -mrs

Linux 4.15.0-23-generic x86_64
Run Code Online (Sandbox Code Playgroud)

lspci | grep VGA

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Vega [Radeon RX Vega M] (rev c0)
Run Code Online (Sandbox Code Playgroud)

运行ubuntu drivers devices没有结果

lshw -c video

  *-display UNCLAIMED       
   description: VGA compatible controller
   product: Advanced Micro Devices, Inc. [AMD/ATI]
   vendor: Advanced Micro Devices, Inc. [AMD/ATI]
   physical id: 0
   bus info: pci@0000:01:00.0
   version: c0
   width: 64 bits
   clock: 33MHz
   capabilities: pm pciexpress msi vga_controller bus_master cap_list
   configuration: latency=0
   resources: memory:90000000-9fffffff memory:a0000000-a01fffff ioport:e000(size=256) memory:db500000-db53ffff memory:c0000-dffff

   *-display UNCLAIMED
   description: Display controller
   product: Intel Corporation
   vendor: Intel Corporation
   physical id: 2
   bus info: pci@0000:00:02.0
   version: 04
   width: 64 bits
   clock: 33MHz
   capabilities: pciexpress msi pm cap_list
   configuration: latency=0
   resources: iomemory:2f0-2ef iomemory:2f0-2ef memory:2ffe000000-2ffeffffff memory:2fa0000000-2fafffffff ioport:f000(size=64)
Run Code Online (Sandbox Code Playgroud)

我尝试添加amdgpu.dc=1引导参数但没有改变任何东西。

glmark2

=======================================================                                                
glmark2 2014.03+git20150611.fa71af2d                                                               
=======================================================
OpenGL Information
GL_VENDOR:     VMware, Inc.
GL_RENDERER:   llvmpipe (LLVM 6.0, 256 bits)
GL_VERSION:    3.0 Mesa 18.0.0-rc5
Run Code Online (Sandbox Code Playgroud)

- 编辑 -

升级到内核 4.16 并且没有变化,尽管运行 glmark2 对 CPU 的占用较少

use*_*692 3

更新:我在https://ubuntuforums.org/showthread.php?t=2400400上发布了一篇文章, 其中包含针对 4.19-rc2 更新的说明。

这是我原来的答案:

这是我今天在 ubuntu 18.04 上运行的方法(凭记忆,可能有拼写错误):

a) 从https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers安装最新的 mesa

b) 使用http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/2018-06-08/遵循https://wiki.ubuntu.com/Kernel/MainlineBuilds

IE:

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/2018-06-08/linux-modules-4.17.0-999-generic_4.17.0-999.201806080237_amd64.deb
$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/2018-06-08/linux-image-unsigned-4.17.0-999-generic_4.17.0-999.201806080237_amd64.deb
$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/2018-06-08/linux-headers-4.17.0-999-generic_4.17.0-999.201806080237_amd64.deb
$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/2018-06-08/linux-headers-4.17.0-999_4.17.0-999.201806080237_all.deb
$ sudo dpkg -i linux*201806080237*.deb
Run Code Online (Sandbox Code Playgroud)

c) 重新启动并注意到 /var/log/kern.log 中存在关于没有固件的错误,因此安装了:

$ wget -m -np https://people.freedesktop.org/~agd5f/radeon_ucode/vegam/
$ sudo cp people.freedesktop.org/~agd5f/radeon_ucode/vegam/*.bin /lib/firmware/amdgpu
$ sudo /usr/sbin/update-initramfs -u -k all
Run Code Online (Sandbox Code Playgroud)

并重新启动。

它奏效了。与机器建立有效的 ssh 连接可以更轻松地从错误和黑屏中恢复。

有一些奇怪的小故障(fishgl.com 的鱼曾经停止移动过一次,而我曾经在 Furmark 上得到过一个疯狂的高结果),但现在至少半个小时了,它已经正常运行并且相对快速了:-)

GLXINFO报告

OpenGL renderer string: AMD VEGAM (DRM 3.26.0, 4.17.0-999-generic, LLVM 6.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.2.0-devel
OpenGL version string: 3.1 Mesa 18.2.0-devel
Run Code Online (Sandbox Code Playgroud)

glmark2 报告得分为 10698(相比之下,在配备 HD Graphics 530 的 i7-6700 上得分为 2571,在 Skull Canyon live ubuntu 18.04 上得分为 2770)

来自 pts8 的 Furmark 0.7 在 1920x1080 下报告了 1718。

你的旅费可能会改变。你的机器可能会爆炸。祝你好运!