Ubuntu 18.04 LTS 无法检测到 GTX 1650

Ubuntu 18.04 LTS 无法检测到 GTX 1650

我一直在尝试让我的 Linux 检测 GTX 1650,以便让我的双显示器工作,但我做不到。我尝试了以下方法:

  1. 使用 lightdm 而不是 gdm3:dpkg-recongigure lightdm
  2. 安装多个 nvidia 驱动程序(nvidia-drivers-390、nvidia-drivers-418、435、430),每次安装后我都会重新启动以检查它是否正常工作,但这也不起作用

  3. 关闭安全启动并尝试 BIOS 中有关 GPU 的所有设置,但无济于事

以下是我的系统信息:dell optiplex 9010、Ventus GTX 1650 4GB、i7 3770k、16GB ram

这里有一些可能有用的输出:

uname -a

Linux system 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

dpkg -l | grep nvidia

ii  libnvidia-cfg1-430:amd64                   430.64-0ubuntu0~gpu18.04.1                   amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-390                       390.116-0ubuntu0.18.04.1                     all          Shared files used by the NVIDIA libraries
ii  libnvidia-common-430                       430.50-0ubuntu0.18.04.2                      all          Shared files used by the NVIDIA libraries
ii  libnvidia-common-435                       435.21-0ubuntu0.18.04.2                      all          Shared files used by the NVIDIA libraries
rc  libnvidia-compute-390:amd64                390.116-0ubuntu0.18.04.1                     amd64        NVIDIA libcompute package
rc  libnvidia-compute-390:i386                 390.116-0ubuntu0.18.04.1                     i386         NVIDIA libcompute package
ii  libnvidia-compute-430:amd64                430.64-0ubuntu0~gpu18.04.1                   amd64        NVIDIA libcompute package
ii  libnvidia-compute-430:i386                 430.64-0ubuntu0~gpu18.04.1                   i386         NVIDIA libcompute package
rc  libnvidia-compute-435:amd64                435.21-0ubuntu0.18.04.2                      amd64        NVIDIA libcompute package
ii  libnvidia-decode-430:amd64                 430.64-0ubuntu0~gpu18.04.1                   amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-430:i386                  430.64-0ubuntu0~gpu18.04.1                   i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-430:amd64                 430.64-0ubuntu0~gpu18.04.1                   amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-430:i386                  430.64-0ubuntu0~gpu18.04.1                   i386         NVENC Video Encoding runtime library
ii  libnvidia-fbc1-430:amd64                   430.64-0ubuntu0~gpu18.04.1                   amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-430:i386                    430.64-0ubuntu0~gpu18.04.1                   i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-430:amd64                     430.64-0ubuntu0~gpu18.04.1                   amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-430:i386                      430.64-0ubuntu0~gpu18.04.1                   i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-430:amd64                   430.64-0ubuntu0~gpu18.04.1                   amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-430:i386                    430.64-0ubuntu0~gpu18.04.1                   i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-430                   430.64-0ubuntu0~gpu18.04.1                   amd64        NVIDIA compute utilities
ii  nvidia-dkms-430                            430.64-0ubuntu0~gpu18.04.1                   amd64        NVIDIA DKMS package
ii  nvidia-driver-430                          430.64-0ubuntu0~gpu18.04.1                   amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-430                   430.64-0ubuntu0~gpu18.04.1                   amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-430                   430.64-0ubuntu0~gpu18.04.1                   amd64        NVIDIA kernel source package
ii  nvidia-prime                               0.8.8.2                                      all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                            418.56-0ubuntu0~gpu18.04.1                   amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-430                           430.64-0ubuntu0~gpu18.04.1                   amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-430              430.64-0ubuntu0~gpu18.04.1                   amd64        NVIDIA binary Xorg driver

lspci

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4)
00:1f.0 ISA bridge: Intel Corporation Q77 Express Chipset LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1f82 (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)

nvidia-smi

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

sudo lshw -c display

  *-display UNCLAIMED       
       description: VGA compatible controller
       product: NVIDIA Corporation
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller cap_list
       configuration: latency=0
       resources: memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:c0000-dffff

答案1

我通过将 BIOS 设置为 UEFI 模式并关闭安全启动解决了这个问题。问题本身源于如果安全启动已打开,Ubuntu 不会运行 DKMS 模块

“Ubuntu 现在默认检查内核 4.4.0-18.34、4.4.0-21.37、4.2.0-42.49、3.19.0-65.73 和 3.13.0-92.139 及更高版本的模块签名。您可以在 Launchpad 中阅读有关此错误的更多详细信息。

由于这些变化,除非正确配置,否则 DKMS 模块将无法在启用安全启动的系统上运行。 “

据我所知,DKMS 模块是 nvidia-drivers-* 包的一部分(或者说它们本身就是)因此如果secure boot打开的话根本无法运行。

相关内容