All pastes #647680 Raw Edit

xorg.conf for dual monitors with

public text v1 · immutable
#647680 ·published 2007-08-06 17:05 UTC
rendered paste body
Section "ServerLayout"
	Identifier	"Two Screen Layout"
	
	Screen		0 "Default Screen" 0 0
	Screen		1 "External Screen" RightOf "Default Screen"
	
	InputDevice	"TouchPad"		"AlwaysCore"
	InputDevice	"ExternalMouse"		"CorePointer"
	
	Option		"AIGLX"			"false"
EndSection


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


## Synaptics touchpad
Section "InputDevice"
	Driver		"synaptics"
	Identifier	"TouchPad"
	Option		"SendCoreEvents"
	Option		"Protocol"		"auto-dev"
	Option		"SHMConfig"		"on"
	
	## Advanced configuration options
	Option		"LeftEdge"		"1700"
	Option		"RightEdge"		"5300"
	Option		"TopEdge"		"1700"
	Option		"BottomEdge"		"4200"

	Option		"FingerLow"		"25"
	Option		"FingerHigh"		"30"
	Option		"MaxTapTime"		"180"
	Option		"MaxTapMove"		"220"
	
	Option		"VertEdgeScroll"	"true"
	Option		"HorizEdgeScroll"	"true"
	Option		"VertScrollDelta"	"200"
	Option		"HorizScrollDelta"	"200"
	
	Option		"MinSpeed"		"0.09"
	Option		"MaxSpeed" 		"0.18"
	Option		"AccelFactor" 		"0.0020"
EndSection


## External USB mouse
Section "InputDevice"
	Identifier	"ExternalMouse"
	Driver		"mouse"
	Option		"Protocol"		"Auto"
	Option		"Device"		"/dev/input/mice"
	Option		"ZAxisMapping"		"4 5"
EndSection


## Video card - first head (internal)
Section "Device"
	Identifier	"ATI card 1"
	Driver		"fglrx"
	BusID		"PCI:1:0:0"
	
	Option		"Centermode"		"off"
	Option		"VideoOverlay"		"on"
	Option		"OpenGLOverlay"		"off"
	Option		"OverlayOnCRTC2"	"0"
	Option		"PseudoColorVisuals"	"off"
	Option		"UseFastTLS"		"2"
	Option		"EnablePrivateBackZ"	"on"
	Option		"XAANoOffscreenPixmaps"	"true"
	Option		"DRI"			"true"
	
	#Option		"ForceMonitors"		"lvds,crt1"
	#Option		"MonitorLayout"		"lvds,crt1"
	#Option		"CloneRefresh"		"85"
	Option		"MonitorLayout"		"lvds, auto"
	## 2nd screen resolution can also be set in the Screen section
	#Option		"Mode2"			"1680x1050"
	Option		"DesktopSetup"		"horizontal"
	Screen		0
EndSection


## Video card - second head (external)
Section "Device"
	Identifier	"ATI card 2"
	Driver		"fglrx"
	BusID		"PCI:1:0:0"
	Screen		1
EndSection


## Laptop's default monitor.
Section "Monitor"
	Identifier	"Generic Monitor"
	#DisplaySize	291 212
	Option		"DPMS"
EndSection


## External monitor.
Section "Monitor"
	Identifier	"External Monitor"
	HorizSync	31.0 - 82.0
	VertRefresh	50.0 - 75.0
	#DisplaySize	431 272
	Option		"DPMS"
EndSection


## Screen for the laptop's monitor
Section "Screen"
	Identifier	"Default Screen"
	Device		"ATI card 1"
	Monitor		"Generic Monitor"
	DefaultDepth	24
	
	SubSection "Display"
		Depth		24
		Modes		"1400x1050" "1024x768" "800x600"
		ViewPort	0 0
	EndSubSection
EndSection


## Screen for the external monitor.
Section "Screen"
	Identifier	"External Screen"
	Device		"ATI card 2"
	Monitor		"External Monitor"
	DefaultDepth	24
	
	SubSection "Display"
		Depth		24
		## 2nd screen resolution can also be set in the Device section
		Modes		"1680x1050" "1024x768" "800x600"
		Viewport	0 0
	EndSubSection
EndSection


Section "DRI"
	Mode 0666
EndSection


Section "Extensions"
	Option		"Composite"		"Disable"
	Option		"XVideo"		"Enable"
EndSection