# XF86Config-4 (XFree86 X server configuration file) generated by dexconf, the
# Debian X Configuration tool, using values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
#   cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
#   md5sum /etc/X11/XF86Config-4 > /var/lib/xfree86/XF86Config-4.md5sum
#   dpkg-reconfigure xserver-xfree86

Section "Files"
	FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/lib/X11/fonts/CID"
	FontPath	"/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
#	Load	"GLcore"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"vbe"
	Load	"synaptics"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"dvorak"
#	Option		"XkbVariant"	"dvorak"
EndSection

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

Section "InputDevice"
	Identifier	"Generic Mouse"
	Driver		"synaptics"
	Option		"CorePointer"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"auto-dev"
#	Option		"Emulate3Buttons"	"true"
	Option		"XAxisMapping"		"6 7"
	Option		"LeftEdge"      "1700"
	Option		"RightEdge"     "4700"
	Option		"TopEdge"       "1700"
	Option		"BottomEdge"    "4700"
	Option		"FingerLow"     "25"
	Option		"FingerHigh"    "30"
	Option		"MaxTapTime"    "180"
	Option		"MaxTapMove"    "220"
	Option		"VertScrollDelta" "100"
	Option		"MinSpeed"      "0.02"
	Option		"MaxSpeed"      "0.18"
	Option		"AccelFactor" "0.0007"
        Option          "CircularScrolling" "on"
        Option          "CircScrollDelta" "0.05"
        Option          "CircScrollTrigger" "3"
        Option          "TapButton2"    "3"
        Option          "TapButton3"    "2"
	Option		"ShmConfig"		"on"
EndSection

Section "Device"
        Identifier      "i830 #3"
        Driver          "i810"
#        BusID           "0:2:0"
#        Option          "PageFlip" "true"
#        Option          "DevicePresence" "on"
	Option		"MonitorLayout" "LFP+CRT"
EndSection

Section "Device"
	Identifier	"i830 #1"
	Driver		"i810"
	BusID		"0:2:0"
	Option		"MonitorLayout" "CRT,LFP"
#	Option		"DevicePresence" "yes"
	Option		"DisplayInfo" "no"
	Option		"VBERestore" "yes"
# Story of this: When FlipPrimary is "true" it flips the primary -- but it forgets to UNflip the primary! LOL! So if you do it twice, you're right back where you started.
#	Option		"FlipPrimary" "true"
#	Option		"DDC" "no"
	Screen 0
EndSection

Section "Device"
	Identifier	"i830 #2"
	Driver		"i810"
	BusID		"0:2:0"
	Option		"MonitorLayout" "CRT,LFP"
	Screen 1
EndSection

Section "Monitor"
	Identifier	"Internal LCD"
	HorizSync 31.5-64.3
	VertRefresh 50-70
	Option		"DPMS"
EndSection

Section "Monitor"
	Identifier	"External LCD"
	HorizSync 31.5-81
	VertRefresh 50-76
	Option		"DPMS"
EndSection

Section "Screen"
	Identifier	"External Screen"
	Device		"i830 #1"
	Monitor		"External LCD"
	DefaultDepth	16
	SubSection "Display"
		Depth		16
		Modes		"1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"Internal Screen"
	Device		"i830 #2"
	Monitor		"Internal LCD"
	DefaultDepth	16
	SubSection "Display"
		Depth		16
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1280x1024 1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "Screen"
        Identifier      "Both Screens"
        Device          "i830 #3"
        Monitor         "Internal LCD"
        DefaultDepth    16
        SubSection "Display"
                Depth           16
                Modes           "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1280x1024 1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Both Screens"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "Generic Mouse"
EndSection

Section "ServerLayout"
	Identifier	"DH"
	Screen		"External Screen"
	Screen		"Internal Screen" RightOf "External Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"Generic Mouse"
EndSection

Section "DRI"
	Mode	0666
EndSection

