XF86Config-4 man page

/etc/X11/XF86Config-4


##########################################################################
# Refer to the XF86Config(4/5) man page for details about the format of
# this file.
#
# Be sure to replace the monitor values with correct values for your
# monitor!
##########################################################################

#invoke using the '-layout' option of startx

##########################################################################
# Server flags section.
##########################################################################

Section "ServerFlags"

    # Uncomment this to cause a core dump at the spot where a signal is
    # received.  This may leave the console in an unusable state, but may
    # provide a better stack trace in the core dump to aid in debugging
    #NoTrapSignals
        
    # Uncomment this to disable the  server abort sequence
    # This allows clients to receive this key event.
    #DontZap

    # Uncomment this to disable the / mode switching
    # sequences.  This allows clients to receive these key events.
    #DontZoom

    # This  allows  the  server  to start up even if the
    # mouse device can't be opened/initialised.
    AllowMouseOpenFail

    #Option  "SuspendTime"  "0"
    #Option  "StandbyTime"  "0"
    #Option  "BlankTime"    "0"
    #Option  "OffTime"      "0"

EndSection

##########################################################################
# ServerLayout sections
# (invoke using the '-layout' option of 'startx'.
##########################################################################

#
# just one agp card
#
Section "ServerLayout"
	Identifier "Home"
	Screen 0 "Screen Single" 0 0
	InputDevice "TouchPad" "CorePointer"
	InputDevice "Keyboard0" "CoreKeyboard"
	InputDevice "Mouse-ps2" "SendCoreEvents" "AllowMouseOpenFail"
	InputDevice "Mouse-usb" "SendCoreEvents" "AllowMouseOpenFail"
EndSection

Section "ServerLayout"
	Identifier "Both"
	Screen 0 "Screen Single and TV" 0 0
	InputDevice "TouchPad" "CorePointer"
	InputDevice "Keyboard0" "CoreKeyboard"
	InputDevice "Mouse-ps2" "SendCoreEvents" "AllowMouseOpenFail"
	InputDevice "Mouse-usb" "SendCoreEvents" "AllowMouseOpenFail"
EndSection

Section "ServerLayout"
	Identifier "Work"
	Screen	0 "Screen TwinView" 0 0
	InputDevice "TouchPad" "CorePointer"
	InputDevice "Keyboard0" "CoreKeyboard"
	InputDevice "Mouse-ps2" "SendCoreEvents" "AllowMouseOpenFail" 
	InputDevice "Mouse-usb" "SendCoreEvents" "AllowMouseOpenFail"
EndSection

Section "ServerLayout"
	Identifier "TV"
	Screen 0 "Screen TV" 0 0
	InputDevice "TouchPad" "CorePointer"
	InputDevice "Keyboard0" "CoreKeyboard"
	#InputDevice "Mouse-ps2" "SendCoreEvents"
	#InputDevice "Mouse-usb" "SendCoreEvents"
EndSection


#*******************************************************
# Files Section
#*******************************************************
Section "Files"

    RgbPath	"/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.

    FontPath   "unix/:-1"


EndSection


# Module loading section
# As of Nvidia driver 1.0-2313 modules "GLcore" and "dri" have been 
# superceded by module "glx"

Section "Module"
    Load  "dbe"		# Double-buffering
    Load  "bitmap"
#    Load  "GLcore"		# OpenGL support
#    Load  "dri"		# Direct rendering infrastructure
    Load  "glx"		# OpenGL X protocol interface
    Load  "extmod"	# Misc. required extensions
    Load  "v4l"		# Video4Linux
#    Load  "record"		# X event recorder
#    Load  "fb"			# Framebuffer? - Cory
#    Load "fbdevhw"
    Load  "type1"
    Load  "freetype"
    Load  "ddc"		# tip from gento nvidia howto
#    Load  "sdl"		# Needed for UT2003?
    
EndSection

Section "InputDevice"
	Identifier  	"Keyboard0"
	Driver      	"keyboard"
	Option		"CoreKeyboard"
	Option          "AutoRepeat"    "250 30"
	Option          "XkbRules"      "xfree86"
	Option      	"XkbLayout"	"us"
EndSection

Section "InputDevice"
	Identifier	"TouchPad"
	Driver		"mouse"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"PS/2"
	Option		"Emulate3Buttons"	"yes"
	Option          "Emulate3Timeout"       "50"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "InputDevice"
	Identifier	"Mouse-usb"
	# Modified by mouseconfig
	Driver		"mouse"
	Option		"Device"		"/dev/input/mouse0"
	#Option         "Device"                "/dev/psaux"
	Option		"Protocol"		"IMPS/2"
