# xorg.conf
# Xorg configuration file for Olex
# Joacim 18/2-2009
# latest revision: Oleb 28/9-2011

################################################################################
# Common Sections
################################################################################

Section "ServerFlags"
        Option		"RenderColormapMode"	"mono"
	#Option		"AutoAddDevices"	"off"
EndSection

Section "Device"
	Identifier "statdev"
	Driver "oLeX"
        Option "XaaNoOffscreenPixmaps"
EndSection

Section "Monitor"
	Identifier "dummyLVDS"
	Option "Ignore" "true"
EndSection

Section "Monitor"
	Identifier "dualmon0_1280"
	HorizSync 31-67
	VertRefresh 50-75
EndSection

Section "Monitor"
	Identifier "dualmon1_1280"
	Option "LeftOf" "dualmon0_1280"
	HorizSync 31-67
	VertRefresh 50-75
EndSection

Section "Monitor"
	Identifier "dualmon0_1024"
	HorizSync 31-49
	VertRefresh 40-70
EndSection

Section "Monitor"
	Identifier "dualmon1_1024"
	Option "LeftOf" "dualmon0_1024"
	HorizSync 31-49
	VertRefresh 40-70
EndSection

Section "Monitor"
	Identifier "dualmon0_800"
	HorizSync 31-38
	VertRefresh 40-70
EndSection

Section "Monitor"
	Identifier "dualmon1_800"
	Option "LeftOf" "dualmon0_800"
	HorizSync 31-38
	VertRefresh 40-70
EndSection

###############################################################################
# Automatic monitor detection
###############################################################################

Section "ServerLayout"
	Identifier "dynamic"
	Screen "dynscreen"
EndSection

Section "Screen"
	Identifier "dynscreen"
	Device "dyndev"
        DefaultDepth 16
	SubSection "Display"
                Depth 8
	EndSubSection
	SubSection "Display"
                Depth 16
	EndSubSection
	SubSection "Display"
                Depth 24
	EndSubSection
EndSection

Section "Device"
	Identifier "dyndev"
	Driver "oLeX"
        Option "XaaNoOffscreenPixmaps"
EndSection

###############################################################################
# Fallback - Automatic monitor detection using general graphics driver vesa
###############################################################################

Section "ServerLayout"
	Identifier "fallback"
	Screen "fbackscreen"
EndSection

Section "Screen"
	Identifier "fbackscreen"
	Device "vesadev"
        DefaultDepth 8
	SubSection "Display"
                Depth 8
	EndSubSection
	SubSection "Display"
                Depth 16
	EndSubSection
	SubSection "Display"
                Depth 24
	EndSubSection
EndSection

Section "Device"
	Identifier "vesadev"
	Driver "vesa"
        Option "XaaNoOffscreenPixmaps"
EndSection

###############################################################################
# Static screen with resolution locked to 1920x1080
###############################################################################

Section "ServerLayout"
	Identifier "static_1920x1080"
	Screen "statscreen_1920"
EndSection

Section "Screen"
	Identifier "statscreen_1920"
	Device "statdev"
	Monitor "statmon_1920"
        DefaultDepth 16
	SubSection "Display"
		Modes "1920x1080"
                Depth 8
	EndSubSection
	SubSection "Display"
		Modes "1920x1080"
                Depth 16
	EndSubSection
	SubSection "Display"
		Modes "1920x1080"
                Depth 24
	EndSubSection
EndSection

Section "Monitor"
	Identifier "statmon_1920"
	HorizSync 31-67
	VertRefresh 50-75
EndSection

###############################################################################
# Static screen with resolution locked to 1366x768
###############################################################################

Section "ServerLayout"
	Identifier "static_1366x768"
	Screen "statscreen_1366"
EndSection

Section "Screen"
	Identifier "statscreen_1366"
	Device "statdev"
	Monitor "statmon_1366"
        DefaultDepth 16
	SubSection "Display"
		Modes "1366x768"
                Depth 8
	EndSubSection
	SubSection "Display"
		Modes "1366x768"
                Depth 16
	EndSubSection
	SubSection "Display"
		Modes "1366x768"
                Depth 24
	EndSubSection
EndSection

Section "Monitor"
	Identifier "statmon_1366"
	HorizSync 31-67
	VertRefresh 50-75
EndSection

###############################################################################
# Static screen with resolution locked to 1280x720
###############################################################################

Section "ServerLayout"
	Identifier "static_1280x720"
	Screen "statscreen_720"
EndSection

