使用 nvidia gpu 的低图形模式或黑屏

使用 nvidia gpu 的低图形模式或黑屏

更新:

我有一台搭载英特尔 GPU 的 PC,运行良好,大约两年了。现在我买了一台 Geforce GTX 1060,当我想在 Ubuntu 16.04 中启动时(我还安装了 win 10),我要么看到黑屏(如果我尝试正常启动),要么加载“低图形模式”,当我从故障安全模式启动时。

我遇到了一个问题,即使我安装了 nvidia-375 和 nvidia-settings,它也无法启动 nvidia-driver。以下是更多信息:

(有没有办法将整个日志打包到剧透中?)

Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================= rc nvidia-304 304.135-0ubu amd64 NVIDIA legacy binary driver - ver ii nvidia-375 375.66-0ubun amd64 NVIDIA binary driver - version 37 un nvidia-common none none (no description available) un nvidia-driver- none none (no description available) un nvidia-legacy- none none (no description available) un nvidia-libopen none none (no description available) un nvidia-libopen none none (no description available) un nvidia-libopen none none (no description available) un nvidia-opencl- none none (no description available) rc nvidia-opencl- 304.135-0ubu amd64 NVIDIA OpenCL ICD ii nvidia-opencl- 375.66-0ubun amd64 NVIDIA OpenCL ICD un nvidia-persist none none (no description available) ii nvidia-prime 0.8.2 amd64 Tools to enable NVIDIA's Prime ii nvidia-setting 361.42-0ubun amd64 Tool for configuring the NVIDIA g un nvidia-setting none none (no description available) un nvidia-vdpau-d none none (no description available)


文件:/var/log/Xorg.1.log

[ 27.893] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules" [ 27.893] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [ 27.897] (II) Loader magic: 0x559e2cab0dc0 [ 27.897] (II) Module ABI versions: [ 27.897] X.Org ANSI C Emulation: 0.4 [ 27.897] X.Org Video Driver: 20.0 [ 27.897] X.Org XInput driver : 22.1 [ 27.897] X.Org Server Extension : 9.0 [ 27.898] (++) using VT number 7 [ 27.898] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration [ 27.898] (II) xfree86: Adding drm device (/dev/dri/card0) [ 27.899] (--) PCI:*(0:0:2:0) 8086:0412:1458:d000 rev 6, Mem @ 0xf7800000/4194304, 0xe0000000/268435456, I/O @ 0x0000f000/64 [ 27.899] (WW) "glamoregl" will not be loaded unless you've specified it to be loaded elsewhere. [ 27.899] (II) "glx" will be loaded by default. [ 27.899] (II) LoadModule: "glx" [ 27.914] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so [ 28.021] (II) Module glx: vendor="X.Org Foundation" [ 28.021] compiled for 1.18.4, module version = 1.0.0 [ 28.021] ABI class: X.Org Server Extension, version 9.0 [ 28.021] (==) AIGLX enabled [ 28.021] (==) Matched intel as autoconfigured driver 0 [ 28.021] (==) Matched intel as autoconfigured driver 1 [ 28.021] (==) Matched modesetting as autoconfigured driver 2 [ 28.021] (==) Matched fbdev as autoconfigured driver 3 [ 28.021] (==) Matched vesa as autoconfigured driver 4 [ 28.021] (==) Assigned the driver to the xf86ConfigLayout [ 28.021] (II) LoadModule: "intel" [ 28.021] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so


即使它会首先加载 nvidia 驱动程序,它也会说找不到 nvidia 模块。
所以我想我现在有两个问题:
1. 如何更改驱动程序的“加载顺序”?
2. 找不到模块“nvidia”的可能性有哪些?


我注意到我没有文件 /etc/X11/xorg.conf,至少没有完全这样命名的文件。我的文件名是 xorg.conf.06252017。这有关系吗?

答案1

我可以通过下载“nvidia-381”并编辑“/etc/X11/xorg.conf”来解决此问题。
我插入了:

  • 模块路径 /usr/lib/nvidia-381/xorg
  • 模块路径 /usr/lib/xorg/modules

在“文件”部分和与我的 gpu 类似的“设备”部分中,我将驱动程序编辑为“nvidia-381”。

但现在我明白了这个问题

相关内容