Nvidia X 服务器设置仅显示 1 个屏幕(笔记本电脑 + 外接显示器已连接)

Cha*_*ntz 27 multiple-monitors hdmi 14.04 nvidia-settings

我最近在配备 Nvidia Quadro K1100M 显卡的 Dell M3800 上安装了 Ubuntu 14.04 的新副本。

后来我还通过 HDMI(HDMI 转 DVI 连接器)连接了我的外接显示器。然后我开始在我的笔记本电脑屏幕上看到缓慢的屏幕性能。缓慢是指我的击键或动作似乎总是滞后。有趣的是,这似乎只发生在我的笔记本电脑屏幕上,我的外接显示器工作正常。

我已确保安装和使用 Nvidia 的专有驱动程序 331.38。

所以我检查了我的系统设置 > 显示。它正确显示 2 个屏幕,如下所示。

在此处输入图片说明

但是后来我进入了 Nvidia X Server 设置,它只显示一个屏幕,一个大屏幕分辨率,如下所示。

在此处输入图片说明

我认为这导致我的笔记本电脑性能缓慢,因为我假设外接显示器和笔记本电脑屏幕的屏幕刷新率不同。

我在下面倾倒xorg.confxandr输出,

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 331.38  (buildmeister@swio-display-x64-rhel04-15)  Wed Jan  8 19:53:14 PST 2014

Section "ServerLayout"
    Identifier     "layout"
    Screen      0  "nvidia" 0 0
    Inactive       "intel"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
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 "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "intel"
    Driver         "modesetting"
    BusID          "PCI:0@0:2:0"
EndSection

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    BusID          "PCI:2@0:0:0"
EndSection

Section "Screen"
    Identifier     "intel"
    Device         "intel"
    Monitor        "Monitor0"
EndSection

Section "Screen"
    Identifier     "nvidia"
    Device         "nvidia"
    Monitor        "Monitor0"
    Option         "AllowEmptyInitialConfiguration" "on"
    Option         "ConstrainCursor" "off"
    SubSection     "Display"
        Modes      "nvidia-auto-select"
    EndSubSection
EndSection
Run Code Online (Sandbox Code Playgroud)

xrandr 输出,

cdtank@cdtank-Dell-Precision-M3800:~/work$ xrandr
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 16384 x 16384
eDP-1-0 connected 1920x1080+0+0 344mm x 193mm
   1920x1080      60.0*+   59.9  
   1680x1050      60.0     59.9  
   1600x1024      60.2  
   1400x1050      60.0  
   1280x1024      60.0  
   1440x900       59.9  
   1280x960       60.0  
   1360x768       59.8     60.0  
   1152x864       60.0  
   1024x768       60.0     60.0  
   960x720        60.0  
   928x696        60.1  
   896x672        60.0  
   960x600        60.0  
   960x540        60.0  
   800x600        60.0     60.3     56.2  
   840x525        60.0     59.9  
   800x512        60.2  
   700x525        60.0  
   640x512        60.0  
   720x450        59.9  
   640x480        60.0     59.9  
   680x384        59.8     60.0  
   576x432        60.1  
   512x384        60.0  
   400x300        60.3     56.3  
   320x240        60.1  
VGA-1-0 disconnected
HDMI-1-0 connected 1920x1080+1920+0 598mm x 336mm
   1920x1080      60.0*+
   1600x1200      60.0  
   1680x1050      59.9  
   1400x1050      59.9  
   1600x900       60.0  
   1280x1024      75.0     60.0  
   1440x900       59.9  
   1280x960       60.0  
   1280x800       59.9  
   1152x864       75.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        75.0     72.8     66.7     60.0  
   720x400        70.1  
DisplayPort-1-0 disconnected
HDMI-1-1 disconnected
Run Code Online (Sandbox Code Playgroud)

更新 删除 xorg.conf 并重新启动后。这是它的内容。

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0@0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:2@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
EndSection
Run Code Online (Sandbox Code Playgroud)

小智 -1

检查是否使用了正确的驱动程序:

$ lspci -nnk | grep "VGA\|'Kern'\|3D\|Display" -A2

如果没有将错误的驱动程序列入黑名单:

$ sudo echo nouveau >> /etc/modprobe.d/blacklist.conf

重新启动并再次查看正在使用哪个驱动程序。

如果使用了正确的驱动程序但问题仍然存在,则需要配置 xorg.conf 文件。是一个很好的 wiki,介绍了如何为两个显示器配置 xorg.conf


小智 -2

您的问题可能与 NVidia 驱动程序有关。

尝试使用开源 Nouveau 驱动程序。

转到“附加驱动程序”页面并选择“开源 - Nouveau”选项。