Section "ServerLayout"
       Identifier      "X.Org Configured"
       Screen  0       "Screen0" Absolute 0 0
       Screen  1       "Screen1" RightOf "Screen0"
       InputDevice     "Keyboard0" "CoreKeyboard"
       InputDevice     "Mouse" "AlwaysCore"
       InputDevice     "Synaptics Touchpad"
EndSection

Section "Extensions"
       Option "Composite" "enable"
EndSection

Section "ServerFlags"
       Option  "AllowMouseOpenFail" "true"
EndSection

Section "Files"
       #RgbPath         "/usr/lib/X11/rgb"
       FontPath        "/usr/lib/X11/fonts/misc"
       FontPath        "/usr/lib/X11/fonts/cyrillic"
       FontPath        "/usr/lib/X11/fonts/100dpi:unscaled"
       FontPath        "/usr/lib/X11/fonts/75dpi:unscaled"
       FontPath        "/usr/lib/X11/fonts/Type1"
       FontPath        "/usr/lib/X11/fonts/100dpi"
       FontPath        "/usr/lib/X11/fonts/75dpi"
       FontPath        "/usr/lib/X11/fonts/TTF/"
       FontPath        "/usr/lib/X11/fonts/util/"
       FontPath        "/usr/lib/X11/fonts/OTF/"
       FontPath        "/usr/lib/X11/fonts/Speedo/"
       FontPath        "/usr/share/fonts/corefonts/"
EndSection

Section "Module"
       Load    "i2c"
       Load    "ddc"
       Load    "vbe"
       Load    "dbe"
       Load    "glx"
       Load    "dri"
       Load    "extmod"
       Load    "int10"
       Load    "bitmap"
       Load    "type1"
       Load    "freetype"
EndSection

Section "InputDevice"
       Identifier      "Keyboard0"
       Driver  "kbd"
       Option  "CoreKeyboard"
       Option  "XkbRules" "xorg"
       Option  "XkbModel" "pc105"
       Option  "XkbLayout" "us"
EndSection

Section "InputDevice"
       Identifier      "Mouse"
       Driver  "mouse"
       Option  "Device" "/dev/input/mice"
       Option  "CorePointer"
       Option  "Protocol" "IMPS/2"
       Option  "ZAxisMapping" "4 5"
       Option  "Buttons" "3"
EndSection


Section "InputDevice"
       Identifier      "Synaptics Touchpad"
       Driver          "synaptics"
       Option          "SendCoreEvents"        "true"
       Option          "Device"                "/dev/psaux"
       Option          "Protocol"              "auto-dev"
       Option          "HorizScrollDelta"      "0"
EndSection

Section "Monitor"
       Identifier   "Internal LCD"
       Option       "DPMS"
       HorizSync    28-64
       VertRefresh  43-60
EndSection

Section "Monitor"
	Identifier "External CRT"
	HorizSync	30 - 80
	VertRefresh	60-150
	Option		"DPMS"
EndSection

Section "Device"
       Identifier  "Intel 945GM Internal Display"
       BusID       "PCI:0:2:0"
       Driver      "intel"
       VendorName  "Intel"
       BoardName   "Intel 945"
EndSection

Section "Device"
	Identifier	"Intel 945GM External Display"
	Driver		"intel"
	BusID		"PCI:0:2:1"
	VendorName	"Intel"
	BoardName	"Intel 945GM"
EndSection

Section "Screen"
       Identifier      "Screen0"
       Device  "Intel 945GM Internal Display"
       Monitor "Internal LCD"
       DefaultColorDepth 24
       SubSection "Display"
               Depth   24
               Modes   "1280x800"
       EndSubSection
EndSection

# For external monitor
Section "Screen"
	Identifier	"Screen1"
	Device	"Intel 945GM External Display"
	Monitor	"External CRT"
	DefaultColorDepth	24
	SubSection "Display"
		Depth	24
		Modes	"640x480" "800x600" "1024x800" "1280x800"
	EndSubSection
EndSection

Section "DRI"
       Group 0
       Mode 0666
EndSection
