# Xorg configuration created by livna-config-display

Section "ServerLayout"
	Identifier     "Default Layout"
	Screen      0  "Screen0" 0 0
	InputDevice    "Keyboard0" "CoreKeyboard"
	InputDevice    "Synaptics" "CorePointer"
	InputDevice    "Wireless Mouse"
#	InputDevice    "stylus" "AlwaysCore"
#	InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"

EndSection

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

Section "ServerFlags"
	#Option	"AllowMouseOpenFail" "on"
	Option	    "IgnoreABI" "on"
	Option	    "AIGLX" "on"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option	    "XkbModel" "abnt2"
	Option	    "XkbLayout" "br"
EndSection

Section "InputDevice"
	Identifier  "Synaptics"
	Driver      "synaptics"
	Option	    "Device" "/dev/input/mice"
	Option	    "Protocol" "auto-dev"
	Option	    "Emulate3Buttons" "yes"
	Option      "TwoFingerButton2" "0"
	Option      "TwoFingerButton3" "0"
	Option      "SHMCOnfig" "true"
        Option "SendCoreEvents" "true"
        Option "TapButton1" "1"
        Option "TapButton2" "2" 
EndSection

Section "InputDevice"
	#Option "CorePointer"
	Identifier  "Wireless Mouse"
	Driver      "mouse"
	Option	    "SendCoreEvents" "true"
	Option	    "Protocol" "auto"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Emulate3Buttons" "true"
	Option	    "Device" "/dev/input/mice"
	#Option "Name" "062a:0000"
EndSection

#Section "InputDevice"
#    Identifier      "stylus"
#        Driver          "wizardpen"
#        Option          "Device"        "/dev/input/event10"
#	Option		"Mode"		"Absolute"
#        Option          "TopX"          "2351"
#        Option          "TopY"          "4515"
#        Option          "BottomX"       "32739"
#        Option          "BottomY"       "32745"
#        Option          "MaxX"          "32739"
#        Option          "MaxY"          "32745"
#	Option		"TopZ"		"5"
#	Option		"BottomZ"	"512"
#	Option		"MaxZ"		"512"
#EndSection

#Section "InputDevice"
#    Identifier     "Mouse0"
#    Driver         "mouse"
#    Option         "Protocol" "auto"
#    Option         "Device" "/dev/input/mouse2"
#    Option         "ZAxisMapping" "4 5 6 7"
#EndSection

Section "Monitor"
    Identifier   "Monitor1"
    VendorName   "PANEL"
    ModelName    "PANEL"
    Option       "dpms"
    #DisplaySize  433 271
    #HorizSync    30.0 - 81.0
    #VertRefresh  56.0 - 75.0
    #Modeline "1680x1050@60" 154.20 1680 1712 2296 2328 1050 1071 1081 1103
    #ModeLine "1680x1050" 146.8  1680 1784 1960 2240  1050 1053 1059 1089
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "LCD"
    ModelName    "LCD"
    Option       "dpms"
    #DisplaySize  433 271
    #HorizSync    30.0 - 81.0
    #VertRefresh  56.0 - 75.0
    #Modeline "1680x1050@60" 154.20 1680 1712 2296 2328 1050 1071 1081 1103
    #ModeLine "1680x1050" 146.8  1680 1784 1960 2240  1050 1053 1059 1089
EndSection