#	Option		"Emulate3Buttons"	"yes"    # It is 3 buttons, isn't it?
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "InputDevice"
	Identifier	"Mouse-ps2"
	Driver		"auto"
EndSection

#Section "InputDevice"
#        Identifier      "Mouse1"
#        Driver          "mouse"
#        Option          "Protocol" "IMPS/2"
#        Option          "Device"   "/dev/usbmouse"
#EndSection

# This is defined here and used below in "Twinview"

###################################################################
# Monitor Section
###################################################################
Section "Monitor"
	Identifier "ExternalCRT"
	VendorName "Sony"
	ModelName  "GS 420"
#	HorizSync 30-85
#	VertRefresh 50-120
	Option "dpms"
EndSection

Section "Monitor"
	Identifier "Laptop"
	VendorName "Hitachi"
	ModelName  "Unknown"
# These details are no longer needed since  I've set the unit to use the EDID
# freqs from the DFP/CRT to generate it's own modeline
#	HorizSync 30-100
#	VertRefresh 60-60
#	Modeline from Nvidia guide for 1400x1050 60 Hz, 65.8 kHz hsync
#	Modeline "1400x1050" 129 1400 1464 1656 1960 1050 1051 1054 1100 +HSync +VSync
	Option "dpms"
EndSection

Section "Monitor"
	Identifier "TV"
	VendorName "Unknown"
	ModelName  "Unknown"
	HorizSync 30-50
	VertRefresh 60
EndSection


#******************************************************************
# Device Section
#******************************************************************
Section "Device"
	Identifier "NV AGP"
	Driver "nvidia"
	#VideoRAM 32768
	VendorName "NVidia"
	BoardName "GeForce 2 Go"
	BusID "PCI:1:00:0"
	
	Option "TwinView" "0"
	#Option "SecondMonitorHorizSync" "30-50"
	#Option "SecondMonitorVertRefresh" "60"
	#Option "TwinViewOrientation" "Clone"
	#Option "MetaModes" "800x600,800x600; 640x480,640x480"
	#Option "ConnectedMonitor"
	
	Option "PageFlip" "on"	    	# default=on
	Option "CursorShadow" "1"
	Option "CursorShadowAlpha" "64"
	Option "CursorShadowXOffset" "4"
	Option "FlatPanelScalingMode" "scaled"  # or "centered"
	Option "HWCursor" "on"  	# default=on
	Option "SWCursor" "0"
	Option "IgnoreEDID" "off"    	# default=off
	Option "NoRenderAccel" "off"  	# default=off
	Option "OverridePolarity" "1"	# helps console switching
	Option "NoLogo" "1"
	Option "UseEdidFreqs" "on"   	# default=off
	Option "NvAGP" "3"
	Option "CursorShadowYOffset" "2"
	Option "DigitalVibrance" "0"
EndSection                          # 2=AGPGART, 3=AGPGART elsif
                                    #           Nvidia AGP

Section "Device"
	Identifier "NV AGP and TV"
	Driver "nvidia"
	#VideoRAM 32768
	VendorName "NVidia"
	BoardName "GeForce 2 Go"
	BusID "PCI:1:00:0"

	Option "NoLogo" "off"
	
	#Option "PageFlip" "on"	    	# default=on
	#Option "CursorShadow" "1"
	#Option "CursorShadowAlpha" "64"
	#Option "CursorShadowXOffset" "4"
	#Option "FlatPanelScalingMode" "scaled"  # or "centered"
	#Option "HWCursor" "on"  	# default=on
	#Option "SWCursor" "0"
	#Option "IgnoreEDID" "off"    	# default=off
	#Option "NoRenderAccel" "off"  	# default=off
	#Option "OverridePolarity" "1"	# helps console switching
	#Option "NoLogo" "1"
	#Option "UseEdidFreqs" "on"   	# default=off
	#Option "NvAGP" "3"
	#Option "CursorShadowYOffset" "2"
	#Option "DigitalVibrance" "0"
	
	#Option "Twin View"
	#Option "SecondMonitorHorizSync" "30-50"
	#Option "SecondMonitorVertRefresh" "60"
	#Option "TwinViewOrientation" "Clone"
	#Option "MetaModes" "640x480,1400x1050; 640x480,1024x768; 640x480,800x600; 640x480,640x480"
	
	#Option "MetaModes" "800x600,800x600; 640x480,640x480"
	#Option "ConnectedMonitor" "TV,DFP"
	
	#Option "PageFlip" "on"	    	# default=on
	#Option "CursorShadow" "on"  	# default=on
	#Option "CursorShadowAlpha" "32"  # 0-transparent 255-opaque
	#Option "CursorShadowXOffset" "4"  # 0-32
	#Option "FlatPanelScalingMode" "scaled"  # or "centered"
	#Option "HWCursor" "on"  	# default=on
	#Option "SWCursor" "off"  	# default=off
	#Option "IgnoreEDID" "off"    	# default=off
	#Option "NoRenderAccel" "off"  	# default=off
	#Option "NoLogo" "off"  		# default=off
	#Option "UseEdidFreqs" "on"   	# default=off
	#Option "NvAGP" "0"          # 0=no AGP, 1= Nvidia AGP,
