# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
	Identifier     "Default Layout"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" RightOf "Screen0"
	Screen      2  "Screenvnc" RightOf "Screen1"
	#InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
	#InputDevice    "DevInputMice" "AlwaysCore"
	#InputDevice    "Mouse0" "CorePointer"
	InputDevice    "DevInputMice" "CorePointer"
EndSection

Section "ServerLayout"
	Identifier     "single"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
	InputDevice    "DevInputMice" "AlwaysCore"
EndSection

Section "Files"
# RgbPath is the location of the RGB database.  Note, this is the name of the 
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

	RgbPath      "/usr/X11R6/lib/X11/rgb"
	FontPath     "unix/:7100"
EndSection

Section "Module"
	Load  "dbe"
	Load  "extmod"
#	Load  "fbdevhw"
	Load  "glx"
	Load  "record"
	Load  "freetype"
	Load  "type1"
#	Load  "dri"
	Load  "xtrap"
	Load  "speedo"
#	Load  "vnc"
EndSection

Section "ServerFlags"
	Option "Xinerama" "false"
EndSection

Section "InputDevice"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#	Option	"Xleds"		"1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.
#	Option	"XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#	Option	"XkbModel"	"pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#	Option	"XkbModel"	"microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#	Option	"XkbLayout"	"de"
# or:
#	Option	"XkbLayout"	"de"
#	Option	"XkbVariant"	"nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#	Option	"XkbOptions"	"ctrl:swapcaps"
# Or if you just want both to be control, use:
#	Option	"XkbOptions"	"ctrl:nocaps"
#
	Identifier  "Keyboard0"
	Driver      "kbd"

	Option	    "XkbModel" "pc105"
#	Option	    "XkbModel" "geniuscomfy2"
	Option	    "XkbLayout" "us,cz"
	Option      "XkbOptions" "grp:switch,grp:alt_shift_toggle,grp_led:scroll"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2"
	Option	    "Device" "/dev/psaux"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Emulate3Buttons" "no"
EndSection

Section "InputDevice"
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
	Identifier  "DevInputMice"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Emulate3Buttons" "no"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "ADI"
	ModelName    "ADI MicroScan 6G"
	HorizSync    30.0 - 95.0
	VertRefresh  50.0 - 160.0
	Option	    "dpms"
	DisplaySize 423 317
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "TVM"
	ModelName    "TVM AS5G"
	HorizSync    30.0 - 64.0
	VertRefresh  50.0 - 120.0
	Option	    "dpms"
	DisplaySize 270 203
EndSection

Section "Monitor"
	Identifier   "Monitor1a"
	VendorName   "MAG Technology Co., Ltd."
	ModelName    "MAG XJ530"
	HorizSync    30.0 - 70.0
	VertRefresh  50.0 - 120.0
	Option	    "dpms"
	DisplaySize 270 203
EndSection

Section "Monitor"
	Identifier   "Monitor2"
#	VendorName   "TVM"
#	ModelName    "TVM AS5G"
	HorizSync    30.0 - 64.0
	VertRefresh  50.0 - 120.0
#	Option	    "dpms"
	DisplaySize 211 158
EndSection

Section "Device"
        Identifier  "nv0"
        Driver      "nvidia"
	BusID       "PCI:1:0:0"

	Screen 0

	Option "HWCursor"
        Option "CursorShadow"
        Option "NoLogo"
	Option "RenderAccel"
	Option "Overlay"
	Option "ConnectedMonitor" "CRT, CRT"
EndSection

Section "Device"
        Identifier  "nv1"
        Driver      "nvidia"
	BusID       "PCI:1:0:0"

	Screen 1

	Option "HWCursor"
#	Option "SWCursor"
        Option "CursorShadow"
        Option "NoLogo"
	Option "RenderAccel"
	Option "Overlay"
	Option "ConnectedMonitor" "CRT, CRT"
EndSection

Section "Device"
	Identifier  "mil2"
	Driver      "mga"
	VendorName  "Matrox Graphics, Inc."
	BoardName   "MGA 2164W [Millennium II]"
	BusID       "PCI:3:5:0"
EndSection

Section "Device"
	Identifier  "vnc"
	Driver      "dummy"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "nv0"
	Monitor    "Monitor0"
	DefaultDepth     24

	Subsection "Display"
    		Depth       8
	        Modes       "1600x1200" "640x480" "800x600" "1024x768" "1280x1024"
    		ViewPort    0 0
        EndSubsection
        Subsection "Display"
	        Depth       16
	        Modes       "1600x1200" "640x480" "800x600" "1024x768" "1280x1024"
    		ViewPort    0 0
        EndSubsection
	Subsection "Display"
	        Depth       24
	        Modes       "1600x1200" "640x480" "800x600" "1024x768" "1280x1024"
	        ViewPort    0 0
        EndSubsection
        Subsection "Display"
	        Depth       32
	        Modes       "1600x1200" "640x480" "800x600" "1024x768" "1280x1024"
	        ViewPort    0 0
        EndSubsection
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "nv1"
	Monitor    "Monitor1"
	DefaultDepth     24
	#Option "TVStandard" "PAL-B"
	#Option "TVOverscan" "1.0"

	Subsection "Display"
    		Depth       8
	        Modes       "1024x768" "800x600" "640x480" # "1280x1024"
    		ViewPort    0 0
        EndSubsection
        Subsection "Display"
	        Depth       16
	        Modes       "1024x768" "800x600" "640x480" # "1280x1024"
    		ViewPort    0 0
        EndSubsection
	Subsection "Display"
	        Depth       24
	        Modes       "1024x768" "800x600" "640x480" # "1280x1024"
	        ViewPort    0 0
        EndSubsection
        Subsection "Display"
	        Depth       32
	        Modes       "1024x768" "800x600" "640x480" # "1280x1024"
	        ViewPort    0 0
        EndSubsection
EndSection

Section "Screen"
	Identifier "Screenvnc"
	Device     "vnc"
	Monitor    "Monitor2"
	DefaultDepth     24

	Subsection "Display"
	        Depth       24
	        Modes       "800x600" "640x480" # "1280x1024" "1024x768"
	        ViewPort    0 0
        EndSubsection

	Option "passwordFile" "/root/.vnc/passwd"
EndSection

Section "DRI"
	Group        0
	Mode         0666
EndSection
