########################################################################## # Sample XF86Config file for NVIDIA XFree86 drivers. # # 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! ########################################################################## Section "Files" RgbPath "/usr/X11R6/lib/X11/rgb" # FontPath "unix/:-1" EndSection ########################################################################## # 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 EndSection ########################################################################## # Input devices ########################################################################## Section "InputDevice" Identifier "Keyboard0" Driver "keyboard" Option "XkbRules" "xfree86" # Option "XkbModel" "pc102" Option "XkbLayout" "us" # Option "XkbVariant" "nodeadkeys" # Option "XkbModel" "sun_type6_usb" Option "XkbModel" "microsoft" # Option "XkbLayout" "us(sun_type6_usb" # Option "XkbSymbols" "us(sun_type6_usb)" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Device" "/dev/mouse" Option "Protocol" "imps/2" # Option "Emulate3Buttons" "yes" # Option "Device" "/dev/mouse" # Option "Protocol" "imps/2" Option "Buttons" "3" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" Identifier "Mouse1" Driver "mouse" Option "Device" "/dev/input/mice" Option "Protocol" "imps/2" # Option "Emulate3Buttons" "yes" Option "Buttons" "3" Option "ZAxisMapping" "4 5" EndSection ########################################################################## # Module section ########################################################################## Section "Module" Load "dbe" # Load the glx module. Load "glx" Load "extmod" Load "type1" Load "freetype" EndSection ########################################################################## # Monitor section ########################################################################## Section "Monitor" Identifier "Display 1" VendorName "Monitor Vendor" ModelName "Monitor Model" HorizSync 0,0 - 81,0 VertRefresh 60,0 - 60,0 Option "dpms" EndSection Section "Monitor" Identifier "Display 2" VendorName "Monitor Vendor" ModelName "Monitor Model" HorizSync 0,0 - 81,0 VertRefresh 60,0 - 60,0 Option "dpms" EndSection ########################################################################## # Graphics device section(s) ########################################################################## Section "Device" Identifier "NV AGP" VendorName "nvidia" Driver "nvidia" # update this with the PCI id of your card. Consult the output # of the 'lspci' command. The BusID is usually optional when # only using one graphics card. BusID "PCI:1:0:0" EndSection Section "Device" Identifier "NV AGP 2" VendorName "nvidia" Driver "nv" # update this with the PCI id of your card. Consult the output # of the 'lspci' command. The BusID is usually optional when # only using one graphics card. BusID "PCI:1:0:0" # Screen 1 EndSection Section "Device" Identifier "NV AGP TwinView" VendorName "nvidia" Driver "nvidia" # update this with the PCI id of your card. Consult the output # of the 'lspci' command. The BusID is usually optional when # only using one graphics card. BusID "PCI:1:0:0" # sample twinview setup Option "TwinView" # be sure to replace the HorizSync and VertRefresh with correct values # for your monitor! Option "SecondMonitorHorizSync" "0-81" Option "SecondMonitorVertRefresh" "60" Option "TwinViewOrientation" "LeftOf" Option "MetaModes" "1280x1024,1280x1024; 1024x768,1024x768" # Option "ConnectedMonitor" "lcd,lcd" Option "ConnectedMonitor" "DFP-1,CRT-0" EndSection ########################################################################## # Screen sections ########################################################################## # # screen section for an nvidia AGP card # Section "Screen" Identifier "Screen AGP" Device "NV AGP" Monitor "Display 1" DefaultColorDepth 24 Subsection "Display" Depth 8 Modes "1280x1024" "1024x768" "800x600" "640x400" EndSubsection Subsection "Display" Depth 16 Modes "1280x1024" "1024x768" "800x600" "640x480" EndSubsection Subsection "Display" Depth 24 Modes "1280x1024" "1024x768" "800x600" "640x480" EndSubsection EndSection # # screen section for an nvidia AGP card # Section "Screen" Identifier "Screen AGP2" Device "NV AGP" Monitor "Display 2" DefaultColorDepth 24 Subsection "Display" Depth 8 Modes "1280x1024" "1024x768" "800x600" "640x400" EndSubsection Subsection "Display" Depth 16 Modes "1280x1024" "1024x768" "800x600" "640x480" EndSubsection Subsection "Display" Depth 24 Modes "1280x1024" "1024x768" "800x600" "640x480" EndSubsection EndSection # # screen section for an nvidia AGP TwinView card # (look at the appropriate Device section) # Section "Screen" Identifier "Screen AGP TwinView" Device "NV AGP TwinView" Monitor "Display 1" DefaultColorDepth 24 Subsection "Display" Depth 8 Modes "1280x1024" "1024x768" "800x600" "640x400" EndSubsection Subsection "Display" Depth 16 Modes "1280x1024" "1024x768" "800x600" "640x480" EndSubsection Subsection "Display" Depth 24 Modes "1280x1024" "1024x768" "800x600" "640x480" EndSubsection EndSection ########################################################################## # ServerLayout sections # (invoke using the '-layout' option of 'startx'. ########################################################################## # # just one agp card # #Section "ServerLayout" # Identifier "AGP" # Screen "Screen AGP" LeftOf "Screen AGP" # Screen "Screen AGP" 0 0 # InputDevice "Mouse0" "CorePointer" # InputDevice "Keyboard0" "CoreKeyboard" # Option "Clone" "off" # Option "Xinerama" "on" # #EndSection # # just one agp twinview card # Section "ServerLayout" Identifier "AGPTwinView" Screen "Screen AGP TwinView" InputDevice "Mouse1" "CorePointer" InputDevice "Mouse0" "AlwaysCore" InputDevice "Keyboard0" "CoreKeyboard" EndSection