双显示器设置:xrandr 与 xorg.conf

Tho*_*mas 8 multiple-monitors xorg.conf xrandr

众所周知,GNU/Linux 上的双显示器设置非常有趣!在摆弄我的 xorg.conf 几天之后,我已经设法达到了一个点,我可以通过开始获得几乎我想要的东西(两个屏幕彼此相邻,窗口可以从一个屏幕拖动到另一个屏幕) up X,然后手动调用:

xrandr --output CRT2 --right-of DFP2
Run Code Online (Sandbox Code Playgroud)

我正在使用 RandR 1.3,因为 Xinerama 不适用于我的设置(并且似乎在某种程度上也已过时)。

根据这个网站,我应该能够通过我的 xorg.conf 静态实现相同的效果 - 但是,我似乎没有让它正常工作。

我正在为我的 ATI 卡 GNOME 2.32.1 使用 fglrx 驱动程序,这是我的 xorg.conf:

Section "ServerFlags"
    Option      "RandR" "on"
EndSection

Section "Device"
    Identifier  "Device"
    Driver      "fglrx"
    BusID       "PCI:1:0:0"
    Option      "Monitor-DFP2"      "Monitor0"
    Option      "Monitor-CRT2"      "Monitor1"
EndSection

Section "Monitor"
    Identifier      "Monitor0"
EndSection

Section "Monitor"
    Identifier      "Monitor1"
    Option          "RightOf"       "Monitor0"
EndSection

Section "Screen"
    Identifier      "Screen"
    Device          "Device"
    Monitor         "Monitor0"
    DefaultDepth     24
    SubSection "Display"
        Depth     24
        Modes     "1920x1080"
        Virtual   3840 1080
    EndSubSection
EndSection
Run Code Online (Sandbox Code Playgroud)

对我来说,这看起来很像上述网站上推荐的设置,但是,我只会在两个显示器中获得相同的图像。同样,我可以在之后调用 xrandr 来达到预期的效果。

任何想法如何修复我的 xorg.conf?

小智 1

我的 Fedora 14 在 xorg.conf 中指定了双显示器,使用 ATI 专有的 fglrx 驱动程序,桌面分布在两个显示器上。

我相信aticonfig --initial=dual-head大约一年前我曾经生成过 xorg.conf 并对其进行了一些调整。尝试一下。作为参考,这是我的 xorg.conf。

Section "ServerLayout"
    Identifier     "aticonfig Layout"
    Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Files"
EndSection

Section "Module"
EndSection

Section "Monitor"
    Identifier   "aticonfig-Monitor[0]-0"
    Option      "VendorName" "ATI Proprietary Driver"
    Option      "ModelName" "Generic Autodetecting Monitor"
    Option      "DPMS" "true"
EndSection

Section "Monitor"
    Identifier   "0-DFP3"
    Option      "VendorName" "ATI Proprietary Driver"
    Option      "ModelName" "Generic Autodetecting Monitor"
    Option      "DPMS" "true"
    Option      "PreferredMode" "1920x1200"
    Option      "TargetRefresh" "60"
    Option      "Position" "0 0"
    Option      "Rotate" "normal"
    Option      "Disable" "false"
EndSection

Section "Monitor"
    Identifier   "0-DFP4"
    Option      "VendorName" "ATI Proprietary Driver"
    Option      "ModelName" "Generic Autodetecting Monitor"
    Option      "DPMS" "true"
    Option      "PreferredMode" "1280x1024"
    Option      "TargetRefresh" "60"
    Option      "Position" "1920 176"
    Option      "Rotate" "normal"
    Option      "Disable" "false"
EndSection

Section "Device"
    Identifier  "aticonfig-Device[0]-0"
    Driver      "fglrx"
    Option      "Monitor-DFP3" "0-DFP3"
    Option      "Monitor-DFP4" "0-DFP4"
    BusID       "PCI:2:0:0"
EndSection

Section "Screen"
    Identifier "aticonfig-Screen[0]-0"
    Device     "aticonfig-Device[0]-0"
    Monitor    "aticonfig-Monitor[0]-0"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Virtual   3200 3200
        Depth     24
    EndSubSection
EndSection
Run Code Online (Sandbox Code Playgroud)