如何使用 Nvidia TwinView 在 xorg.conf 中设置双屏显示器?

如何使用 Nvidia TwinView 在 xorg.conf 中设置双屏显示器?

我有以下xorg.conf文件,但使用 2 个显示器时 TwinView 无法正常工作。请帮我解决问题。

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 295.33  (buildd@allspice)  Fri Mar 30 15:25:24 UTC 2012


Section "ServerLayout"

# Removed Option "Xinerama" "1"
# Removed Option "Xinerama" "0"
# Removed Option "Xinerama" "1"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
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"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Ancor Communications Inc VE247"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Ancor Communications Inc VE247"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro FX 1500"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro FX 1500"
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "DFP-1"
    Option         "metamodes" "DFP-1: 1280x1024 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"

# Removed Option "TwinView" "0"
# Removed Option "metamodes" "DFP-0: 1280x1024 +0+0"
# Removed Option "TwinView" "1"
# Removed Option "metamodes" "DFP-0: 1280x1024 +0+0, DFP-1: 1280x1024 +1280+0"
# Removed Option "TwinView" "0"
# Removed Option "metamodes" "DFP-0: 1280x1024 +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DFP-0: 1280x1024 +0+0, DFP-1: 1280x1024 +1280+0; DFP-1: 1280x1024_60 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Disable"
EndSection

这是我的计算机的规格:

Computer:
Processor           : 2x Intel(R) Pentium(R) 4 CPU 3.00GHz
Memory              : 3339MB (2889MB used)
Operating System    : Ubuntu 12.04.1 LTS
User Name           : chikaru (Mrmagu)
Date/Time           : Sat 22 Sep 2012 12:18:13 PM EDT

Display:
Resolution          : 2560x1024 pixels
OpenGL Renderer     : Quadro FX 1500/PCIe/SSE2
X11 Vendor          : The X.Org Foundation

Multimedia:
Audio Adapter       : SB-XFi - Creative X-Fi
Audio Adapter       : HDA-Intel - HDA Intel
Audio Adapter       : USB-Audio - Producer USB

Input Devices:
Sleep Button
Power Button
Razer Razer Lycosa
Razer Razer Lycosa
Saitek Cyborg R.A.T.7 Mouse
HDA Intel Front Headphone
HDA Intel Rear Mic
HDA Intel Line
HDA Intel Line-Out Front

Printers:
No printers found

SCSI Disks:
Optiarc DVD RW AD-5200A
BENQ DVD LS DW1655
ATA ST380817AS
ATA MDT MD1600JS-00S
ATA Hitachi HDS72303
ATA ST3320820AS

答案1

当我使用 Nvidia TwinView 时,以下配置一直适用于两台 Dell U2312HM,但不要只是进行复制和粘贴。

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildd@yellow)  Fri Apr  9 11:51:21 UTC 2010

Section "ServerLayout"
        Identifier      "Layout0"
        Screen  0       "Screen0" 0 0
#       InputDevice     "Keyboard0" "CoreKeyboard"
#       InputDevice     "Mouse0" "CorePointer"
        Option          "Xinerama" "0"
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"
        # HorizSync source: edid, VertRefresh source: edid
        Identifier      "Monitor0"
        VendorName      "DELL"
        ModelName       "DELL U2312HM"
        HorizSync       30.0 - 83.0
        VertRefresh     56.0 - 76.0
        Option          "DPMS"
EndSection

Section "Device"
        Identifier      "Device0"
        Driver          "nvidia"
        VendorName      "NVIDIA Corporation"
        BoardName       "GeForce 210"
EndSection

Section "Screen"
        Identifier      "Screen0"
        Device          "Device0"
        Monitor         "Monitor0"
        DefaultDepth    24
        Option          "TwinView" "1"
        Option          "TwinViewXineramaInfoOrder" "DFP-0"
        Option          "metamodes" "DFP-0: 1920x1080_60 +0+0, DFP-1: 1920x1080_60 +1920+0"
        SubSection      "Display"
                Depth       24
        EndSubSection
EndSection

相关内容