Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	#Screen      1  "Screen1" 		
	#InputDevice    "Mouse0" "CorePointer"
	#InputDevice    "Keyboard0" "CoreKeyboard"
	
	#Option "AIGLX" "0"
	Option "DRI2" "1"
	#Option "GlxVisuals" "all"
	Option "NoTrapSignals" "1"
EndSection

Section "ServerFlags"
    #Option "AutoAddDevices" "0"
    #Option "AIGLX" "0"
EndSection

Section "Files"
	#RgbPath      "/usr/X11R7/share/X11/rgb"
	ModulePath   "/usr/X11R7/lib/xorg/modules"
	FontPath     "/usr/X11R7/lib/X11/fonts/cp1251/misc"
	FontPath   "/usr/X11R7/lib/X11/fonts/misc"                                  
        #FontPath "/usr/X11R7/lib/X11/fonts/75dpi:unscaled"                          
	FontPath "/usr/X11R7/lib/X11/fonts/cp1251/75dpi"                                   
	FontPath "/usr/X11R7/lib/X11/fonts/75dpi"
	FontPath "/usr/share/fonts/ttf/western"                                    
	FontPath "/usr/share/fonts/ttf/decoratives"                                
	#FontPath "/usr/X11R7/lib/X11/fonts/cp1251/75dpi:unscaled"                  
	#FontPath "/usr/X11R7/lib/X11/fonts/cp1251/misc:unscaled"                   
	FontPath "/usr/share/fonts/truetype"
EndSection

Section "Module"
	Load  "ddc"
	Load  "vbe"
	load  "dbe"
	#Load  "dri2"
	#Disable  "dri"
	#Disable "dri2"
	Load  "extmod"
	#Disable  "glx"
	#Load  "record"
	#Load  "xtrap"
    SubSection "extmod"
	#Option "omit XFree86-DGA"
    EndSubSection
EndSection


Section "Extensions"                                                       
    	    #Option "Composite" "disable"
EndSection

# Section "InputDevice"
#	Identifier  "Keyboard0"
#	Option "AutoRepeat"  "250 30"
	#Option "Protocol" "evdev"
#	Option "XkbRules" "base"
	#Option "XkbModel" "pc104"                                                   
#	Option "XkbLayout" "us,ru"                                         
	#Option "XkbVariant"  "basic,winkeys"                                      
#	Option "XkbOptions"  "grp:ctrl_shift_toggle"
#	Driver      "kbd"
# EndSection

# Section "InputDevice"
#	Identifier  "Mouse0"
#	Driver      "mouse"
#	Option	    "Protocol" "IMPS/2"
#	Option	    "Device" "/dev/mouse"
# EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
#	#HorizSync 30 - 50
#	#VertRefresh 60-60
	HorizSync  11.5-60.0
	VertRefresh 50-100
#	#Modeline "640x480"     25.20  640  684  780  800   480  490  492  525 -hsync -vsync
#	#Modeline "320x240"     12.60  320  348  396  400   240  245  246  262 -hsync -vsync doublescan
#	#Modeline "1024x768"   78.80  1024 1040 1136 1312  768 769 772 800 -hsync -vsync
#	#Modeline "1024x768_72.00"  78.43  1024 1080 1192 1360  768 769 772 801  -HSync +Vsync
#	#Option    "PreferredMode" "800x600"
EndSection

