rendered paste body## /etc/X11/xorg.conf
# 3 manières de le lancer :
# startx -- -layout single (par défaut) voir DefaultServerLayout
# startx -- -layout twinview pour le twinview nvidia
# startx -- -layout xinerama pour le xinerama
Section "Files"
RgbPath "/usr/lib/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/local/"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/corefonts"
FontPath "/usr/share/fonts/freefont"
FontPath "/usr/share/fonts/sharefonts"
FontPath "/usr/share/fonts/artwiz"
FontPath "/usr/share/fonts/terminus"
FontPath "/usr/share/fonts/ttf-bitstream-vera"
FontPath "/usr/share/fonts/unifont"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
EndSection
Section "Module"
Load "dbe"
Load "v4l"
Load "extmod"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "ServerFlags"
# Time in minutes before blank / stdby / suspend / off
Option "blank time" "5"
Option "standby time" "10"
Option "suspend time" "15"
Option "off time" "20"
# SELECT YOUR PREFERRED LAYOUT HERE
Option "DefaultServerLayout" "single"
EndSection
Section "InputDevice"
Identifier "Keyboard_Logitech_G15"
Driver "keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "ch"
EndSection
Section "InputDevice"
Identifier "Mouse_Logitech_mx518"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Resolution" "800"
Option "Buttons" "7"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "SamsungTFT1"
Option "dpms"
HorizSync 30.0-81.0
VertRefresh 56-75
DisplaySize 376 301
EndSection
Section "Monitor"
Identifier "SamsungTFT2"
Option "dpms"
HorizSync 30.0-98.0
VertRefresh 50-160
DisplaySize 360 270
EndSection
Section "Monitor"
Identifier "TwinMoni"
Option "dpms"
HorizSync 30.0-81.0
VertRefresh 56-60
DisplaySize 752 301 #SamsungTFT horizontal size *2 to get 86*86 dpi
EndSection
#----- Single BEGIN ------------------------------------------------------------------------------
Section "ServerLayout"
Identifier "single"
Screen 0 "Screen0"
InputDevice "Mouse_Logitech_mx518" "CorePointer"
InputDevice "Keyboard_Logitech_G15" "CoreKeyboard"
EndSection
#----- Single END --------------------------------------------------------------------------------
#----- Twinview BEGIN ----------------------------------------------------------------------------
Section "Device"
Identifier "NvidiaTwin"
VendorName "Asus"
BoardName "FX 5900 Ultra"
Driver "nvidia"
BusID "PCI:1:0:0" #lspci
Option "NoLogo" "1" #0 = logo, 1= no nvidia logo :'(
Option "RenderAccel" "true"
Option "backingstore" "true"
Option "AllowGLXWithComposite" "true"
Option "UseEdidDpi" "FALSE"
Option "DPI" "96 x 96"
Option "DPMS" "TRUE"
# Twinview part
Option "TwinView" #Twinview activation
Option "MetaModes" "1280x1024,1280x1024; 1280x1024; 1024x768,1024x768; 1024x768; 800x600,800x600; 800x600"
Option "TwinViewOrientation" "CRT-0 LeftOf DFP-0"
Option "HorizSync" "DFP-0: 30-81; CRT-0: 30-98"
Option "VertRefresh" "DFP-0: 56-75; CRT-0: 50-160"
Option "ConnectedMonitor" "DFP-0,CRT-0"
EndSection
Section "Screen"
Identifier "ScreenTwin"
Device "NvidiaTwin"
Monitor "TwinMoni"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600"
EndSubsection
EndSection
Section "ServerLayout"
Identifier "twinview"
Screen 0 "ScreenTwin"
InputDevice "Mouse_Logitech_mx518" "CorePointer"
InputDevice "Keyboard_Logitech_G15" "CoreKeyboard"
Option "Xinerama" "0"
EndSection
#----- Twinview END ------------------------------------------------------------------------------
#----- Xinerama BEGIN ----------------------------------------------------------------------------
Section "Device"
Identifier "Nvidia0"
VendorName "Asus"
BoardName "FX 5900 Ultra"
Driver "nvidia"
BusID "PCI:1:0:0"
Screen 0
#SINCE NVIDIA VERSION 1.0-8756 YOU MUST USE UseDisplayDevice INSTEAD OF ConnectedMonitor TO GET XINERAMA WORK:
#Option "ConnectedMonitor" "DFP"
Option "UseDisplayDevice" "DFP"
Option "NoLogo" "0"
Option "RenderAccel" "true"
Option "backingstore" "true"
Option "AllowGLXWithComposite" "true"
Option "UseEdidDpi" "FALSE"
Option "DPI" "96 x 96"
Option "DPMS" "TRUE"
EndSection
Section "Device"
Identifier "Nvidia1"
VendorName "Asus"
BoardName "FX 5900 Ultra"
Driver "nvidia"
BusID "PCI:1:0:0"
Screen 1
#SINCE NVIDIA VERSION 1.0-8756 YOU MUST USE UseDisplayDevice INSTEAD OF ConnectedMonitor TO GET XINERAMA WORK:
#Option "ConnectedMonitor" "CRT"
Option "UseDisplayDevice" "CRT"
Option "NoLogo" "0"
Option "RenderAccel" "true"
Option "backingstore" "true"
Option "AllowGLXWithComposite" "true"
Option "UseEdidDpi" "FALSE"
Option "DPI" "96 x 96"
Option "DPMS" "TRUE"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Nvidia0"
Monitor "SamsungTFT1"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1024x768" "800x600"
EndSubsection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Nvidia1"
Monitor "SamsungTFT2"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1024x768" "800x600"
EndSubsection
EndSection
Section "ServerLayout"
Identifier "xinerama"
Screen 0 "Screen0"
Screen 1 "Screen1" LeftOf "Screen0"
InputDevice "Mouse_Logitech_mx518" "CorePointer"
InputDevice "Keyboard_Logitech_G15" "CoreKeyboard"
Option "Xinerama" "1"
EndSection
#----- Xinerama END ------------------------------------------------------------------------------