# /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 xorg.conf(5) 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 "ServerLayout"
	Identifier		"Default Layout"
	Screen			"DefaultScreen" 0 0
	InputDevice		"Generic Keyboard"
	InputDevice		"Configured Mouse"
#	InputDevice		"stylus" "SendCoreEvents"
#	InputDevice		"cursor" "SendCoreEvents"
#	InputDevice		"eraser" "SendCoreEvents"
	InputDevice		"Wiimote" "AlwaysCore"
EndSection

Section "Files"
	# path to defoma fonts
	FontPath		"/usr/share/fonts/X11/misc"
	#FontPath		"/usr/share/fonts/X11/cyrillic"	# Causes warning in /var/log/xorg.0.log
	FontPath		"/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath		"/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath		"/usr/share/fonts/X11/Type1"
	FontPath		"/usr/share/fonts/X11/100dpi"
	FontPath		"/usr/share/fonts/X11/75dpi"
	FontPath		"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load			"vbe"
	Load			"dbe"
	Load			"extmod"
	Load			"freetype"
	Load			"glx"
	Load			"bitmap"
EndSection

Section "InputDevice"
	Identifier		"Generic Keyboard"
	Driver			"kbd"
	Option			"CoreKeyboard"
	Option			"XkbRules" "xorg"
	Option			"XkbModel" "pc105"
	Option			"XkbLayout" "gb"
EndSection

Section "InputDevice"
	Identifier		"Configured Mouse"
	Driver			"mouse"
	Option			"CorePointer"
	Option			"Device" "/dev/input/mice"
	Option			"Protocol" "ImPS/2"
	Option			"ZAxisMapping" "4 5"
	Option			"Emulate3Buttons" "true"
EndSection

#Section "InputDevice"
#	Identifier		"stylus"
#	Driver			"wacom"
#	Option			"Device" "/dev/input/wacom"
#	Option			"Type" "stylus"
#	Option			"ForceDevice" "ISDV4"# Tablet PC ONLY
#EndSection

#Section "InputDevice"
#	Identifier		"eraser"
#	Driver			"wacom"
#	Option			"Device" "/dev/input/wacom"
#	Option			"Type" "eraser"
#	Option			"ForceDevice" "ISDV4"# Tablet PC ONLY
#EndSection

#Section "InputDevice"
#	Identifier		"cursor"
#	Driver			"wacom"
#	Option			"Device" "/dev/input/wacom"
#	Option			"Type" "cursor"
#	Option			"ForceDevice" "ISDV4"# Tablet PC ONLY
#EndSection

Section "InputDevice"
	Identifier		"Wiimote"
	Driver			"evdev"
	Option			"Name"			"Nintendo Wiimote"
EndSection

Section "Monitor"
	# TwinView requires that all monitors being used have their parameters
	# defined in the same "Monitor" section, because the "Screen" section
	# (where TwinView is enabled) can only have a single monitor associated
	# with it.
	Identifier		"DefaultMonitor"

	# DFP-0 = DVI-port (1080i HDTV), CRT-0 = VGA-port (17" LCD)
	Option			"HorizSync"		  "DFP-0: 30.0 - 130.0; CRT-0: 31.5 - 83.0"
	Option			"VertRefresh"	  "DFP-0: 52.0 - 160.0; CRT-0: 60.0 - 76.0"

	# Toshiba WLT66 1080i mode
	ModeLine		"1920x1080_30i" 74.2 1920 2008 2052 2200 1080 1084 1094 1124 +hsync +vsync interlace

	# BenQ FP731 1280x768 mode
	ModeLine		"1280x768_75" 102.98 1280 1360 1496 1712 768 769 772 802 -hsync +vsync

	# The Toshiba contains useless crap in its EDID which actually prevents the
	# driver from using the native resolution of the display. We work around
	# this by displaying EDID frequencies and ensuring that we have good
	# ModeLines above
	Option			"UseEDIDfreqs"	"false"
EndSection

Section "Device"
	Identifier		"nVidia Corporation G70 [GeForce 7300 GT]"
	Driver			"nvidia"
EndSection

Section "Screen"
	# We enable TwinView here and define how the Monitors should be configured
	# with reference to the ModeLines in the "Monitor" section
	Identifier		"DefaultScreen"
	Device			"nVidia Corporation G70 [GeForce 7300 GT]"
	Monitor			"DefaultMonitor"
	DefaultDepth	24

	Option			"TwinView"	"true"

	# A MetaMode is a TwinView state which describes the modes of each Monitor
	# which makes it up. Here we refer to the ModeLines in our "MOnitor"
	# section and attribute each to a specific port on the card (DFP-0 / CRT-0).
	# The "+0+0" places that monitor's viewport at the top-left of the virtual
	#screen, and "+1920+0" places the CRT right of the DFP (the DFP is 1920 wide)
	Option			"MetaModes"	"DFP-0: 1920x1080_30i +0+0, CRT-0: 1280x1024_75 +1920+0"
	Option			"TwinViewOrientation"	"DFP-0 LeftOf CRT-0"
EndSection

# Used by Compiz-fusion, apparently
Section "Extensions"
	Option			"Composite" "Enable"
EndSection

