切换 DVI 插座

切换 DVI 插座

我有 Ubuntu 10.10 x86_64,带有 Nvidia 9800 gt 和 Nvidia 驱动程序版本 270.41.06

我的显卡有两个 DVI 插槽,但我只使用单显示器配置。现在,我认为主 DVI 插槽可能坏了,所以我想尝试将另一个插槽启用为主插槽,但是,我不知道如何实现。我尝试将显示器插入该插槽,但它不会自动检测到它(这本来很容易就能实现)。

这是我的xorg.conf

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: builtin, VertRefresh source: builtin
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "AOC"
    HorizSync       31.5 - 84.7
    VertRefresh     60.0 - 78.0
    ModeLine       "1080p" 172.8 1920 2040 2248 2576 1080 1081 1084 1118 -hsync +vsync
    Option         "DPMS"
EndSection


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

Section "Screen"

# Removed Option "metamodes" "1024x768 +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "CustomEDID" "CRT-0:/home/charlesq/lg.bin"
    Option         "TVStandard" "HD1080p"
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "1080p +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

答案1

你现在有办法控制电脑吗?你能SSH进去吗?最后的办法:拔出磁盘,将其插入另一台计算机,这样你就可以编辑文件了。

假设您可以访问某些内容,请/etc/X11/xorg.conf以 root 身份进行编辑(例如,sudoedit /etc/X11/xorg.conf如果您已ssh进入或在您的计算机上)。

您需要查看屏幕部分。Option "metamodes"其中应该有一行可能看起来像这样:

Option         "metamodes" "DFP-0: 1920x1200"

更改DFP-0DFP-1(或者,如果您的卡也有 HDMI 插槽,则为DFP-2DFP-3)。保存文件并启动(或者,sudo restart gdm如果您通过 SSH 在机器上,则只需运行)

相关内容