Section "ServerFlags"
#    Option "DefaultServerLayout"  "head0"
#    Option "DefaultServerLayout"  "xinerama"
    Option "DefaultServerLayout"  "dualhead"
#    Option "Xinerama" "true"
    Option "AllowEmptyInput" "true"
#    Option "AutoAddDevices" "false"
#    Option "AutoEnableDevices" "false"
EndSection

#Section "ServerLayout"
#    Identifier     "default"
#    Screen         "Screen0" 0 0
#    InputDevice    "mouse0" "CorePointer"
#    InputDevice    "mice" "SendCoreEvents"
#    InputDevice    "KeyMouseCOM1" "CorePointer"
#    InputDevice    "Keyboards" "CoreKeyboard"
#EndSection

Section "ServerLayout"
    Identifier     "dualhead"
    InputDevice    "Keyboards" "CoreKeyboard"
    InputDevice    "mice" "CorePointer"
    Screen    0    "Screen0" 0 0
    Screen    1    "Screen1" RightOf "Screen0"
EndSection

Section "ServerLayout"
    Identifier     "xinerama"
    InputDevice    "Keyboards" "CoreKeyboard"
    InputDevice    "mice" "CorePointer"
    Screen    0    "Screen0" 0 0
    Screen    1    "Screen1" RightOf "Screen0"
    Option         "Xinerama" "on"
EndSection

#Section "ServerLayout"
#    Identifier     "head0"
#    InputDevice    "Keyboard0e" "CoreKeyboard"
#    InputDevice    "PS2mouse" "CorePointer"
#    Screen    0    "Screen0" 0 0
# the same as IsolateDevice, but use bus id from "device" section
# note: only make things worse
#	Option "SingleCard" "true"
#EndSection

#Section "ServerLayout"
#    Identifier     "head1"
# this usb keyboard has separate core and multimedia parts
#    InputDevice    "Keyboard1e.0" "CoreKeyboard"
#    InputDevice    "Keyboard1e.1" "SendCoreEvents"
#    InputDevice    "VoidKeyboard" "CoreKeyboard"
#    InputDevice    "usbmouse" "CorePointer"
#    Screen    0    "Screen1" 0 0
#	Option "SingleCard" "true"
#EndSection

Section "Files"
#    FontPath        "unix/:-1"
EndSection

Section "Module"
    Load           "dbe"
    Load           "glx"
    Load           "extmod"
    Load           "freetype"
    SubSection     "extmod"
        Option         "omit xfree86-dga"
    EndSubSection
EndSection

Section "InputDevice"
    Identifier     "Keyboards"
    Driver         "kbd"
    Option         "AutoRepeat" "250 30"
    # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
    Option      "XkbModel" "pc105"
    #Option      "XkbModel" "a4techKBS8"
    Option      "XkbLayout" "us,ru"
    Option      "XkbVariant" ",winkeys"
    Option      "XkbOptions" "grp:ctrl_shift_toggle"
EndSection

#Section "InputDevice"
#    Identifier     "Keyboard0e"
    #Driver         "kbd"
#    Driver		"evdev"
#    Option		"Device" "/dev/input/event0"
#    Option		"Phys"	"isa0060/serio0/input0"
#    Option 	"Name" "AT Translated Set 2 keyboard"
    #Option         "AutoRepeat" "250 30"
    # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
    #Option      "XkbModel" "pc105"
#    Option      "XkbModel" "a4techKBS8"
#    Option      "XkbModel" "evdev"
#    Option      "XkbLayout" "us,ru,ua"
#    Option      "XkbVariant" ",winkeys,winkeys"
#    Option      "XkbOptions" "grp:menu_toggle,grp_led:scroll"
#EndSection

#Section "InputDevice"
# keyboaed 1 - the main part (useful keys)
#    Identifier     "Keyboard1e.0"
    #Driver         "kbd"
#    Driver		"evdev"
#    P: Phys=usb-0000:00:0b.1-1.1/input0
#    S: Sysfs=/class/input/input3
#    Option		"Device" "/dev/input/event3"
#    Option		"Phys"	"usb-0000:00:0b.1-1.1/input0"
#    Option		"Name" "  USB Keyboard"
#    Option         "AutoRepeat" "250 30"
    # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
    #Option      "XkbModel" "pc105"
