# XFree86 4.0 configuration generated by Xconfigurator

Section "ServerLayout"
	Identifier "XFree86 Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

# By default, Red Hat Linux 6.0 and later use xfs

Section "Files"
    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
#    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/CID/"
    FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic/"
    FontPath   "/usr/X11R6/lib/X11/fonts/TTF/"
#   FontPath "unix/:7100"
EndSection

# Module loading section

Section "Module"
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
# marked omit xfree86-dga by Cyberlink's suggesstion
#    Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

	Load  "dbe"		# Double-buffering
	Load  "GLcore"		# OpenGL support
	Load  "dri"		# Direct rendering infrastructure
	Load  "glx"		# OpenGL X protocol interface
	Load  "extmod"		# Misc. required extensions
	Load  "v4l"		# Video4Linux
	# Load  "record"	# X event recorder
	# You only need the following two modules if you do not use xfs.
	Load  "freetype"	 # TrueType font handler
	Load  "type1"		# Adobe Type 1 font handler
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
	Option      "XkbLayout"	"us"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option      "Device" "/dev/mouse"
	Option      "Protocol" "PS/2"
	Option      "Emulate3Buttons" "on"
	Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
	Identifier "PTS031D"
	VendorName "Unknown"
	ModelName  "Unknown"
	HorizSync 30 - 70
	VertRefresh 50 - 160
	#Refresh Rate 60Hz
        ModeLine "720x480" 26.7 720 736 808 896 480 481 484 497
        ModeLine "720x576" 32.7 720 744 816 912 576 577 580 597
        ModeLine "848x480" 31.5 848 864 952 1056 480 481 484 497
        ModeLine "856x480" 31.7 856 872 960 1064 480 481 484 497
        ModeLine "1024x512" 41.3 1024 1056 1160 1296 512 513 516 531
        ModeLine "1280x768" 80.1 1280 1344 1480 1680 768 769 772 795
        ModeLine "1440x1050" 126.2 1440 1536 1688 1936 1050 1051 1054 1087
	#Refresh Rate 75Hz
        ModeLine "720x480" 34.9 720 752 824 928 480 481 484 502
        ModeLine "720x576" 42.6 720 760 832 944 576 577 580 602
        ModeLine "848x480" 41.0 848 880 968 1088 480 481 484 502
        ModeLine "856x480" 41.3 856 888 976 1096 480 481 484 502
        ModeLine "1024x512" 53.3 1024 1072 1176 1328 512 513 516 535
        ModeLine "1280x768" 103.0 1280 1360 1496 1712 768 769 772 802
        ModeLine "1440x1050" 160.0 1440 1536 1696 1952 1050 1051 1054 1096
	#Refresh Rate 85Hz
        ModeLine "1280x768" 118.5 1280 1368 1504 1728 768 769 772 807
        ModeLine "1440x1050" 184.5 1440 1544 1704 1968 1050 1051 1054 1103
        ModeLine "848x480" 47.4 848 888 976 1104 480 481 484 505
	Option "dpms"
EndSection

