# XF86Config-4 (XFree86 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 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/share/fonts/X11/misc"
	FontPath	"/usr/share/fonts/X11/misc"
#	FontPath	"/usr/lib/X11/fonts/misc"
####	FontPath	"/usr/share/fonts/X11/cyrillic"
#	FontPath	"/usr/lib/X11/fonts/cyrillic"
#	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
#	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
####	FontPath	"/usr/share/fonts/X11/Type1"
#	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/share/fonts/X11/CID"
#	FontPath	"/usr/lib/X11/fonts/CID"
#	FontPath	"/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/share/fonts/X11/100dpi"
#	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/share/fonts/X11/75dpi"
#	FontPath	"/usr/lib/X11/fonts/75dpi"
#        FontPath	"/usr/share/fonts/truetype"
        FontPath	"/usr/share/fonts/truetype/msttcorefonts"
        FontPath	"/usr/share/fonts/truetype/freefont"
        FontPath	"/usr/share/fonts/truetype/ttf-bitstream-vera"
EndSection

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

Section "InputDevice"
	Identifier	"Generic Keyboard"
#	Driver		"keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"us"
#
#        Option "XkbKeycodes"  "xfree86+aliases(qwerty)"
#        Option "XkbTypes"     "complete"
#        Option "XkbCompat"    "complete+ledscroll(group_lock)"
#        Option "XkbSymbols"   "pc(pc104)+us+cz(qwerty_bksl):2+group(alt_shift_toggle)"
#        Option "XkbGeometry"  "pc(pc104)"
#
EndSection

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

## Section "InputDevice"
##	Identifier	"Synaptic Touchpad"
##	Driver		"synaptics"
##	Option		"CorePointer"
###	Option		"Device"		"/dev/psaux"
##	Option		"Device"		"/dev/input/mouse1"	
##	Option		"Protocol"		"auto-dev"
##	Option          "SHMConfig"             "on"
####        Option          "VertEdgeScroll"        "true"
####	Option          "TapButton1"            "1"
####	Option          "TapButton2"            "3"
####	Option		"Emulate3Buttons"	"true"
###        Option        "LeftEdge"              "120"
###        Option        "RightEdge"             "830"
###        Option        "TopEdge"               "120"
###        Option        "BottomEdge"            "650"
##        Option        "FingerLow"             "25"
##	Option        "FingerHigh"            "30"
###	Option        "MaxTapTime"            "180"
###	Option        "MaxTapMove"            "110"
###	Option        "EmulateMidButtonTime"  "75"
###	Option        "VertScrollDelta"       "20"
###	Option        "HorizScrollDelta"      "20"
##	Option        "MinSpeed"              "0.3"
##	Option        "MaxSpeed"              "0.75"
##	Option        "AccelFactor"           "0.015"
###	Option        "EdgeMotionMinSpeed"    "200"
###	Option        "EdgeMotionMaxSpeed"    "200"
###	Option        "UpDownScrolling"       "1"
###	Option        "CircularScrolling"     "1"
###	Option        "CircScrollDelta"       "0.1"
###	Option        "CircScrollTrigger"     "2"
##
##        Option        "RTCornerButton"        "0"
##	Option        "RBCornerButton"        "0"
##EndSection

#### Another definition:
Section "InputDevice"
# Tohle konecne funguje:
        Identifier      "ALPS"
	Driver          "synaptics"
	Option          "CorePointer"
#	Option          "AlwaysCore"
#	Option		"SendCoreEvents"	"true"	
	Option          "Device"                "/dev/psaux"
	Option          "Protocol"              "auto-dev"  
#	Option          "Protocol"              "event"
#	Option 		"LeftEdge"              "120"
#	Option		"RightEdge"             "830"	
#	Option		"TopEdge"               "120"
#	Option		"BottomEdge"            "650"
#	Option		"FingerLow"             "14"
#	Option		"FingerHigh"            "15"
#	Option		"MaxTapTime"            "180"
#	Option		"MaxTapMove"            "110"
#	Option		"ClickTime"		"0"
#	Option		"EmulateMidButtonTime"  "75"
#	Option		"VertScrollDelta"       "10"
#	Option		"HorizScrollDelta"      "10"
#	Option		"MinSpeed"              "0.45"
#	Option		"MaxSpeed"              "0.75"
#	Option		"AccelFactor"           "0.020"
#	Option		"EdgeMotionMinSpeed"    "200"
#	Option		"EdgeMotionMaxSpeed"    "200"
#	Option		"UpDownScrolling"       "1"
#	Option		"CircularScrolling"     "0"
#	Option		"CircScrollDelta"       "0.1"
#	Option		"CircScrollTrigger"     "2"
	Option		"SHMConfig"		"true"
EndSection

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

Section "Device"
	Identifier	"Generic Video Card"
        Driver          "intel"  
####        Option          "DDC"            "false"
	BusID		"PCI:0:2:0"
#	VideoRam	65536    # TD: should not be used anymore
	Option          "BackingStore"   "true"
##        Option          "DisplayInfo"    "FALSE"
#	Option          "Display 1400"
#       Option "PrimaryPort" "LVDS"
#
# new stuff:
#       Option          "MonitorLayout" "CRT+TV,LFP"
#	Option          "MonitorLayout" "CRT,LFP"
#	Option          "Clone"    "on"
#
# Associate with monitors:
        Option          "LVDS"       "Local Monitor"
EndSection

Section "Monitor"
	Identifier	"Local Monitor"
	HorizSync	30-70
	VertRefresh	50-80  # was: 65
	Option		"DPMS"
#	ModeLine "1400x1050" 107.85 1400 1450 1500 1999 1050 1058 1070 1150
#       Modeline "1400x1050" 130.80 1400 1416 1704 1816 1050 1050 1057 1097
EndSection

Section "Monitor"
	Identifier	"VGA Monitor"
	HorizSync	30-70
	VertRefresh	50-80
	Option		"DPMS"
#	ModeLine "1400x1050" 107.85 1400 1450 1500 1999 1050 1058 1070 1150
#       Modeline "1400x1050" 130.80 1400 1416 1704 1816 1050 1050 1057 1097
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Generic Video Card"
	Monitor		"Local Monitor"
	Option          "PM"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1400x1050" "1280x1024" "1024x768" "640x480"
#		Modes		"1280x1024" "1024x768"
#		Modes		"1024x768"
#                Virtual 2048 2048
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen	        "Default Screen" # Absolute 100 100
	InputDevice	"Generic Keyboard"
#	InputDevice	"Configured Mouse" "AlwaysCore"
	InputDevice	"ALPS" "AlwaysCore"
	InputDevice	"Generic Mouse"
EndSection


Section "DRI"
	Mode	0666
EndSection



