home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2004 March / GSSH0304CD5.iso / Treiber / Linux / Nvidia / NVIDIA_README.txt next >
Text File  |  2004-01-27  |  137KB  |  3,045 lines

  1. NVIDIA Accelerated Linux Driver Set README & Installation Guide
  2.  
  3. Last Updated: $Date: 2003/07/16 $
  4. Most Recent Driver: 1.0-4496
  5.  
  6.  
  7. The NVIDIA Accelerated Linux Driver Set brings both accelerated 2D
  8. functionality and high performance OpenGL support to Linux x86 with the
  9. use of NVIDIA graphics processing units (GPUs).
  10.  
  11. These drivers provide optimized hardware acceleration of OpenGL
  12. applications via a direct-rendering X Server and support nearly all
  13. NVIDIA graphics chips (please see APPENDIX A for a complete list of
  14. supported chips).  TwinView, TV-Out and flat panel displays are also
  15. supported.
  16.  
  17. This README describes how to install, configure, and use the NVIDIA
  18. Accelerated Linux Driver Set.  This file is posted on NVIDIA's web site
  19. (www.nvidia.com), and is installed in /usr/share/doc/NVIDIA_GLX-1.0/.
  20.  
  21.  
  22. __________________________________________________________________________
  23.  
  24. CONTENTS:
  25.  
  26.         (sec-01) CHOOSING THE NVIDIA PACKAGES APPROPRIATE FOR YOUR SYSTEM
  27.         (sec-02) INSTALLING THE NVIDIA DRIVER
  28.         (sec-03) EDITING YOUR XF86CONFIG FILE
  29.         (sec-04) FREQUENTLY ASKED QUESTIONS
  30.         (sec-05) CONTACTING US
  31.         (sec-06) FURTHER RESOURCES
  32.  
  33.         (app-a)  APPENDIX A: SUPPORTED NVIDIA GRAPHICS CHIPS
  34.         (app-b)  APPENDIX B: MINIMUM SOFTWARE REQUIREMENTS
  35.         (app-c)  APPENDIX C: INSTALLED COMPONENTS
  36.         (app-d)  APPENDIX D: XF86CONFIG OPTIONS
  37.         (app-e)  APPENDIX E: OPENGL ENVIRONMENT VARIABLE SETTINGS
  38.         (app-f)  APPENDIX F: CONFIGURING AGP
  39.         (app-g)  APPENDIX G: ALI SPECIFIC ISSUES
  40.         (app-h)  APPENDIX H: TNT SPECIFIC ISSUES
  41.         (app-i)  APPENDIX I: CONFIGURING TWINVIEW
  42.         (app-j)  APPENDIX J: CONFIGURING TV-OUT
  43.         (app-k)  APPENDIX K: CONFIGURING A LAPTOP
  44.         (app-l)  APPENDIX L: PROGRAMMING MODES
  45.         (app-m)  APPENDIX M: PAGE FLIPPING, WINDOW FLIPPING, AND UBB
  46.         (app-n)  APPENDIX N: KNOWN ISSUES
  47.         (app-o)  APPENDIX O: PROC INTERFACE
  48.         (app-p)  APPENDIX P: XVMC SUPPORT
  49.         (app-q)  APPENDIX Q: GLX SUPPORT
  50.         (app-r)  APPENDIX R: CONFIGURING MULTIPLE X SCREENS ON ONE CARD
  51.         (app-s)  APPENDIX S: POWER MANAGEMENT SUPPORT
  52.  
  53. Please note that, in order to keep the instructions more concise, most
  54. caveats and frequently encountered problems are not detailed in the
  55. installation instructions, but rather in the FREQUENTLY ASKED QUESTIONS
  56. section.  Therefore, it is recommended that you read this entire README
  57. before proceeding to perform any of the steps described.
  58.  
  59.  
  60. __________________________________________________________________________
  61.  
  62. (sec-01) CHOOSING THE NVIDIA PACKAGES APPROPRIATE FOR YOUR SYSTEM
  63. __________________________________________________________________________
  64.  
  65. NVIDIA has a unified driver architecture model; this means that one driver
  66. set can be used with all supported NVIDIA graphics chips.  Please see
  67. Appendix A for a list of the NVIDIA graphics chips supported by the
  68. current drivers.
  69.  
  70. Driver release 1.0-4349 introduced a new packaging
  71. and installation mechanism, which greatly simplifies the
  72. installation process.  There is only a single file to download:
  73. NVIDIA-Linux-x86-1.0-1.0-4496-pkg1.run.  This contains
  74. everything previously contained by the old NVIDIA_kernel and NVIDIA_GLX
  75. packages.
  76.  
  77. Driver release 1.0-4496 introduces a package suffix ("-pkg#") to
  78. the .run file.  This is used to distinguish between packages containing
  79. the same driver, but with different precompiled kernel interfaces.
  80. If there is any confusion, just download the .run file with the largest
  81. pkg number.
  82.  
  83. __________________________________________________________________________
  84.  
  85. (sec-02) INSTALLING THE NVIDIA DRIVER
  86. __________________________________________________________________________
  87.  
  88. BEFORE YOU BEGIN DRIVER INSTALLATION
  89.  
  90. Before beginning the driver installation, you should exit the X server.
  91. In addition you should set your default run level so you will boot to a
  92. vga console and not boot directly into X (please consult the documentation
  93. that came with your Linux distribution if you are unsure how to do this;
  94. this is normally done by modifying your /etc/inittab file).  This will
  95. make it easier to recover if there is a problem during the installation.
  96. After installing the driver you must edit your XF86Config file before
  97. the newly installed driver will be used.  See the section below entitled
  98. EDITING YOUR XF86CONFIG FILE.
  99.  
  100.  
  101. INTRODUCTION TO THE NEW NVIDIA DRIVER INSTALLER
  102.  
  103. After you have downloaded NVIDIA-Linux-x86-1.0-4496-pkg1.run,
  104. begin installation by exiting X, cd'ing into the directory containing
  105. the downloaded file, and run:
  106.  
  107.     sh NVIDIA-Linux-x86-1.0-4496-pkg1.run
  108.  
  109. The .run file is a self-extracting archive.  When the .run file is
  110. executed, it extracts the contents of the archive, and runs the contained
  111. `nvidia-installer` utility, which will walk you through installation of
  112. the NVIDIA driver.
  113.  
  114. The .run file accepts many commandline options.  Here are a few of the
  115. more common options:
  116.  
  117.     --info
  118.         Print embedded info about the .run file and exit.
  119.  
  120.     --check
  121.         Check integrity of the archive and exit.
  122.  
  123.     --extract-only
  124.         Extract the contents of ./NVIDIA-Linux-x86-1.0-4496.run,
  125.         but do not run 'nvidia-installer'.
  126.  
  127.     --help
  128.         Print usage information for the common commandline options
  129.         and exit.
  130.  
  131.     --advanced-options
  132.         Print usage information for the common commandline options as
  133.         well as the advanced options, and then exit.
  134.  
  135. Installation will also install the utility `nvidia-installer`, which may
  136. be later used to uninstall drivers, auto-download updated drivers, etc.
  137.  
  138.  
  139. KERNEL INTERFACES
  140.  
  141. The NVIDIA kernel module has a kernel interface layer which must be
  142. compiled specifically for the configuration and version of the kernel
  143. you are running.  NVIDIA distributes the source code to this kernel
  144. interface layer, as well as a precompiled version for many of the kernels
  145. distributed by some popular distributions.
  146.   
  147. When the installer is run, it will determine if it has a precompiled
  148. kernel interface for the kernel you are running.  If it does not have
  149. one, it will check if there is one on the NVIDIA ftp site (assuming you
  150. have an internet connection), and download it.
  151.  
  152. If a precompiled kernel interface is found that matches your kernel,
  153. then that will be linked[1] against the binary portion of the NVIDIA
  154. kernel module.  The result of this operation will be a kernel module
  155. appropriate for your kernel.
  156.  
  157. If no matching precompiled kernel interface is found, then the installer
  158. will compile the kernel interface for you.  However, first it will
  159. check that you have the correct kernel headers intalled on your system.
  160. If the installer must compile the kernel interface, then you must install
  161. the kernel-sources package for your kernel.
  162.  
  163. [1] NOTE: installation requires that you have a linker installed.
  164. The linker, usually '/usr/bin/ld', is part of the binutils package;
  165. please be sure you have this package installed prior to installing the
  166. NVIDIA driver.
  167.  
  168.  
  169. FEATURES OF NVIDIA-INSTALLER
  170.  
  171. o Uninstall: Driver installation will backup any conflicting files
  172.   and record what new files are installed on the system.  You may run:
  173.  
  174.     nvidia-installer --uninstall
  175.   
  176.   to uninstall the current driver; this will remove any files that
  177.   were installed on the system, and restore any backed up files.
  178.   Installing new drivers implicitly uninstalls any previous drivers.
  179.  
  180. o Auto-Updating: If you run:
  181.  
  182.     nvidia-installer --latest
  183.   
  184.   the utility will connect to NVIDIA's FTP site, and report the latest
  185.   driver version and the url to the latest driver file.
  186.   
  187.   If you run:
  188.  
  189.     nvidia-installer --update
  190.   
  191.   the utility will connect to NVIDIA's FTP site, download the most recent
  192.   driver file, and install it.
  193.  
  194. o Multiple user interfaces: The installer will use an ncurses-based
  195.   user interface if it can find the correct ncurses library, otherwise,
  196.   it will fall back to a simple commandline user interface.  To disable
  197.   use of the ncurses user interface, use the option '--ui=none'.
  198.  
  199. o Updated Kernel Interfaces: The installer has the ability to
  200.   download updated precompiled kernel interfaces from the NVIDIA
  201.   FTP site (for kernels that were released after the NVIDIA driver
  202.   release).
  203.  
  204.  
  205. NVIDIA-INSTALLER FAQ
  206.  
  207. Q: How do I extract the contents of the .run file without actually
  208.    installing the driver?
  209.  
  210. A: Run:
  211.  
  212.     sh NVIDIA-Linux-x86-1.0-4496-pkg1.run --extract-only
  213.  
  214.    This will create the directory NVIDIA-Linux-x86-1.0-4496-pkg1
  215.    which contains the uncompressed contents of the .run file.
  216.  
  217.  
  218. Q: How can I see the source code to the kernel interface layer?
  219.  
  220. A: The source files to the kernel interface layer are in the usr/src/nv
  221.    directory of the extracted .run file.  To get to these sources, run:
  222.  
  223.     sh NVIDIA-Linux-x86-1.0-4496-pkg1.run --extract-only
  224.     cd NVIDIA-Linux-x86-1.0-4496-pkg1/usr/src/nv/
  225.  
  226.  
  227. Q: I just upgraded my kernel, and now the NVIDIA kernel module won't
  228.    load.  What's wrong?
  229.  
  230. A: The kernel interface layer of the NVIDIA kernel module must be
  231.    compiled specifically for the configuration and version of your kernel.
  232.    If you upgrade your kernel, then the simplest solution is to reinstall
  233.    the driver.
  234.  
  235.    ADVANCED: You can install the NVIDIA kernel module for a non 
  236.    running kernel (for example: in the situation where you just built
  237.    and installed a new kernel, but haven't rebooted yet) with a command
  238.    line such as this:
  239.  
  240.     sh NVIDIA-Linux-x86-1.0-4496-pkg1.run --kernel-name='KERNEL_NAME'
  241.  
  242.    Where 'KERNEL_NAME' is what `uname -r` would report if the target
  243.    kernel were running.
  244.  
  245.  
  246. Q: Why does NVIDIA not provide rpms anymore?
  247.  
  248. A: Not every Linux distribution uses rpm, and NVIDIA wanted a single
  249.    solution that would work across all Linux distributions.  As indicated
  250.    in the NVIDIA Software License, Linux distributions are welcome to
  251.    repackage and redistribute the NVIDIA Linux driver in whatever package
  252.    format they wish.
  253.  
  254.  
  255. Q: nvidia-installer doesn't work on my computer.  How can I install the
  256.    driver contained within the .run file?
  257.  
  258. A: To install the NVIDIA driver contained within the .run file without
  259.    using nvidia-installer, you can use the included Makefile:
  260.  
  261.        sh ./NVIDIA-Linux-x86-1.0-4496-pkg1.run --extract-only
  262.        cd NVIDIA-Linux-x86-1.0-4496-pkg1
  263.        make install
  264.  
  265.    This method of installation is not recommended, and is only provided
  266.    as a last resort, should nvidia-installer not work correctly on
  267.    your system.
  268.  
  269.  
  270. Q: Can the nvidia-installer use a proxy server?
  271.  
  272. A: Yes, because the ftp support in nvidia-installer is based on snarf,
  273.    it will honor the FTP_PROXY, SNARF_PROXY, and PROXY environment
  274.    variables.
  275.  
  276.  
  277. Q: What is the significance of the "pkg#" suffix on the .run file?
  278.  
  279. A: The "pkg#" suffix is used to distinguish between .run files containing
  280.    the same driver, but different sets of precompiled kernel interfaces.
  281.    If a distribution releases a new kernel after an NVIDIA driver is
  282.    released, the current NVIDIA driver can be repackaged to include
  283.    a precompiled kernel interface for that newer kernel (in addition
  284.    to all the precompiled kernel interfaces that were included in the
  285.    previous package of the driver).
  286.  
  287.    .run files with the same version number, but different pkg numbers,
  288.    only differ in what precompiled kernel interfaces are included.
  289.    Additionally, .run files with higher pkg numbers will contain
  290.    everything the .run files with lower .pkg numbers contain.
  291.  
  292.  
  293. Q: I have already installed NVIDIA-Linux-x86-1.0-4496-pkg1.run,
  294.    but I see that NVIDIA-Linux-x86-1.0-4496-pkg2.run was just
  295.    posted on the NVIDIA Linux driver download page.  Should I download
  296.    and install NVIDIA-Linux-x86-1.0-4496-pkg2.run?
  297.  
  298. A: This is not necessary.  The driver contained within all
  299.    1.0-4496 .run files will be identical.  There is no need
  300.    to reinstall.
  301.  
  302.  
  303. Q: Can I add my own precompiled kernel interfaces to a .run file?
  304.  
  305. A: Yes, the "--add-this-kernel" .run file option will unpack the .run
  306.    file, build a precompiled kernel interface for the currently running
  307.    kernel, and repackage the .run file, appending "-custom" to the file
  308.    name.  This may be useful, for example. if you administer multiple
  309.    Linux machines, each running the same kernel.
  310.  
  311.  
  312. Q: Where can I find the source code for the nvidia-installer utility?
  313.  
  314. A: The nvidia-installer utility is released under the
  315.    GPL.  The latest source code for it is available at:
  316.    ftp://download.nvidia.com/XFree86/nvidia-installer/
  317.  
  318.  
  319. NVIDIA-INSTALLER ACKNOWLEDGEMENTS
  320.  
  321. nvidia-installer was inspired by the loki_update tool:
  322. (http://www.lokigames.com/development/loki_update.php3.)
  323.  
  324. The ftp and http support in nvidia-installer is based upon snarf 7.0:
  325. (http://www.xach.com/snarf/).
  326.  
  327. The self-extracting archive (aka ".run file") is generated using
  328. makeself.sh: (http://www.megastep.org/makeself/)
  329.  
  330.  
  331. __________________________________________________________________________
  332.  
  333. (sec-03) EDITING YOUR XF86CONFIG FILE
  334. __________________________________________________________________________
  335.  
  336. When XFree86 4.0 was released, it used a slightly different XF86Config
  337. file syntax than the 3.x series did, and so to allow both 3.x and 4.x
  338. versions of XFree86 to co-exist on the same system, it was decided that
  339. XFree86 4.x was to use the configuration file "/etc/X11/XF86Config-4"
  340. if it existed, and only if that file did not exist would the file
  341. "/etc/X11/XF86Config" be used (actually, that is an over-simplification
  342. of the search criteria; please see the XF86Config man page for a complete
  343. description of the search path).  Please make sure you know what
  344. configuration file XFree86 is using.  If you are in doubt, look for a
  345. line beginning with "(==) Using config file:" in your XFree86 log file
  346. ("/var/log/XFree86.0.log").  This README will use "XF86Config" to refer
  347. to your configuration file, whatever it is named.
  348.  
  349. If you do not have a working XF86Config file, there are several ways
  350. to start: there is a sample config file that comes with XFree86,
  351. and there is a sample config file included with the NVIDIA driver
  352. package (it gets installed in /usr/share/doc/NVIDIA_GLX-1.0/).
  353. You could also use a program like 'xf86config'; some distributions
  354. provide their own tool for generating an XF86Config file.  For more
  355. on XF86Config file syntax, please refer to the man page.
  356.  
  357. If you already have an XF86Config file working with a different driver
  358. (such as the 'nv' or 'vesa' driver), then all you need to do is find
  359. the relevant Device section and replace the line:
  360.  
  361.         Driver "nv"
  362.     (or Driver "vesa")
  363.  
  364. with 
  365.  
  366.         Driver "nvidia"  
  367.  
  368. In the Module section, make sure you have:
  369.  
  370.         Load   "glx"
  371.  
  372. You should also remove the following lines:
  373.       
  374.         Load  "dri"
  375.         Load  "GLcore"
  376.  
  377. if they exist.  There are also numerous options that can be added to
  378. the XF86Config file to fine-tune the NVIDIA XFree86 driver.  Please see
  379. Appendix D for a complete list of these options.
  380.  
  381. Once you have configured your XF86Config file, you are ready to restart
  382. X and begin using the accelerated OpenGL libraries.  After you restart X,
  383. you should be able to run any OpenGL application and it will automatically
  384. use the new NVIDIA libraries.  If you encounter any problems, please
  385. see the FREQUENTLY ASKED QUESTIONS section below.
  386.  
  387.  
  388. __________________________________________________________________________
  389.  
  390. (sec-04) FREQUENTLY ASKED QUESTIONS
  391. __________________________________________________________________________
  392.  
  393.  
  394. Q: Where should I start when diagnosing display problems?
  395.  
  396. A: One of the most useful tools for diagnosing problems is the XFree86
  397.    log file in /var/log (the file is named: "/var/log/XFree86.<#>.log",
  398.    where "<#>" is the server number -- usually 0).  Lines that begin with
  399.    "(II)" are information, "(WW)" are warnings, and "(EE)" are errors.
  400.    You should make sure that the correct config file (ie the config file
  401.    you are editing) is being used; look for the line that begins with:
  402.    "(==) Using config file:".  Also check that the NVIDIA driver is being
  403.    used, rather than the 'nv' or 'vesa' driver; you can look for: "(II)
  404.    LoadModule: "nvidia"", and lines from the driver should begin with:
  405.    "(II) NVIDIA(0)".
  406.  
  407.  
  408. Q: How can I increase the amount of data printed in the XFree86 log file?
  409.  
  410. A: By default, the NVIDIA X driver prints relatively few messages to
  411.    stderr and the XFree86 log file.  If you need to troubleshoot, then
  412.    it may be helpful to enable more verbose output by using the XFree86
  413.    command line options "-verbose" and "-logverbose" which can be used
  414.    to set the verbosity level for the stderr and log file messages,
  415.    respectively.  The NVIDIA X driver will output more messages when the
  416.    verbosity level is at or above 5 (XFree86 defaults to verbosity level
  417.    1 for stderr and level 3 for the log file).  So, to enable verbose
  418.    messaging from the NVIDIA X driver to both the log file and stderr,
  419.    you could start X by doing the following: 'startx -- -verbose 5
  420.    -logverbose 5'.
  421.  
  422.  
  423. Q: My X server fails to start, and my XFree86 log file contains the error:
  424.  
  425.    "(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module!"
  426.  
  427. A: Nothing will work if the NVIDIA kernel module doesn't function
  428.    properly.  If you see anything in the X log file like "(EE)
  429.    NVIDIA(0): Failed to initialize the NVIDIA kernel module!" then
  430.    there is most likely a problem with the NVIDIA kernel module.
  431.    First, you should verify that if you installed from rpm that
  432.    the rpm was built specifically for the kernel you are using.
  433.    You should also check that the module is loaded ('/sbin/lsmod');
  434.    if it is not loaded try loading it explicitly with 'insmod' or
  435.    'modprobe' (be sure to exit the X server before installing a new
  436.    kernel module).  If you receive errors about unresolved symbols,
  437.    then the kernel module has most likely been built using header files
  438.    for a different kernel revision than what you are running.  You can
  439.    explicitly control what kernel header files are used when building
  440.    the NVIDIA kernel module with the --kernel-include-dir option (see
  441.    `sh NVIDIA-Linux-x86-1.0-4496-pkg1.run --advanced-options`
  442.    for details).
  443.  
  444.    Please note that the convention for the location of kernel header
  445.    files changed approximately at the time of the 2.4.0 kernel release,
  446.    as did the location of kernel modules.  If the kernel module fails to
  447.    load properly, modprobe/insmod may be trying to load an older kernel
  448.    module (assuming you've upgraded).  cd'ing into the directory with
  449.    the new kernel module and doing 'insmod ./nvidia.o' may help.
  450.  
  451.    Another cause may be that the /dev/nvidia* device files may be missing.
  452.  
  453.    Finally, the NVIDIA kernel module may print error messages indicating
  454.    a problem -- to view these messages please check /var/log/messages, or
  455.    wherever syslog is directed to place kernel messages.  These messages
  456.    are prepended with "NVRM".
  457.  
  458.  
  459. Q: X starts for me, but OpenGL applications terminate immediately.
  460.  
  461. A: If X starts, but OpenGL causes problems, you most likely have a
  462.    problem with other libraries in the way, or there are stale symlinks.
  463.    See Appendix C for details.  Sometimes, all it takes is to rerun
  464.    'ldconfig'.
  465.  
  466.    You should also check that the correct extensions are present;
  467.    'xdpyinfo' should show the "GLX", "NV-GLX" and "NVIDIA-GLX" extensions
  468.    present.  If these three extensions are not present, then there is
  469.    most likely a problem with the glx module getting loaded or it is
  470.    unable to implicitly load GLcore.  Check your XF86Config file and make
  471.    sure that you are loading glx (see "Editing Your XF86Config File"
  472.    above). If your XF86Config file is correct, then check the XFree86
  473.    log file for warnings/errors pertaining to GLX.  Also check that all
  474.    of the necessary symlinks are in place (refer to Appendix C).
  475.  
  476.  
  477. Q: Installing the NVIDIA kernel module gives an error message like:
  478.         #error Modules should never use kernel-headers system headers
  479.         #error but headers from an appropriate kernel-source
  480.  
  481. A: You need to install the source for the Linux kernel.  In most
  482.    situations you can fix this problem by installing the kernel-source
  483.    package for your distribution
  484.  
  485.  
  486. Q: OpenGL applications exit with the following error message:
  487.  
  488.         Error: Could not open /dev/nvidiactl because the permissions
  489.         are too restrictive.  Please see the FREQUENTLY ASKED QUESTIONS
  490.         section of /usr/share/doc/NVIDIA_GLX-1.0/README for steps
  491.         to correct.
  492.  
  493. A: It is likely that a security module for the PAM system may be
  494.    changing the permissions on the NVIDIA device files.  In most cases
  495.    this security system works, but it can get confused.  To correct this
  496.    problem it is recommended that you disable this security feature.
  497.    Different Linux distributions have different files to control this;
  498.    please consult with your distributor for the correct method of
  499.    disabling this security feature.  As an example, if your system has
  500.    the file
  501.         /etc/security/console.perms
  502.    then you should edit the file and remove the line that starts with
  503.    "<dri>" (we have also received reports that additional references to
  504.    <dri> in console.perms must be removed, but this has not been verified
  505.    by NVIDIA).  If instead your system has the file
  506.         /etc/logindevperms
  507.    then you should edit the file and remove the line that lists
  508.    /dev/nvidiactl.  The above steps will prevent the PAM security system
  509.    from modifying the permissions on the NVIDIA device files.  Next,
  510.    you will need to reset the permissions on the device files back
  511.    to their original permissions and owner.  You can do that with the
  512.    following commands:
  513.         chmod 0666 /dev/nvidia* chown root /dev/nvidia*
  514.  
  515.  
  516. Q: OpenGL applications crash and print out the following warning:
  517.     
  518.         WARNING: Your system is running with a buggy dynamic loader.
  519.         This may cause crashes in certain applications.  If you
  520.         experience crashes you can try setting the environment
  521.         variable __GL_SINGLE_THREADED to 1.  For more information
  522.         please consult the FREQUENTLY ASKED QUESTIONS section in
  523.         the file /usr/share/doc/NVIDIA_GLX-1.0/README.
  524.  
  525. A: The dynamic loader on your system has a bug which will cause
  526.    applications linked with pthreads, and that dlopen() libGL multiple 
  527.    times, to crash.  This bug is present in older versions of the dynamic 
  528.    loader.  Distributions that shipped with this loader include but
  529.    are not limited to Red Hat Linux 6.2 and Mandrake Linux 7.1.  Version
  530.    2.2 and later of the dynamic loader are known to work properly.  If
  531.    the crashing application is single threaded then setting the environment 
  532.    variable __GL_SINGLE_THREADED to 1 will prevent the crash.
  533.    In the bash shell you would enter:
  534.         export __GL_SINGLE_THREADED=1
  535.    and in csh and derivatives use:
  536.         setenv __GL_SINGLE_THREADED 1
  537.    Previous releases of the NVIDIA Accelerated Linux Driver Set attempted
  538.    to work around this problem, however the workaround caused problems with
  539.    other applications and was removed after version 1.0-1541.
  540.  
  541.  
  542. Q: When I run Quake3, it crashes when changing video modes; what's wrong?
  543.  
  544. A: You are probably experiencing the problem described above.  Please
  545.    check the text output for the "WARNING" message describe in the
  546.    previous hint.  Setting __GL_SINGLE_THREADED to 1 as described
  547.    above, before running Quake3  will fix the problem.
  548.  
  549.  
  550. Q: My system runs, but seems unstable.  What's wrong?
  551.  
  552. A: Your stability problems may be AGP-related.  See Appendix F for
  553.    details.
  554.  
  555.  
  556. Q: The kernel module doesn't get loaded dynamically when X starts;
  557.    I always have to do 'modprobe nvidia' first.  What's wrong?
  558.  
  559. A: Make sure the line "alias char-major-195 nvidia" appears in
  560.    your module configuration file, generally one of "/etc/conf.modules",
  561.    "/etc/modules.conf" or "/etc/modutils/alias"; consult the documentation
  562.    that came with your distribution for details.
  563.  
  564.  
  565. Q: I can't build the NVIDIA kernel module, or I can build the NVIDIA
  566.    kernel module, but modprobe/insmod fails to load the module into
  567.    my kernel.  What's wrong?
  568.  
  569. A: These problems are generally caused by the build using the wrong kernel
  570.    header files (ie header files for a different kernel version than
  571.    the one you are running).  The convention used to be that kernel
  572.    header files should be stored in "/usr/include/linux/", but that
  573.    is deprecated in favor of "/lib/modules/`uname -r`/build/include".
  574.    The nvidia-installer should be able to determine the location on your
  575.    system; however, if you encounter a problem you can force the build
  576.    to use certain header files by using the --kernel-include-dir option.
  577.    Obviously, for this to work, you need the appropriate kernel header
  578.    files installed on your system.  Consult the documentation that came
  579.    with your distribution; some distributions don't install the kernel
  580.    header files by default, or they install headers that don't coincide
  581.    properly with the kernel you are running.
  582.  
  583.  
  584. Q: Why do OpenGL applications run so slow?
  585.  
  586. A: The application is probably using a different library still on your
  587.    system, rather than the NVIDIA supplied OpenGL library.  Please see
  588.    APPENDIX C for details.
  589.  
  590.  
  591. Q: There are problems running Quake2.
  592.  
  593. A: Quake2 requires some minor setup to get it going.  First, in the Quake2
  594.    directory, the install creates a symlink called libGL.so that points
  595.    at libMesaGL.so.  This symlink should be removed or renamed.  Then,
  596.    to run Quake2 in OpenGL mode, you would type: 'quake2 +set vid_ref glx
  597.    +set gl_driver libGL.so'.  Quake2 does not seem to support any kind of
  598.    full-screen mode, but you can run your X server at whatever resolution
  599.    Quake2 runs at to emulate full-screen mode.
  600.  
  601.  
  602. Q: There are problems running Heretic II.
  603.  
  604. A: Heretic II also installs, by default, a symlink called libGL.so in
  605.    the application directory.  You can remove or rename this symlink, since
  606.    the system will then find the default libGL.so (which our
  607.    drivers install in /usr/lib).  From within Heretic II you
  608.    can then set your render mode to OpenGL in the video menu.
  609.    There is also a patch available to Heretic II from lokigames at:
  610.    http://www.lokigames.com/products/heretic2/updates.php3
  611.  
  612.  
  613. Q: Where can I get gl.h or glx.h so I can compile OpenGL programs?
  614.  
  615. A: Most systems come with these header files preinstalled.  However,
  616.    NVIDIA provides its own gl.h and glx.h files which get installed
  617.    in /usr/share/doc/NVIDIA_GLX-1.0/include/GL/.  To use these
  618.    files, either manually copy them into /usr/include/GL/,
  619.    or instruct the installer to install these files in
  620.    /usr/include/GL/ by passing the '--opengl-headers' option to the
  621.    NVIDIA-Linux-x86-1.0-4496-pkg1.run file during installation.
  622.  
  623.  
  624. Q: Can I receive email notification of new NVIDIA Accelerated Linux
  625.    Driver Set releases?
  626.  
  627. A: Yes.  Fill out the form at:
  628.    http://www.nvidia.com/view.asp?FO=driver_update
  629.  
  630.  
  631. Q: My system hangs when vt-switching if I have rivafb enabled.
  632.  
  633. A: Using both rivafb and the NVIDIA kernel module at the same time is
  634.    currently broken.  In general, using two independent software drivers
  635.    to drive the same piece of hardware is a bad idea.
  636.  
  637.  
  638. Q: Compiling the NVIDIA kernel module gives this error:
  639.  
  640.         You appear to be compiling the NVIDIA kernel module with
  641.         a compiler different from the one that was used to compile
  642.         the running kernel. This may be perfectly fine, but there
  643.         are cases where this can lead to unexpected behaviour and
  644.         system crashes.
  645.  
  646.         If you know what you are doing and want to override this
  647.         check, you can do so by setting IGNORE_CC_MISMATCH.
  648.  
  649.         In any other case, set the CC environment variable to the
  650.         name of the compiler that was used to compile the kernel.
  651.  
  652. A: You should compile the NVIDIA kernel module with the same compiler
  653.    version that was used to compile your kernel.  Some Linux kernel data
  654.    structures are dependent on the version of gcc used to compile it;
  655.    for example, in include/linux/spinlock.h:
  656.  
  657.         ...
  658.         * Most gcc versions have a nasty bug with empty initializers.
  659.         */
  660.         #if (__GNUC__ > 2)
  661.           typedef struct { } rwlock_t;
  662.           #define RW_LOCK_UNLOCKED (rwlock_t) { }
  663.         #else
  664.           typedef struct { int gcc_is_buggy; } rwlock_t;
  665.           #define RW_LOCK_UNLOCKED (rwlock_t) { 0 }
  666.         #endif
  667.  
  668.    If the kernel is compiled with gcc 2.x, but gcc 3.x is used when the
  669.    kernel interface is compiled (or vice versa), the size of rwlock_t
  670.    will vary, and things like ioremap will fail.
  671.  
  672.    To check what version of gcc was used to compile your kernel, you
  673.    can examine the output of:
  674.  
  675.         cat /proc/version
  676.  
  677.    To check what version of gcc is currently in your $PATH, you can
  678.    examine the output of:
  679.  
  680.         gcc -v
  681.  
  682.  
  683. Q: X fails with error "Failed to allocate LUT context DMA"
  684.  
  685. A: This is one of the possible consequences of compiling the NVIDIA
  686.    kernel interface with a different gcc version than used to compile
  687.    the Linux kernel (see above).
  688.  
  689.  
  690. Q: What is NVIDIA's policy towards development series Linux kernels?
  691.  
  692. A: NVIDIA does not officially support development series kernels.
  693.    However, all the kernel module source code that interfaces with the
  694.    Linux kernel is available in the usr/src/nv/ directory of the .run file.
  695.    NVIDIA encourages members of the Linux community to develop patches
  696.    to these source files to support development series kernels.  A google
  697.    search will most likely yield several community supported patches.
  698.  
  699.  
  700. Q: I recently updated various libraries on my system using my Linux
  701.    distributor's update utility, and the NVIDIA graphics driver no
  702.    longer works.  What's wrong?
  703.  
  704. A: Conflicting libraries may have been installed by your
  705.    distribution's update utility; please see APPENDIX C: INSTALLED
  706.    COMPONENTS for details on how to diagnose this.
  707.  
  708.  
  709. Q: `rpm --rebuild` gives an error "unknown option".
  710.  
  711. A: Recent versions of rpm no longer support the "--rebuild" option;
  712.    if you have such a version of rpm, you should instead use the command
  713.    `rpmbuild --rebuild`.  The `rpmbuild` executable is provided by the
  714.    rpm-build package.
  715.  
  716.  
  717. Q: I'm using either nForce of nForce2 internal graphics, and I see
  718.    warnings like this in my XFree86.0.log file:
  719.  
  720.     Not using mode "1600x1200" (exceeds valid memory bandwidth usage)
  721.  
  722. A: Integrated graphics have stricter memory bandwidth limitations
  723.    that restrict the resolution and refresh rate of the modes you
  724.    request.  To work around this, you can reduce the maximum refresh
  725.    rate by lowering the upper value of the "VertRefresh" range in the
  726.    Monitor section of your XF86Config file.  Though not recommended,
  727.    you can disable the memory bandwidth test with the "NoBandWidthTest"
  728.    XF86Config file option.
  729.  
  730.  
  731. Q: I've rebuilt the NVIDIA kernel module, but when I try to insert
  732.    it, I get a message telling me I have unresolved symbols.
  733.  
  734. A. Unresolved symbols are most often caused by a mismatch between your
  735.    kernel sources and your running kernel.  They must match for the
  736.    NVIDIA kernel module to build correctly.  Please make sure your kernel
  737.    sources are installed and configured to match your running kernel.
  738.  
  739.  
  740. Q: How do I tell if I have my kernel sources installed?
  741.  
  742. A: If you're running on a distro that uses RPM (Red Hat, Mandrake, SuSE,
  743.    etc), then you can use RPM to tell you.  At a shell prompt, type:
  744.  
  745.     `rpm -qa | grep kernel`
  746.  
  747.    and look at the output.  You should see a package that corresponds
  748.    to your kernel (often named something like kernel-2.4.18-3)
  749.    and a kernel source package with the same version (often named
  750.    something like kernel-source-2.4.18-3).  If none of the lines seem
  751.    to correspond to a source package, then you'll probably need to
  752.    install it.  If the versions listed mismatch (ex: kernel-2.4.18-10 vs.
  753.    kernel-source-2.4.18-3), then you'll need to update the kernel-source
  754.    package to match the installed kernel.  If you have multiple kernels
  755.    installed, you need to install the kernel-source package that
  756.    corresponds to your *running* kernel (or make sure your installed
  757.    source package matches the running kernel).  You can do this by
  758.    looking at the output of 'uname -r' and matching versions.
  759.  
  760.  
  761. Q: Why am I unable to load the NVIDIA kernel module that I compiled
  762.    for the Red Hat Linux 7.3 2.4.18-3bigmem kernel?
  763.  
  764. A: The kernel header files Red Hat Linux distributes for Red Hat Linux 7.3
  765.    2.4.18-3bigmem kernel are misconfigured.  NVIDIA's precompiled kernel
  766.    module for this kernel can be loaded, but if you wish to compile the
  767.    NVIDIA kernel interface files yourself for this kernel, then you'll
  768.    need to perform the following:
  769.  
  770.     cd /lib/modules/`uname -r`/build/
  771.     cp configs/kernel-2.4.18-i686-bigmem.config .config
  772.     make mrproper oldconfig dep
  773.  
  774.    Note: Red Hat Linux ships kernel header files that are simultaneously
  775.    configured for ALL of their kernels for a particular distribution
  776.    version.  A header file generated at boot time sets up a few parameters
  777.    that select the correct configuration.  Rebuilding the kernel headers
  778.    with the above commands will create header files suitable for the
  779.    Red Hat Linux 7.3 2.4.18-3bigmem kernel configuration only, thus trashing
  780.    the header files for the other configurations.
  781.  
  782.  
  783. Q: X takes a long time to start (possibly several minutes).  What can
  784.    I do?
  785.  
  786. A: Most of the startx delay problems we have found are caused by incorrect
  787.    data in video BIOSes about what display devices are possibly connected
  788.    or what i2c port should be used for detection.  You can work around
  789.    these problems with the XF86Config option "IgnoreDisplayDevices"
  790.    (please see the description in (app-d) APPENDIX D: XF86CONFIG OPTIONS).
  791.  
  792.  
  793. Q: Why does X use so much memory?
  794.  
  795. A: When measuring any application's memory usage, you must be
  796.    careful to distinguish between physical system RAM used and virtual
  797.    mappings of shared resources.  For example, most shared libraries exist
  798.    only once in physical memory but are mapped into multiple processes.
  799.    This memory should only be counted once when computing total memory
  800.    usage.  In the same way, the video memory on a graphics card or
  801.    register memory on any device can be mapped into multiple processes.
  802.    These mappings do not consume normal system RAM.
  803.  
  804.    This has been a frequently discussed topic on XFree86 mailing
  805.    lists; see, for example:
  806.  
  807.     http://marc.theaimsgroup.com/?l=xfree-xpert&m=96835767116567&w=2
  808.  
  809.    The `pmap` utility described in the above thread and available here:
  810.  
  811.     http://web.hexapodia.org/~adi/pmap.c
  812.  
  813.    is a useful tool in distinguishing between types of memory mappings.
  814.    For example, while `top` may indicate that X is using several hundred
  815.    MB of memory, the last line of output from pmap:
  816.  
  817.     mapped:   287020 KB writable/private: 9932 KB shared: 264656 KB
  818.  
  819.    reveals that X is really only using roughly 10MB of system RAM
  820.    (the "writable/private" value).
  821.  
  822.    Note, also, that X must allocate resources on behalf of X clients (the
  823.    window manager, your web browser, etc); X's memory usage will increase
  824.    as more clients request resources such as pixmaps, and decrease as
  825.    you close X applications.
  826.  
  827.  
  828. Q: OpenGL applications leak significant amounts of memory on my system!
  829.  
  830. A: If your kernel is making use of the -rmap VM, the system may be leaking
  831.    memory due to a memory management optimization introduced in -rmap14a.
  832.    The -rmap VM has been adopted by several popular distributions, the
  833.    memory leak is known to be present in some of the distribution kernels;
  834.    it has been fixed in -rmap15e.
  835.  
  836.    If you suspect that your system is affected, please try upgrading your
  837.    kernel or contact the distribution's vendor for assistance.
  838.  
  839.  
  840. Q: Some OpenGL applications (like Quake3 Arena) crash when I start them
  841.    on Red Hat Linux 9.0.
  842.  
  843. A: Some versions of the glibc package shipped by Red Hat that support
  844.    TLS do not properly handle using dlopen() to access shared libraries
  845.    which utilize some TLS models.  This problem is exhibited, for example,
  846.    when Quake3 Area dlopen()'s NVIDIA's libGL library.  Please obtain
  847.    at least glibc-2.3.2-11.9 which is available as an update from Red Hat.
  848.  
  849.  
  850. Q: I've installed the driver, but my Enable 3D Acceleration checkbox is still
  851.    greyed out!  What did I do wrong?
  852.  
  853. A: Most distribution-provided configuration applets aren't aware of the NVIDIA
  854.    accelerated driver, and consequently won't update themselves when you install
  855.    the driver.  Your driver, if it has been installed properly, should function
  856.    fine.
  857.  
  858.  
  859. Q: Where can I find the tarballs?
  860.  
  861. A: Please visit ftp://download.nvidia.com/XFree86/1.0-4496/.
  862.  
  863.  
  864. Q: Where can I find older driver versions?
  865.  
  866. A: Please visit ftp://download.nvidia.com/XFree86_40/.
  867.  
  868.  
  869. Q: X does not restore the vga console when run on a TV.  I get this
  870.    error message in my XFree86 log file:
  871.  
  872.     Unable to initialize the XFree86 int10 module; the console may not
  873.     be restored correctly on your TV.
  874.  
  875. A: The NVIDIA XFree86 driver uses the XFree86 Int10 module to save
  876.    and restore console state on TV out, and will not be able to
  877.    restore the console correctly if it cannot use the Int10 module.
  878.    If you have built XFree86 yourself, please be sure you have
  879.    built the Int10 module.  If you are using a build of XFree86
  880.    provided by a Linux distribution, and are missing the Int10
  881.    module, please contact your distributor,
  882.  
  883.  
  884. __________________________________________________________________________
  885.  
  886. (sec-05) CONTACTING US
  887. __________________________________________________________________________
  888.  
  889.  
  890. There is an NVIDIA Linux Driver web forum.  You can access it by going
  891. to www.nvnews.net and following the "Forum" and "Linux Discussion Area"
  892. links.  This is the preferable tool for seeking help; users can post
  893. questions, answer other users' questions, and search the archives of
  894. previous postings.
  895.  
  896. If all else fails, you can contact NVIDIA for support at:
  897. linux-bugs@nvidia.com.  But please, only send email to this address
  898. after you've followed the FREQUENTLY ASKED QUESTIONS section in this
  899. README and asked for help on the nvnews.net web forum.
  900.  
  901.  
  902. __________________________________________________________________________
  903.  
  904. (sec-06) FURTHER RESOURCES
  905. __________________________________________________________________________
  906.  
  907. Linux OpenGL ABI
  908. http://oss.sgi.com/projects/ogl-sample/ABI/
  909.  
  910. NVIDIA Linux HowTo
  911. http://www.tldp.org/HOWTO/XFree86-Video-Timings-HOWTO/index.html
  912.  
  913. OpenGL
  914. www.opengl.org
  915.  
  916. The XFree86 Project
  917. www.xfree86.org
  918.  
  919. #nvidia (irc.openprojects.net)
  920.  
  921.  
  922. __________________________________________________________________________
  923.  
  924. (app-a) APPENDIX A: SUPPORTED NVIDIA GRAPHICS CHIPS
  925. __________________________________________________________________________
  926.  
  927.   NVIDIA CHIP NAME               DEVICE PCI ID
  928.  
  929.   o RIVA TNT                     0x0020
  930.   o RIVA TNT2                    0x0028
  931.   o RIVA TNT2 Ultra              0x0029
  932.   o Vanta                        0x002C
  933.   o RIVA TNT2 Model 64           0x002D
  934.   o Aladdin TNT2                 0x00A0
  935.   o GeForce 256                  0x0100
  936.   o GeForce DDR                  0x0101
  937.   o Quadro                       0x0103
  938.   o GeForce2 MX/MX 400           0x0110
  939.   o GeForce2 MX 100/200          0x0111
  940.   o GeForce2 Go                  0x0112
  941.   o Quadro2 MXR/EX/Go            0x0113
  942.   o GeForce2 GTS                 0x0150
  943.   o GeForce2 Ti                  0x0151
  944.   o GeForce2 Ultra               0x0152
  945.   o Quadro2 Pro                  0x0153
  946.   o GeForce4 MX 460              0x0170
  947.   o GeForce4 MX 440              0x0171
  948.   o GeForce4 MX 420              0x0172
  949.   o GeForce4 MX 440-SE           0x0173
  950.   o GeForce4 440 Go              0x0174
  951.   o GeForce4 420 Go              0x0175
  952.   o GeForce4 420 Go 32M          0x0176
  953.   o GeForce4 460 Go              0x0177
  954.   o Quadro4 550 XGL              0x0178
  955.   o GeForce4 440 Go 64M          0x0179
  956.   o Quadro4 NVS                  0x017A
  957.   o Quadro4 500 GoGL             0x017C
  958.   o GeForce4 410 Go 16M          0x017D
  959.   o GeForce4 MX 440 with AGP8X   0x0181
  960.   o GeForce4 MX 440SE with AGP8X 0x0182
  961.   o GeForce4 MX 420 with AGP8X   0x0183
  962.   o Quadro4 580 XGL              0x0188
  963.   o Quadro4 280 NVS              0x018A
  964.   o Quadro4 380 XGL              0x018B
  965.   o GeForce4 448 Go              0x0186
  966.   o GeForce4 488 Go              0x0187
  967.   o GeForce2 Integrated GPU      0x01A0
  968.   o GeForce4 MX Integrated GPU   0x01F0
  969.   o GeForce3                     0x0200
  970.   o GeForce3 Ti 200              0x0201
  971.   o GeForce3 Ti 500              0x0202
  972.   o Quadro DCC                   0x0203
  973.   o GeForce4 Ti 4600             0x0250
  974.   o GeForce4 Ti 4400             0x0251
  975.   o GeForce4 Ti 4200             0x0253
  976.   o Quadro4 900 XGL              0x0258
  977.   o Quadro4 750 XGL              0x0259
  978.   o Quadro4 700 XGL              0x025B
  979.   o GeForce4 Ti 4800             0x0280
  980.   o GeForce4 Ti 4200 with AGP8X  0x0281
  981.   o GeForce4 Ti 4800 SE          0x0282
  982.   o GeForce4 4200 Go             0x0286
  983.   o Quadro4 980 XGL              0x0288
  984.   o Quadro4 780 XGL              0x0289
  985.   o Quadro4 700 GoGL             0x028C
  986.   o GeForce FX 5800 Ultra        0x0301
  987.   o GeForce FX 5800              0x0302
  988.   o GeForce FX 5600 Ultra        0x0311
  989.   o GeForce FX 5600              0x0312
  990.   o GeForce FX 5200 Ultra        0x0321
  991.   o GeForce FX 5200              0x0322
  992.   o Quadro FX 2000               0x0308
  993.   o Quadro FX 1000               0x0309
  994.   o Quadro FX 500                0x032B 
  995.  
  996. Please note that the RIVA 128/128ZX chips are supported by the open
  997. source 'nv' driver for XFree86, but not by the NVIDIA Accelerated Linux
  998. Driver Set.
  999.  
  1000. If you want to check your Device PCI IDs for comparison with the table
  1001. above, you can use either `cat /proc/pci` or `lspci -n`; in the later
  1002. case, look for the device with vendor id "10de", eg:
  1003.  
  1004.         02:00.0 Class 0300:10de:0100 (rev 10)
  1005.  
  1006.  
  1007. __________________________________________________________________________
  1008.  
  1009. (app-b) APPENDIX B: MINIMUM SOFTWARE REQUIREMENTS
  1010. __________________________________________________________________________
  1011.  
  1012.   o linux kernel     2.2.12   # cat /proc/version
  1013.   o XFree86          4.0.1    # XFree86 -version
  1014.   o Kernel modutils  2.1.121  # insmod -V
  1015.  
  1016.     If you need to build the NVIDIA kernel module:
  1017.  
  1018.   o binutils         2.9.5    # size --version
  1019.   o GNU make         3.77     # make --version
  1020.   o gcc              2.91.66  # gcc --version
  1021.  
  1022.     If you build from source rpms:
  1023.  
  1024.   o spec-helper rpm           # rpm -qi spec-helper
  1025.  
  1026. All official stable kernel releases from 2.2.12 and up are supported;
  1027. "prerelease" versions such as "2.4.3-pre2" are not supported, nor are
  1028. development series kernels such as 2.3.x or 2.5.x.  The linux kernel
  1029. can be downloaded from www.kernel.org or one of its mirrors.
  1030.  
  1031. binutils and gcc can be retrieved from www.gnu.org or one of its mirrors.
  1032.  
  1033. If you are using XFree86, but do not have a file /var/log/XFree86.0.log,
  1034. then you probably have a 3.x version of XFree86 and must upgrade.
  1035.  
  1036. If you are setting up XFree86 4.x for the first time, it is often easier
  1037. to begin with one of the open source drivers that ships with XFree86
  1038. (either 'nv', 'vga' or 'vesa').  Once XFree86 is operating properly with
  1039. the open source driver, then it is easier to switch to the nvidia driver.
  1040.  
  1041. Note that newer NVIDIA GPUs may not work with older versions of the "nv"
  1042. driver shipped with XFree86.  For example, the "nv" driver that shipped
  1043. with XFree86 version 4.0.1 did not recognize the GeForce2 family and
  1044. the Quadro2 MXR GPUs.  However, this was fixed in XFree86 version 4.0.2
  1045. (XFree86 can be retrieved from www.xfree86.org).
  1046.  
  1047. These software packages may also be available through your linux
  1048. distributor.
  1049.  
  1050.  
  1051. __________________________________________________________________________
  1052.  
  1053. (app-c) APPENDIX C: INSTALLED COMPONENTS
  1054. __________________________________________________________________________
  1055.  
  1056. The NVIDIA Accelerated Linux Driver Set consists of the following
  1057. components (the file in parenthesis is the full name of the component
  1058. after installation; "x.y.z" denotes the current version -- in these
  1059. cases appropriate symlinks are created during installation):
  1060.  
  1061.   o An XFree86 driver (/usr/X11R6/lib/modules/drivers/nvidia_drv.o);
  1062.     this driver is needed by XFree86 to use your NVIDIA hardware.
  1063.     The nvidia_drv.o driver is binary compatible with XFree86 4.0.1
  1064.     and greater.
  1065.  
  1066.   o A GLX extension module for XFree86
  1067.     (/usr/X11R6/lib/modules/extensions/libglx.so.x.y.z); this module is
  1068.     used by XFree86 to provide server-side glx support.
  1069.  
  1070.   o An OpenGL library (/usr/lib/libGL.so.x.y.z); this library
  1071.     provides the API entry points for all OpenGL and GLX function calls.
  1072.     It is linked to at run-time by OpenGL applications.
  1073.  
  1074.   o An OpenGL core library (/usr/lib/libGLcore.so.x.y.z); this
  1075.     library is implicitly used by libGL and by libglx.  It contains the
  1076.     core accelerated 3D functionality.  You should not explicitly load
  1077.     it in your XF86Config file -- that is taken care of by libglx.
  1078.  
  1079.   o Two XvMC (X-Video Motion Compensation) libraries: a static library
  1080.     and a shared library (/usr/X11R6/lib/libXvMCNVIDIA.a,
  1081.     /usr/X11R6/lib/libXvMCNVIDIA.so.x.y.z); please see (app-p) APPENDIX P:
  1082.     XVMC SUPPORT for details.
  1083.  
  1084.   o A kernel module (/lib/modules/`uname -r`/video/nvidia.o
  1085.     or /lib/modules/`uname -r`/kernel/drivers/video/nvidia.o).  This
  1086.     kernel module provides low-level access to your NVIDIA hardware
  1087.     for all of the above components.  It is generally loaded into the
  1088.     kernel when the X server is started, and is used by the XFree86
  1089.     driver and OpenGL.  nvidia.o consists of two pieces: the binary-only
  1090.     core, and a kernel interface that must be compiled specifically
  1091.     for your kernel version.  Note that the linux kernel does not have
  1092.     a consistent binary interface like XFree86, so it is important that
  1093.     this kernel interface be matched with the version of the kernel that
  1094.     you are using.  This can either be accomplished by compiling yourself,
  1095.     or using precompiled binaries provided for the kernels shipped with
  1096.     some of the more common linux distributions.
  1097.  
  1098.   o OpenGL and GLX header files
  1099.     (/usr/share/doc/NVIDIA_GLX-1.0/include/GL/gl.h, and
  1100.     /usr/share/doc/NVIDIA_GLX-1.0/include/GL/glx.h).  These files can also
  1101.     be installed in /usr/include/GL/ by passing the "--opengl-headers"
  1102.     option to the .run file during installation.
  1103.  
  1104.   o ELF TLS OpenGL and OpenGL core libraries
  1105.     (/usr/lib/tls/libGL.so.x.y.z and /usr/lib/tls/libGLcore.so.x.y.z).
  1106.     Linux systems that utilize glibc 2.3 or greater with tls support
  1107.     enabled, use a new mechanism for thread local storage (TLS).
  1108.     This mechanism is incompatible with NVIDIA's previous thread
  1109.     local storage support; therefore, special ELF TLS libraries are
  1110.     provided, and installed in /usr/lib/tls/ on systems that support it.
  1111.     The runtime loader will select between the OpenGL libraries installed
  1112.     in /usr/lib/, and those installed in /usr/lib/tls/.
  1113.  
  1114.     It should also be noted that this new TLS mechanism also affects
  1115.     the GLX extension module (libglx.so.x.y.z).  However, because the
  1116.     XFree86 loader does not know how to select between tls and non-tls
  1117.     libraries, the correct libglx library is automatically installed
  1118.     in /usr/X11R6/lib/modules/extensions/.
  1119.  
  1120.     You can determine if your glibc uses the new thread local
  1121.     storage mechanism by executing the command:
  1122.  
  1123.         /lib/libc.so.6  | grep "Thread-local storage support included."
  1124.  
  1125.     The above command will print "Thread-local storage support
  1126.     included." on systems that support the new thread local storage.
  1127.  
  1128.   o The application nvidia-installer (/usr/bin/nvidia-installer) is
  1129.     NVIDIA's tool for installing and updating NVIDIA drivers.  Please see
  1130.     (sec-03) EDITING YOUR XF86CONFIG FILE for a more thorough description.
  1131.  
  1132.  
  1133. Problems will arise if applications use the wrong version of a library.
  1134. This can be the case if there are either old libGL libraries or stale
  1135. symlinks left lying around.  If you think there may be something awry
  1136. in your installation, check that the following files are in place
  1137. (these are all the files of the NVIDIA Accelerated Linux Driver Set,
  1138. plus their symlinks):
  1139.  
  1140.         /usr/X11R6/lib/modules/drivers/nvidia_drv.o
  1141.  
  1142.         /usr/X11R6/lib/modules/extensions/libglx.so.x.y.z
  1143.         /usr/X11R6/lib/modules/extensions/libglx.so -> libglx.so.x.y.z
  1144.  
  1145.         /usr/lib/libGL.so.x.y.z
  1146.         /usr/lib/libGL.so.x -> libGL.so.x.y.z
  1147.         /usr/lib/libGL.so -> libGL.so.x
  1148.  
  1149.         /usr/lib/libGLcore.so.x.y.z
  1150.         /usr/lib/libGLcore.so.x -> libGLcore.so.x.y.z
  1151.  
  1152.         /lib/modules/`uname -r`/video/nvidia.o, or
  1153.         /lib/modules/`uname -r`/kernel/drivers/video/nvidia.o
  1154.  
  1155. Installation will also create the /dev files:
  1156.  
  1157.         crw-rw-rw-    1 root     root     195,   0 Feb 15 17:21 nvidia0
  1158.         crw-rw-rw-    1 root     root     195,   1 Feb 15 17:21 nvidia1
  1159.         crw-rw-rw-    1 root     root     195,   2 Feb 15 17:21 nvidia2
  1160.         crw-rw-rw-    1 root     root     195,   3 Feb 15 17:21 nvidia3
  1161.         crw-rw-rw-    1 root     root     195, 255 Feb 15 17:21 nvidiactl
  1162.  
  1163. If there are other libraries whose "soname" conflicts with that of
  1164. the NVIDIA libraries, ldconfig may create the wrong symlinks.  It is
  1165. recommended that you manually remove or rename conflicting libraries (be
  1166. sure to rename clashing libraries to something that ldconfig won't look at
  1167. -- we've found that prepending "XXX" to a library name generally does the
  1168. trick), rerun 'ldconfig', and check that the correct symlinks were made.
  1169. Some libraries that often create conflicts are "/usr/X11R6/lib/libGL.so*"
  1170. and "/usr/X11R6/lib/libGLcore.so*".
  1171.  
  1172. If the libraries checks out, then verify that the application is using
  1173. the correct libraries.  For example, to check that the application
  1174. /usr/X11R6/bin/gears is using the NVIDIA libraries, you would do:
  1175.  
  1176. $ ldd /usr/X11R6/bin/gears
  1177.         libglut.so.3 => /usr/lib/libglut.so.3 (0x40014000)
  1178.         libGLU.so.1 => /usr/lib/libGLU.so.1 (0x40046000)
  1179.         libGL.so.1 => /usr/lib/libGL.so.1 (0x40062000)
  1180.         libc.so.6 => /lib/libc.so.6 (0x4009f000)
  1181.         libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x4018d000)
  1182.         libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40196000)
  1183.         libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x401ac000)
  1184.         libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x401c0000)
  1185.         libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x401cd000)
  1186.         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x401d6000)
  1187.         libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x402ab000)
  1188.         libm.so.6 => /lib/libm.so.6 (0x4048d000)
  1189.         libdl.so.2 => /lib/libdl.so.2 (0x404a9000)
  1190.         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
  1191.         libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x404ac000)
  1192.  
  1193. Note the files being used for libGL and libGLcore -- if they are something
  1194. other than the NVIDIA libraries, then you will need to either remove the
  1195. libraries that are getting in the way, or adjust your ld search path.
  1196. If any of this seems foreign to you, then you may want to read the man
  1197. pages for "ldconfig" and "ldd" for pointers.
  1198.  
  1199.  
  1200. __________________________________________________________________________
  1201.  
  1202. (app-d) APPENDIX D: XF86CONFIG OPTIONS
  1203. __________________________________________________________________________
  1204.  
  1205. The following driver options are supported by the NVIDIA XFree86 driver:
  1206.  
  1207.         Option "NvAGP" "integer"
  1208.                 Configure AGP support. Integer argument can be one of:
  1209.                 0 : disable agp 
  1210.                 1 : use NVIDIA's internal AGP support, if possible 
  1211.                 2 : use AGPGART, if possible 
  1212.                 3 : use any agp support (try AGPGART, then NVIDIA's AGP) 
  1213.                 Please note that NVIDIA's internal AGP support cannot
  1214.                 work if AGPGART is either statically compiled into your
  1215.                 kernel or is built as a module, but loaded into your
  1216.                 kernel (some distributions load AGPGART into the kernel
  1217.                 at boot up).  Default: 3 (the default was 1 until after
  1218.                 1.0-1251).
  1219.  
  1220.         Option "NoLogo" "boolean"
  1221.                 Disable drawing of the NVIDIA logo splash screen at
  1222.                 X startup.  Default: the logo is drawn.
  1223.  
  1224.         Option "RenderAccel" "boolean"
  1225.                 Enable or disable hardware acceleration of the RENDER
  1226.                 extension.  THIS OPTION IS EXPERIMENTAL.  ENABLE IT AT YOUR
  1227.                 OWN RISK.  There is no correctness test suite for the
  1228.                 RENDER extension so NVIDIA can not verify that RENDER
  1229.                 acceleration works correctly.   Default: hardware 
  1230.                 acceleration of the RENDER extension is disabled.
  1231.  
  1232.         Option "NoRenderExtension" "boolean"
  1233.                 Disable the RENDER extension.  Other than recompiling
  1234.                 the X-server, XFree86 doesn't seem to have another way of
  1235.                 disabling this.  Fortunatly, we can control this from the
  1236.                 driver so we export this option.  This is useful in depth
  1237.                 8 where RENDER would normally steal most of the default
  1238.                 colormap. Default: RENDER is offered when possible.
  1239.  
  1240.         Option "UBB" "boolean"
  1241.                 Enable or disable Unified Back Buffer on any Quadro
  1242.                 based GPUs (Quadro4 NVS excluded); please see
  1243.                 Appendix M for a description of UBB.  This option has
  1244.                 no affect on non-Quadro chipsets.  Default: UBB is on
  1245.                 for Quadro chipsets.
  1246.  
  1247.         Option "WindowFlip" "boolean"
  1248.                 Enable or disable window flipping when UBB is enabled;
  1249.                 please see Appendix M for a description.  This has no
  1250.                 affect when UBB is off.  This may improve performance
  1251.                 for 3D applications.  Default: Window flipping is off
  1252.                 by default even when UBB is enabled.
  1253.  
  1254.         Option "PageFlip" "boolean"
  1255.                 Enable or disable page flipping; please see Appendix M
  1256.                 for a description.  Default: page flipping is enabled.
  1257.  
  1258.         Option "DigitalVibrance" "integer"
  1259.                 Enables Digital Vibrance Control.  The range of valid
  1260.                 values are 0 through 255.  This feature is not available
  1261.                 on products older than GeForce2.  Default: 0.
  1262.  
  1263.         Option "Dac8Bit" "boolean"
  1264.                 Most Quadro parts by default use a 10 bit color look
  1265.                 up table (LUT) by default; setting this option to TRUE forces
  1266.                 these graphics chips to use an 8 bit (LUT).  Default:
  1267.                 a 10 bit LUT is used, when available.
  1268.  
  1269.         Option "Overlay" "boolean"
  1270.                 Enables RGB workstation overlay visuals.  This is only
  1271.                 supported on Quadro4 and Quadro FX chips (Quadro4 NVS
  1272.                 excluded) in depth 24.  This option causes the server to
  1273.                 advertise the SERVER_OVERLAY_VISUALS root window property
  1274.                 and GLX will report single and double buffered, Z-buffered
  1275.                 16 bit overlay visuals.  The transparency key is pixel
  1276.                 0x0000 (hex).  There is no gamma correction support in
  1277.                 the overlay plane.  This feature requires XFree86 version
  1278.                 4.1.0 or newer.  NV17/18 based Quadros (ie. 500/550 XGL)
  1279.                 have additional restrictions, namely, overlays are not
  1280.                 supported in TwinView mode or with virtual desktops
  1281.                 larger than 2046x2047 in any dimension (eg.  it will not
  1282.                 work in 2048x1536 modes).  Quadro 7xx/9xx and Quadro FX
  1283.                 will offer overlay visuals in these modes (TwinView, or
  1284.                 virtual desktops larger than 2046x2047), but the overlay
  1285.                 will be emulated with a substantial performance penalty.
  1286.                 Default: off.
  1287.  
  1288.         Option "CIOverlay" "boolean"
  1289.                 Enables Color Index workstation overlay visuals with
  1290.                 identical restrictions to Option "Overlay" above.
  1291.                 The server will offer visuals both with and without a
  1292.                 transparency key.  These are depth 8 PseudoColor visuals.
  1293.                 Enabling Color Index overlays on X servers older than
  1294.                 XFree86 4.3 will force the RENDER extension to be disabled
  1295.                 due to bugs in the RENDER extension in older X servers.
  1296.                 Default: off.
  1297.  
  1298.         Option "TransparentIndex" "integer"
  1299.                 When color index overlays are enabled, this option allows
  1300.                 the user to choose which pixel is used for the transparent
  1301.                 pixel in visuals featuring transparent pixels.  This value
  1302.                 is clamped between 0 and 255 (Note: some applications
  1303.                 such as Alias/Wavefront's Maya require this to be zero
  1304.                 in order to work correctly).  Default: 0.
  1305.  
  1306.         Option "OverlayDefaultVisual" "boolean"
  1307.                 When overlays are used, this option sets the default
  1308.                 visual to an overlay visual thereby putting the root
  1309.                 window in the overlay.  This option is not recommended
  1310.                 for RGB overlays.  Default: off.
  1311.  
  1312.         Option "SWCursor" "boolean"
  1313.                 Enable or disable software rendering of the X cursor.
  1314.                 Default: off.
  1315.  
  1316.         Option "HWCursor" "boolean"
  1317.                 Enable or disable hardware rendering of the X cursor.
  1318.                 Default: on.
  1319.  
  1320.         Option "CursorShadow" "boolean" Enable or disable use of a
  1321.                 shadow with the hardware accelerated cursor; this is a
  1322.                 black translucent replica of your cursor shape at a
  1323.                 given offset from the real cursor.  This option is
  1324.                 only available on GeForce2 or better hardware (ie
  1325.                 everything but TNT/TNT2, GeForce 256, GeForce DDR and
  1326.                 Quadro).  Default: no cursor shadow.
  1327.  
  1328.         Option "CursorShadowAlpha" "integer"
  1329.                 The alpha value to use for the cursor shadow; only
  1330.                 applicable if CursorShadow is enabled.  This value must
  1331.                 be in the range [0, 255] -- 0 is completely transparent;
  1332.                 255 is completely opaque.  Default: 64.
  1333.  
  1334.         Option "CursorShadowXOffset" "integer"
  1335.                 The offset, in pixels, that the shadow image will be
  1336.                 shifted to the right from the real cursor image; only
  1337.                 applicable if CursorShadow is enabled.  This value must
  1338.                 be in the range [0, 32].  Default: 4.
  1339.  
  1340.         Option "CursorShadowYOffset" "integer"
  1341.                 The offset, in pixels, that the shadow image will be
  1342.                 shifted down from the real cursor image; only applicable
  1343.                 if CursorShadow is enabled.  This value must be in the
  1344.                 range [0, 32].  Default: 2.
  1345.  
  1346.         Option "ConnectedMonitor" "string"
  1347.                 Allows you to override what the NVIDIA kernel module
  1348.                 detects is connected to your video card.  This may
  1349.                 be useful, for example, if you use a KVM (keyboard,
  1350.                 video, mouse) switch and you are switched away when
  1351.                 X is started.  In such a situation, the NVIDIA kernel
  1352.                 module can't detect what display devices are connected,
  1353.                 and the NVIDIA X driver assumes you have a single CRT.
  1354.  
  1355.                 Valid values for this option are "CRT" (cathode ray
  1356.                 tube), "DFP" (digital flat panel), or "TV" (television);
  1357.                 if using TwinView, this option may be a comma-separated
  1358.                 list of display devices; e.g.: "CRT, CRT" or "CRT, DFP".
  1359.  
  1360.                 NOTE: anything attached to a 15 pin VGA connector is
  1361.                 regarded by the driver as a CRT.  "DFP" should only be
  1362.                 used to refer to flatpanels connected via a DVI port.
  1363.  
  1364.                 Default: string is NULL.
  1365.  
  1366.         Option "UseEdidFreqs" "boolean"
  1367.                 This option causes the X server to use the HorizSync
  1368.                 and VertRefresh ranges given in a display device's EDID,
  1369.                 if any.  EDID provided range information will override
  1370.                 the HorizSync and VertRefresh ranges specified in the
  1371.                 Monitor section.  If a display device does not provide an
  1372.                 EDID, or the EDID doesn't specify an hsync or vrefresh
  1373.                 range, then the X server will default to the HorizSync
  1374.                 and VertRefresh ranges specified in the Monitor section.
  1375.  
  1376.         Option "IgnoreEDID" "boolean"
  1377.                 Disable probing of EDID (Extended Display Identification
  1378.                 Data) from your monitor.  Requested modes are compared
  1379.                 against values gotten from your monitor EDIDs (if any)
  1380.                 during mode validation.  Some monitors are known to lie
  1381.                 about their own capabilities.  Ignoring the values that
  1382.                 the monitor gives may help get a certain mode validated.
  1383.                 On the other hand, this may be dangerous if you don't
  1384.                 know what you are doing.  Default: Use EDIDs.
  1385.  
  1386.         Option "NoDDC" "boolean"
  1387.                 Synonym for "IgnoreEDID"
  1388.  
  1389.         Option "FlatPanelProperties" "string"
  1390.                 Requests particular properties of any connected flat
  1391.                 panels as a comma-separated list of property=value pairs.
  1392.                 Currently, the only two available properties are 'Scaling'
  1393.                 and 'Dithering'.   The possible values for 'Scaling' are:
  1394.                 'default' (the driver will use whatever scaling state
  1395.                 is current), 'native' (the driver will use the flat
  1396.                 panel's scaler, if it has one), 'scaled' (the driver
  1397.                 will use the NVIDIA scaler, if possible), 'centered'
  1398.                 (the driver will center the image, if possible),
  1399.                 and 'aspect-scaled' (the driver will scale with the
  1400.                 NVIDIA scaler, but keep the aspect ratio correct).
  1401.                 The possible values for 'Dithering' are: 'default'
  1402.                 (the driver will decide when to dither), 'enabled' (the
  1403.                 driver will always dither when possible), and 'disabled'
  1404.                 (the driver will never dither).  If any property is not
  1405.                 specified, it's value shall be 'default'.  An example
  1406.                 properties string might look like:
  1407.  
  1408.                 "Scaling = centered, Dithering = enabled"
  1409.  
  1410.         Option "UseInt10Module" "boolean"
  1411.                 Enable use of the XFree86 Int10 module to soft-boot all
  1412.                 secondary cards, rather than POSTing the cards through
  1413.                 the NVIDIA kernel module.  Default: off (POSTing is
  1414.                 done through the NVIDIA kernel module).
  1415.  
  1416.         Option "TwinView" "boolean"
  1417.                 Enable or disable TwinView.  Please see APPENDIX I for
  1418.                 details. Default: TwinView is disabled.
  1419.  
  1420.         Option "TwinViewOrientation" "string"
  1421.                 Controls the relationship between the two display devices
  1422.                 when using TwinView.  Takes one of the following values:
  1423.                 "RightOf" "LeftOf" "Above" "Below" "Clone".  Please see
  1424.                 APPENDIX I for details. Default: string is NULL.
  1425.  
  1426.         Option "SecondMonitorHorizSync" "range(s)"
  1427.                 This option is like the HorizSync entry in the Monitor
  1428.                 section, but is for the second monitor when using
  1429.                 TwinView.  Please see APPENDIX I for details. Default:
  1430.                 none.
  1431.  
  1432.         Option "SecondMonitorVertRefresh" "range(s)"
  1433.                 This option is like the VertRefresh entry in the Monitor
  1434.                 section, but is for the second monitor when using
  1435.                 TwinView.  Please see APPENDIX I for details. Default:
  1436.                 none.
  1437.  
  1438.         Option "MetaModes" "string"
  1439.                 This option describes the combination of modes to use
  1440.                 on each monitor when using TwinView. Please see APPENDIX
  1441.                 I for details. Default: string is NULL.
  1442.  
  1443.         Option "NoTwinViewXineramaInfo" "boolean"
  1444.                 When in TwinView, the NVIDIA X driver normally provides a
  1445.                 Xinerama extension that allows X clients (such as window
  1446.                 managers) to call XineramaQueryScreens() to discover
  1447.                 the current TwinView configuration.  This confuses some
  1448.                 window mangers, so this option is provided to disable
  1449.                 this behavior.  Default: TwinView Xinerama information
  1450.                 is provided.
  1451.  
  1452.         Option "UseClipIDs" "boolean"
  1453.                 This allows usage of hardware clip id buffers to improve
  1454.                 rendering performance to drawables that are clipped in a
  1455.                 complex way.  This is only supported on Quadro4 and Quadro FX
  1456.                 chips when UBB is enabled.  Enabling this sets aside a small 
  1457.                 amount of video ram for the clip id surfaces, typically less
  1458.                 than two megabytes.  Default: Clip id surfaces are not used.
  1459.  
  1460.         Option "TVStandard" "string"
  1461.                 Please see (app-j)  APPENDIX J: CONFIGURING TV-OUT.
  1462.  
  1463.         Option "TVOutFormat" "string"
  1464.                 Please see (app-j)  APPENDIX J: CONFIGURING TV-OUT.
  1465.  
  1466.         Option "TVOverScan" "Decimal value in the range 0.0 to 1.0"
  1467.                 Valid values are in the range 0.0 through 1.0; please see
  1468.                 (app-j)  APPENDIX J: CONFIGURING TV-OUT.
  1469.  
  1470.         Option "Stereo" "integer"
  1471.                 Enable offering of quad-buffered stereo visuals on Quadro.
  1472.                 Integer indicates the type of stereo glasses being used:
  1473.  
  1474.                 1 - DDC glasses.  The sync signal is sent to the glasses
  1475.                     via the DDC signal to the monitor.  These usually
  1476.                     involve a passthrough cable between the monitor and
  1477.                     video card.
  1478.  
  1479.                 2 - "Blueline" glasses.  These usually involve
  1480.                     a passthrough cable between the monitor and video
  1481.                     card.  The glasses know which eye to display based
  1482.                     on the length of a blue line visible at the bottom
  1483.                     of the screen.  When in this mode, the root window
  1484.                     dimensions are one pixel shorter in the Y dimension
  1485.                     than requested.  This mode does not work with virtual
  1486.                     root window sizes larger than the visible root window
  1487.                     size (desktop panning).
  1488.  
  1489.                 3 - Onboard stereo support.  This is usually only found
  1490.                     on professional cards.  The glasses connect via a
  1491.                     DIN connector on the back of the video card.
  1492.  
  1493.                 4 - TwinView clone mode stereo (aka "passive" stereo).
  1494.                     On video cards that support TwinView, the left eye
  1495.                     is displayed on the first display, and the right
  1496.                     eye is displayed on the second display.  This is
  1497.                     normally used in conjuction with special projectors
  1498.                     to produce 2 polarized images which are then viewed
  1499.                     with polarized glasses.  To use this stereo mode,
  1500.                     you must also configure TwinView in clone mode with
  1501.                     the same resolution, panning offset, and panning
  1502.                     domains on each display.
  1503.  
  1504.                 Stereo is only available on Quadro cards.  Stereo
  1505.                 options 1, 2, and 3 (aka "active" stereo) may be used
  1506.                 with TwinView if all modes within each metamode have
  1507.                 identical timing values.  Please see (app-l)  APPENDIX
  1508.                 L: PROGRAMMING MODES for suggestions on making sure the
  1509.                 modes within your metamodes are identical.  The identical
  1510.                 modeline requirement is not necessary for Stereo option 4
  1511.                 ("passive" stereo).  Currently, stereo operation may
  1512.                 be "quirky" on the original Quadro (NV10) chip and
  1513.                 left-right flipping may be erratic.  We are trying
  1514.                 to resolve this issue for a future release.  Default:
  1515.                 Stereo is not enabled.
  1516.  
  1517.         Option "NoBandWidthTest" "boolean"
  1518.                 As part of mode validation, the X driver tests if a
  1519.                 given mode fits within the hardware's memory bandwidth
  1520.                 constraints.  This option disables this test.  Default:
  1521.                 the memory bandwidth test is performed.
  1522.  
  1523.         Option "IgnoreDisplayDevices" "string"
  1524.                 This option tells the NVIDIA kernel module to completely
  1525.                 ignore the indicated classes of display devices when
  1526.                 checking what display devices are connected.  You may
  1527.                 specify a comma-separated list containing any of "CRT",
  1528.                 "DFP", and "TV".
  1529.  
  1530.                 For example:
  1531.  
  1532.                     Option "IgnoreDisplayDevices" "DFP, TV"
  1533.  
  1534.                 will cause the NVIDIA driver to not attempt to detect
  1535.                 if any flatpanels or TVs are connected.
  1536.  
  1537.                 This option is not normally necessary; however, some video
  1538.                 BIOSes contain incorrect information about what display
  1539.                 devices may be connected, or what i2c port should be
  1540.                 used for detection.  These errors can cause long delays
  1541.                 in starting X.  If you are experiencing such delays, you
  1542.                 may be able to avoid this by telling the NVIDIA driver to
  1543.                 ignore display devices which you know are not connected.
  1544.  
  1545.                 NOTE: anything attached to a 15 pin VGA connector is
  1546.                 regarded by the driver as a CRT.  "DFP" should only be
  1547.                 used to refer to flatpanels connected via a DVI port.
  1548.  
  1549.         Option "MultisampleCompatibility" "boolean"
  1550.                 Enable or disable the use of separate front and back
  1551.                 multisample buffers.  This will consume more memory
  1552.                 but is necessary for correct output when rendering to
  1553.                 both the front and back buffers of a multisample or
  1554.                 FSAA drawable.  This option is necessary for correct
  1555.                 operation of SoftImage XSI.  Default: a singlemultisample
  1556.                 buffer is shared between the front and back buffers.
  1557.  
  1558.  
  1559. __________________________________________________________________________
  1560.  
  1561. (app-e) APPENDIX E: OPENGL ENVIRONMENT VARIABLE SETTINGS
  1562. __________________________________________________________________________
  1563.  
  1564. FULL SCENE ANTI-ALIASING
  1565.  
  1566. Anti-aliasing is a technique used to smooth the edges of objects in a
  1567. scene to reduce the jagged "stairstep" effect that sometimes appears.
  1568. Full scene anti-aliasing is supported on GeForce or newer hardware.
  1569. By setting the appropriate environment variable, you can enable full
  1570. scene anti-aliasing in any OpenGL application on these GPUs.
  1571.  
  1572. Several anti-aliasing methods are available and you can select between
  1573. them by setting the __GL_FSAA_MODE environment variable appropriately.
  1574. Note that increasing the number of samples taken during FSAA rendering
  1575. may decrease performance.
  1576.  
  1577. The following tables describe the possible values for __GL_FSAA_MODE
  1578. and their effect on various NVIDIA GPUs.
  1579.  
  1580. __GL_FSAA_MODE  GeForce, GeForce2, Quadro, and Quadro2 Pro
  1581. -----------------------------------------------------------------------
  1582.   0             FSAA disabled
  1583.   1             FSAA disabled
  1584.   2             FSAA disabled
  1585.   3             1.5 x 1.5 Supersampling
  1586.   4             2 x 2 Supersampling
  1587.   5             FSAA disabled
  1588.  
  1589.  
  1590. __GL_FSAA_MODE  GeForce4 MX, GeForce4 4xx Go, Quadro4 380,550,580 XGL,
  1591.                 and Quadro4 NVS
  1592. -----------------------------------------------------------------------
  1593.   0             FSAA disabled
  1594.   1             2x Bilinear Multisampling
  1595.   2             2x Quincunx Multisampling
  1596.   3             FSAA disabled
  1597.   4             2 x 2 Supersampling
  1598.   5             FSAA disabled
  1599.  
  1600.  
  1601. __GL_FSAA_MODE  GeForce3, Quadro DCC, GeForce4 Ti, GeForce4 4200 Go,
  1602.                 and Quadro4 700,750,780,900,980 XGL
  1603. -----------------------------------------------------------------------
  1604.   0             FSAA disabled
  1605.   1             2x Bilinear Multisampling
  1606.   2             2x Quincunx Multisampling
  1607.   3             FSAA disabled
  1608.   4             4x Bilinear Multisampling
  1609.   5             4x Gaussian Multisampling
  1610.  
  1611. __GL_FSAA_MODE  GeForce FX, Quadro FX
  1612. -----------------------------------------------------------------------
  1613.   0             FSAA disabled
  1614.   1             2x Bilinear Multisampling
  1615.   2             2x Quincunx Multisampling
  1616.   3             FSAA disabled
  1617.   4             4x Bilinear Multisampling
  1618.   5             4x Gaussian Multisampling
  1619.  
  1620. NOTE: 2x Bilinear Multisampling by 4x Supersampling and 4x Bilinear
  1621. Multisampling by 4x Supersampling are not available when using UBB.
  1622.  
  1623.  
  1624.  
  1625. ANISOTROPIC TEXTURE FILTERING
  1626.  
  1627. Automatic anisotropic texture filtering can be enabled by setting 
  1628. the environment variable __GL_DEFAULT_LOG_ANISO,  The useful values 
  1629. are:
  1630.  
  1631. __GL_DEFAULT_LOG_ANISO  GeForce/GeForce2/GeForce4 MX Description
  1632. -----------------------------------------------------------------------
  1633.   0     No anisotropic filtering
  1634.   1     Enable automatic anisotropic filtering
  1635.  
  1636. __GL_DEFAULT_LOG_ANISO  GeForce3/GeForce4 Ti/GeForce FX Description
  1637. -----------------------------------------------------------------------
  1638.   0     No anisotropic filtering
  1639.   1     Low anisotropic filtering
  1640.   2     Medium anisotropic filtering
  1641.   3     Maximum anisotropic filtering
  1642.  
  1643.  
  1644. VBLANK SYNCING
  1645.  
  1646. Setting the environment variable __GL_SYNC_TO_VBLANK to a non-zero value
  1647. will force glXSwapBuffers to sync to your monitor's vertical refresh rate
  1648. (perform a swap only during the vertical blanking period) on GeForce or
  1649. newer hardware (ie: everything but TNT/TNT2 products).
  1650.  
  1651. When using __GL_SYNC_TO_VBLANK with TwinView, OpenGL can only sync to one
  1652. of the display devices; this may cause tearing corruption on the display
  1653. device to which OpenGL is not syncing.  You can use the environment
  1654. variable __GL_SYNC_DISPLAY_DEVICE to specify to which display device
  1655. OpenGL should sync.  You should set this environment variable to the
  1656. name of a display device; for example "CRT-1".  Please look for the line
  1657. "Connected display device(s):" in your XFree86.0.log file for a list of
  1658. the display devices present and their names.
  1659.  
  1660.  
  1661. DISABLING CPU SPECIFIC FEATURES
  1662.  
  1663. Setting the environment variable __GL_FORCE_GENERIC_CPU to a non-zero
  1664. value will inhibit the use of CPU specific features such as MMX, SSE,
  1665. or 3DNOW!.  Use of this option may result in performance loss.  This
  1666. option may be useful in conjunction with software such as the Valgrind
  1667. memory debugger.
  1668.  
  1669. __________________________________________________________________________
  1670.  
  1671. (app-f) APPENDIX F: CONFIGURING AGP
  1672. __________________________________________________________________________
  1673.  
  1674. There are several choices for configuring the NVIDIA kernel module's
  1675. use of AGP: you can choose to either use NVIDIA's AGP module (NVAGP),
  1676. or the AGP module that comes with the linux kernel (AGPGART).  This is
  1677. controlled through the "NvAGP" option in your XF86Config file:
  1678.  
  1679.          Option "NvAgp" "0"  ... disables AGP support
  1680.          Option "NvAgp" "1"  ... use NVAGP, if possible
  1681.          Option "NvAgp" "2"  ... use AGPGART, if possible
  1682.          Option "NvAGP" "3"  ... try AGPGART; if that fails, try NVAGP
  1683.  
  1684. The default is 3 (the default was 1 until after 1.0-1251).
  1685.  
  1686. You should use the AGP module that works best with your AGP chip set.
  1687. If you are experiencing problems with stability, you may want to start
  1688. by disabling AGP and observing if that solves the problems.  Then you
  1689. can experiment with either of the other AGP modules.
  1690.  
  1691. You can query the current AGP status at any time via the /proc filesystem
  1692. interface (see APPENDIX O: PROC INTERFACE).
  1693.  
  1694. To use the Linux AGPGART module, it will need to be compiled with
  1695. your kernel, either statically linked in, or built as a module.
  1696. NVIDIA AGP support cannot be used if AGPGART is loaded in the kernel.
  1697. It's recommended that you compile AGPGART as a module and make sure that
  1698. it is not loaded when trying to use NVIDIA AGP.
  1699.  
  1700. Please also note that changing AGP drivers generally requires a reboot
  1701. before the changes actually take effect.
  1702.  
  1703. The following AGP chipsets are supported by NVIDIA's AGP; for all other
  1704. chipsets it's recommended that you use the AGPGART module.
  1705.  
  1706.   o Intel 440LX
  1707.   o Intel 440BX
  1708.   o Intel 440GX
  1709.   o Intel 815 ("Solano")   
  1710.   o Intel 820 ("Camino")   
  1711.   o Intel 830
  1712.   o Intel 840 ("Carmel")   
  1713.   o Intel 845 ("Brookdale")
  1714.   o Intel 845G
  1715.   o Intel 850 ("Tehama")
  1716.   o Intel 860 ("Colusa")
  1717.   o AMD 751 ("Irongate")
  1718.   o AMD 761 ("IGD4")   
  1719.   o AMD 762 ("IGD4 MP")
  1720.   o VIA 8371   
  1721.   o VIA 82C694X
  1722.   o VIA KT133
  1723.   o VIA KT266
  1724.   o RCC 6585HE
  1725.   o Micron SAMDDR ("Samurai") 
  1726.   o Micron SCIDDR ("Scimitar")
  1727.   o nForce AGP
  1728.   o nForce 2 AGP
  1729.   o ALi 1621
  1730.   o ALi 1631
  1731.   o ALi 1647
  1732.   o ALi 1651
  1733.   o ALi 1671
  1734.   o SiS 630
  1735.   o SiS 633
  1736.   o SiS 635
  1737.   o SiS 645
  1738.   o SiS 730
  1739.   o SiS 733
  1740.   o SiS 735
  1741.   o SiS 745
  1742.  
  1743.  
  1744. If you are experiencing AGP stability problems, you should be aware of
  1745. the following:
  1746.  
  1747.   o Support for the processor's Page Size Extension on Athlon Processors
  1748.  
  1749.     Some linux kernels have a conflicting cache attribute bug that is 
  1750.     exposed by advanced speculative caching in newer AMD Athlon family 
  1751.     processors (AMD Athlon XP, AMD Athlong 4, AMD Athlon MP, and Models 6 
  1752.     and above AMD Duron). This kernel bug usually shows up under heavy use
  1753.     of accelerated 3D graphics with an AGP graphics card.
  1754.  
  1755.     Linux distributions based on kernel 2.4.19 and later *should* 
  1756.     incorporate the bug fix. But, older kernels require help from the user
  1757.     in ensuring that a small portion of advanced speculative caching is 
  1758.     disabled (normally done through a kernel patch) and a boot option is
  1759.     specified in order to apply the whole fix.
  1760.  
  1761.     Nvidia's driver automatically disables the small portion of advanced
  1762.     speculative caching for the affected AMD processors without the need
  1763.     to patch the kernel; it can be used even on kernels which do already
  1764.     incorporate the kernel bug fix. Additionally, for older kernels the
  1765.     user performs the boot option portion of the fix by explicitly disabling
  1766.     4MB pages. This can be done from the boot command line by specifying:
  1767.  
  1768.         mem=nopentium
  1769.  
  1770.     Or by adding the following line to etc/lilo.conf:
  1771.  
  1772.         append = "mem=nopentium"
  1773.  
  1774.   o AGP drive strength BIOS setting (Via based mainboards)
  1775.  
  1776.     Many Via based mainboards allow adjusting the AGP drive strength in
  1777.     the system BIOS. The setting of this option largely affects system
  1778.     stability, the range between 0xEA and 0xEE seems to work best for
  1779.     NVIDIA hardware. Setting either nibble to 0xF generally restults in
  1780.     severe stability problems.
  1781.  
  1782.     If you decide to experiment with this, you need to be aware of
  1783.     the fact that you are doing so at your own risk and that you may
  1784.     render your system unbootable with improper settings until you
  1785.     reset the setting to a working value (w/ a PCI graphics card or
  1786.     by resetting the BIOS to its default values).
  1787.  
  1788.   o System BIOS version
  1789.  
  1790.     Make sure to have the latest system BIOS provided by the board
  1791.     manufacturer.
  1792.  
  1793.   o AGP Rate
  1794.  
  1795.     You may want to decrease the AGP rate setting if you are seeing
  1796.     lockups with the value you are currently using. You can do so by
  1797.     extracting the .run file:
  1798.  
  1799.         sh NVIDIA-Linux-x86-1.0-4496-pkg1.run --extract-only
  1800.         cd NVIDIA-Linux-x86-1.0-4496-pkg1/usr/src/nv/
  1801.  
  1802.     Then edit os-registry.c, and make the following changes:
  1803.  
  1804.         - static int NVreg_ReqAGPRate = 7;
  1805.         + static int NVreg_ReqAGPRate = 4;   /* force AGP Rate to 4x */
  1806.     or
  1807.         + static int NVreg_ReqAGPRate = 2;   /* force AGP Rate to 2x */
  1808.     or
  1809.         + static int NVreg_ReqAGPRate = 1;   /* force AGP Rate to 1x */
  1810.  
  1811.     and then remove the two leading underscores:
  1812.  
  1813.         - { "__ReqAGPRate", &NVreg_ReqAGPRate },
  1814.         + { "ReqAGPRate", &NVreg_ReqAGPRate },
  1815.  
  1816.     Then recompile and load the new kernel module.
  1817.  
  1818.  
  1819. On Athlon motherboards with the VIA KX133 or 694X chip set, such as the
  1820. ASUS K7V motherboard, NVIDIA drivers default to AGP 2x mode to work around
  1821. insufficient drive strength on one of the signals.  You can force AGP 4x
  1822. by setting NVreg_EnableVia4x to 1.  Note that this may cause the system
  1823. to become unstable.
  1824.  
  1825. On ALi1541 and ALi1647 chipsets, NVIDIA drivers disable AGP to work
  1826. around timing issues and signal integrity issues. You can force AGP
  1827. to be enabled on these chipsets by setting NVreg_EnableALiAGP to 1.
  1828. Note that this may cause the system to become unstable.
  1829.  
  1830.  
  1831. __________________________________________________________________________
  1832.  
  1833. (app-g) APPENDIX G: ALI SPECIFIC ISSUES
  1834. __________________________________________________________________________
  1835.  
  1836. The following tips may help stabilize problematic ALI systems:
  1837.  
  1838.   o Disable TURBO AGP MODE in the BIOS.
  1839.  
  1840.   o When using a P5A upgrade to BIOS Revision 1002 BETA 2.
  1841.  
  1842.   o When using 1007, 1007A or 1009 adjust the IO Recovery Time to
  1843.     4 cycles.
  1844.  
  1845.   o AGP is disabled by default on some ALi chipsets (ALi1541, ALi1647)
  1846.     to work around severe system stability problems with these chipsets.
  1847.     See the comments for NVreg_EnableALiAGP in os-registry.c to force
  1848.     AGP on anyway.
  1849.  
  1850.  
  1851. __________________________________________________________________________
  1852.  
  1853. (app-h) APPENDIX H: TNT SPECIFIC ISSUES
  1854. __________________________________________________________________________
  1855.  
  1856. Most issues pertaining to SGRAM/SDRAM TNT cards should be resolved.
  1857. There is the rare chance, however, that your video card has the wrong
  1858. BIOS installed, and that this driver will continue to fail for you.
  1859.  
  1860. If this driver fails for you, do the following:
  1861.  
  1862.   o watch your monitor as the system boots. The very first, brief screen
  1863.     will identify the type of video memory your card has. This will be
  1864.     either SGRAM or SDRAM.
  1865.  
  1866.   o edit the file "os-registry.c" from the kernel module sources.  Look
  1867.     for the variable "NVreg_VideoMemoryTypeOverride".  Set the value of
  1868.     the variable to the type of memory you have (numerically, see the
  1869.     line just above it).
  1870.  
  1871.   o since we don't normally use this variable, change the "#if 0" that is
  1872.     about 10 lines above the variable to "#if 1".
  1873.  
  1874.   o rebuild and reinstall the new driver ("make")
  1875.  
  1876.  
  1877. __________________________________________________________________________
  1878.  
  1879. (app-i) APPENDIX I: CONFIGURING TWINVIEW
  1880. __________________________________________________________________________
  1881.  
  1882. The TwinView feature is only supported on NVIDIA GPUs that support
  1883. dual-display functionality, such as the GeForce2 MX, GeForce2 Go,
  1884. Quadro2 MXR, Quadro2 Go, and any of the GeForce4 or Quadro4 GPUs.
  1885. Please consult with your video card vendor to confirm that TwinView is
  1886. supported on your card.
  1887.  
  1888. TwinView is a mode of operation where two display devices (digital
  1889. flat panels, CRTs, and TVs) can display the contents of a single X screen
  1890. in any arbitrary configuration.  This method of multiple monitor use
  1891. has several distinct advantages over other techniques (such as Xinerama):
  1892.  
  1893.   o A single X screen is used.  The NVIDIA driver conceals all
  1894.     information about multiple display devices from the X server; as
  1895.     far as X is concerned, there is only one screen.
  1896.  
  1897.   o Both display devices share one frame buffer.  Thus, all the
  1898.     the functionality present on a single display (e.g. accelerated
  1899.     OpenGL) is available on TwinView.
  1900.  
  1901.   o No additional overhead is needed to emulate having a single
  1902.     desktop.
  1903.  
  1904. If you are interested in using each display device as a separate
  1905. X screen, please see (app-r)  APPENDIX R: CONFIGURING MULTIPLE X
  1906. SCREENS ON ONE CARD.
  1907.  
  1908.  
  1909. XF86CONFIG TWINVIEW OPTIONS
  1910.  
  1911. To enable TwinView, you must specify the following options in the Device
  1912. section of your XF86Config file:
  1913.  
  1914. Option "TwinView"
  1915. Option "SecondMonitorHorizSync"     "<hsync range(s)>"
  1916. Option "SecondMonitorVertRefresh"   "<vrefresh range(s)>"
  1917. Option "MetaModes"                  "<list of metamodes>"
  1918.  
  1919. You may also use any of the following options, though they are not
  1920. required:
  1921.  
  1922. Option "TwinViewOrientation"        "<relationship of head 1 to head 0>"
  1923. Option "ConnectedMonitor"           "<list of connected display devices>"
  1924.  
  1925. Please see the detailed descriptions of each option below:
  1926.  
  1927.   o TwinView
  1928.         This option is required to enable TwinView; without it, all
  1929.         other TwinView related options are ignored.
  1930.  
  1931.   o SecondMonitorHorizSync, SecondMonitorVertRefresh
  1932.         You specify the constraints of the second monitor through these
  1933.         options.  The values given should follow the same convention as
  1934.         the "HorizSync" and "VertRefresh" entries in the Monitor section.
  1935.         As the XF86Config man page explains it: the ranges may be a
  1936.         comma separated list of distinct values and/or ranges of values,
  1937.         where a range is given by two distinct values separated by
  1938.         a dash.  The HorizSync is given in kHz, and the VertRefresh
  1939.         is given in Hz.  You may, if you trust your display devices'
  1940.         EDIDs, use the "UseEdidFreqs" option instead of these options
  1941.         (see APPENDIX D for a description of the "UseEdidFreqs" option).
  1942.  
  1943.   o MetaModes
  1944.         A single MetaMode describes what mode should be used on each
  1945.         display device at a given time.  Multiple MetaModes list the
  1946.         combinations of modes and the sequence in which they should be
  1947.         used.  When the NVIDIA driver tells X what modes are available,
  1948.         it is really the minimal bounding box of the MetaMode that is
  1949.         communicated to X, while the "per display device" mode is kept
  1950.         internal to the NVIDIA driver.  In MetaMode syntax, modes within
  1951.         a MetaMode are comma separated, and multiple MetaModes are
  1952.         separated by semicolons.  For example:
  1953.  
  1954.           "<mode name 0>, <mode name 1>; <mode name 2>, <mode name 3>"
  1955.  
  1956.         Where <mode name 0> is the name of the mode to be used on display
  1957.         device 0 concurrently with <mode name 1> used on display device 1.
  1958.         A mode switch will then cause <mode name 2> to be used on display
  1959.         device 0 and <mode name 3> to be used on display device 1.  Here
  1960.         is a real MetaMode entry from the XF86Config sample config file:
  1961.  
  1962.           Option "MetaModes" "1280x1024,1280x1024; 1024x768,1024x768"
  1963.  
  1964.         If you want a display device to not be active for a certain
  1965.         MetaMode, you can use the mode name "NULL", or simply omit the
  1966.         mode name entirely:
  1967.  
  1968.           "1600x1200, NULL; NULL, 1024x768"
  1969.  
  1970.         or
  1971.  
  1972.           "1600x1200; , 1024x768"
  1973.  
  1974.         Optionally, mode names can be followed by offset information
  1975.         to control the positioning of the display devices within the
  1976.         virtual screen space; e.g.:
  1977.  
  1978.           "1600x1200 +0+0, 1024x768 +1600+0; ..."
  1979.  
  1980.         Offset descriptions follow the conventions used in the X
  1981.         "-geometry" command line option; i.e. both positive and negative
  1982.         offsets are valid, though negative offsets are only allowed when
  1983.         a virtual screen size is explicitly given in the XF86Config file.
  1984.  
  1985.         When no offsets are given for a MetaMode, the offsets will be
  1986.         computed following the value of the TwinViewOrientation option
  1987.         (see below).  Note that if offsets are given for any one of the
  1988.         modes in a single MetaMode, then offsets will be expected for
  1989.         all modes within that single MetaMode; in such a case offsets
  1990.         will be assumed to be +0+0 when not given.
  1991.  
  1992.         When not explicitly given, the virtual screen size will be
  1993.         computed as the the bounding box of all MetaMode bounding boxes.
  1994.         MetaModes with a bounding box larger than an explicitly given
  1995.         virtual screen size will be discarded.
  1996.  
  1997.         A MetaMode string can be further modified with a "Panning Domain"
  1998.         specification; eg:
  1999.  
  2000.           "1024x768 @1600x1200, 800x600 @1600x1200"
  2001.  
  2002.         A panning domain is the area in which a display device's viewport
  2003.         will be panned to follow the mouse.  Panning actually happens on
  2004.         two levels with TwinView: first, an individual display device's
  2005.         viewport will be panned within its panning domain, as long as
  2006.         the viewport is contained by the bounding box of the MetaMode.
  2007.         Once the mouse leaves the bounding box of the MetaMode, the entire
  2008.         MetaMode (ie all display devices) will be panned to follow the
  2009.         mouse within the virtual screen.  Note that individual display
  2010.         devices' panning domains default to being clamped to the position
  2011.         of the display devices' viewports, thus the default behavior is
  2012.         just that viewports remain "locked" together and only perform
  2013.         the second type of panning.
  2014.  
  2015.         The most beneficial use of panning domains is probably to
  2016.         eliminate dead areas -- regions of the virtual screen that are
  2017.         inaccessible due to display devices with different resolutions.
  2018.         For example:
  2019.  
  2020.           "1600x1200, 1024x768"
  2021.  
  2022.         produces an inaccessible region below the 1024x768
  2023.         display. Specifying a panning domain for the second display
  2024.         device:
  2025.  
  2026.           "1600x1200, 1024x768 @1024x1200"
  2027.  
  2028.         provides access to that dead area by allowing you to pan the
  2029.         1024x768 viewport up and down in the 1024x1200 panning domain.
  2030.  
  2031.         Offsets can be used in conjunction with panning domains to
  2032.         position the panning domains in the virtual screen space (note
  2033.         that the offset describes the panning domain, and only affects
  2034.         the viewport in that the viewport must be contained within the
  2035.         panning domain).  For example, the following describes two modes,
  2036.         each with a panning domain width of 1900 pixels, and the second
  2037.         display is positioned below the first:
  2038.  
  2039.           "1600x1200 @1900x1200 +0+0, 1024x768 @1900x768 +0+1200"
  2040.  
  2041.         If no MetaMode string is specified, then the X driver uses the
  2042.         modes listed in the relevant "Display" subsection, attempting
  2043.         to place matching modes on each display device.
  2044.  
  2045.  
  2046.   o TwinViewOrientation
  2047.         This option controls the positioning of the second display
  2048.         device relative to the first within the virtual X screen, when
  2049.         offsets are not explicitly given in the MetaModes.  The possible
  2050.         values are:
  2051.  
  2052.           "RightOf"  (the default)
  2053.           "LeftOf"
  2054.           "Above"
  2055.           "Below"
  2056.           "Clone"
  2057.  
  2058.         When "Clone" is specified, both display devices will be assigned
  2059.         an offset of 0,0.
  2060.  
  2061.   o ConnectedMonitor
  2062.         This option allows you to override what the NVIDIA kernel
  2063.         module detects is connected to your video card.  This may be
  2064.         useful, for example, if any of your display devices do not
  2065.         support detection using Display Data Channel (DDC) protocols.
  2066.         Valid values for this option are "CRT" (cathode ray tube), "DFP"
  2067.         (digital flat panel), or "TV" (television); when using TwinView,
  2068.         this option may be a comma-separated list of display devices;
  2069.         e.g.: "CRT, CRT" or "CRT, DFP".
  2070.  
  2071. Just as in all XF86Config entries, spaces are ignored and all entries
  2072. are case insensitive.
  2073.  
  2074.  
  2075. FREQUENTLY ASKED TWINVIEW QUESTIONS:
  2076.  
  2077.  
  2078. Q: Nothing gets displayed on my second monitor; what's wrong?
  2079.  
  2080. A: Monitors that do not support monitor detection using Display Data
  2081.    Channel (DDC) protocols (this includes most older monitors) aren't
  2082.    detectable by your NVIDIA card.  You need to explicitly tell the NVIDIA
  2083.    XFree86 driver what you have connected using the "ConnectedMonitor"
  2084.    option; e.g.:
  2085.  
  2086.         Option "ConnectedMonitor" "CRT, CRT"
  2087.  
  2088.  
  2089. Q: Will window managers be able to appropriately place windows
  2090.    (e.g. avoiding placing windows across both display devices, or in
  2091.    inaccessible regions of the virtual desktop)?
  2092.  
  2093. A: Yes.  The NVIDIA X driver provides a Xinerama extension that allows
  2094.    X clients (such as window managers) to call XineramaQueryScreens() to
  2095.    discover the current TwinView configuration.  Note that the Xinerama
  2096.    protocol provides no way to inform clients of when a configuration
  2097.    change occurs.  So, if you modeswitch to a different MetaMode, your
  2098.    window manager will still think you have the previous configuration.
  2099.    Using the Xinerama extension, in conjunction with the XF86VidMode
  2100.    extension to get modeswitch events, window managers should be
  2101.    able to determine the TwinView configuration at any given time.
  2102.  
  2103.    Unfortunately, the data provided by XineramaQueryScreens() appears to
  2104.    confuse some window managers; to workaround such broken window mangers,
  2105.    you can disable communication of the TwinView screen layout with the
  2106.    "NoTwinViewXineramaInfo" XF86Config Option (please see Appendix D
  2107.    for details).
  2108.  
  2109.    Be aware that the NVIDIA driver cannot provide the Xinerama
  2110.    extension if XFree86's own Xinerama extension is being used.
  2111.    Explicitly specifying Xinerama in the XF86Config file or on the XFree86
  2112.    commandline will prohibit NVIDIA's Xinerama extension from installing,
  2113.    so make sure that XFree86's /var/log/XFree86.0.log is not reporting:
  2114.  
  2115.      (++) Xinerama: enabled
  2116.  
  2117.    if you wish the NVIDIA driver to be able to provide the Xinerama 
  2118.    extension while in TwinView.
  2119.  
  2120.    Another solution is to use panning domains to eliminate inaccessible
  2121.    regions of the virtual screen (see the MetaMode description above).
  2122.  
  2123.    A third solution is to use two separate X screens, rather than use
  2124.    TwinView.  Please see (app-r) APPENDIX R: CONFIGURING MULTIPLE X
  2125.    SCREENS ON ONE CARD.
  2126.  
  2127.  
  2128. Q: Why can I not get a resolution of 1600x1200 on the second display
  2129.    device when using a GeForce2 MX?
  2130.  
  2131. A: Because the second display device on the GeForce2 MX was designed to
  2132.    be a digital flat panel, the Pixel Clock for the second display device
  2133.    is only 150 MHz.  This effectively limits the resolution on the second
  2134.    display device to somewhere around 1280x1024 (for a description of
  2135.    how Pixel Clock frequencies limit the programmable modes, see the
  2136.    XFree86 Video Timings HOWTO).  This constraint is not present on
  2137.    GeForce4 or GeForce FX chips -- the maximum pixel clock is the same i
  2138.    on both heads.
  2139.  
  2140.  
  2141. Q: Do video overlays work across both display devices?
  2142.  
  2143. A: Hardware video overlays only work on the first display device.
  2144.    The current solution is that blitted video is used instead on TwinView.
  2145.  
  2146.  
  2147. Q: How are virtual screen dimensions determined in TwinView?
  2148.  
  2149. A: After all requested modes have been validated, and the offsets
  2150.    for each MetaMode's viewports have been computed, the NVIDIA driver
  2151.    computes the bounding box of the panning domains for each MetaMode.
  2152.    The maximum bounding box width and height is then found.
  2153.  
  2154.    Note that one side effect of this is that the virtual width and
  2155.    virtual height may come from different MetaModes.  Given the following
  2156.    MetaMode string:
  2157.  
  2158.         "1600x1200,NULL; 1024x768+0+0, 1024x768+0+768"
  2159.  
  2160.    the resulting virtual screen size will be 1600 x 1536.
  2161.  
  2162.  
  2163. Q: Can I play full screen games across both display devices?
  2164.  
  2165. A: Yes.  While the details of configuration will vary from game to game,
  2166.    the basic idea is that a MetaMode presents X with a mode whose
  2167.    resolution is the bounding box of the viewports for that MetaMode.
  2168.    For example, the following:
  2169.  
  2170.         Option "MetaModes" "1024x768,1024x768; 800x600,800x600"
  2171.         Option "TwinViewOrientation" "RightOf"
  2172.  
  2173.    produce two modes: one whose resolution is 2048x768, and another whose
  2174.    resolution is 1600x600.  Games such as Quake 3 Arena use the VidMode
  2175.    extension to discover the resolutions of the modes currently available.
  2176.    To configure Quake 3 Arena to use the above MetaMode string, add the
  2177.    following to your q3config.cfg file:
  2178.  
  2179.         seta r_customaspect "1"
  2180.         seta r_customheight "600"
  2181.         seta r_customwidth  "1600"
  2182.         seta r_fullscreen   "1"
  2183.         seta r_mode         "-1"
  2184.  
  2185.    Note that, given the above configuration, there is no mode with a
  2186.    resolution of 800x600 (remember that the MetaMode "800x600, 800x600"
  2187.    has a resolution of 1600x600"), so if you change Quake 3 Arena to use
  2188.    a resolution of 800x600, it will display in the lower left corner of
  2189.    your screen, with the rest of the screen grayed out.  To have single
  2190.    head modes available as well, an appropriate MetaMode string might
  2191.    be something like:
  2192.  
  2193.         "800x600,800x600; 1024x768,NULL; 800x600,NULL; 640x480,NULL"
  2194.  
  2195.    More precise configuration information for specific games is beyond the
  2196.    scope of this document, but the above examples coupled with numerous
  2197.    online sources should be enough to point you in the right direction.
  2198.  
  2199.  
  2200. __________________________________________________________________________
  2201.  
  2202. (app-j) APPENDIX J: CONFIGURING TV-OUT
  2203. __________________________________________________________________________
  2204.  
  2205. NVIDIA GPU-based video cards with a TV-Out (S-Video) connector can be
  2206. employed to use a television as another display device, just like a CRT
  2207. or digital flat panel.  The TV can be used by itself, or (on appropriate
  2208. video cards) in conjunction with another display device in a TwinView
  2209. configuration.
  2210.  
  2211. If a TV is the only display device connected to your video card, it will
  2212. be used as the primary display when you boot your system (ie the console
  2213. will come up on the TV just as if it were a CRT).  To use your TV with X,
  2214. there are a few parameters that you should pay special attention to in
  2215. your XF86Config file:
  2216.  
  2217.   o The VertRefresh and HorizSync values in your monitor section;
  2218.     please make sure these are appropriate for your television.
  2219.     Values are generally:
  2220.  
  2221.         HorizSync 30-50
  2222.         VertRefresh 60
  2223.  
  2224.   o The Modes in your screen section; the valid modes for your TV encoder
  2225.     will be reported in a verbose XFree86.0.log file (generated with
  2226.     `startx -- -logverbose 5`) when X is run on a TV.  Some modes may
  2227.     be limited to certain TV Standards; if that is the case, it will
  2228.     be noted in the XFree86.0.log file.  Generally, atleast 800x600 and
  2229.     640x480 are supported.
  2230.  
  2231.   o The "TVStandard" option should be added to your screen section; valid
  2232.     values are:
  2233.  
  2234.         "PAL-B"  : used in Belgium, Denmark, Finland, Germany, Guinea,
  2235.                    Hong Kong, India, Indonesia, Italy, Malaysia, The
  2236.                    Netherlands, Norway, Portugal, Singapore, Spain,
  2237.                    Sweden, and Switzerland
  2238.         "PAL-D"  : used in China and North Korea
  2239.         "PAL-G"  : used in Denmark, Finland, Germany, Italy, Malaysia,
  2240.                    The Netherlands, Norway, Portugal, Spain, Sweden,
  2241.                    and Switzerland
  2242.         "PAL-H"  : used in Belgium
  2243.         "PAL-I"  : used in Hong Kong and The United Kingdom
  2244.         "PAL-K1" : used in Guinea
  2245.         "PAL-M"  : used in Brazil
  2246.         "PAL-N"  : used in France, Paraguay, and Uruguay
  2247.         "PAL-NC" : used in Argentina
  2248.         "NTSC-J" : used in Japan
  2249.         "NTSC-M" : used in Canada, Chile, Colombia, Costa Rica, Ecuador,
  2250.                    Haiti, Honduras, Mexico, Panama, Puerto Rico, South
  2251.                    Korea, Taiwan, United States of America, and Venezuela
  2252.  
  2253.     The line in your XF86Config file should be something like:
  2254.  
  2255.         Option "TVStandard" "NTSC-M"
  2256.  
  2257.     If you don't specify a TVStandard, or you specify an invalid value,
  2258.     the default "NTSC-M" will be used.  Note: if your country is not in
  2259.     the above list, select the country closest to your location.
  2260.  
  2261.   o The "ConnectedMonitor" option can be used to tell X to use the TV for
  2262.     display.  This should only be needed if your TV is not detected by
  2263.     the video card, or you use a CRT (or digital flat panel) as your
  2264.     boot display, but want to redirect X to use the TV.  The line in
  2265.     your config file should be:
  2266.  
  2267.         Option "ConnectedMonitor" "TV"
  2268.  
  2269.   o The "TVOutFormat" option can be used to force SVIDEO or COMPOSITE
  2270.     output.  Without this option the driver autodetects the output format.
  2271.     Unfortunately, it doesn't always do this correctly.  The output format
  2272.     can be forced with the options:
  2273.  
  2274.          Option "TVOutFormat" "SVIDEO"
  2275.  
  2276.                      or
  2277.  
  2278.          Option "TVOutFormat" "COMPOSITE"
  2279.  
  2280.   o The "TVOverScan" option can be used to enable Overscan where
  2281.     supported.  Valid values are decimal values in the range 1.0 (which
  2282.     means overscan as much as possible: make the image as large as
  2283.     possible) and 0.0 (which means disable overscanning: make the image
  2284.     as small as possible).  Overscanning is disabled (0.0) by default.
  2285.  
  2286.     Overscan is currently only available on GeForce4 or newer GPUs
  2287.     with either NVIDIA or Conexant TV encoders.
  2288.  
  2289. The NVIDIA XFree86 driver may not restore the console correctly with
  2290. XFree86 versions older than 4.3 when the console is a TV.  This is due
  2291. to binary incompatibilities between XFree86 int10 modules.  If you use
  2292. a TV as your console it is recommended that you upgrade to XFree86 4.3.
  2293.  
  2294.  
  2295. __________________________________________________________________________
  2296.  
  2297. (app-k) APPENDIX K: CONFIGURING A LAPTOP
  2298. __________________________________________________________________________
  2299.  
  2300. INSTALLATION AND CONFIGURATION
  2301.  
  2302. Installation and configuration of the NVIDIA Accelerated Linux Driver
  2303. Set on a laptop is the same as for any desktop environment, with a few
  2304. minor exceptions, listed below.
  2305.  
  2306. Starting in the 1.0-2802 release, information about the internal flatpanel
  2307. for use in initializing the display is by default generated on the fly
  2308. from data stored in the video BIOS.  This can be disabled by setting
  2309. the "SoftEDIDs" kernel option to 0.  If "SoftEDIDs" is turned off, then
  2310. hardcoded data will be chosen from a table, based on the value of the
  2311. "Mobile" kernel option.
  2312.  
  2313. The "Mobile" kernel option can be set to any of the following values:
  2314.  
  2315.     0xFFFFFFFF : let the kernel module auto detect the correct value
  2316.              1 : Dell laptops
  2317.              2 : non-Compal Toshiba laptops
  2318.              3 : all other laptops
  2319.              4 : Compal Toshiba laptops
  2320.              5 : Gateway laptops
  2321.  
  2322. Again, the "Mobile" kernel option is only needed if SoftEDIDs is
  2323. disabled; when it is used, it's usually safest to let the kernel
  2324. module auto detect the correct value (this is the default behavior).
  2325.  
  2326. Should you need to alter either of these options, this can be done by
  2327. doing any of the following:
  2328.  
  2329.       o editing os-registry.c in the usr/src/nv/ directory of the
  2330.         .run file.
  2331.  
  2332.       o setting the value on the modprobe command line (eg: `modprobe
  2333.         nvidia NVreg_SoftEDIDs=0 NVreg_Mobile=3`)
  2334.  
  2335.       o adding an "options" line to your module configuration file,
  2336.         usually /etc/modules.conf (eg: "options nvidia
  2337.         NVreg_Mobile=5")
  2338.  
  2339. ADDITIONAL FUNCTIONALITY
  2340.  
  2341. TWINVIEW
  2342.  
  2343. All mobile NVIDIA chips support TwinView. TwinView on a laptop can
  2344. be configured in the same way as on a desktop machine (please refer
  2345. to APPENDIX I above); note that in a TwinView configuration using
  2346. the laptop's internal flat panel and an external CRT, the CRT is the
  2347. primary display device (specify it's HorizSync and VertRefresh in
  2348. the Monitor section of your XF86Config file) and the flat panel is
  2349. the secondary display device (specify it's HorizSync and VertRefresh
  2350. through the SecondMonitorHorizSync and SecondMonitorVertRefresh options).
  2351. You can also employ the UseEdidFreqs option to acquire the HorizSync and
  2352. VertRefresh from the EDID of each display devices, and not worry about
  2353. setting them in your XF86Config file (this should only be done if you
  2354. trust your display device's reported EDIDs -- please see the description
  2355. of the UseEdidFreqs option in APPENDIX D for details).
  2356.  
  2357.  
  2358. HOTKEY SWITCHING OF DISPLAY DEVICES
  2359.  
  2360. Besides TwinView, mobile NVIDIA chips also have the capacity to react to
  2361. an LCD/CRT hotkey event, toggling between each of the connected display
  2362. devices and each possible combination of the connected display devices
  2363. (note that only 2 display devices may be active at a time).  TwinView as
  2364. configured in your XF86Config file and hotkey functionality are mutually
  2365. exclusive -- if you enable TwinView in your XF86Config file, then the
  2366. NVIDIA X driver will ignore LCD/CRT hotkey events.
  2367.  
  2368. Another important aspect of hotkey functionality is that you can
  2369. dynamically connect and remove display devices to/from your laptop and
  2370. hotkey to them without restarting X.
  2371.  
  2372. A concern with all of this is how to validate and determine what modes
  2373. should be programmed on each display device.  First, it is immensely
  2374. helpful to use the UseEdidFreqs so that the hsync and vrefresh for
  2375. each display device can be retrieved from the display devices' EDID --
  2376. otherwise, the semantics of what the contents of the monitor section
  2377. mean constantly changes with each hotkey event.
  2378.  
  2379. When X is started, or when a change is detected in the list of connected
  2380. display devices, a new hotkey sequence list is constructed -- this lists
  2381. what display devices will be used with each hotkey event.  When a hotkey
  2382. event occurs, then the next hotkey state in the sequence is chosen.
  2383. Each mode requested in the XF86Config file is validated against each
  2384. display device's constraints, and the resulting modes are made available
  2385. for that display device.  If multiple display devices are to be active
  2386. at once, then the modes from each display device are paired together;
  2387. if an exact match (same resolution) can't be found, then the closest fit
  2388. is found, and the display device with the smaller resolution is panned
  2389. within the resolution of the other display device.
  2390.  
  2391. When vt-switching away from X, the vga console will always be restored on
  2392. the display device on which it was present when X was started.  Similarly,
  2393. when vt-switching back into X, the same display device configuration
  2394. will be used as when you vt-switched away from X, regardless of what
  2395. LCD/CRT hotkey activity occurred while vt-switched away.
  2396.  
  2397.  
  2398. NON-STANDARD MODES ON LCD DISPLAYS
  2399.  
  2400. Some users have had difficulty programming a 1400x1050 mode (the native
  2401. resolution of some laptop LCDs).  In version 4.0.3, XFree86 added several
  2402. 1400x1050 modes to its database of default modes, but if you're using
  2403. an older version of XFree86, here is a modeline that you can use:
  2404.  
  2405. # -- 1400x1050 --
  2406. # 1400x1050 @ 60Hz, 65.8 kHz hsync
  2407. Modeline "1400x1050"  129  1400 1464 1656 1960
  2408.                            1050 1051 1054 1100 +HSync +VSync
  2409.  
  2410.  
  2411. KNOWN LAPTOP ISSUES
  2412.  
  2413.   o LCD/CRT hotkey switching is not currently functioning on any
  2414.     Toshiba laptop, with the exception of the Toshiba Satellite
  2415.     3000 series.
  2416.   o TwinView on Satellite 2800 series Toshbia laptops is not currently
  2417.     functioning.
  2418.   o The video overlay only works on the first display device on which
  2419.     you started X.  For example, if you start X on the internal LCD,
  2420.     run a video application that uses the video overlay (uses the
  2421.     "Video Overlay" adaptor advertised through the XV extension), and
  2422.     then hotkey switch to add a second display device, the video will
  2423.     not appear on the second display device.  To work around this,
  2424.     you can either configure the video application to use the "Video
  2425.     Blitter" adaptor advertised through the XV extension (this is always
  2426.     available), or hotkey switch to the display device on which you want
  2427.     to use the video overlay *before* starting X.
  2428.  
  2429.  
  2430. __________________________________________________________________________
  2431.  
  2432. (app-l) APPENDIX L: PROGRAMMING MODES
  2433. __________________________________________________________________________
  2434.  
  2435. The NVIDIA Accelerated Linux Driver Set supports all standard VGA and VESA
  2436. modes, as well as most user-written custom mode lines; double-scan modes
  2437. are supported on all hardware.
  2438.  
  2439. In general, your display device (monitor/flat panel/television) will be
  2440. a greater constraint on what modes you can use than either your NVIDIA
  2441. GPU-based video board or the NVIDIA Accelerated Linux Driver Set.
  2442.  
  2443. To request one or more standard modes for use in X, you can simply add a
  2444. "Modes" line such as:
  2445.  
  2446.         Modes "1600x1200" "1024x768" "640x480"
  2447.  
  2448. in the appropriate Display subsection of your XF86Config file (please see
  2449. the XF86Config(4/5) man page for details).  The following documentation
  2450. is primarily of interest if you compose your own custom mode lines,
  2451. experiment with xvidtune(1), or are just interested in learning more.
  2452. Please note that this is neither an explanation nor a guide to the fine
  2453. art of crafting custom mode lines for XFree86.  We leave that, rather,
  2454. to documents such as the XFree86 Video Timings HOWTO (which can be found
  2455. at www.tldp.org).
  2456.  
  2457.  
  2458. DEPTH, BITS PER PIXEL, AND PITCH
  2459.  
  2460. While not directly a concern when programming modes, the bits used per
  2461. pixel is an issue when considering the maximum programmable resolution;
  2462. for this reason, it is worthwhile to address the confusion surrounding
  2463. the terms "depth" and "bits per pixel".  Depth is how many bits of
  2464. data are stored per pixel.  Supported depths are 8, 15, 16, and 24.
  2465. Most video hardware, however, stores pixel data in sizes of 8, 16, or
  2466. 32 bits; this is the amount of memory allocated per pixel.  When you
  2467. specify your depth, X selects the bits per pixel (bpp) size in which to
  2468. store the data.  Below is a table of what bpp is used for each possible
  2469. depth:
  2470.  
  2471.         depth    bpp
  2472.         =====   =====
  2473.           8       8
  2474.          15      16
  2475.          16      16
  2476.          24      32
  2477.  
  2478. Lastly, the "pitch" is how many bytes in the linear frame buffer there are
  2479. between one pixel's data, and the data of the pixel immediately below.
  2480. You can think of this as the horizontal resolution multiplied by the
  2481. bytes per pixel (bits per pixel divided by 8).  In practice, the pitch may
  2482. be more than this product due to alignment constraints.
  2483.  
  2484.  
  2485. MAXIMUM RESOLUTIONS
  2486.  
  2487. The NVIDIA Accelerated Linux Driver Set and NVIDIA GPU-based video boards
  2488. support resolutions up to 2048x1536, though the maximum resolution
  2489. your system can support is also limited by the amount of video memory
  2490. (see USEFUL FORMULAS for details) and the maximum supported resolution
  2491. of your display device (monitor/flat panel/television).  Also note that
  2492. while use of a video overlay does not limit the maximum resolution or
  2493. refresh rate, video memory bandwidth used by a programmed mode does
  2494. effect the overlay quality.
  2495.  
  2496.  
  2497. USEFUL FORMULAS
  2498.  
  2499. The maximum resolution is a function both of the amount of video memory
  2500. and the bits per pixel you elect to use:
  2501.  
  2502.         HR * VR * (bpp/8) = Video Memory Used
  2503.  
  2504. In other words, the amount of video memory used is equal to the horizontal
  2505. resolution (HR) multiplied by the vertical resolution (VR) multiplied by
  2506. the bytes per pixel (bits per pixel divided by eight).  Technically, the
  2507. video memory used is actually the pitch times the vertical resolution,
  2508. and the pitch may be slightly greater than (HR * (bpp/8)) to accommodate
  2509. hardware requirements that the pitch be a multiple of some value.
  2510.  
  2511. Please note that this is just memory usage for the frame buffer; video
  2512. memory is also used by other things such as OpenGL or pixmap caching.
  2513.  
  2514. Another important relationship is that between the resolution, the pixel
  2515. clock (aka dot clock) and the vertical refresh rate:
  2516.  
  2517.         RR = PCLK / (HFL * VFL)
  2518.  
  2519. In other words, the refresh rate (RR) is equal to the pixel clock (PCLK)
  2520. divided by the total number of pixels: the horizontal frame length (HFL)
  2521. multiplied by the vertical frame length (VFL) (note that these are the
  2522. frame lengths, and not just the visible resolutions).  As described in
  2523. the XFree86 Video Timings HOWTO, the above formula can be rewritten as:
  2524.  
  2525.         PCLK = RR * HFL * VFL
  2526.  
  2527. Given a maximum pixel clock, you can adjust the RR, HFL and VFL as
  2528. desired, as long as the product of the three is consistent.  The pixel
  2529. clock is reported in the log file when you run X with verbose logging:
  2530. `startx -- -logverbose 5`.  Your XFree86.0.log should contain several
  2531. lines like:
  2532.  
  2533. (--) NVIDIA(0): Display Device 0: maximum pixel clock at  8 bpp: 350 MHz
  2534. (--) NVIDIA(0): Display Device 0: maximum pixel clock at 16 bpp: 350 MHz
  2535. (--) NVIDIA(0): Display Device 0: maximum pixel clock at 32 bpp: 300 MHz
  2536.  
  2537. which indicate the maximum pixel clock at each bit per pixel size.
  2538.  
  2539.  
  2540. HOW MODES ARE VALIDATED
  2541.  
  2542. During the PreInit phase of the X server, the NVIDIA X driver validates
  2543. all requested modes by doing the following:
  2544.  
  2545.   o Take the intersection of the HorizSync and VertRefresh ranges given
  2546.     by the user in the XF86Config with the ranges reported by the monitor
  2547.     in the EDID (Extended Display Identification Data); this behavior
  2548.     can be disabled by using the "IgnoreEDID" option in which case the
  2549.     X driver will blindly accept the HorizSync and VertRefresh ranges
  2550.     given by the user.
  2551.  
  2552.   o Call the xf86ValidateModes() helper function, which finds modes with
  2553.     the names the user specified in the XF86Config file, pruning
  2554.     out modes with invalid horizontal sync frequencies or vertical
  2555.     refresh rates, pixel clocks larger than the maximum pixel clock
  2556.     for the video card, or resolutions larger than the virtual
  2557.     screen size (if a virtual screen size was specified in the
  2558.     XF86Config file).  Several other constraints are applied; see
  2559.     xc/programs/Xserver/hw/xfree86/common/xf86Mode.c:xf86ValidateModes().
  2560.  
  2561.   o All modes returned from xf86ValidateModes() are then examined to make
  2562.     sure their resolutions are not larger than the largest mode reported
  2563.     by the monitor's EDID (this can be disabled with the "IgnoreEDID"
  2564.     option.  If the display is a TV, each mode is checked to make sure
  2565.     it has a resolution that is supported by the TV encoder (usually
  2566.     only 800x600 and 640x480 are supported by the encoder).
  2567.  
  2568.   o All modes are also tested to confirm that they fit within the
  2569.     hardware's memory bandwidth constraints.  This test can be disabled
  2570.     with the NoBandWidthTest XF86Config file option.
  2571.  
  2572.   o All remaining modes are then checked to make sure they pass the
  2573.     constraints described below in ADDITIONAL MODE CONSTRAINTS.
  2574.  
  2575. The last three steps are also done when each mode is programmed, to
  2576. catch potentially invalid modes submitted by the XF86VidModeExtension
  2577. (eg xvidtune(1)).  For TwinView, the above validation is done for the
  2578. modes requested for each display device.
  2579.  
  2580.  
  2581. ADDITIONAL MODE CONSTRAINTS
  2582.  
  2583. Below is a list of additional constraints on a mode's parameters that
  2584. must be met.  In some cases these are specific to particular chips.
  2585.  
  2586.   o The horizontal resolution (HR) must be a multiple of 8 and be less
  2587.     than or equal to the value in the table below.
  2588.   o The horizontal blanking width (the maximum of the horizontal frame
  2589.     length and the horizontal sync end minus the minimum of the horizontal
  2590.     resolution and the horizontal sync start (max(HFL,HSE) - min(HR,HSS))
  2591.     must be a multiple of 8 and be less than or equal to the value in
  2592.     the table below.
  2593.   o The horizontal sync start (HSS) must be a multiple of 8 and be less
  2594.     than or equal to the value in the table below.
  2595.   o The horizontal sync width (the horizontal sync end minus the
  2596.     horizontal sync start (HSE - HSS)) must be a multiple of 8 and be
  2597.     less than or equal to the value in the table below.
  2598.   o The horizontal frame length (HFL) must be a multiple of 8, must be
  2599.     greater than or equal to 40, and must be less than or equal to the
  2600.     value in the table below.
  2601.   o The vertical resolution (VR) must be less than or equal to the
  2602.     value in the table below.
  2603.   o The vertical blanking width (the maximum of the vertical frame length
  2604.     and the vertical sync end minus the minimum of the vertical resolution
  2605.     and the vertical sync start (max(VFL,VSE) - min(VR,VSS)) must be
  2606.     less than or equal to the value in the table below.
  2607.   o The vertical sync start (VSS) must be less than or equal to the
  2608.     value in the table below.
  2609.   o The vertical sync width (the vertical sync end minus the vertical sync
  2610.     start (VSE - VSS)) must be less than or equal to the value in the
  2611.     table below.
  2612.   o The vertical frame length (VFL) must be greater than or equal to 2 and
  2613.     less than or equal to the value in the table below.
  2614.  
  2615.        Maximum DAC Values
  2616.        ------------------
  2617.  
  2618.           | GeForce/TNT   Geforce2 & 3   Geforce4 or newer
  2619.     ______|_______________________________________________
  2620.           |
  2621.     HR    | 4096          4096           8192
  2622.     HBW   | 1016          1016           2040
  2623.     HSS   | 4088          4088           8224
  2624.     HSW   | 256           256            512
  2625.     HFL   | 4128          4128           8224
  2626.     VR    | 2048          4096           8192
  2627.     VBW   | 128           128            256
  2628.     VSS   | 2047          4095           8192
  2629.     VSW   | 16            16             16
  2630.     VFL   | 2049          4097           8192
  2631.  
  2632.  
  2633. Here is an example mode line demonstrating the use of each abbreviation
  2634. used above:
  2635.  
  2636. # Custom Mode line for the SGI 1600SW Flatpanel
  2637. #        name           PCLK  HR   HSS  HSE  HFL  VR   VSS  VSE  VFL
  2638.  
  2639. Modeline "sgi1600x1024" 106.9 1600 1632 1656 1672 1024 1027 1030 1067
  2640.  
  2641.  
  2642. ENSURING IDENTICAL MODETIMINGS
  2643.  
  2644. Some functionality, such as Active Stereo with TwinView, requires
  2645. control over exactly what mode timings are used.  There are several
  2646. ways to accomplish that:
  2647.  
  2648.     o If you only want to make sure that both display devices use
  2649.       the same modes, you only need to make sure that both display
  2650.       devices use the same HorizSync and VertRefresh values when
  2651.       performing mode validation; this would be done by making sure the
  2652.       HorizSync and SecondMonitorHorizSync match, and that the VertRefresh
  2653.       and the SecondMonitorVertRefresh match.
  2654.  
  2655.     o A more explicit approach is to specify the modeline you wish
  2656.       to use (using one of the modeline generators available),
  2657.       and using a unique name.  For example, if you wanted to use
  2658.       1024x768 at 120 Hz on each monitor in TwinView with active
  2659.       stereo, you might add something like:
  2660.  
  2661.         # 1024x768 @ 120.00 Hz (GTF) hsync: 98.76 kHz; pclk: 139.05 MHz
  2662.         Modeline "1024x768_120"  139.05  1024 1104 1216 1408  768 769 772 823  -HSync +Vsync
  2663.  
  2664.       In the monitor section of your XF86Config file, and then in
  2665.       the Screen section of your XF86Config file, specify a MetaMode
  2666.       like this:
  2667.  
  2668.         Option "MetaModes" "1024x768_120, 1024x768_120"
  2669.  
  2670. SEE ALSO:
  2671.  
  2672.     An XFree86 modeline generator, conforming to the GTF Standard is
  2673.     available here:
  2674.  
  2675.         http://gtf.sourceforge.net/
  2676.  
  2677.     For additional modeline generators, try searching for "modeline"
  2678.     on freshmeat.net.
  2679.  
  2680.  
  2681. __________________________________________________________________________
  2682.  
  2683. (app-m) APPENDIX M: PAGE FLIPPING, WINDOW FLIPPING, AND UBB
  2684. __________________________________________________________________________
  2685.  
  2686. Starting with the 1.0-2313 driver release, the NVIDIA Accelerated
  2687. Linux Driver Set supports Unified Back Buffer (UBB), Page Flipping,
  2688. and Window Flipping.  These features can provide performance gains in
  2689. certain situtations.  Here is a discription of each:
  2690.  
  2691.   o Page Flipping: This feature is available on all GeForce or newer
  2692.         hardware (ie: not TNT/TNT2 products), and is enabled in the
  2693.         case of a single full screen unobscured OpenGL application when
  2694.         syncing to vblank.  Buffer swapping is done by changing which
  2695.         buffer the DAC scans out rather than copying the back buffer
  2696.         contents to the front buffer; this is generally a much higher
  2697.         performance mechanism and allows tearless swapping during the
  2698.         retrace (when __GL_SYNC_TO_VBLANK is set).  This feature can be
  2699.         disabled with the PageFlip XF86Config option.
  2700.  
  2701.   o Unified Back Buffer (UBB): UBB is available only on the Quadro family 
  2702.         of GPUs (Quadro4 NVS excluded) and is enabled by default
  2703.         when there is sufficient video memory available.  This can be 
  2704.         disabled with the UBB XF86Config option described in Appendix D.
  2705.         When UBB is enabled, all windows share the same back, stencil
  2706.         and depth buffer.  When there are many windows, the back, stencil
  2707.         and depth usage will never exceed the size of that used by a
  2708.         full screen window.  However, even for a single small window
  2709.         the back, stencil and depth usage are that of a full screen
  2710.         window so in that case video ram may be used less efficiently
  2711.         than in the non-UBB case.
  2712.  
  2713.   o Window Flipping: This feature requires UBB, and thus is only available
  2714.         on Quadro parts.  When there is a single OpenGL window this
  2715.         window's buffers can be swapped by changing which buffer the DAC
  2716.         scans out rather than blitting the back buffer contents to the
  2717.         front buffer.  This is similar to Page Flipping but removes the
  2718.         restriction that the window be unobscured and be full screen.
  2719.         This only works when there is a single OpenGL window.  Window
  2720.         Flipping is disabled by default and can be enabled with the
  2721.         "WindowFlip" XF86Config option described in Appendix D.
  2722.  
  2723.  
  2724. __________________________________________________________________________
  2725.  
  2726. (app-n) APPENDIX N: KNOWN ISSUES
  2727. __________________________________________________________________________
  2728.  
  2729. The following problems still exist in this release and are in the process
  2730. of being resolved.
  2731.  
  2732.   o OpenGL + Xinerama
  2733.         Currently, OpenGL will not display to anything other than the
  2734.         first head in a Xinerama environment.
  2735.  
  2736.   o OpenGL and dlopen()
  2737.         There are some issues with older versions of the glibc dynamic 
  2738.         loader (e.g., the version that shipped with Red Hat Linux 7.2) and 
  2739.         applications such as Quake3 and Radiant, that use dlopen().
  2740.         See the FREQUENTLY ASKED QUESTIONS section for more details.
  2741.  
  2742.   o DPMS and TwinView
  2743.         DPMS Modes "suspend" and "standby" do not work correctly on
  2744.         a second CRT when using TwinView.  The screen becomes blank
  2745.         instead of the monitor being set to the requested DPMS state.
  2746.  
  2747.   o DPMS and Flat Panel
  2748.         DPMS modes "suspend" and "standby" do not work correctly on a
  2749.         flat panel display.  The screen becomes blank instead of the
  2750.         flat panel being set to the requested DPMS state.
  2751.  
  2752.   o Multicard, Multimonitor
  2753.         In some cases, the secondary card is not initialized correctly
  2754.         by the NVIDIA kernel module. You can work around this by enabling
  2755.         the XFree86 Int10 module to soft-boot all secondary cards. See 
  2756.         "APPENDIX D: XF86CONFIG OPTIONS" for details.
  2757.  
  2758.   o Laptop
  2759.         If you are using a laptop please see the "Known Laptop Issues" in 
  2760.         APPENDIX D.
  2761.  
  2762.   o FSAA
  2763.         When FSAA is enabled (the __GL_FSAA_MODE environment variable
  2764.         is set to a value that enables FSAA and a multisample visual is
  2765.         chosen), the rendering may be corrupted when resizing the window.
  2766.  
  2767.   o Interaction with pthreads
  2768.         Single threaded applications that dlopen() NVIDIA's libGL
  2769.         library, and then dlopen() any other library that is linked
  2770.         against pthreads will crash in NVIDIA's libGL library.  This does
  2771.         not happen in NVIDIA's new ELF TLS OpenGL libraries (please see
  2772.         (app-c)  APPENDIX C: INSTALLED COMPONENTS for a description of
  2773.         the ELF TLS OpenGL libraries).  Possible work arounds for this
  2774.         problem are:
  2775.  
  2776.             1) Load the library that is linked with pthreads before
  2777.                loading libGL.so.
  2778.             2) Link the application with pthreads.
  2779.  
  2780. HARDWARE ISSUES
  2781.  
  2782. This section describes problems that will not be fixed.  Usually, the
  2783. source of the problem is beyond the control of NVIDIA.  Following is
  2784. the list of problems:
  2785.  
  2786.   o Gigabyte GA-6BX Motherboard
  2787.         This motherboard uses a LinFinity regulator on the 3.3-V rail
  2788.         that is rated to only 5 A -- less than the AGP specification,
  2789.         which requires 6 A.  When diagnostics or applications are
  2790.         running, the temperature of the regulator rises, causing the
  2791.         voltage to the NVIDIA chip to drop as low as 2.2 V.  Under these
  2792.         circumstances, the regulator cannot supply the current on the
  2793.         3.3-V rail that the NVIDIA chip requires.
  2794.  
  2795.         This problem does not occur when the graphics board has a
  2796.         switching regulator or when an external power supply is connected
  2797.         to the 3.3-V rail.
  2798.  
  2799.   o VIA KX133 and 694X Chip sets with AGP 2x
  2800.         On Athlon motherboards with the VIA KX133 or 694X chip set, such
  2801.         as the ASUS K7V motherboard, NVIDIA drivers default to AGP 2x mode
  2802.         to work around insufficient drive strength on one of the signals.
  2803.  
  2804.   o Irongate Chip sets with AGP 1x
  2805.         AGP 1x transfers are used on Athlon motherboards with the Irongate
  2806.         chip set to work around a problem with the signal integrity of
  2807.         the chip set.
  2808.  
  2809.   o ALi chipsets, ALi1541 and ALi1647
  2810.         On ALi1541 and ALi1647 chipsets, NVIDIA drivers disable AGP to work
  2811.         around timing issues and signal integrity issues. See "APPENDIX G: 
  2812.         ALI SPECIFIC ISSUES" for more information on ALi chipsets.
  2813.  
  2814.   o I/O APIC (SMP)
  2815.         If you are experiencing stability problems with a Linux SMP machine 
  2816.         and seeing I/O APIC warning messages from the Linux kernel, system
  2817.         reliability may be greatly improved by setting the "noapic" kernel
  2818.         parameter.
  2819.  
  2820.   o Local APIC (UP)
  2821.         On some systems, setting the "Local APIC Support on Uniprocessors"
  2822.         kernel configuration option can have adverse effects on system
  2823.         stability. If you are experiencing lockups with a Linux UP machine
  2824.         and this option set, try disabling local APIC support.
  2825.  
  2826. __________________________________________________________________________
  2827.  
  2828. (app-o) APPENDIX O: PROC INTERFACE
  2829. __________________________________________________________________________
  2830.  
  2831. The /proc filesystem interface allows you to obtain run-time information
  2832. about the driver, any installed NVIDIA graphics cards and the AGP status.
  2833.  
  2834. This information is held by several files in /proc/driver/nvidia. This is
  2835. a brief description for each one of these files:
  2836.  
  2837.   o version
  2838.         Lists the installed driver revision and the version of the GNU C
  2839.         compiler used to build the Linux kernel module.
  2840.  
  2841.   o cards/0...3
  2842.         Provides information about each of the installed NVIDIA graphics
  2843.         adapters (model name, IRQ, BIOS version, Bus Type). Please note
  2844.         that the BIOS version is only available while X is running.
  2845.  
  2846.   o agp/card
  2847.         Information about the installed AGP card's AGP capabilities.
  2848.  
  2849.   o agp/host-bridge
  2850.         Information about the host bridge (model and AGP capabilities).
  2851.   
  2852.   o agp/status
  2853.         The current AGP status. If AGP support has been enabled on your
  2854.         system, the AGP driver being used, the AGP rate and information
  2855.         about the status of AGP Fast Writes and Side Band Addressing is
  2856.         shown.
  2857.  
  2858.         The AGP driver is either one of NVIDIA (NVIDIA's built-in AGP
  2859.         driver) or AGPGART (the Linux kernel's agpgart.o driver). If
  2860.         you see "inactive" next to AGPGART, then this means that the
  2861.         AGP chipset was programmed by AGPGART, but is not currently in
  2862.         use.
  2863.  
  2864.         SBA and Fast Writes indicate whether either one of the features
  2865.         is currently in use. Please note that several factors decide if
  2866.         support for either will be enabled. First of all, both the AGP
  2867.         card and the host bridge must support the feature. Even if both
  2868.         do support it, the driver may decide not to use it in favor of
  2869.         system stability. This is particularly true of AGP Fast Writes.
  2870.  
  2871. __________________________________________________________________________
  2872.  
  2873. (app-p) APPENDIX P: XVMC SUPPORT 
  2874. __________________________________________________________________________
  2875.  
  2876. This release includes support for the X-Video Motion Compensation (XvMC)
  2877. version 1.0 API on GeForce4 and GeForce FX products only.  There is a static
  2878. library "libXvMCNVIDIA.a" and a dynamic one "libXvMCNVIDIA_dynamic.so"
  2879. which is suitable for dlopening.  GeForce4 MX and GeForce FX products support 
  2880. both XvMC's "IDCT" and "motion-compensation" levels of acceleration.  
  2881. GeForce4 Ti products only support the motion-compensation level.  AI44 and IA44
  2882. subpictures are supported.  4:2:0 Surfaces up to 2032x2032 are supported.
  2883.  
  2884. libXvMCNVIDIA observes the XVMC_DEBUG environment variable and will
  2885. provide some debug output to stderr when set to an appropriate integer
  2886. value.  '0' disables debug output.  '1' enables debug output for failure
  2887. conditions.  '2' or higher enables output of warning messages.
  2888.  
  2889. __________________________________________________________________________
  2890.  
  2891. (app-q) APPENDIX Q: GLX SUPPORT
  2892. __________________________________________________________________________
  2893.  
  2894. This release supports GLX 1.3 with the following extensions:
  2895.    GLX_EXT_visual_info
  2896.    GLX_EXT_visual_rating
  2897.    GLX_SGIX_fbconfig
  2898.    GLX_SGIX_pbuffer
  2899.    GLX_ARB_get_proc_address
  2900.  
  2901. For a description of these extensions, please see the OpenGL extension
  2902. registry at http://oss.sgi.com/projects/ogl-sample/registry/index.html
  2903.  
  2904. Some of the above extensions exist as part of core GLX 1.3 functionality,
  2905. however, they are also exported as extensions for backwards compatibility.
  2906.  
  2907. __________________________________________________________________________
  2908.  
  2909. (app-r)  APPENDIX R: CONFIGURING MULTIPLE X SCREENS ON ONE CARD
  2910. __________________________________________________________________________
  2911.  
  2912. Graphics chips that support TwinView (see (app-i) APPENDIX I: CONFIGURING
  2913. TWINVIEW) can also be configured to treat each connected display device
  2914. as a separate X screen.
  2915.  
  2916. While there are several disadvantages to this approach as compared to
  2917. TwinView (eg: windows cannot be dragged between X screens, hardware
  2918. accelerated OpenGL cannot span the two X screens), it does offer several
  2919. advantages over TwinView:
  2920.  
  2921.     o If each display device is a separate X screen, then properties
  2922.       that may vary between X screens may vary between displays (eg:
  2923.       depth, root window size, etc).
  2924.  
  2925.     o Hardware that can only be used on one display at a time (eg:
  2926.       video overlays, hardware accelerated RGB overlays), and which
  2927.       consequently cannot be used at all when in TwinView, can be
  2928.       exposed on the first X screen when each display is a separate
  2929.       X screen.
  2930.  
  2931.     o The 1-to-1 association of display devices to X screens is
  2932.       more historically in line with X.
  2933.  
  2934. To configure two separate X screens to share one graphics chip, here is
  2935. what you will need to do:
  2936.  
  2937. First, create two separate Device sections, each listing the BusID of
  2938. the graphics card to be shared, each listing the driver as "nvidia",
  2939. and assign each a separate screen:
  2940.  
  2941.  
  2942.     Section "Device"
  2943.         Identifier  "nvidia0"
  2944.         Driver      "nvidia"
  2945.         # Edit the BusID with the location of your graphics card
  2946.         BusID       "PCI:2:0:0"
  2947.         Screen      0
  2948.     EndSection
  2949.  
  2950.     Section "Device"
  2951.         Identifier  "nvidia1"
  2952.         Driver      "nvidia"
  2953.         # Edit the BusID with the location of your graphics card
  2954.         BusId       "PCI:2:0:0"
  2955.         Screen      1
  2956.     EndSection
  2957.  
  2958.  
  2959. Then, create two Screen sections, each using one of the Device sections:
  2960.  
  2961.  
  2962.     Section "Screen"
  2963.         Identifier  "Screen0"
  2964.         Device      "nvidia0"
  2965.         Monitor     "Monitor0"
  2966.         DefaultDepth 24
  2967.         Subsection "Display"
  2968.             Depth       24
  2969.             Modes       "1600x1200" "1024x768" "800x600" "640x480" 
  2970.         EndSubsection
  2971.     EndSection
  2972.  
  2973.     Section "Screen"
  2974.         Identifier  "Screen1"
  2975.         Device      "nvidia1"
  2976.         Monitor     "Monitor1"
  2977.         DefaultDepth 24
  2978.         Subsection "Display"
  2979.             Depth       24
  2980.             Modes       "1600x1200" "1024x768" "800x600" "640x480" 
  2981.         EndSubsection
  2982.     EndSection
  2983.  
  2984.  
  2985. (note: you'll also need to create a second Monitor section)
  2986.  
  2987. Finally, update the ServerLayout section to use and position both Screen
  2988. sections:
  2989.  
  2990.  
  2991.     Section "ServerLayout"
  2992.         ...
  2993.         Screen         0 "Screen0" 
  2994.         Screen         1 "Screen1" leftOf "Screen0"
  2995.         ...
  2996.     EndSection
  2997.  
  2998.  
  2999. For further details, please refer to the XF86Config manpage.
  3000.  
  3001. __________________________________________________________________________
  3002.  
  3003. (app-s)  APPENDIX S: POWER MANAGEMENT SUPPORT
  3004. __________________________________________________________________________
  3005.  
  3006. This release includes support for APM based power management. This
  3007. means that our driver will support suspend and resume, but will not
  3008. support standby.
  3009.  
  3010. Your laptop's system bios will need to support APM, rather than ACPI.  
  3011. Many, but not all, of the GeForce2 and GeForce4 based laptops include
  3012. APM support. You can check for APM support via the procfs interface
  3013. (check for the existance of /proc/apm) or via the kernel's boot output:
  3014.  
  3015. % dmesg | grep -i apm
  3016.  
  3017. a message similar to this indicates apm support:
  3018. apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
  3019.  
  3020. or a message like this indicates no apm support:
  3021. No APM support in Kernel
  3022.  
  3023. Although ACPI support is advancing in development kernels and some
  3024. backported patches for 2.4 kernels exist, the NVIDIA graphics driver
  3025. does not yet provide support for ACPI. We hope to finish this support
  3026. in the near future.
  3027.  
  3028. Note that standby is not supported, but that the kernel will attempt
  3029. to enter standby if told to do so. When changing power levels, many
  3030. system services are alerted of the change so that they can handle the
  3031. change appropriately. For example, networking will be disabled before
  3032. suspending, then reenabled when resuming. When the kernel attempts to
  3033. enter standby, the bios will fail the attempt. The kernel will print out
  3034. the error message "standby: Parameter out of range", but will fail to
  3035. notify the system services of the failure.  As a result, the system will
  3036. not go into suspension, but all system services will be disabled and the
  3037. system will appear hung. The best way to recover from this situation is
  3038. to enter suspend, then resume.
  3039.  
  3040. Some laptops have experienced agp bus corruption when resuming from
  3041. suspend that leads to a system hang.  Disabling AGP will work around
  3042. this problem (please see APPENDIX F: CONFIGURING AGP for more details
  3043. on disabling agp).
  3044.  
  3045.