# 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"
	# TrueType Font
	FontPath 	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
	FontPath 	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

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

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"gb"
EndSection

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

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

Section "Device"
	Identifier	"Generic Video Card"
	Driver		"sis"
	Option 		"ForceCRT2Type" 	"SVIDEO"
	#Option          "ForceCRT2Type"         "Composite"
	Option 		"XvOnCRT2" 		"true"

	Option 		"TVStandard" 		"PAL"
	#    0 ->   7
	#Option		"XvDefaultContrast"	"3"
	# -128 -> 127
	#Option		"XvDefaultBrightness"	"50"
	#   -8 ->   7
	#Option		"XvDefaultHue"		"3"
	#   -7 ->   7
	#Option		"XvDefaultSaturation"	"3"

	#Option 		"TVXPosOffset" 		"-23"
	#Option 		"TVYPosOffset" 		"-10"
	#Option 		"SISTVXScale" 		"16"
	Option		"EnableSisCtrl"		"true"
	Option 		"ForceCRT1" 		"false"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	HorizSync	30-60
	VertRefresh	50-75
	#HorizSync	30-98
	#VertRefresh	50-160
	Option		"DPMS"			"False"

	# 768x576 @ 79 Hz, 50 kHz hsync
	#ModeLine "720x576"     50.00  768  832  846 1000   576  590  595  630
	# 768x576 @ 100 Hz, 61.6 kHz hsync
	#ModeLine "720x576"     63.07  768  800  960 1024   576  578  590  616
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Generic Video Card"
	Monitor		"Generic Monitor"
	DefaultDepth	16
	SubSection "Display"
		Depth		16
		Modes		"800x600" #"1024x768" "800x600" "640x480"
	EndSubSection
EndSection

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

#Section "DRI"
#	Mode	0666
#EndSection

Section "ServerFlags"
	Option  "AllowMouseOpenFail"    "true"  # Démarrage sans souris
	#Option  "DontZap"               "true"  # CTRL+ALT+BS
	Option  "DontZoom"              "true"  # CTRL+ALT++/-
	#Option  "DontVTSwitch"          "true"  # CTRL+ALT+Fn
	Option 	"BlankTime"   		"99999"
	Option 	"StandbyTime" 		"99999"
	Option 	"SuspendTime" 		"99999"
	Option 	"OffTime"     		"99999"
EndSection