# Section "Monitor"
#	Identifier   "Monitor1"
#	VendorName   "Monitor Vendor"
#	ModelName    "Monitor Model"
#	#HorizSync 30 - 50
#	#VertRefresh 60-60
#	HorizSync  11.5-60.0
#	VertRefresh 50-100
#	#Modeline "640x480"     25.20  640  684  780  800   480  490  492  525 -hsync -vsync
#	#Modeline "320x240"     12.60  320  348  396  400   240  245  246  262 -hsync -vsync doublescan
#	#Modeline "1024x768"   78.80  1024 1040 1136 1312  768 769 772 800 -hsync -vsync
#	#Modeline "1024x768_72.00"  78.43  1024 1080 1192 1360  768 769 772 801  -HSync +Vsync
#	#Option    "PreferredMode" "800x600"
# EndSection


Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "SWcursor"	"1"           	# [<bool>]
        #Option     "HWcursor"	"1"           	# [<bool>]
        #Option     "NoAccel"	"1"            	# [<bool>]
        #Option     "ShadowFB"   "1"        	# [<bool>]
        #Option     "UseFBDev"           	# [<bool>]
        #Option     "Rotate"             	# [<str>]
        #Option     "VideoKey"           	# <i>
        #Option     "FlatPanel"          	# [<bool>]
        #Option     "FPDither"           	# [<bool>]
        #Option     "CrtcNumber"         	# <i>
        #Option     "FPScale"            	# [<bool>]
        #Option     "FPTweak"            	# <i>
	#Option "NoInt10"	"1"
	#Option		"RenderAccel"	"0"
	#Option 		"NoAccel" "1"
	#Option		"AccelMethod" "xaa"
	#Option "AccelDFS" "1"
	#Option "MigrationHeuristic" "greedy" # stablest, but still crash
	#Option "MigrationHeuristic" "smart" # fastest, low memory usage, but unstable
	#Option "EXANoDownloadFromScreen" "1"
	Option  "EXANoUploadToScreen" "1"
	#Option "EXAOptimizeMigration" "0"
	#Option  "EXANoComposite" "1"
	#Option "FBtexPercent" "90"
	#Option "DRI" "0"
	#Option "ColorTiling" "0"
	#Option "ColorTiling" "1"
        #Option "BusType" "PCI"
	#Option		"EXAVSync"	"1"
	#Option		"AGPMode"	"4"
      	#Option		"AgpSize"	"32"
	#Option		"EnablePageFlip"	"on"
	#Option		"BufferSize" "2"
	#Option		"Randr12" "1"
	#Option		"ExaPixmaps" "1"
	#Option "CRTCNumber" "0"
	#Option "NewRestore" "0"
	#Option "TVOutput" "PAL"
	Identifier  "Card0"
	#Option  "Monitor-VGA"  "Monitor0"
	Driver	    "radeon"
	#Driver	"s3"
	#Driver	"nv"
	#Driver	"ati"
	#Driver "intel"
	#Driver "nouveau"
	#Driver "vesa"
	#Option "Legacy3D" "0"
	#Option "pageFlip" "1"
	#Option "TripleBuffer" "1"
	#Option "AperTexSize" "65553"
	#Option "Tiling" "0"
	#Option "CacheLines" "8192"
	Option "XAANoOffscreenPixmaps" "1"
	VendorName  "nVidia Corporation"
	BoardName   "NV5M64 [RIVA TNT2 Model 64/Model 64 Pro]"
#	BusID       "PCI:1:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "SWcursor"	"1"           	# [<bool>]
        #Option     "HWcursor"	"1"           	# [<bool>]
        #Option     "NoAccel"	"1"            	# [<bool>]
        #Option     "ShadowFB"   "1"        	# [<bool>]
	Option "NoInt10"	"1"
        #Option     "UseFBDev"           	# [<bool>]
        #Option     "Rotate"             	# [<str>]
        #Option     "VideoKey"           	# <i>
        #Option     "FlatPanel"          	# [<bool>]
        #Option     "FPDither"           	# [<bool>]
        #Option     "CrtcNumber"         	# <i>
        #Option     "FPScale"            	# [<bool>]
        #Option     "FPTweak"            	# <i>
	#Option		"RenderAccel"	"0"
	#Option 		"NoAccel" "1"
	Option		"AccelMethod" "exa"
	Option "AccelDFS" "1"
	#Option "MigrationHeuristic" "greedy" # stablest, but still crash
	#Option "MigrationHeuristic" "smart" # fastest, low memory usage, but unstable
	#Option "EXANoDownloadFromScreen" "1"
	#Option  "EXANoUploadToScreen" "1"
	#Option "EXAOptimizeMigration" "0"
	#Option 	"EXANoComposite" "1"
	#Option "FBtexPercent" "0"
	#Option "DRI" "0"
	#Option "ColorTiling" "0"
        #Option "BusType" "PCI"
	Option		"AGPMode"	"4"
      	Option		"AgpSize"	"32"
	#Option		"EnablePageFlip"	"on"
	#Option		"BufferSize" "2"
	Option		"Randr12" "1"
	#Option "CRTCNumber" "0"
	#Option "NewRestore" "0"
	#Option "TVOutput" "PAL"
	
	Identifier  "Card1"
	#Option  "Monitor-VGA"  "Monitor0"
	#Driver	    "radeon"
	Driver	"s3"
	#Driver	"nv"
	#Driver	"ati"
	#Driver "intel"
	#Driver "nouveau"
	#Driver "vesa"
	#Option "Legacy3D" "0"
	#Option "pageFlip" "1"
	#Option "TripleBuffer" "1"
	#Option "AperTexSize" "65553"
	#Option "Tiling" "0"
	#Option "CacheLines" "8192"
	Option "XAANoOffscreenPixmaps" "1"
	VendorName  "nVidia Corporation"
	BoardName   "NV5M64 [RIVA TNT2 Model 64/Model 64 Pro]"
	BusID       "PCI:0:5:0"
