[nvidia-glx-legacy] nvidia module won't load with 2.6.22-10 kernel (gutsy)

Bug #137432 reported by Stephan Bourduas
4
Affects Status Importance Assigned to Milestone
linux-restricted-modules-2.6.22 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: nvidia-glx-legacy

The nvidia module won't load with the 2.6.22-10 kernel. I just get an error message like "error inserting module" when typing 'modprobe nvidia'. The kernel version I'm using is linux-image-2.6.22-10. The module works properly for the 2.6.20 kernels.

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Thank you for your bug report.

Stephan:
Could you attach your
/var/log/Xorg.0.log
file from a failed run along with the output of
dmesg > dmesg.txt
(which will make a file called dmesg.txt) and
dpkg -l *nvidia* | grep ii
?

Changed in linux-restricted-modules-2.6.22:
status: New → Incomplete
Revision history for this message
Stephan Bourduas (stephan-bourduas) wrote :

$ dpkg -l *nvidia* | grep ii
ii nvidia-glx-legacy 1.0.7185+2.6.22.3-10.1 NVIDIA binary XFree86 4.x/X.Org 'legacy' dri
ii nvidia-kernel-common 20051028+1ubuntu7 NVIDIA binary kernel module common files

I'm logged in right now without the nvidia driver. If I type 'modprobe nvidia', I get the following:

$ sudo modprobe -v nvidia
install /sbin/lrm-video nvidia
FATAL: Error running install command for nvidia