Section "Device"
	Identifier "CLE266"
	Driver "via"
	BoardName "Unknown"

        #Option "A2"
        Option "NoDDCValue"
        #Option "UseBIOS"
        Option "TVDotCrawl"
        Option "TVType" "NTSC"
        Option "TVOutput" "S-Video"
        Option "TVVScan" "over"
        #Option "TVEncoder" "FS454"
        #Option "PanelSize" "1280x1024"
        #Option "LowRes"
        #Option "Center"
        #Option "HWCursor"
        #Option "SWCursor"
        #Option "ShadowFB"
        #Option "Refresh" "60"
        Option "ActiveDevice" "CRT,TV"
        #Option "DisableVQ"
        #Option "HQVFilterManualSelect"
        #Option "MpegHQVVFilterMode" "0"
        #Option "MpegHQVHFilterMode" "0"
        #Option "Cap1UseIRQ"

        #Option "HQVManualSwitch"
        #Option "NoMPEGAddOneLineOnBottom"
        #Option "TVCLKIN" "30"
        #Option "SetMpegFBNumber"

        #Option "CapInterVersion" "30"
        #Option "CaptureOverScanOff"
        #Option "Cap0NoAutoDetect"
        #Option "Cap0Deinterlace" "bob"  # Bob/Weave
        #Option "Cap0FieldSwap"
        #Option "NoCap0HFilter"
        #Option "Cap0DataWidth" "8"
        #Option "Cap0VDODecoderDev" "SAA7114"    # SAA7113/SAA7114/SAA7108
        #Option "Cap0VDODecoderI2C" "64"
        #Option "Cap0CompositeMode" "2"
        #Option "Cap0SVideoMode" "7"             # SAA7113:9, SAA7114:7
        #Option "Cap0TunerMode" "0"
        #Option "Cap0Scaler" "0"
        #Option "Cap0Brightness" "128"           # 0-255
        #Option "Cap0Contrast" "71"              # 0-255
        #Option "Cap0Hue" "0"                    # 0-255
        #Option "Cap0Saturation" "64"            # 0-255
        #Option "Cap0Standard" "NTSC"            # NTSC/PAL/SECAM
        #Option "Cap0TunerDev" "FI1236MK2"
        #Option "Cap0TunerI2C" "192"

        #Option "Cap1NoAutoDetect"
        #Option "Cap1Deinterlace" "bob"  # Bob/Weave
        #Option "NoCap1HFilter"
        #Option "Cap1DataWidth" "8"
        #Option "Cap1VDODecoderDev" "SAA7114"
        #Option "Cap1VDODecoderI2C" "66"
        #Option "Cap1CompositeMode" "2"
        #Option "Cap1SVideoMode" "7"
        #Option "Cap1TunerMode" "0"
        #Option "Cap1Scaler" "0"
        #Option "Cap1Brightness" "128"
        #Option "Cap1Contrast" "71"
        #Option "Cap1Hue" "0"
        #Option "Cap1Saturation" "64"
        #Option "Cap1Standard" "NTSC"
        #Option "Cap1TunerDev" "FI1236MK2"
        #Option "Cap1TunerI2C" "198"

EndSection

Section "Device"
	Identifier "Linux Frame Buffer"
	Driver "fbdev"
	BoardName "Unknown"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device "CLE266"
	Monitor "PTS031D"
	DefaultDepth 24
	Subsection "Display"
		Depth 24
		#Modes "1600x1200"
		#Modes "1440x1050"
		#Modes "1280x1024"
		#Modes "1280x960"
		#Modes "1280x768"
		#Modes "1152x864"
		#Modes "1024x768"
		#Modes "1024x512"
		#Modes "856x480"
		#Modes "848x480"
		#Modes "800x600"
		#Modes "720x576"
		#Modes "720x480"
		Modes "640x480"
		#Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1280x768" "1152x864" "1024x768" "1024x512" "856x480" "848x480" "800x600" "720x576" "720x480" "640x480"
		#Modes "640x480" "720x480" "720x576" "800x600" "848x480" "856x480" "1024x512" "1024x768" "1152x864" "1280x768" "1280x960" "1280x1024" "1400x1050" "1600x1200"
        #Virtual 1280 1024
	EndSubSection
	Subsection "Display"
		Depth 16
		#Modes "1600x1200"
		#Modes "1440x1050"
		#Modes "1280x1024"
		#Modes "1280x960"
		#Modes "1280x768"
		#Modes "1152x864"
		#Modes "1024x768"
		#Modes "1024x512"
		#Modes "856x480"
		#Modes "848x480"
		Modes "800x600"
		#Modes "720x576"
		#Modes "720x480"
		#Modes "640x480"
		#Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1280x768" "1152x864" "1024x768" "1024x512" "856x480" "848x480" "800x600" "720x576" "720x480" "640x480"
		#Modes "640x480" "720x480" "720x576" "800x600" "848x480" "856x480" "1024x512" "1024x768" "1152x864" "1280x768" "1280x960" "1280x1024" "1400x1050" "1600x1200"
	EndSubSection
	Subsection "Display"
		Depth 8
		#Modes "1600x1200"
		#Modes "1440x1050"
		#Modes "1280x1024"
		#Modes "1280x960"
		#Modes "1280x768"
		#Modes "1152x864"
		#Modes "1024x768"
		#Modes "1024x512"
		#Modes "856x480"
		#Modes "848x480"
		Modes "800x600"
		#Modes "720x576"
		#Modes "720x480"
		#Modes "640x480"
		#Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1280x768" "1152x864" "1024x768" "1024x512" "856x480" "848x480" "800x600" "720x576" "720x480" "640x480"
		#Modes "640x480" "720x480" "720x576" "800x600" "848x480" "856x480" "1024x512" "1024x768" "1152x864" "1280x768" "1280x960" "1280x1024" "1400x1050" "1600x1200"
	EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection
