[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: nvidia driver failed to install



On Friday 06 May 2005 6:22am, Alexander Fieroch wrote:
> (II) LoadModule: "v4l2"
> (WW) Warning, couldn't open module v4l2
> (II) UnloadModule: "v4l2"
> (EE) Failed to load module "v4l2" (module does not exist, 0)

I'm guessing this is for video for linux (v4l), right?    Don't know anything 
about v4l, but your xfree config appears to have several problems besides 
nvidia.

> (II) LoadModule: "glx"
> (II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
> (II) Module glx: vendor="The XFree86 Project"

This is the wrong glx module.  The right one is the one from nvidia (the 
vendor line will say "NVIDIA Corporation".  It doesn't look like you've 
loaded nvidia-glx and modified the xfree config correctly...

> (II) Loading sub module "GLcore"
> (II) LoadModule: "GLcore"
> (II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.a
> Skipping "/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_clip.o":
>  No symbols found
> Skipping "/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_norm.o":
>  No symbols found
> Skipping
> "/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_xform.o":  No
> symbols found
> Skipping
> "/usr/X11R6/lib/modules/extensions/libGLcore.a:m_debug_vertex.o":  No
> symbols found
> (II) Module GLcore: vendor="The XFree86 Project"
> 	compiled for 4.3.0.1, module version = 1.0.0
> 	ABI class: XFree86 Server Extension, version 0.2

The instructions for installing the nvidia module told you to remove the 
"glcore" line in xfree's config file.  IIRC, nvidia (or at least OpenGL) will 
not work with this module loaded.

> (II) LoadModule: "nvidia"
> (WW) Warning, couldn't open module nvidia
> (II) UnloadModule: "nvidia"
> (EE) Failed to load module "nvidia" (module does not exist, 0)

This is from my xfree.log:

(II) LoadModule: "nvidia"
(II) Loading /usr/X11R6/lib/modules/drivers/nvidia_drv.o
(II) Module nvidia: vendor="NVIDIA Corporation"

The module its looking for IS NOT the kernel module, its looking for the XFree 
driver interface TO the kernel module.

There are 3 different modules involved with nvidia:

1) The nvidia kernel module, that has to be loaded before X can even start.  
If your system is setup correctly that may not be necessary as your kernel 
can auto-load modules itself if it knows enough about them.  In most cases 
though, people simply put 'nvidia' in their /etc/modules and have it loaded 
on boot-up.

2) The nvidia_drv module, which is part of the nvidia-glx package, which 
provides the Xfree interface to nvidia's kernel module.  The kernel module 
speaks to the video card, this driver module is for Xfree to talk to the 
kernel module.  This is the module being referred to as 'nvidia' in your 
xfree config file, NOT the kernel module, which has to already be loaded, or 
else THIS module will fail to initialize.

3) The nvidia glx module for accelerated OpenGL video.  Nvidia's module is 
also simply called "glx", the same as the xfree86 module, but the "vender" 
line will be different, that's why I know you're loading the wrong one now.  
This is also in the nvidia-glx package.  The nvidia-glx debian package is NOT 
optional!  :)  You have to have it was well as the kernel module, because it 
has the nvidia_drv module.  Its true that you can leave glx out of your xfree 
config if you don't want OpenGL, but you need Debian's nvidia-glx package 
installed anyway for the nvidia_drv module. (Nvidia's own installer installs 
all of this when you use it, not just the kernel module.  Debian has split 
them up, for some reason I don't understand.)

My suggestion:

1) Remove the glcore module reference from xfree's config (and maybe the v4l 
module too if you don't know why that's there either).  FWIW, my module 
section in my config only has this:

Load "dbe"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "speedo"

However, since you're doing the dual monitor magic trick (yes, I'm jealous), 
you may have to have other modules that I don't need, but I know some of the 
modules you are loading are optional on conventional setups.  Note that when 
you load the nvidia-glx package it will fix things so that the right glx 
module, nvidia's, will be loaded by the above reference.

This is the Debian packages I have loaded:

nvidia-glx				1.0.7174-3
nvidia-kernel-source		1.0.7174-3
nvidia-kernel-common	1.0.7174-1
nvidia-kernel-2.6.12-rc3	1.0.7174-3+10.00.Custom

The first 2 need to be explicitly selected by you, the 3rd is pulled in by 
dependencies, and the last one, the kernel module, is created by 
module-assistant or make-kpkg, from the earlier nvidia-kernel-source.  These 
4 are all you need to get nvidia working.

Clear as mud now?  :)



Reply to: