我使用的是Ubuntu 18.04,内核4.15.0.76-generic,GPU是Geforce GTX 960(GM107芯片)。上周我使用 Cuda 10.2 设置了 Nvidia 驱动程序 440.33.01,一切都运行良好。我相信这个问题是在今天对 ubuntu(或其他东西)进行小幅更新后开始的。目前,启动发生在笔记本电脑的主屏幕上,但是一旦我使用 gdm3 登录,笔记本电脑的主屏幕就会变黑。 (不过仍然可以用于 TTY)Nvidia-smi 和相关命令工作正常。我清除并重新安装了 nvidia 驱动程序和 cuda,没有驱动程序,主笔记本电脑屏幕工作正常。 (但此时外接显示器无法识别)
*-display
description: 3D controller
product: GM107M [GeForce GTX 960M]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:134 memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:4000(size=128) memory:a4080000-a40fffff
*-display
description: VGA compatible controller
product: HD Graphics 530
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 06
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:132 memory:a2000000-a2ffffff memory:b0000000-bfffffff ioport:5000(size=64) memory:c0000-dffff
nvidia-smi 的输出
Wed Feb 12 21:41:22 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.33.01 Driver Version: 440.33.01 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| 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 960M On | 00000000:01:00.0 On | N/A |
| N/A 47C P0 N/A / N/A | 205MiB / 4043MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1415 G /usr/lib/xorg/Xorg 14MiB |
| 0 1534 G /usr/bin/gnome-shell 11MiB |
| 0 1932 G /usr/lib/xorg/Xorg 89MiB |
| 0 2180 G /usr/bin/gnome-shell 81MiB |
| 0 2714 G /usr/lib/firefox/firefox 1MiB |
我不认为我有硬件问题。可能与 X 有关,也许手动编辑 Xconf 可能有帮助,但运行 nvidia-xconfig 并不能解决问题。如果有人能提供帮助,我将非常感激,谢谢。