Ubuntu 19.04 Nvidia 卡仅部分识别

Ubuntu 19.04 Nvidia 卡仅部分识别

我买了一台新机器,安装 Ubuntu 没有任何问题。但是,支持我的 Nvidia GeForce GTX 1660 Ti 显卡的情况并不多见。我的显示器的分辨率应该是 2560x1440,因为我的旧电脑和 nvidia 卡使用同一个显示器,但只能达到 1900x1200。我看到的第一件奇怪的事情是两个 X 服务器正在运行:

# ps auwx | grep X
root     10883  0.0  0.2 182428 47996 tty1     Sl+  14:43   0:01 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/123/gdm/Xauthority -background none -noreset -keeptty -verbose 3
root     11087  1.1  0.3 200736 63224 tty7     Sl+  14:44   0:21 /usr/lib/xorg/Xorg vt7 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3

也许还行(?),但我只有一个屏幕。安装 nvidia 支持并重新启动后,一切看起来都还好:

# nvidia-smi 
Sat Sep  7 13:37:53 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.40       Driver Version: 430.40       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 166...  Off  | 00000000:09:00.0  On |                  N/A |
| 28%   36C    P8    17W / 120W |    439MiB /  5935MiB |      2%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1409      G   /usr/lib/xorg/Xorg                            18MiB |
|    0      1455      G   /usr/bin/gnome-shell                          48MiB |
|    0      1708      G   /usr/lib/xorg/Xorg                           115MiB |
|    0      1838      G   /usr/bin/gnome-shell                         173MiB |
|    0      2999      G   ...uest-channel-token=16139733089795658592    81MiB |
+-----------------------------------------------------------------------------+

还:

# inxi -SGx
System:
  Host: ab3ap Kernel: 5.0.0-27-generic x86_64 bits: 64 compiler: gcc 
  v: 8.3.0 Desktop: Gnome 3.32.2 Distro: Ubuntu 19.04 (Disco Dingo) 
Graphics:
  Device-1: NVIDIA vendor: ZOTAC driver: nvidia v: 430.40 bus ID: 09:00.0 
  Display: x11 server: X.Org 1.20.4 driver: nvidia 
  resolution: 1920x1200~60Hz 
  OpenGL: renderer: GeForce GTX 1660 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 430.40 
  direct render: Yes 
# dpkg -l | grep nvidia
ii  libnvidia-cfg1-430:amd64                      430.40-0ubuntu0~gpu19.04.2           amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-430                          430.40-0ubuntu0~gpu19.04.2           all          Shared files used by the NVIDIA libraries
rc  libnvidia-compute-418:amd64                   430.40-0ubuntu0~gpu19.04.2           amd64        Transitional package for libnvidia-compute-430
ii  libnvidia-compute-430:amd64                   430.40-0ubuntu0~gpu19.04.2           amd64        NVIDIA libcompute package
ii  libnvidia-compute-430:i386                    430.40-0ubuntu0~gpu19.04.2           i386         NVIDIA libcompute package
ii  libnvidia-decode-430:amd64                    430.40-0ubuntu0~gpu19.04.2           amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-430:i386                     430.40-0ubuntu0~gpu19.04.2           i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-430:amd64                    430.40-0ubuntu0~gpu19.04.2           amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-430:i386                     430.40-0ubuntu0~gpu19.04.2           i386         NVENC Video Encoding runtime library
ii  libnvidia-fbc1-430:amd64                      430.40-0ubuntu0~gpu19.04.2           amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-430:i386                       430.40-0ubuntu0~gpu19.04.2           i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-430:amd64                        430.40-0ubuntu0~gpu19.04.2           amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-430:i386                         430.40-0ubuntu0~gpu19.04.2           i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-430:amd64                      430.40-0ubuntu0~gpu19.04.2           amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-430:i386                       430.40-0ubuntu0~gpu19.04.2           i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-430                      430.40-0ubuntu0~gpu19.04.2           amd64        NVIDIA compute utilities
ii  nvidia-dkms-430                               430.40-0ubuntu0~gpu19.04.2           amd64        NVIDIA DKMS package
ii  nvidia-driver-418                             430.40-0ubuntu0~gpu19.04.2           amd64        Transitional package for nvidia-driver-430
ii  nvidia-driver-430                             430.40-0ubuntu0~gpu19.04.2           amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-430                      430.40-0ubuntu0~gpu19.04.2           amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-430                      430.40-0ubuntu0~gpu19.04.2           amd64        NVIDIA kernel source package
ii  nvidia-prime                                  0.8.10                               all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                               418.56-0ubuntu1                      amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-430                              430.40-0ubuntu0~gpu19.04.2           amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-430                 430.40-0ubuntu0~gpu19.04.2           amd64        NVIDIA binary Xorg driver

内核模块在那里:

# find /usr/lib/modules -name nvidia.ko -exec modinfo {} \;
filename:       /usr/lib/modules/5.0.0-27-generic/updates/dkms/nvidia.ko
alias:          char-major-195-*
version:        430.40
supported:      external
license:        NVIDIA [...]

然而,随着分辨率降低,坏消息也随之而来:

# nvidia-detector 
none

我此刻很困惑。任何想法都非常感谢!

麦克风

答案1

问题解决了。从我的旧显示器上看,HDMI 最大分辨率为 1900x1200。我的旧 Nvidia 卡有一个 DVI 连接器,但这个有 HDMI 和显示端口。只需将 HDMI 换成 DP 即可解决问题。有点尴尬。:-P

相关内容