EndSection

Section "Screen"
	DefaultColorDepth  24
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
#	#SubSection "Display"
#	#	Viewport   0 0
#	#	Depth     1
#	#EndSubSection
#	#SubSection "Display"
#	#	Viewport   0 0
#	#	Depth     4
#	#EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
		Modes     "1024x768" "800x600" "640x480" "320x240"
		#Modes "800x600"
	EndSubSection
#	#SubSection "Display"
#	#	Viewport   0 0
#	#	Depth     15
#	#EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
		Modes    "1024x768" "800x600" "640x480" "320x240"
		#Modes "640x480"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		#Modes     "1024x768" "800x600" "640x480" "320x240"
		#Modes "640x480"
		#Modes "800x600"
		#Virtual 2048 2048
		#Virtual  2048 1024  
		#Virtual 1024 1024
	EndSubSection
#	SubSection "Display"
#	    Depth	32
#	    Modes	"1024x768"
#	EndSubSection
EndSection

#Section "Screen"
#	DefaultColorDepth 16
#	Identifier "Screen1"
#	Device     "Card1"
#	Monitor    "Monitor1"
#	#SubSection "Display"
#	#	Viewport   0 0
#	#	Depth     1
#	#EndSubSection
#	#SubSection "Display"
#	#	Viewport   0 0
#	#	Depth     4
#	#EndSubSection
#	SubSection "Display"
#		Viewport   0 0
#		Depth     8
#		Modes     "1024x768" "800x600" "640x480" "320x240"
#	EndSubSection
#	#SubSection "Display"
#	#	Viewport   0 0
#	#	Depth     15
#	#EndSubSection
#	SubSection "Display"
#		Viewport   0 0
#		Depth     16
#		Modes    "800x600" "640x480" "320x240"
#	EndSubSection
#	SubSection "Display"
#		Viewport   0 0
#		Depth     24
#		#Modes     "1024x768" "800x600" "640x480" "320x240"
#		#Modes "640x480"
#		#Modes "800x600"
#		#Virtual 2048 2048
#		#Virtual  2048 1024  
#		#Virtual 1024 1024
#	EndSubSection
#	SubSection "Display"
#	    Depth	32
#	    Modes	"1024x768"
#	EndSubSection
# EndSection


# ***** old tv-ot stuff

# Section "Monitor" 
#    Identifier "TV-0" 
#    HorizSync 30 - 50           #<---------Important line here
#    VertRefresh 60 - 60         #<---------Important line here
#    Option "DPMS" 
#    Option "ignore"
# EndSection

# Section "Screen" 
#       Identifier "Screen0" 
#       Device "Card0" 
#       Monitor "TV-0" 
#       DefaultDepth 24             #<---------Important line here
#    SubSection "Display"        #<---------Important line here
#	Depth 24               #<---------Important line here
#	Modes "800x600"        #<---------Important line here
#    EndSubSection               #<---------Important line here
# EndSection
							      

Section "dri"
    Mode	0666
EndSection


## Section "Monitor"                                                               
##    Identifier "Monitor0"
##    ModelName  "Unknown"
##    HorizSync  11.5-50.3
##    VertRefresh 50-60
##    ModeLine "1024x480"    65.00 1024 1032 1176 1344   480  488  494  563 -hsync -vsync
##    Modeline "640x480"     25.20  640  684  780  800   480  490  492  525 -hsync -vsync
##   Modeline "320x240"     12.60  320  348  396  400   240  245  246  262 -hsync -vsync
## EndSection