X.orgを実行するFreeBSDでマルチヘッド環境を設定する

X.orgを実行するFreeBSDでマルチヘッド環境を設定する

私の目標はマルチヘッド環境を設定することです。両方の画面で利用可能な拡張デスクトップが必要で、ある画面から別の画面にウィンドウをドラッグアンドドロップできる必要があります。左側の画面はVGAポートにあり、右側の画面はHDMIポートに接続されます。

試してみましたが、xorg.confマルチヘッド操作の正しい設定を設定できないようです。

これは私のものですxorg.conf

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/local/lib/xorg/modules"
    FontPath     "/usr/local/lib/X11/fonts/misc/"
    FontPath     "/usr/local/lib/X11/fonts/TTF/"
    FontPath     "/usr/local/lib/X11/fonts/OTF"
    FontPath     "/usr/local/lib/X11/fonts/Type1/"
    FontPath     "/usr/local/lib/X11/fonts/100dpi/"
    FontPath     "/usr/local/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
    Load  "dbe"
    Load  "dri"
    Load  "dri2"
    Load  "extmod"
    Load  "record"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier   "Keyboard0"
    Driver      "evdev"
        Option       "XkbLayout" "fr"
        #Option      "XkbModel" "pc105"
        #Option      "Device" "/dev/ukbd0"
        #Option      "CoreKeyboard"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/sysmouse"
    Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "ShadowFB"              # [<bool>]
        #Option     "DefaultRefresh"        # [<bool>]
        #Option     "ModeSetClearScreen"    # [<bool>]
    Identifier  "Card0"
    Driver      "vesa"
    VendorName  "Intel Corporation"
    BoardName   "Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller"
    BusID       "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

私は読んだどこかにVirtual設定とディレクティブが必要だったので、Modes次のように設定を変更しました。

Section "Screen"
    # ...
    SubSection "Display"
        Viewport   0 0
        Depth     24
        Virtual   3600 1080
        Modes     "1920x1080" "1680x1050"
    EndSubSection
EndSection

その結果、ホーム画面にぼやけた画像が実行されます。しかし、マウスを動かすと、デスクトップが実際に拡張されていることがわかります。しかし、利用できず、1画面でのみ機能します。

XRandr私も以下のようにインストールしました。この文書ただし、出力は$ xrandr -q次のようになります。

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 1920 x 1200, maximum 1920 x 1200
default connected 1920x1200+0+0 0mm x 0mm
   1920x1200      0.00* 
   1600x1200      0.00  
   1280x1024      0.00  
   1024x768       0.00  
   800x600        0.00  
   640x480        0.00  

したがって、1つの画面のみが検出されたため、次のコマンドを実行して必要に応じて両方の画面を表示することはできません。

$ xrandr --output <RightScreen> --right-of default

名前がわからないからです<RightScreen>

最も奇妙なのは、HDMI右画面を接続した状態で再起動すると、右画面にスタート画面が表示され、メイン(左)画面には何も表示されないことです。ログインすると、XFCEは右画面に何も表示できず、両方の画面を使用できません。唯一の解決策は、ボタンを押してコンピュータを手動でシャットダウンし、右画面のプラグを抜き、再起動することです。

私は何を見逃していますか?

編集する

vesaデフォルトドライバが複数のタイトルをサポートしていないことがわかりました。

出力は次のとおりです$ pkg info -a -o | grep video

videoproto-2.3.2               x11/videoproto
xf86-video-ati-6.14.6_3        x11-drivers/xf86-video-ati
xf86-video-intel-2.7.1_8       x11-drivers/xf86-video-intel
xf86-video-mach64-6.9.4_3      x11-drivers/xf86-video-mach64
xf86-video-nv-2.1.20_4         x11-drivers/xf86-video-nv
xf86-video-openchrome-0.3.3_3  x11-drivers/xf86-video-openchrome
xf86-video-r128-6.9.2_3        x11-drivers/xf86-video-r128
xf86-video-vesa-2.3.3_3        x11-drivers/xf86-video-vesa

これも次の出力です$ sysctl hw.model hw.machine hw.ncpu

hw.model: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
hw.machine: amd64
hw.ncpu: 8

ベストアンサー1

Vesaはデュアルディスプレイをサポートしていません。デフォルトドライバ(この場合はIntelドライバ)を使用してXを起動する必要があります。

Intelは多くのマザーボードでデュアルヘッダをサポートしています。xrandr(一時)またはxorg configuration(永続再起動)でデュアルヘッダを実装できます。

これを読んでください。 Intelはデュアルヘッド設定で良いパフォーマンスを持っています。

おすすめ記事