Section "Device"
	Identifier "Videocard0"
	
	#Driver      "radeon"
	#Driver	"fglrx"
	

	#Genericos
	Option "AIGLX" "true"
	Option "AGPMode" "8"
	Option "ColorTiling" "1"
	Option "EnablePageFlip" "true"
	Option "RenderAccel" "true"
	Option "TexturedVideo" "on"
	Option "VideoOverlay" "on"
	Option "OpenGLOverlay" "on"
	Option "Composite" "Enable"
	Option "DisableGLXRootClipping" "true"
	Option "AddARGBGLXVisuals" "true"
	#Option	    "UseFastTLS" "1" ## 0-Fast,1-Faster,2-Compatible
	
	
	### Para driver ati
	Driver "ati"
	#Option "AccelMethod" "XAA"
	Option "AccelMethod" "EXA"
	Option "EXAOptimizeMigration" "true"
	# May alleviate migration overhead for fallbacks somewhat.
	#   http://lists.x.org/archives/xorg-driver-ati/2008-June/005716.html
	#Option "AccelDFS" "true"
	Option "DRI" "on"
	Option "AGPFastWrite" "yes"
	#Option "MigrationHeuristic" "greedy"
	
	
	### Para radeonhd
	#Driver "radeonhd"
	#Option "AccelMethod"   "ShadowFB"
	#Option	"XAANoOffscreenPixmaps" "true"
	
	### Para fglrx
	#Option "UseInternalAGPGART" "no"
	#Option	    "BlockSignalsOnLock" "on"
	#Option	    "ForceGenericCPU" "off"
	#Option "KernelModuleParm" "locked-userpages=0"
	#Option	    "DRI" "true"
	#Option	    "FSAADisableGamma" "no"
	#Option	    "CapabilitiesEx" "0x00000000"
	#Option	    "FSAAMSPosY0" "0.000000"
	#Option	    "FSAAMSPosX3" "0.000000"
	#Option	    "mtrr" "off"
	#Option	    "FSAAMSPosX4" "0.000000"
	#Option	    "FSAAMSPosY1" "0.000000"
	#Option	    "FSAAMSPosY2" "0.000000"
	#Option	    "FSAAMSPosX5" "0.000000"
	#Option	    "FSAAScale" "1"
	#Option	    "GammaCorrectionI" "0x00000000"
	#Option	    "FSAAMSPosX0" "0.000000"
	#Option	    "FSAAMSPosY3" "0.000000"
	#Option	    "no_accel" "no"
	#Option	    "FSAAMSPosY4" "0.000000"
	#Option	    "FSAACustomizeMSPos" "no"
	#Option	    "FSAAMSPosY5" "0.000000"
	#Option	    "FSAAEnable" "no"
	#Option	    "GammaCorrectionII" "0x00000000"
	#Option	    "KernelModuleParm" "agplock=0"
	#Option	    "Capabilities" "0x00000000"
	#Option	    "no_dri" "no"
	#Option	    "PseudoColorVisuals" "off"
	#Option	    "StereoSyncEnable" "1"
	#Option	    "UseInternalAGPGART" "no"
	#Option	    "usevnc" "no"
	#Option	    "FSAAMSPosX1" "0.000000"
	#Option	    "Stereo" "off"
	#Option	    "FSAAMSPosX2" "0.000000"
	#Option	    "ScreenOverlap" "0"
	#Option	    "CenterMode" "off"
	#Option	    "EnablePrivateBackZ" "no"
	#Option	    "backingstore" "true"
	Option	    "Monitor-PANEL" "Monitor0"
	Option	    "Monitor-VGA_1" "Monitor1"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Videocard0"
	#Monitor "Monitor0" LeftOf "Monitor1"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Virtual 2560 2048
		Depth     24
		#Modes    "1280x800" "1152x864" "1280x768" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
		#Modes     "800x600" "768x576" "640x480"
		Modes "1280x800@60.0" "1280x768@59.9" "1024x768@60.0" "1280x600@59.9" "1024x600@59.9" "800x600@60.3" "768x576@59.9" "640x480@59.9"
	EndSubSection
EndSection
#Screen 0: minimum 320 x 200, current 2048 x 800, maximum 2560 x 2048
#VGA-0 connected 1024x768+1024+0 (normal left inverted right x axis y axis) 310mm x 230mm
#   1024x768       85.0 +   85.0     85.0     75.1     75.0     70.1     60.0* 
#   1600x1024      60.2  
#   1280x1024      60.0     60.0  
#   1440x900       59.9  
#   1280x960       60.0  
#   1360x768       59.8     60.0  
#   1152x864       75.0     75.0     70.0     60.0  
#   832x624        74.6  
#   800x600        85.0     85.1     72.2     75.0     60.3     56.2  
#   640x480        85.0     85.0     75.0     72.8     75.0     60.0     59.9  
#   720x400        85.0     70.1  
#   640x400        85.1  
#   640x350        85.1  
#LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
#   1280x800       60.0*+
#   1280x768       59.9  
#   1024x768       60.0     59.9  
#   1280x600       59.9  
#   1024x600       59.9  
#   800x600        60.3     59.9  
#   768x576        59.9  
#   640x480        59.9     59.4  

Section "DRI"
	Mode         0666
EndSection

Section "Extensions"
	#Option "DAMAGE" "true"
	Option	    "Composite" "Enable"
	Option "XVideo" "true"
EndSection

