Chapter 2. Configuring X for the NVIDIA Driver

The X configuration file provides a means to configure the X server. This section describes the settings necessary to enable the NVIDIA driver. A comprehensive list of parameters is provided in Appendix D, X Config Options.

The NVIDIA Driver includes a utility called nvidia-xconfig, which is designed to make editing the X configuration file easy. You can also edit it by hand.

The Solaris distribution for x86 comes with two X servers: Xsun and Xsun is the proprietary X server developed by Sun Microsystems. The X server is released by the Foundation. The NVIDIA Accelerated SunOS Driver is enabled with the X server.

In order for any changes to be read into the X server, you must edit the configuration file used by the server. It is easy to determine the correct file by searching for the line

        (==) Using config file:

in the X log file. This line indicates the name of the X config file in use.

If you do not have a working X config file, there are a few different ways to obtain one:

If you have a working X config file for a different driver (such as the “nv” or “vesa” driver), then simply edit the file as follows.

Remove the line:

      Driver "nv"
  (or Driver "vesa")
  (or Driver "fbdev")

and replace it with the line:

    Driver "nvidia"

Remove the following lines:

    Load "dri"
    Load "GLCore"

In the Module section of the file, add the line (if it does not already exist):

    Load "glx"

There are numerous options that may be added to the X config file to tune the NVIDIA X driver. Please see Appendix D, X Config Options for a complete list of these options.

Once you have completed these edits to the X config file, you may restart X and begin using the accelerated OpenGL libraries. After restarting X, any OpenGL application should automatically use the new NVIDIA libraries. If you encounter any problems, please see Chapter 4, Common Problems for common problem diagnoses.