nvidia-settings 无法正常工作

nvidia-settings 无法正常工作

我之前发过一个问题未检测到 Dell E2009W 显示器但我认为最好创建一个单独的问题,因为当前的真正问题实际上与我的显示器无关,而且信息以前到处都是。

基本上,我无法访问 nvidia-settings。如果我尝试,我会得到以下错误:您似乎没有使用 NVIDIA X 驱动程序。请编辑您的 X 配置文件(只需nvidia-xconfig以 root 身份运行),然后重新启动 X 服务器。

以下是我的 xorg.conf 的内容:

$ cat /etc/X11/xorg.conf.initial 
Section "Device"
    Identifier  "Default Device"
    Option  "NoLogo"    "True"
EndSection

因此我尝试运行nvidia-xconfig,但失败并出现以下错误:

$ sudo nvidia-xconfig 
[sudo] password for cmenguy: 

Using X configuration file: "/etc/X11/xorg.conf".

VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
                  Device section "Default Device" must have a Driver line.

Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'

新的 xorg.conf 如下所示:

$ cat /etc/X11/xorg.conf.backup 
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 280.13  ([email protected])  Wed Jul 27 17:18:55 PDT 2011

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

而且我仍然收到与 nvidia-settings 相同的错误...

我的显卡是 nVidia GF106(从我的 lspci 输出中获得):

$ lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB Controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b4)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b4)
00:1c.6 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 7 (rev b4)
00:1d.0 USB Controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM67 Express Chipset Family LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: nVidia Corporation GF106 [Quadro 2000M] (rev a1)
03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 3e)
0d:00.0 System peripheral: Ricoh Co Ltd MMC/SD Host Controller (rev 08)
0d:00.3 FireWire (IEEE 1394): Ricoh Co Ltd FireWire Host Controller (rev 04)
0e:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)

我还安装了最新的可用驱动程序和附加驱动程序并重新启动了一次。

有人能告诉我我做错了什么吗?我可以用这个新的 xorg.conf 重新启动 PC 而不会陷入没有图形界面的风险吗?

谢谢 !

答案1

这听起来就像您安装了错误的驱动程序包。nvidia-current是您的显卡所需的软件包,Ubuntu 存储库中的驱动程序版本 280.13 应该足够了。请在故障排除时删除您安装的所有其他专有图形驱动程序存储库。ppa-purge建议使用。

sudo apt-get install ppa-purge
sudo ppa-purge ppa:ppaowner/ppaname

ppa:ppaowner/ppaname = 与您添加存储库时使用的 URL 相同add-apt-repository

还要删除您可能通过 Jockey GUI 或终端安装的所有其他专有图形驱动程序。备份您当前的 xorg.conf 文件并删除原始文件。

现在安装驱动程序:

sudo apt-get update
sudo apt-get install nvidia-current nvidia-settings

安装过程中应创建新的 xorg.conf。重启后,您便可以无干扰地运行 nvidia-settings。

X 更新您可以尝试包含最新驱动程序的存储库你从 Ubuntu 存储库中获取了正在运行的驱动程序

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get remove nvidia-current nvidia-settings
sudo apt-get install nvidia-current-updates nvidia-settings-updates

答案2

好的,我终于让它工作了,所以我将我的解决方案发布给其他人。

问题确实出在 nVidia Optimus 卡上。所以我进入 BIOS,将其设置为独立模式,并禁用操作系统检测功能。

重新启动后,我在附加驱动程序中安装了 nVidia 驱动程序,再次重新启动,然后我(终于)能够访问这个 nvidia 设置面板并让我的第二台显示器工作!

干杯

相关内容