Multi Head

Dari PaloDozen

Multi-head adalah istilah dimana satu komputer memiliki beberapa monitor.


Dual Head

Dual head adalah mode Xorg untuk komputer yang punya dua monitor. Monitor 0 (kiri) akan mejadi layar utama dimana desktop akan tampil (tampak menu bar), sedangkan monitor 1 (kanan) menjadi layar pendamping yang kosong (bisa penuh menampilkan aplikasi). Jika perlu, satu aplikasi juga bisa digeser dan diubah ukurannya mencakup kedua layar.

Untuk itu, edit /etc/xorg.conf sebagai berikut:

# Xorg configuration 
# for dual head monitor

Section "ServerLayout"
    Identifier     "Dual Head"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option         "Xinerama" "on"
    Option         "Clone" "off"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "vnc"
    Load           "glx"
    Load           "dri"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "ViewSonic"
    ModelName      "VA1716w"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "ViewSonic"
    ModelName      "VA1716w"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    BusID	   "PCI:6:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"
    BusID	   "PCI:6:0:0"
    Screen         1
EndSection


Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "SecurityTypes" "None"
    Option         "localhost" "1"
    SubSection     "Display"
        Depth       24
        Modes       "1440x900"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Videocard1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "SecurityTypes" "None"
    Option         "localhost" "1"
    SubSection     "Display"
        Depth       24
        Modes       "1440x900"
    EndSubSection
EndSection

Twin View

Konfigurasi Twin View adalah mode tampilan dua monitor yang ditangani langsung oleh driver NVIDIA, bukan oleh X-Windows. Mode ini hanya bisa dilakukan jika memakai kartu grafis NVIDIA yang memang bisa dikoneksikan ke dua monitor (misal GTS 250). Keuntungannya:

  • Lebih cepat, karena X-Windows akan melihat seluruh layar sebagai satu kesatuan
  • Total seluruh layar bisa digunakan untuk animasi OpenGL

Terbukti untuk simulasi Smokeparticles, mode dual head hanya mencapai 21 fps, sementara mode twin view bisa 59 fps. Sementara itu kekurangannya lebih dari segi kenyamanan, kedua layar akan jadi satu desktop lebar yang terbelah ditengah.

Untuk mode ini, bisa dengan memanggil

nvidia-xconfig --twinview

Isi /etc/X11/xorg.conf akan menjadi sebagai berikut:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder58)  Tue Oct 20 21:25:04 PDT 2009

# Xorg configuration created by pyxf86config

Section "ServerLayout"
    Identifier     "TwinView"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "vnc"
    Load           "glx"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "ViewSonic"
    ModelName      "VA1716w"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "ViewSonic"
    ModelName      "VA1716w"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    BusID          "PCI:6:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"
    BusID          "PCI:6:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "SecurityTypes" "None"
    Option         "localhost" "1"
    Option         "TwinView" "True"
    Option         "MetaModes" "nvidia-auto-select, nvidia-auto-select"
    SubSection     "Display"
        Depth       24
        Modes      "1440x900"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Videocard1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "SecurityTypes" "None"
    Option         "localhost" "1"
    Option         "TwinView" "True"
    Option         "MetaModes" "nvidia-auto-select, nvidia-auto-select"
    SubSection     "Display"
        Depth       24
        Modes      "1440x900"
    EndSubSection
EndSection

Dual Twin View

Konfigurasi ini bisa dipakai untuk empat monitor, dalam susunan 4x1 maupun 2x2. Syaratnya, komputer harus memiliki dua GPU NVIDIA, masing-masing GPU memiliki dua luaran ke monitor (DVI atau VGA). Konfigurasi xorg-nya adalah sebagai berikut:

# Xorg configuration 
# for quad-head monitor, dual twin-view

Section "ServerLayout"
    Identifier     "Dual Twin View"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" 0 1050
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option         "Xinerama" "on"
    Option         "Clone" "off"
EndSection

Section "Files"
EndSection

Section "Module"
    #Load           "vnc"
    Load           "glx"
    #Load          "dri"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Dell"
    ModelName      "DELL E228WFP"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Dell"
    ModelName      "DELL E228WFP"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor2"
    VendorName     "Dell"
    ModelName      "DELL E228WFP"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor3"
    VendorName     "Dell"
    ModelName      "DELL E228WFP"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 295"
    BusID          "PCI:5:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTS 250"
    BusID          "PCI:6:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "SecurityTypes" "None"
    Option         "localhost" "1"
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "CRT: 1680x1050 +1680+0, DFP: 1680x1050 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "SecurityTypes" "None"
    Option         "localhost" "1"
    Option         "TwinView" "1"
    Option         "metamodes" "CRT: 1680x1050 +1680+0, DFP: 1680x1050 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


Kontributor: Mursito