EndSection                          # 2=AGPGART, 3=AGPGART elsif
                                    #           Nvidia AGP


#Section "Device"
#	Identifier "Linux Frame Buffer"
#	Driver "fbdev"
#	BoardName "Unknown"
#EndSection


#####################################################################
# Screen Section
#####################################################################
Section "Screen"
	Identifier "Screen TwinView"
	Device "NV AGP"
#	Monitor "ExternalCRT"
	Monitor "Laptop"
	DefaultDepth 24
	Subsection "Display"
		Depth 24
		Modes "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
#		Modes "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection

# According to the Nvidia docs, Twinview in a laptop sets the external CRT
# as the primary device and the dfp as the secondary device
	Option "TwinView" "on"
	Option "TwinViewOrientation" "Clone"
	#Option "SecondMonitorHorizSync" "30-50"
	#Option "SecondMonitorVertRefresh" "60"
	Option "ConnectedMonitor"
	#Option "TwinViewOrientation" "RightOf"
	#Option "UseEdidFreqs" "on"
	#Option "MetaModes" "1400x1050 @1400x1200,1600x1200; 1280x1024,1280x1024; 1024x768,1024x768; 800x600,800x600; 640x480,640x480"
#	Option "MetaModes" "1400x1050, 1280x1024 @1400x1050;1280x1024,1280x1024; 1024x768,1024x768; 800x600,800x600; 640x480,640x480"
	#Option "MetaModes" "1280x1024 @1400x1050, 1400x1050;1280x1024,1280x1024; 1024x768,1024x768; 800x600,800x600; 640x480,640x480"
	Option "MetaModes" "800x600,1400x1050; 1280x1024,800x600; 1024x768,800x600; 800x600,800x600; 640x640,640x480"
	
EndSection


Section "Screen"
	Identifier "Screen Single"
	Device "NV AGP"
	Monitor "Laptop"
	DefaultDepth 24
	SubSection "Display"
                Depth 16
                #Modes "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
		Modes "640x480"
        EndSubSection
	Subsection "Display"
		Depth 24
		Modes "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
		#Modes "800x600" "640x480"
	EndSubSection
EndSection

Section "Screen"
        Identifier "Screen Single and TV"
	Device "NV AGP and TV"
	#Device "NV AGP"
	Monitor "Laptop"
	DefaultDepth 24
	Subsection "Display"
		Depth 24
		Modes "1400x1050" "1280x1024" "800x600" "640x480"
		#Modes "800x600" "640x480"
	EndSubSection
	
	#Option "UseEdidFreqs" "on"   	# default=off
	#Option "IgnoreEDID" "off"    	# default=off

	Option "TVOutFormat" "COMPOSITE"
	#Option "TVOutFormat" "SVIDEO"
	#Option "ConnectedMonitor" "DFP, TV"
	Option "TVStandard" "NTSC-M"
	
	Option "TwinView" "On"
	#Option "SecondMonitorHorizSync"     "30-50"
	#Option "SecondMonitorVertRefresh"   "60"
	Option "TwinViewOrientation" "Clone"
	#Option "ConnectedMonitor" "DFP, TV"
	
	#Option "MetaModes" "640x480,800x600; 640x480,640x480"
	Option "MetaModes" "640x480,1400x1050; 640x480, 1280x1024; 640x480,800x600; 640x480,640x480"
	#Option "MetaModes" "1024x768,NULL; 800x600,640x480; 640x480,800x600"
	
EndSection

Section "Screen"
	Identifier "Screen TV"
	Device "NV AGP"
	Monitor "TV"
	DefaultDepth 24 
	Subsection "Display"
		Depth 24
		Modes "800x600" "640x480"
	EndSubSection
	#Option "TVStandard"
	#Option "TVOverScan"
	#Option "TVOutFormat" "SVIDEO"
	Option "TVOutFormat" "COMPOSITE"
	Option "ConnectedMonitor" "TV"
	Option "TVStandard" "NTSC-M"
	#Option "ConnectedMonitor" "TV,DFP"
	Option "TwinView" "On"
	Option "TwinViewOrientation" "Clone"
EndSection

Section "DRI"
	Mode 0666
EndSection
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s