xorg.conf
A customised xorg.conf file for use with dual-monitor setup. Obsolete at this moment but here for reference.
# /etc/X11/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 /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/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 commands:
#
# cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom
# sudo sh -c 'md5sum /etc/X11/xorg.conf >/var/lib/xfree86/xorg.conf.md5sum'
# sudo dpkg-reconfigure xserver-xorg
#
# File modified to fit the needs of a dual-screen nvidia setup
Section "Files"
# if the local font server has problems, we can fall back on these
# paths to defoma fonts
FontPath "unix/:7100"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
FontPath "/usr/local/share/fonts"
EndSection
Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
# **********************************************************************
# Monitor section
# **********************************************************************
# Any number of monitor sections may be present
Section "Monitor"
Identifier "mainscreen"
HorizSync 30.0 - 142.0
VertRefresh 50-200 #55-160
DisplaySize 400 300
EndSection
#Section "Monitor"
# Identifier "DELL"
# HorizSync 31.5 - 70.0
# VertRefresh 50-120
#EndSection
# **********************************************************************
# Graphics device section
# **********************************************************************
# Any number of graphics device sections may be present
Section "Device"
Identifier "nv-single"
Driver "nvidia"
BusID "PCI:2:0:0"
Option "ConnectedMonitors" "crt"
EndSection
#Section "Device"
# Identifier "nv-dual"
# Driver "nvidia"
# BusID "PCI:2:0:0"
# Option "TwinView"
# Option "TwinViewOrientation" "RightOf"
# Option "ConnectedMonitors" "CRT-0, CRT-1"
# Option "SecondMonitorHorizSync" "30-95"
# Option "SecondMonitorVertRefresh" "50-150"
# Option "MetaModes" "1600x1200 +0+0, 1280x1024 +1600+176; 1024x768,800x600"
#EndSection
Section "Device"
Identifier "nv-tv"
Driver "nvidia"
BusID "PCI:2:0:0"
Option "TwinView"
Option "TwinViewOrientation" "Clone"
Option "ConnectedMonitors" "crt,tv"
Option "SecondMonitorHorizSync" "30-50"
Option "SecondMonitorVertRefresh" "60"
Option "TVStandard" "PAL-B"
Option "TVOutFormat" "SVIDEO"
Option "MetaModes" "800x600,800x600"
EndSection
# **********************************************************************
# Screen sections
# **********************************************************************
Section "Screen"
Identifier "Single-scr"
Device "nv-single"
Monitor "mainscreen"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "800x600 1024x768"
#Modes "1600x1200" "1280x1024" "1280x960" "1024x768"
EndSubsection
EndSection
#Section "Screen"
# Identifier "Dual-scr"
# Device "nv-dual"
# Monitor "mainscreen"
# DefaultDepth 24
# Option "DPMS" #schakelt DPMS driver in waardoor KDE ding uit dan zetten
# Subsection "Display"
# Depth 24
# Modes "1280x1024" "1280x960" "1024x768"
# EndSubsection
#EndSection
Section "Screen"
Identifier "TV-scr"
Device "nv-tv"
Monitor "mainscreen"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1280x1024" "1280x960" "1024x768"
EndSubsection
EndSection
# **********************************************************************
# ServerLayout sections.
# **********************************************************************
# Any number of ServerLayout sections may be present. Each describes
# the way multiple screens are organised. A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option. In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.
Section "ServerLayout"
Identifier "Single"
Screen "Single-scr"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard" "CoreKeyboard"
EndSection
#Section "ServerLayout"
# Identifier "Dual"
# Screen "Dual-scr"
# InputDevice "Mouse1" "CorePointer"
# InputDevice "Keyboard" "CoreKeyboard"
#EndSection
Section "ServerLayout"
Identifier "TV"
Screen "TV-scr"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard" "CoreKeyboard"
EndSection
Section "Extensions"
# Option "RENDER" "Enable"
Option "Composite" "Enable"
EndSection