Scripting

Twin View Spanning Setup FC 5

Example xorg.conf setup using the Nvidia TwinView Extensions

(:source:) Section "ServerLayout" Identifier "Default Layout" Screen 0 "ScreenTwin" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" Option "Xinerama" "0" EndSection Section "Files" # Multiple FontPath entries are allowed (they are concatenated together) # By default a font server independent of the X server to render fonts. ModulePath "/usr/lib/xorg/modules/extensions/nvidia" ModulePath "/usr/lib/xorg/modules" FontPath "unix/:7100" EndSection Section "Module" Load "dbe" Load "extmod" Load "fbdevhw" Load "record" Load "freetype" Load "type1" Load "nvidia" Load "glx" EndSection Section "InputDevice" # Specify which keyboard LEDs can be user-controlled (eg, with xset(1)) # Option "Xleds" "1 2 3" # To disable the XKEYBOARD extension, uncomment XkbDisable. # Option "XkbDisable" # To customise the XKB settings to suit your keyboard, modify the # lines below (which are the defaults). For example, for a non-U.S. # keyboard, you will probably want to use: # Option "XkbModel" "pc102" # If you have a US Microsoft Natural keyboard, you can use: # Option "XkbModel" "microsoft" # # Then to change the language, change the Layout setting. # For example, a german layout can be obtained with: # Option "XkbLayout" "de" # or: # Option "XkbLayout" "de" # Option "XkbVariant" "nodeadkeys" # # If you'd like to switch the positions of your capslock and # control keys, use: # Option "XkbOptions" "ctrl:swapcaps" # Or if you just want both to be control, use: # Option "XkbOptions" "ctrl:nocaps" # # InputDevice "DevInputMice" "AlwaysCore" Identifier "Keyboard0" Driver "kbd" Option "CoreKeyboard" Option "XkbModel" "pc105" #Option "XkbModel" "logicdit" Option "XkbLayout" "gb,dvorak" Option "XkbOptions" "grp:alt_shift_toggle" 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 "TS900H" DisplaySize 376 301 Option "dpms" EndSection Section "Monitor" Identifier "Monitor1" VendorName "Monitor Vendor" ModelName "LCD Panel 1024x768" DisplaySize 308 230 Option "dpms" EndSection Section "Monitor" Identifier "TwinMoni" DisplaySize 752 301 ### Comment all HorizSync and VertSync values to use DDC: HorizSync 30.0 - 81.0 VertRefresh 56.0 - 60.0 Option "dpms" EndSection Section "Device" Identifier "NvidiaTwin" Driver "nvidia" VendorName "Nvidia" BoardName "NVIDIA GeForce FX 6200" Option "NoLogo" "0" Option "TwinView" Option "MetaModes" "1280x1024,1024x768; 1024x768,1024x768; 800x600,800x600" Option "UseDisplayDevice" "CRT-0,CRT-1" Option "TwinViewOrientation" "CRT-1 RightOf CRT-0" Option "RenderAccel" "true" Option "AllowGLXWithComposite" "true" Option "UseEdidDpi" "FALSE" BusID "PCI:1:0:0" EndSection Section "Screen" # SubSection "Display" # Depth 24 # Modes "1280x1024" "1024x768" "800x600" # EndSubSection Identifier "ScreenTwin" Device "NvidiaTwin" Monitor "TwinMoni" DefaultDepth 24 EndSection Section "Extensions" Option "Composite" "enable" EndSection

xorg.conf using Nvidia and twinview (alternate - this works with my latest ubuntu gutsy install)

(:source:) # xorg.conf (xorg X Window System server configuration file) # # This file was generated by dexconf, the Debian X Configuration tool, using # values from the debconf database. # # Edit this file with caution, and see the xorg.conf manual page. # (Type "man xorg.conf" at the shell prompt.) # # This file is automatically updated on xserver-xorg package upgrades *only* # if it has not been modified since the last upgrade of the xserver-xorg # package. # # If you have edited this file but would like it to be automatically updated # again, run the following command: # sudo dpkg-reconfigure -phigh xserver-xorg Section "Files" ModulePath "/usr/lib/xorg/modules/drivers" ModulePath "/usr/lib/xorg/modules" EndSection Section "Module" Load "v4l" Load "dbe" Load "extmod" Load "fbdevhw" Load "record" Load "freetype" Load "nvidia" Load "glx" Load "vnc" EndSection Section "Extensions" Option "Composite" "enable" EndSection Section "ServerFlags" EndSection Section "ServerLayout" Identifier "Default Layout" screen 0 "Screen0" 0 0 # screen 1 "Screen1" RightOf "Screen0" Inputdevice "Keyboard" Inputdevice "Mouse" EndSection Section "InputDevice" Identifier "Keyboard" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "us" Option "XkbLayout" "gb,dvorak" Option "XkbOptions" "grp:alt_alt_toggle" Option "XkbOptions" "altwin:super_win" EndSection Section "InputDevice" Identifier "Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ImPS/2" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "true" EndSection Section "Monitor" Identifier "Samsung" Vendorname "Samsung" Modelname "Samsung SyncMaster 931BW (DVI)" # Horizsync 30-81 # Vertrefresh 56-75 EndSection Section "Monitor" Identifier "LG" Vendorname "LG" Modelname "L1510" # Horizsync 31.5-48.0 # Vertrefresh 56.0-65.0 EndSection Section "Device" Identifier "Device0" Boardname "nVidia Corporation NV44A [GeForce 6200]" Busid "PCI:1:0:0" Driver "nvidia" # Option “RenderAccel” “true” Option "NvAGP" "2" Option "DigitalVibrance" "0" Option "TransparentIndex" "0" Option "CursorShadowAlpha" "64" Option "CursorShadowXOffse" "4" Option "CursorShadowYOffset" "2" Option "UBB" "FALSE" # Option "Twinview" "TRUE" # Option "TwinViewOrientation" "LeftOf" # Option "SecondMonitorHorizSync" "30-81" # Option "SecondMonitorVertRefresh" "56-75" # Option "MetaModes" "1024x768,1440x900" # Option "ConnectedMonitor" "CRT,DFP" EndSection Section "screen" Identifier "Screen0" Device "Device0" Monitor "Samsung" Defaultdepth 24 # Twinview settings Option "TwinView" "true" Option "ConnectedMonitors" "CRT-0,CRT-1" # the order here is irrelevent Option "SecondMonitorHorizSync" "31.5-48.0" Option "SecondMonitorVertRefresh" "56.0-65.0" Option "IgnoreDisplayDevices" "TV" Option "MetaModes" "1440x900 @1440x900 +0+0, 1024x768 +1440+0" # Option "Xinerama" "on" SubSection "Display" Depth 24 Modes "1440x900" EndSubSection Option "SecurityTypes" "VncAuth" Option "UserPasswdVerifier" "VncAuth" Option "PasswordFile" "/root/.vnc/passwd" EndSection