Novell Home

X Server not starting after installing NVIDIA driver on openSUSE 10.2

Novell Cool Solutions: Tip
By Magnus Hoglund

Digg This - Slashdot This

Posted: 29 May 2007
 

Problem:

X-server won't start after installing NVIDIA driver on openSUSE 10.2.

/var/log/Xorg.log has following errors:

Failed to load module "glx" (module does not exist, 0)
Failed to load module "nvidia" (module does not exist, 0)
No devices detected.

The problem is that the nvidia modules are installed in the wrong directory, /usr/X11R6/modules when it should be /usr/lib/xorg/modules or /usr/lib64/xorg/modules when using xorg 7.2.

Solution:

Use the command argument --x-module-path when installing the driver.

Environment factors:

  • openSUSE 10.2 (X86 or X86-64)
  • Xorg 7.2
  • NVIDIA 1.0-9755

Example:

  1. Kernel sources must be installed and configured. Usually this means installing the 'kernel-source', 'make' and 'gcc' packages with YaST2.


  2. Download the latest NVIDIA package from http://www.nvidia.com/object/unix.html.


  3. I downloaded the nvidia installer NVIDIA-Linux-x86_64-1.0-9755-pkg2.run.


  4. su to root and go to run level 3 (init 3).


  5. Run the installer using the --x-module-path.

    For X86-64:
    sh NVIDIA-Linux-x86_64-1.0-9755-pkg2.run --x-module-path=/usr/lib64/xorg/modules/ -q

    For X86:

    sh NVIDIA-Linux-x86-1.0-9755-pkg2.run --x-module-path=/usr/lib/xorg/modules/ -q 

    Check that nvidia modules (libnvidia*) exist in /usr/lib/xorg/modules or /usr/lib64/xorg/modules depending on your architecture.



  6. Configure X.Org with:
    sax2 -r -m 0=nvidia (0 is a digit, not a letter).

    NOTE: There is no need to try to enable 3D support. It's already enabled, when the nvidia driver is running.

    IMPORTANT: You need to recompile and install the nvidia kernel module after each kernel update:

  7. sh NVIDIA-Linux-x86_64-1.0-9755-pkg2.run -K 

    or

    sh NVIDIA-Linux-x86-1.0-9755-pkg2.run -K
  8. Start the x-server (init 5).


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell