Подключение двух мониторов: Xinerama или TwinView ?

05.02.2006 21:41

Опубликовано сравнение двух технологий - Xinerama и TwinView, позволяющих расширить одну активную десктоп среду на два монитора (один виртуальный дисплей).

TwinView реализуется закрытыми драйверами NVidia, а Xinerama - стандартное расширение XOrg. В статье рассказывает о настройке обоих режимов и приводятся результаты тестирования производительности.

TwinView

 # Phoronix NVIDIA X Configuration (xorg.conf) # http://www.phoronix.com/ # Utilization of NVIDIA TwinView  Section "ServerLayout" Identifier "Default Layout" Screen "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection  Section "Files" RgbPath "/usr/X11R6/lib/X11/rgb" FontPath "unix/:7100" EndSection  Section "Module" Load "dbe" Load "extmod" Load "fbdevhw" Load "glx" Load "record" Load "freetype" Load "type1" EndSection  Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" EndSection  Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "IMPS/2" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "yes" EndSection  Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Acer AL1715" DisplaySize 340 270 HorizSync 24.0 - 80.0 VertRefresh 49.0 - 75.0 Option "dpms" EndSection  Section "Device" Identifier "Videocard0" Driver "nvidia" EndSection  Section "Screen" Identifier "Screen0" Device "Videocard0" Monitor "Monitor0" DefaultDepth 24 Option "CoolBits" "1" Option "TwinView" "True" Option "TwinViewOrientation" "RightOf" Option "UseEdidFreqs" "True" Option "MetaModes" "1280x1024, 1280x1024" Option "SecondMonitorHorizSync" "24.0 - 80.0" Option "SecondMonitorVertRefresh" "49.0 - 75.0" SubSection "Display" Depth 24 Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480" EndSubSection EndSection 

Xinerama

  Phoronix NVIDIA X Configuration (xorg.conf) # http://www.phoronix.com/ # Utilization of Xinerama  Section "ServerLayout" Identifier "Default Layout" Screen "Screen0" 0 0 Screen "Screen1" RightOf "Screen0" InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" Option "Xinerama" "on" EndSection  Section "Files" RgbPath "/usr/X11R6/lib/X11/rgb" FontPath "unix/:7100" EndSection  Section "Module" Load "dbe" Load "extmod" Load "fbdevhw" Load "glx" Load "record" Load "freetype" Load "type1" EndSection  Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" EndSection  Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "IMPS/2" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "yes" EndSection  Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Acer AL1715" DisplaySize 340 270 HorizSync 24.0 - 80.0 VertRefresh 49.0 - 75.0 Option "dpms" EndSection  Section "Monitor" Identifier "Monitor1" VendorName "Monitor Vendor" ModelName "Acer AL1715" DisplaySize 340 270 HorizSync 24.0 - 80.0 VertRefresh 49.0 - 75.0 Option "dpms" EndSection  Section "Device" Identifier "Videocard0" Driver "nvidia" BusID "PCI:1:0:0" EndSection  Section "Device" Identifier "Videocard1" Driver "nvidia" BusID "PCI:1:0:0" Screen 1 EndSection  Section "Screen" Identifier "Screen0" Device "Videocard0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480" EndSubSection EndSection  Section "Screen" Identifier "Screen1" Device "Videocard1" Monitor "Monitor1" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480" EndSubSection EndSection