如何将不同的显示器分辨率添加到 NVidia X 服务器设置列表

如何将不同的显示器分辨率添加到 NVidia X 服务器设置列表

我有两台显示器连接到同一台 PC;一台直接通过 DVI 连接,另一台通过(蓝色)VGA 电缆上的 KVM 切换器连接。我刚刚在其上安装了 Xubuntu 11.10,安装了当前的 nvidia 驱动程序,并使用小NVidia X Server Settings程序对它们进行了配置。我使用的是 TwinView 配置,这样我就可以将窗口从一个显示器拖到另一个显示器,等等。

DVI 连接的显示器被正确识别并设置为 1024x768。但是,VGA 连接的显示器列出了一系列分辨率,但不是正确的分辨率(1280x1024)。我现在将其设置为 1280x960,但一切都有点模糊,因为这不是显示器的原始分辨率。列出的分辨率为 1440x900、1360x768、1280x960、1152x864、1024x768、832x624、800x600、720x450、680x384、640x480、512x384。

有人知道如何以及在何处配置我的机器以便主显示器以其原始分辨率工作吗?

编辑:这是目前我的的内容xorg.conf

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 280.13  ([email protected])  Wed Jul 27 17:15:58 PDT 2011

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 280.13  (buildd@yellow)  Fri Aug  5 12:31:28 UTC 2011

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     "Unknown"
    ModelName      "CRT-1"
    HorizSync       30.0 - 60.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "COMPAQ 1520"
    HorizSync       30.0 - 60.0
    VertRefresh     56.0 - 76.0
EndSection

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

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 530"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP: nvidia-auto-select +1360+0, CRT: 1360x768_60 +0+0"
# Removed Option "metamodes" "CRT: 1280x960 +0+0, DFP: nvidia-auto-select +1360+0"
# Removed Option "metamodes" "CRT: 1280x960 +0+0, DFP: nvidia-auto-select +1280+0"
# Removed Option "TwinView" "1"
# Removed Option "metamodes" "CRT: 1280x960 +0+0, DFP: nvidia-auto-select +1280+192"
# Removed Option "TwinView" "0"
# Removed Option "metamodes" "CRT: 1280x960 +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "CRT-1"
    Option         "metamodes" "CRT: 1280x960 +0+0, DFP: nvidia-auto-select +1280+192"
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "DFP: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

答案1

直接添加xorg.conf或使用nvidia-xconfig --mode=1280x1024

答案2

事实证明这个问题相对容易解决。

一旦我将显示器直接连接到计算机,驱动程序就可以读取显示器的扩展显示识别码。我保存了设置,现在即使通过 KVM 切换器连接也能正常工作。

主要问题是我需要指定不同的频率。

相关内容