Section "Screen"
	Identifier "statscreen_720"
	Device "statdev"
	Monitor "statmon_720"
        DefaultDepth 16
	SubSection "Display"
		Modes "1280x720"
                Depth 8
	EndSubSection
	SubSection "Display"
		Modes "1280x720"
                Depth 16
	EndSubSection
	SubSection "Display"
		Modes "1280x720"
                Depth 24
	EndSubSection
EndSection

Section "Monitor"
	Identifier "statmon_720"
	HorizSync 31-67
	VertRefresh 50-75
EndSection


###############################################################################
# Static screen with resolution locked to 1280x1024
###############################################################################

Section "ServerLayout"
	Identifier "static_1280x1024"
	Screen "statscreen_1280"
EndSection

Section "Screen"
	Identifier "statscreen_1280"
	Device "statdev"
	Monitor "statmon_1280"
        DefaultDepth 16
	SubSection "Display"
		Modes "1280x1024"
                Depth 8
	EndSubSection
	SubSection "Display"
		Modes "1280x1024"
                Depth 16
	EndSubSection
	SubSection "Display"
		Modes "1280x1024"
                Depth 24
	EndSubSection
EndSection

Section "Monitor"
	Identifier "statmon_1280"
	HorizSync 31-67
	VertRefresh 50-75
EndSection

###############################################################################
# Static screen with resolution locked to 1024x768
###############################################################################

Section "ServerLayout"
	Identifier "static_1024x768"
	Screen "statscreen_1024"
EndSection

Section "Screen"
	Identifier "statscreen_1024"
	Device "statdev"
	Monitor "statmon_1024"
        DefaultDepth 16
	SubSection "Display"
		Modes "1024x768"
                Depth 8
	EndSubSection
	SubSection "Display"
		Modes "1024x768"
                Depth 16
	EndSubSection
	SubSection "Display"
		Modes "1024x768"
                Depth 24
	EndSubSection
EndSection

Section "Monitor"
	Identifier "statmon_1024"
	HorizSync 31-49
	VertRefresh 40-70
EndSection

###############################################################################
# Static screen with resolution locked to 800x600
###############################################################################

Section "ServerLayout"
	Identifier "static_800x600"
	Screen "statscreen_800"
EndSection

Section "Screen"
	Identifier "statscreen_800"
	Device "statdev"
	Monitor "statmon_800"
        DefaultDepth 16
	SubSection "Display"
		Modes "800x600"
                Depth 8
	EndSubSection
	SubSection "Display"
		Modes "800x600"
                Depth 16
	EndSubSection
	SubSection "Display"
		Modes "800x600"
                Depth 24
	EndSubSection
EndSection

Section "Monitor"
	Identifier "statmon_800"
	HorizSync 31-38
	VertRefresh 40-70
EndSection

###############################################################################
# Intel Dualscreen with resolution locked to 1280x1024
###############################################################################

Section "ServerLayout"
	Identifier "dualintel_1280x1024"
	Screen "intelscreen_1280x1024"
EndSection

Section "Screen"
	Identifier "intelscreen_1280x1024"
	Device "inteldev_1280"
        Monitor	"dualmon0_1280"
        DefaultDepth 16
	SubSection "Display"
                Depth 8
		Modes "1280x1024"
		Virtual	2560 2048
	EndSubSection
	SubSection "Display"
                Depth 16
		Modes "1280x1024"
		Virtual	2560 2048
	EndSubSection
	SubSection "Display"
                Depth 24
		Modes "1280x1024"
		Virtual	2560 2048
	EndSubSection
EndSection

Section "Device"
	Identifier "inteldev_1280"
	Driver "intel"
	Option "monitor-VGA" "dualmon0_1280"
	Option "monitor-TMDS-1" "dualmon1_1280"
	Option "monitor-LVDS" "dummyLVDS"
        Option "XaaNoOffscreenPixmaps"
EndSection

###############################################################################
# Intel Dualscreen with resolution locked to 1024x768
###############################################################################

Section "ServerLayout"
	Identifier "dualintel_1024x768"
	Screen "intelscreen_1024x768"
EndSection

Section "Screen"
	Identifier "intelscreen_1024x768"
	Device "inteldev_1024"
        Monitor "dualmon0_1024"
        DefaultDepth 16
	SubSection "Display"
                Depth 8
		Modes "1024x768"
		Virtual	2048 1536
	EndSubSection
	SubSection "Display"
                Depth 16
		Modes "1024x768"
		Virtual	2048 1536
	EndSubSection
	SubSection "Display"
                Depth 24
		Modes "1024x768"
		Virtual	2048 1536
	EndSubSection