Revision history for this message
Stephan Bourduas (stephan-bourduas) wrote :
Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Stephan:
Interestingly enough one of your graphics card appears to be a GeForce4 MX 440. Consequently you will be better off using the nvidia-glx (96xx) driver (NVIDIA won't support older drivers on that hardware). Does switching to nvidia-glx make things any better?

Additionally can you indicate whether you have ever manually installed binary drivers in the past or followed any guides on installing drivers?

Revision history for this message
Stephan Bourduas (stephan-bourduas) wrote :

> Interestingly enough one of your graphics card appears to be a GeForce4 MX 440.
> Consequently you will be better off using the nvidia-glx (96xx) driver (NVIDIA won't support older drivers on that hardware).

The last time I checked the nvidia site, I read that the GeForce4 MX 440 needed the legacy drivers. Check out this page:
http://www.nvidia.com/page/geforce4.html

However, I just went through the NVidia "wizard" to select my driver, and it took me here:
http://www.nvidia.com/object/linux_display_ia32_1.0-9755.html

Strangely, the supported products list (http://www.nvidia.com/object/IO_18897.html) doesn't show the GeForce 4 MX 440. Maybe Nvidia have moved the MX440 from the legacy drivers package to the normal one?

> Does switching to nvidia-glx make things any better?

I'm not in a position to try it right now, but will do it later and get back to you.

> Additionally can you indicate whether you have ever manually installed binary drivers in the past or followed any guides on installing drivers?

My system is a brand new install from about 2 weeks ago. I haven't compiled any custom kernels or modules. I had originally installed Feisty and then upgraded to Gutsy, using the stock kernels and drivers.

Revision history for this message
Stephan Bourduas (stephan-bourduas) wrote :

I installed nvidia-glx for the 2.6.22 kernel and I got the same error. The 'modprobe nvidia' just refuses to work. I downgraded it to 2.6.20.5-16, and it works properly. So as it stands, nvidia-glx and nvidia-glx-legacy don't seem to work for the 2.6.22 kernel and my GeForce 4 MX 440 card.

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Stephan:
With regard to the phrase "legacy" there's "new legacy" (cards recently made legacy and roughly everything less than a Geforce 5000 but newer than a Geforce 2), and there's "original" legacy (cards that were made legacy a few years ago, roughly everything before a Geforce 2). "Helpfull"y NVIDIA call both sets of cards legacy despite the fact the last usable driver varies depending on whether it's "original legacy" or "new legacy". See http://us.download.nvidia.com/XFree86/Linux-x86/1.0-9755/README/appendix-a.html .

Thanks for the update. Can you post the output of:
sudo sh -x /sbin/lrm-video nvidia
?

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Additionally can you post the output of
uname -a
dpkg -l linux\* | grep ii | tr -s " " | cut -d" " -f2-3
?

Revision history for this message
Stephan Bourduas (stephan-bourduas) wrote :

> Thanks for the update. Can you post the output of:
> sudo sh -x /sbin/lrm-video nvidia

$ sudo sh -x /sbin/lrm-video nvidia
+ PATH=/sbin:/bin
+ MODULE=nvidia
+ shift
+ [ nvidia = nvidia ]
+ [ -e /lib/linux-restricted-modules/.nvidia_legacy_installed ]
+ [ -e /lib/linux-restricted-modules/.nvidia_new_installed ]
+ XORG=nvidia
+ cat /etc/X11/xorg.conf
+ sed -n -e /^[ \t]*section[ \\t]*"device"/I,/^[ \t]*endsection/I{/^[ \t]*driver[ \t]*/I{s/^[ \t]*driver[ \t]*"*//I;s/"*[ \t]*$//;p}}
+ grep -q -w nvidia
+ modprobe --ignore-install -Qb nvidia

> Additionally can you post the output of
> uname -a
> dpkg -l linux\* | grep ii | tr -s " " | cut -d" " -f2-3

$ uname -a
Linux atlas 2.6.22-10-386 #1 Wed Aug 22 07:43:24 GMT 2007 i686 GNU/Linux

$ dpkg -l linux\* | grep ii | tr -s " " | cut -d" " -f2-3
linux-generic 2.6.22.10.11
linux-headers-2.6.20-15 2.6.20-15.27
linux-headers-2.6.20-15-generic 2.6.20-15.27
linux-headers-2.6.22-10 2.6.22-10.30
linux-headers-2.6.22-10-generic 2.6.22-10.30
linux-headers-generic 2.6.22.10.11
linux-image-2.6.20-15-386 2.6.20-15.27
linux-image-2.6.20-15-generic 2.6.20-15.27
linux-image-2.6.20-16-386 2.6.20-16.31
linux-image-2.6.20-16-generic 2.6.20-16.31
linux-image-2.6.22-10-386 2.6.22-10.30
linux-image-2.6.22-10-generic 2.6.22-10.30
linux-image-386 2.6.22.10.11
linux-image-generic 2.6.22.10.11
linux-kernel-devel 2.6.22-10.30
linux-libc-dev 2.6.22-10.30
linux-restricted-modules-2.6.20-15-386 2.6.20.5-15.20
linux-restricted-modules-2.6.20-16-386 2.6.20.5-16.29
linux-restricted-modules-2.6.22-10-386 2.6.22.3-10.1
linux-restricted-modules-2.6.22-10-generic 2.6.22.3-10.1
linux-restricted-modules-common 2.6.22.3-10.1
linux-restricted-modules-generic 2.6.22.10.11
linux-sound-base 1.0.14-1ubuntu1
linux-source 2.6.22.10.11
linux-source-2.6.22 2.6.22-10.30
linux-ubuntu-modules-2.6.22-10-386 2.6.22-10.25
linux-ubuntu-modules-2.6.22-10-generic 2.6.22-10.25

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Stephan:
Can you boot the 2.6.22-generic kernel and check whether
sudo modprobe nvidia
complains. If it does can you run
sudo depmod
sudo sh -x /sbin/lrm-video nvidia
dmesg | tail
?

Revision history for this message
Stephan Bourduas (stephan-bourduas) wrote :

$ uname -a
Linux atlas 2.6.22-10-generic #1 SMP Wed Aug 22 08:11:52 GMT 2007 i686 GNU/Linux

$ sudo modprobe nvidia
FATAL: Error running install command for nvidia

$ sudo depmod
$ sudo sh -x /sbin/lrm-video nvidia
+ PATH=/sbin:/bin
+ MODULE=nvidia
+ shift
+ [ nvidia = nvidia ]
+ [ -e /lib/linux-restricted-modules/.nvidia_legacy_installed ]
+ [ -e /lib/linux-restricted-modules/.nvidia_new_installed ]
+ XORG=nvidia
+ cat /etc/X11/xorg.conf
+ sed -n -e /^[ \t]*section[ \\t]*"device"/I,/^[ \t]*endsection/I{/^[ \t]*driver[ \t]*/I{s/^[ \t]*driver[ \t]*"*//I;s/"*[ \t]*$//;p}}
+ grep -q -w nvidia
+ modprobe --ignore-install -Qb nvidia

$ dmesg | tail
[ 126.405411] Bluetooth: L2CAP ver 2.8
[ 126.405423] Bluetooth: L2CAP socket layer initialized
[ 126.419087] Bluetooth: RFCOMM socket layer initialized
[ 126.419289] Bluetooth: RFCOMM TTY layer initialized
[ 126.419296] Bluetooth: RFCOMM ver 1.8
[ 316.515968] nvidia: module license 'NVIDIA' taints kernel.
[ 316.790795] PCI: Enabling device 0000:01:00.0 (0004 -> 0006)
[ 316.791659] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
[ 316.791672] ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
[ 316.792956] NVRM: loading NVIDIA Linux x86 Kernel Module 1.0-9639 Mon Apr 16 20:20:06 PDT 2007

So it seems to be loading the module properly for the generic kernel.

Revision history for this message
Stephan Bourduas (stephan-bourduas) wrote :

I just repeated the above with the 386 kernel, and got the same results:

$ uname -a
Linux atlas 2.6.22-10-386 #1 Wed Aug 22 07:43:24 GMT 2007 i686 GNU/Linux

$ sudo modprobe nvidia
FATAL: Error running install command for nvidia

$ sudo depmod
$ sudo sh -x /sbin/lrm-video nvidia
+ PATH=/sbin:/bin
+ MODULE=nvidia
+ shift
+ [ nvidia = nvidia ]
+ [ -e /lib/linux-restricted-modules/.nvidia_legacy_installed ]
+ [ -e /lib/linux-restricted-modules/.nvidia_new_installed ]
+ XORG=nvidia
+ cat /etc/X11/xorg.conf
+ sed -n -e /^[ \t]*section[ \\t]*"device"/I,/^[ \t]*endsection/I{/^[ \t]*driver[ \t]*/I{s/^[ \t]*driver[ \t]*"*//I;s/"*[ \t]*$//;p}}
+ grep -q -w nvidia
+ modprobe --ignore-install -Qb nvidia

$ dmesg | tail
[ 114.725260] Bluetooth: L2CAP ver 2.8
[ 114.725274] Bluetooth: L2CAP socket layer initialized
[ 114.751551] Bluetooth: RFCOMM socket layer initialized
[ 114.751988] Bluetooth: RFCOMM TTY layer initialized
[ 114.751996] Bluetooth: RFCOMM ver 1.8
[ 300.255920] nvidia: module license 'NVIDIA' taints kernel.
[ 300.529987] PCI: Enabling device 0000:01:00.0 (0004 -> 0006)
[ 300.530806] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
[ 300.530817] ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
[ 300.531991] NVRM: loading NVIDIA Linux x86 Kernel Module 1.0-9639 Mon Apr 16 20:20:06 PDT 2007

Is this a bug with the driver installation procedure?

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Stephen:
Can you indicate whether
sudo modprobe nvidia
just starts complaining in the generic kernel when you reboot? (don't run depmod first)

Revision history for this message
Stephan Bourduas (stephan-bourduas) wrote :

When I first booted into the 2.6.22 generic kernel, I tried "modprobe nvidia" and had the same error. Once I ran depmod, I was able to load the nvidia module and restart X properly.

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Stephen:
Just so I'm clear, you are saying every single time you boot your computer into the same kernel you will be unable to do
sudo modprobe nvidia
without it failing until you use depmod first?

Revision history for this message
Stephan Bourduas (stephan-bourduas) wrote :

I just finished upgrading my kernel to 2.6.22.11.12 and I could not get nvidia to load no matter what I did. I tried depmod like before, and it didn't work. I then did:

$ sudo apt-get install --reinstall nvidia-glx
$ sudo modprobe nvidia

to no avail. Just to be sure, I tried depmod again, which resulted in the same error as before.

I then booted into the 2.6.22.10 kernel and the nvidia module loaded fine, without the need for depmod:
$ uname -a
Linux atlas 2.6.22-10-386 #1 Wed Aug 22 07:43:24 GMT 2007 i686 GNU/Linux

$ lsmod | grep nv
nvidia 4714036 22
i2c_core 25104 1 nvidia
agpgart 33584 2 nvidia,intel_agp

$ dmesg | grep -i nvidia
[ 53.241245] nvidia: module license 'NVIDIA' taints kernel.
[ 53.524608] NVRM: loading NVIDIA Linux x86 Kernel Module 1.0-9639 Mon Apr 16 20:20:06 PDT 2007

$ dpkg -l nvidia-glx | grep ^ii
ii nvidia-glx 1:1.0.9639+2.6.22.3-11.3 NVIDIA binary XFree86 4.x/X.Org driver

So it seems that the nvidia-glx works properly for the -10 kernel, but not the -11.

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Can you post the output of
dpkg -l linux-restricted-modules-\* | grep ii | tr -s " " | cut -d" " -f2-3
dpkg -l linux-image\* | grep ii | tr -s " " | cut -d" " -f2-3
sudo sh -x /sbin/lrm-video nvidia
sudo modprobe --ignore-install nvidia
grep linux-restricted /var/log/dpkg.log*
?

Revision history for this message
jdm64 (jdm64) wrote :

I seem to be having the same problem. I reported this as:
bug #138933: [Gusty] Broken Nvidia driver after upgrade to Gusty (7.10)

What might be the problem is a hidden file in /lib/linux-restricted-modules/ try running:
sudo rm /lib/linux-restricted-modules/.nvidia*

Also see these bug reports for more information:
Bug #106217: Hidden file does not get removed when switching from nvidia-glx-new/nvidia-glx-legacy to nvidia-glx causing X not to start due to mismatch of versions
Bug #130799: Gutsy nvidia-glx no gpu or API mismatch

Revision history for this message
Stephan Bourduas (stephan-bourduas) wrote :

Sorry about the late reply. I don't have the time at the moment to mess around with my machine. I'm currently running the working 2.6.22.10 kernel:

$ uname -a
Linux atlas 2.6.22-10-386 #1 Wed Aug 22 07:43:24 GMT 2007 i686 GNU/Linux

$ dpkg -l linux-restricted-modules-\* | grep ii | tr -s " " | cut -d" " -f2-3
linux-restricted-modules-2.6.20-15-386 2.6.20.5-15.20
linux-restricted-modules-2.6.20-16-386 2.6.20.5-16.29
linux-restricted-modules-2.6.22-10-386 2.6.22.3-10.1
linux-restricted-modules-2.6.22-10-generic 2.6.22.3-10.1
linux-restricted-modules-common 2.6.22.3-11.3

$ dpkg -l linux-image\* | grep ii | tr -s " " | cut -d" " -f2-3
linux-image-2.6.20-15-386 2.6.20-15.27
linux-image-2.6.20-15-generic 2.6.20-15.27
linux-image-2.6.20-16-386 2.6.20-16.31
linux-image-2.6.20-16-generic 2.6.20-16.31
linux-image-2.6.22-10-386 2.6.22-10.30
linux-image-2.6.22-10-generic 2.6.22-10.30
linux-image-2.6.22-11-386 2.6.22-11.32
linux-image-386 2.6.22.11.12

$ grep linux-restricted /var/log/dpkg.log* > /tmp/linux-restricted.log

I'll post the modprobe stuff when I reboot into the 2.6.22-11.12 kernel. Maybe the problem will be fixed by now.

> What might be the problem is a hidden file in /lib/linux-restricted-modules/ try running:
> sudo rm /lib/linux-restricted-modules/.nvidia*

jmd64: I have no such files on my system:

$ ls -a1 /lib/linux-restricted-modules/
.
..
2.6.20-15-386
2.6.20-16-386
2.6.22-10-386
2.6.22-10-generic

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Does it work if you purge the -386 kernel and only leave -generic of the latest version?

Revision history for this message
Michael Lustfield (michaellustfield) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New".

If you can confirm that bug bug has been resolved in Intrepid, please let us know if we can set the status to "Fix Released"

Thanks again!

Changed in linux-restricted-modules-2.6.22:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.