web-dev-qa-db-ja.com

xinerama、2枚のカード、3台のモニター

私はこれを正しくしようとしてきました、そして私はもうすぐそこにいますが、完全ではありません。このマシンには、1台のモニターを備えたIntelアダプターと、2台のモニターを備えたATIアダプターがあります。これを機能させるためにxineramaを使用できてうれしいです。

これが私のxorg.conf(Ubuntu 12.04)です:-

Section "Monitor"
    Identifier "Dell1"
    Option  "DPMS"
EndSection

Section "Monitor"
    Identifier "Dell2"
    Option  "DPMS"
    Option "Left" "Dell3"
EndSection

Section "Monitor"
    Identifier "Dell3"
    Option  "DPMS"
EndSection

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

Section "Device"
    Identifier      "ATI"
    Driver          "radeon"
    BusID           "PCI:2:0:0"
#   Option          "Monitor-DVI-0" "Dell3"
#   Option          "Monitor-VGA-1" "Dell2"
EndSection

Section "Screen"
    Identifier      "Screen 0"
    Device          "intel"
    #Monitor                "Dell1"
    DefaultDepth    24
EndSection

Section "Screen"
    Identifier      "Screen 1"
    Device          "ATI"
    Monitor         "Dell2"
    SubSection      "Display"
            Depth   24
            Virtual 2560 1024
    EndSubSection
EndSection

Section "ServerLayout"
    Option  "xinerama"      "on"
    Identifier      "multihead"
    Screen          "Screen 0"
    Screen          "Screen 1" LeftOf "Screen 0"
EndSection

Section "Module"
    Load    "glx"
EndSection

3台のモニターはすべて1280x1024デルです。これで、3台のモニターすべてをライブにできます。 Intelに接続されているもの(右端)がプライマリです

机の上の物理的な配置:

[ Dell 3 ] [ Dell 2 ] [ Dell 1 ]
{      ATI          } {  Intel }

Xサーバーのレイアウト:

[Dell  2 ]          ] [ Dell 1 ]
[     Dell 3        ] [        ]

つまり、Dell 1のRHSから始めて左に移動すると、次にDell3にジャンプします。 Dell 3は2560の仮想サイズを示しており、その左端を押すと、パンが始まります。この時点で、Dell 2にも表示され、左端のエッジに到達するまでに、Dell3と2は同じことを示しています。

モニターを正しくレイアウトするにはどうすればよいですか?

どうもありがとう!

ジョン

編集:-

代わりにこれを試してみましたが、ほぼ機能します。 「プライマリ」オプションがないと、Dell1ではUnityが表示され、他のオプションでは黒い画面が表示されます(ただし、マウスが移動します)。 「プライマリ」オプションを使用すると、Unityが表示されず、すべてのモニターの背景がちらつき、キーを押すとちらつきが表示されますが、一般的に非常に奇妙です。

Section "Monitor"
    Identifier "Dell1"
    Option  "DPMS"
    Option "Primary" "False"
EndSection

Section "Monitor"
    Identifier "Dell2"
    Option  "DPMS"
    Option "Primary" "False"
EndSection

Section "Monitor"
    Identifier "Dell3"
    Option  "DPMS"
    Option "Primary" "True"
EndSection

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

Sec>tion "Device"
    Identifier  "ATI0"
    Driver      "radeon"
    Option      "ZaphodHeads" "DVI-0"
    BusID       "PCI:2:0:0"
    Screen      0
EndSection

Section "Device"
    Identifier  "ATI1"
    Driver      "radeon"
    Option      "ZaphodHeads" "VGA-1"
    BusID       "PCI:2:0:0"
    Screen      1
EndSection

Section "Screen"
    Identifier  "Screen 0"
    Device      "intel"
    Monitor     "Dell1"
    DefaultDepth    24
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "ATI0"
    Monitor     "Dell2"
    DefaultDepth    24
EndSection

Section "Screen"
    Identifier  "Screen 2"
    Device      "ATI1"
    Monitor     "Dell3"
    DefaultDepth    24
EndSection

Section "ServerLayout"
    Option  "xinerama"  "on"
    Identifier  "multihead"
    Screen      "Screen 0"
    Screen      "Screen 1" LeftOf "Screen 0"
    Screen      "Screen 2" LeftOf "Screen 1"
EndSection

Section "Module"
    Load    "glx"
EndSection
5
JohnCC

これが役立つかどうかはわかりませんが、デュアルヘッド構成のCentOSでも問題が発生しました。

最終的に機能したもの:

Section "ServerLayout"
        Identifier     "Multihead layout"
        Screen      0  "Screen0" LeftOf "Screen1"
        Screen      1  "Screen1" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        Option      "Xinerama" "on"
        Option      "Clone" "on"
EndSection

モニター(2つの同一のもの)の場合、1つのモード行だけを残し、同期行と更新行をコメントアウトしました。

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Dell 1905FP (Digital)"
 ### Comment all HorizSync and VertSync values to use DDC:
#       HorizSync    30.0 - 81.0
#       VertRefresh  56.0 - 76.0
        Option      "dpms"
        Option      "xrandr"
        Modeline "1280x1024" 108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "Monitor Vendor"
        ModelName    "Dell 1905FP (Digital)"
 ### Comment all HorizSync and VertSync values to use DDC:
#       HorizSync    30.0 - 81.0
#       VertRefresh  56.0 - 76.0
        Option      "dpms"
        Option      "xrandr"
        Modeline "1280x1024" 108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync
EndSection

ビデオカードはデュアルヘッドATIです(私が思うにあなたのものに匹敵します)。 device-section内の「screen」パラメーターに注意してください。

Section "Device"
        Identifier  "Videocard0"
        Driver      "r500"
        BusID       "PCI:3:0:0"
        Option      "xrandr" "True"
        Screen      0
EndSection

Section "Device"
        Identifier  "Videocard1"
        Driver      "r500"
        VendorName  "Videocard Vendor"
        BoardName   "ATI Technologies Inc RV610 [Radeon HD 2400 XT]"
        BusID       "PCI:3:0:0"
        Option      "xrandr" "True"
        Screen      1
EndSection

今度はそれをすべて画面に合わせて-再び-私は解像度の選択を許可せず、24ビットを強制する必要がありました:

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1280x1024"
                Virtual 1280 1024
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "Videocard1"
        Monitor    "Monitor1"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1280x1024"
                Virtual 1280 1024
        EndSubSection
EndSection

KDEでは私はそのように設定しました:

  • 複数のモニターの仮想ワークスペースを有効にする
  • モニター1:x = 0、y = 0、幅= 1280、高さ= 1024
  • モニター2:x = 1280、y = 0、width = 1280、hight = 1024
1
Nils