EndSection

Section "Device"
	Identifier "inteldev_1024"
	Driver "intel"
	Option "monitor-VGA" "dualmon0_1024"
	Option "monitor-TMDS-1" "dualmon1_1024"
	Option "monitor-LVDS" "dummyLVDS"
        Option "XaaNoOffscreenPixmaps"
EndSection

###############################################################################
# Intel Dualscreen with resolution locked to 800x600
###############################################################################

Section "ServerLayout"
	Identifier "dualintel_800x600"
	Screen "intelscreen_800x600"
EndSection

Section "Screen"
	Identifier "intelscreen_800x600"
	Device "inteldev_800"
        Monitor "dualmon0_800"
        DefaultDepth 16
	SubSection "Display"
                Depth 8
		Modes "800x600"
		Virtual	1600 1200
	EndSubSection
	SubSection "Display"
                Depth 16
		Modes "800x600"
		Virtual	1600 1200
	EndSubSection
	SubSection "Display"
                Depth 24
		Modes "800x600"
		Virtual	1600 1200
	EndSubSection
EndSection

Section "Device"
	Identifier "inteldev_800"
	Driver "intel"
	Option "monitor-VGA" "dualmon0_800"
	Option "monitor-TMDS-1" "dualmon1_800"
	Option "monitor-LVDS" "dummyLVDS"
        Option "XaaNoOffscreenPixmaps"
EndSection

###############################################################################
# ATI Dualscreen with resolution locked to 1280x1024
###############################################################################

Section "ServerLayout"
	Identifier "dualati_1280x1024"
	Screen "atiscreen_1280x1024"
EndSection

Section "Screen"
	Identifier "atiscreen_1280x1024"
	Device "atidev_1280"
	Monitor "dualmon0_1280"
	DefaultDepth 8
	SubSection "Display"
		Depth 8
		Modes "1280x1024"
		Virtual	2560 2048
	EndSubSection
	SubSection "Display"
		Depth 16
		Modes "1280x1024"
		Virtual	2560 2048
	EndSubSection
	SubSection "Display"
		Depth 24
		Modes "1280x1024"
		Virtual	2560 2048
	EndSubSection
EndSection

Section "Device"
	Identifier "atidev_1280"
	Driver "radeon"
	Option "monitor-VGA-0" "dualmon0_1280"
	Option "monitor-DVI-0" "dualmon1_1280"
        Option "XaaNoOffscreenPixmaps"
EndSection

###############################################################################
# ATI Dualscreen with resolution locked to 1024x768
###############################################################################

Section "ServerLayout"
	Identifier "dualati_1024x768"
	Screen "atiscreen_1024x768"
EndSection

Section "Screen"
	Identifier "atiscreen_1024x768"
	Device "atidev_1024"
	Monitor "dualmon0_1024"
	DefaultDepth 8
	SubSection "Display"
		Depth 8
		Modes "1024x768"
		Virtual	2048 1536
	EndSubSection
	SubSection "Display"
		Depth 16
		Modes "1024x768"
		Virtual	2048 1536
	EndSubSection
	SubSection "Display"
		Depth 24
		Modes "1024x768"
		Virtual	2048 1536
	EndSubSection
EndSection

Section "Device"
	Identifier "atidev_1024"
	Driver "radeon"
	Option "monitor-VGA-0" "dualmon0_1024"
	Option "monitor-DVI-0" "dualmon1_1024"
        Option "XaaNoOffscreenPixmaps"
EndSection

###############################################################################
# ATI Dualscreen with resolution locked to 800x600
###############################################################################

Section "ServerLayout"
	Identifier "dualati_800x600"
	Screen "atiscreen_800x600"
EndSection

Section "Screen"
	Identifier "atiscreen_800x600"
	Device "atidev_800"
	Monitor "dualmon0_800"
	DefaultDepth 8
	SubSection "Display"
		Depth 8
		Modes "800x600"
		Virtual	1600 1200
	EndSubSection
	SubSection "Display"
		Depth 16
		Modes "800x600"
		Virtual	1600 1200
	EndSubSection
	SubSection "Display"
		Depth 24
		Modes "800x600"
		Virtual	1600 1200
	EndSubSection
EndSection

Section "Device"
	Identifier "atidev_800"
	Driver "radeon"
	Option "monitor-VGA-0" "dualmon0_800"
	Option "monitor-DVI-0" "dualmon1_800"
        Option "XaaNoOffscreenPixmaps"
EndSection