#    Option      "XkbModel" "evdev"
    #Option      "XkbModel" "a4techKBS8"
#    Option      "XkbLayout" "us,ru,ua"
#    Option      "XkbVariant" ",winkeys,winkeys"
#    Option      "XkbOptions" "grp:menu_toggle,grp_led:scroll"
#EndSection

#Section "InputDevice"
# keyboaed 1 - the extra part (multimedia keys)
#    Identifier     "Keyboard1e.1"
    #Driver         "kbd"
#    Driver		"evdev"
#	Option		"Device" "/dev/input/event4"
#    Option		"Phys"	"usb-0000:00:0b.1-1.1/input1"
#    Option         "AutoRepeat" "250 30"
    # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#    Option      "XkbModel" "pc105"
    #Option      "XkbModel" "a4techKBS8"
#    Option      "XkbLayout" "us,ru,ua"
#    Option      "XkbVariant" ",winkeys,winkeys"
#    Option      "XkbOptions" "grp:menu_toggle,grp_led:scroll"
#EndSection

#Section "InputDevice"
#	Identifier	"VoidKeyboard"
#	Driver		"void"
#	Option		"CoreKeyboard"
#EndSection

#Section "InputDevice"
#	Identifier	"VoidPointer"
#	Driver		"void"
#	Option		"CorePointer"
#EndSection

#Section "InputDevice"
#    Identifier     "PS2mouse"
#    Driver         "mouse"
    # does not work :(
#    Option         "Device" "/dev/psaux"
#    Option         "Device" "/dev/input/mouse0"
#    Option         "Protocol" "IMPS/2"
#    Option         "ZAxisMapping" "4 5"
#EndSection

#Section "InputDevice"
#    Identifier     "usbmouse"
#    Driver         "mouse"
#    Option         "Device" "/dev/input/by-id/usb-Logitech_USB-PS.2_Optical_Mouse-mouse"
#    Option         "Protocol" "IMPS/2"
#    Option         "ZAxisMapping" "4 5"
#EndSection

Section "InputDevice"
    Identifier     "mice"
    Driver         "mouse"
    Option         "Device" "/dev/input/mice"
	#"Logitech USB-PS/2 Optical Mouse"
    Option         "Protocol" "IMPS/2"
    Option         "ZAxisMapping" "4 5"
EndSection

#Section "InputDevice"
#    Identifier     "KeyMouseCOM1"
#    Driver         "mouse"
#    Option         "Device" "/dev/ttyS0"
#    Option         "Protocol" "IntelliMouse"
#    Option         "ZAxisMapping" "4 5"
#EndSection

Section "Monitor"
    Identifier     "CTX"
    HorizSync  30-97
    VertRefresh 50-160
    # 640x480, 60.0Hz; hfreq=31.469000, vfreq=59.939999
    ModeLine "640x480"       25.17  640  648  744  784  480  482  484  509 -hsync -vsync
    # 800x600, 60.0Hz; hfreq=37.879002, vfreq=60.317001
    ModeLine "800x600"       40.00  800  840  968 1056  600  601  605  628 +hsync +vsync
    # 1024x768, 75.0Hz; hfreq=60.022999, vfreq=75.028999
    ModeLine "1024x768"      78.75 1024 1040 1136 1312  768  769  772  800 +hsync +vsync
EndSection

Section "Monitor"
    Identifier     "SyncMaster"
    Option "DPMS" "true"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
#	BoardName      "GeForce 6150LE"
	BusID		   "PCI:00:05:0"
#	Option          "AddARGBVisuals"        "True"
#	Option          "AddARGBGLXVisuals"     "True"
	Option          "NoLogo"        "True"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
#	BoardName      "GeForce 8600 GT"
	BusID		   "PCI:03:00:0"
#	Option          "AddARGBVisuals"        "True"
#	Option          "AddARGBGLXVisuals"     "True"
	Option          "NoLogo"        "True"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "CTX"
#    DefaultDepth    16
    DefaultDepth    24
    SubSection     "Display"
        Depth       8
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1024x768" "800x600" "640x480" 
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "SyncMaster"
#    DefaultDepth    16
    DefaultDepth    24
    SubSection     "Display"
        Depth       8
        Modes      "1280x1024" "1024x768" "800x600"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1280x1024" "1024x768" "800x600"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024" "1024x768" "800x600"
    EndSubSection
EndSection
