Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-04-10, 05:23 PM   #13
ant
A GeForced Ant
 
ant's Avatar
 
Join Date: Sep 2002
Location: An Ant Farm
Posts: 348
Post Re: insmod: error inserting './usr/src/nv/nvidia.ko and can't find my NVIDIA card?

Quote:
Originally Posted by danix View Post
Yes, sorry, GRUB 2 is different.

Edit /etc/default/grub and add the option to GRUB_CMDLINE_LINUX_DEFAULT. For example, if that line currently reads 'GRUB_CMDLINE_LINUX_DEFAULT="quiet"', change it to 'GRUB_CMDLINE_LINUX_DEFAULT="quiet nouveau.modeset=0"'.

You'll still need to run update-grub (or is it update-grub2 now?) after editing the file.

I would keep the line in blacklist.conf, it won't hurt anything.
OK, I did the changes and placed the blacklist.conf line back.

# nano /etc/default/grub
# nano /etc/modprobe.d/blacklist.conf
# update-grub
Generating grub.cfg ...
Found background image: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found linux image: /boot/vmlinuz-2.6.32-4-686
Found initrd image: /boot/initrd.img-2.6.32-4-686
done

I hope I used the right grub command!
# ls -all /usr/sbin/update-grub*
-rwxr-xr-x 1 root root 60 Dec 14 03:50 /usr/sbin/update-grub
-rwxr-xr-x 1 root root 35 Dec 14 03:50 /usr/sbin/update-grub2
# cat /usr/sbin/update-grub*
#!/bin/sh -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"
#!/bin/sh -e
exec update-grub "$@"


Since I am at work right now, I will reboot later since I want to see the screen for Grub2, text console (hope it is back to VGA again), and compile (don't think compiling's display works via SSH2; I could try if you think it will work).

I will post my results later tonight. Thanks again!
__________________
Ant @ The Ant Farm (http://antfarm.ma.cx) and Ant's Quality Foraged Links (http://aqfl.net).
ant is offline   Reply With Quote
Old 06-04-10, 05:41 PM   #14
Roman Horník
Master of this Fřrum
 
Roman Horník's Avatar
 
Join Date: Jun 2010
Location: Space → Milky Way → Solar System → Earth → North Hemisphere → Central Europe → Czech Republic → East Bohemia → Pardubice Region → Chrudim District → Seč → Peace Square 310
Posts: 7
Default Re: insmod: error inserting './usr/src/nv/nvidia.ko and can't find my NVIDIA card?

SOLVED! (but with older driver)

After I added the repository for Debian Experimental to the /etc/apt/sources.list, I found these following packages:
nvidia-glx (195.36)
nvidia-kernel-dkms

These packages I installed with kernel 2.6.32-5 (image+headers) and after reboot it works properly.
Try it!


My sources.list:
Code:
deb http://www.lamaresh.net/apt/ sid main
deb http://ftp.cz.debian.org/debian/ sid main non-free contrib
deb http://security.debian.org/ squeeze/updates non-free contrib main
deb-src http://security.debian.org/ squeeze/updates non-free contrib main
deb http://ftp.cz.debian.org/debian/ squeeze-proposed-updates non-free contrib main
deb-src http://ftp.cz.debian.org/debian/ squeeze-proposed-updates non-free contrib main
deb-src http://ftp.cz.debian.org/debian/ sid main non-free contrib
deb http://www.debian-multimedia.org/ sid main non-free
deb http://www.debian-multimedia.org/ experimental main
deb-src http://www.debian-multimedia.org/ sid main
deb http://deb.opera.com/opera-beta/ sid non-free
deb http://ppa.launchpad.net/bogdanb/ppa/ubuntu/ jaunty main
deb-src http://ppa.launchpad.net/bogdanb/ppa/ubuntu/ jaunty main
deb http://ppa.launchpad.net/xsisqox/ppa/ubuntu/ lucid main
deb-src http://ppa.launchpad.net/xsisqox/ppa/ubuntu/ lucid main
deb http://ftp.debian.org/debian experimental main
Roman Horník is offline   Reply With Quote
Old 06-04-10, 05:53 PM   #15
ant
A GeForced Ant
 
ant's Avatar
 
Join Date: Sep 2002
Location: An Ant Farm
Posts: 348
Default Re: insmod: error inserting './usr/src/nv/nvidia.ko and can't find my NVIDIA card?

Quote:
Originally Posted by Roman Horník View Post
SOLVED! (but with older driver)

After I added the repository for Debian Experimental to the /etc/apt/sources.list, I found these following packages:
nvidia-glx (195.36)
nvidia-kernel-dkms

These packages I installed with kernel 2.6.32-5 (image+headers) and after reboot it works properly.
Try it!


My sources.list:
Code:
deb http://www.lamaresh.net/apt/ sid main
deb http://ftp.cz.debian.org/debian/ sid main non-free contrib
deb http://security.debian.org/ squeeze/updates non-free contrib main
deb-src http://security.debian.org/ squeeze/updates non-free contrib main
deb http://ftp.cz.debian.org/debian/ squeeze-proposed-updates non-free contrib main
deb-src http://ftp.cz.debian.org/debian/ squeeze-proposed-updates non-free contrib main
deb-src http://ftp.cz.debian.org/debian/ sid main non-free contrib
deb http://www.debian-multimedia.org/ sid main non-free
deb http://www.debian-multimedia.org/ experimental main
deb-src http://www.debian-multimedia.org/ sid main
deb http://deb.opera.com/opera-beta/ sid non-free
deb http://ppa.launchpad.net/bogdanb/ppa/ubuntu/ jaunty main
deb-src http://ppa.launchpad.net/bogdanb/ppa/ubuntu/ jaunty main
deb http://ppa.launchpad.net/xsisqox/ppa/ubuntu/ lucid main
deb-src http://ppa.launchpad.net/xsisqox/ppa/ubuntu/ lucid main
deb http://ftp.debian.org/debian experimental main
So you basically used a compiled NVIDIA driver from Debian instead of compiling your own.

Hmm, I wonder if I can compile an older driver myself.
__________________
Ant @ The Ant Farm (http://antfarm.ma.cx) and Ant's Quality Foraged Links (http://aqfl.net).
ant is offline   Reply With Quote
Old 06-04-10, 06:07 PM   #16
Roman Horník
Master of this Fřrum
 
Roman Horník's Avatar
 
Join Date: Jun 2010
Location: Space → Milky Way → Solar System → Earth → North Hemisphere → Central Europe → Czech Republic → East Bohemia → Pardubice Region → Chrudim District → Seč → Peace Square 310
Posts: 7
Default Re: insmod: error inserting './usr/src/nv/nvidia.ko and can't find my NVIDIA card?

I don't think that this problem is affected by the driver version, I think that this problem is in the kernel (kernel patch).
Roman Horník is offline   Reply With Quote
Old 06-04-10, 06:37 PM   #17
danix
NVIDIA Corporation
 
danix's Avatar
 
Join Date: Feb 2010
Location: Santa Clara, CA
Posts: 237
Default Re: insmod: error inserting './usr/src/nv/nvidia.ko and can't find my NVIDIA card?

Roman, are you using the 2.6.32-5 kernel? I've just confirmed by installing 2.6.32-5 on my Debian/sid system (I had been booting my own kernel and hadn't noticed the 2.6.32-5 update) that Debian is indeed now including the nouveau driver and doing a KMS by default, which would lead to exactly the bug that Ant is describing. I also confirmed that adding "nouveau.modeset=0" to the kernel's boot options is sufficient.

Ant, the nvidia-installer will work over SSH fine.

Edit: I re-read Roman's post and saw that he is using 2.6.32-5. I'm sure the package he installed does something to disable Nouveau, since Nouveau is indeed included in Debian's 2.6.32-5 kernel.

Last edited by danix; 06-04-10 at 06:39 PM. Reason: Additional information
danix is offline   Reply With Quote
Old 06-04-10, 06:57 PM   #18
ant
A GeForced Ant
 
ant's Avatar
 
Join Date: Sep 2002
Location: An Ant Farm
Posts: 348
Default Re: insmod: error inserting './usr/src/nv/nvidia.ko and can't find my NVIDIA card?

Quote:
Originally Posted by danix View Post
Roman, are you using the 2.6.32-5 kernel? I've just confirmed by installing 2.6.32-5 on my Debian/sid system (I had been booting my own kernel and hadn't noticed the 2.6.32-5 update) that Debian is indeed now including the nouveau driver and doing a KMS by default, which would lead to exactly the bug that Ant is describing. I also confirmed that adding "nouveau.modeset=0" to the kernel's boot options is sufficient.

Ant, the nvidia-installer will work over SSH fine.

Edit: I re-read Roman's post and saw that he is using 2.6.32-5. I'm sure the package he installed does something to disable Nouveau, since Nouveau is indeed included in Debian's 2.6.32-5 kernel.
Thanks Danix. Woohoo! It worked.

So what will future NVIDIA drivers do? Will they disable this Noveau? Will we have to use this trick or will be able to do the old fashion way (will have to undo changes)?
__________________
Ant @ The Ant Farm (http://antfarm.ma.cx) and Ant's Quality Foraged Links (http://aqfl.net).
ant is offline   Reply With Quote
Old 06-04-10, 07:18 PM   #19
Roman Horník
Master of this Fřrum
 
Roman Horník's Avatar
 
Join Date: Jun 2010
Location: Space → Milky Way → Solar System → Earth → North Hemisphere → Central Europe → Czech Republic → East Bohemia → Pardubice Region → Chrudim District → Seč → Peace Square 310
Posts: 7
Default Re: insmod: error inserting './usr/src/nv/nvidia.ko and can't find my NVIDIA card?

Quote:
Originally Posted by danix View Post
Roman, are you using the 2.6.32-5 kernel? I've just confirmed by installing 2.6.32-5 on my Debian/sid system (I had been booting my own kernel and hadn't noticed the 2.6.32-5 update) that Debian is indeed now including the nouveau driver and doing a KMS by default, which would lead to exactly the bug that Ant is describing. I also confirmed that adding "nouveau.modeset=0" to the kernel's boot options is sufficient.

Ant, the nvidia-installer will work over SSH fine.

Edit: I re-read Roman's post and saw that he is using 2.6.32-5. I'm sure the package he installed does something to disable Nouveau, since Nouveau is indeed included in Debian's 2.6.32-5 kernel.
Hmmm... it might be best to compile own kernel without Nouveau (and other unnecessary modules).
Roman Horník is offline   Reply With Quote
Old 06-04-10, 07:29 PM   #20
ant
A GeForced Ant
 
ant's Avatar
 
Join Date: Sep 2002
Location: An Ant Farm
Posts: 348
Default Re: insmod: error inserting './usr/src/nv/nvidia.ko and can't find my NVIDIA card?

Quote:
Originally Posted by Roman Horník View Post
Hmmm... it might be best to compile own kernel without Nouveau (and other unnecessary modules).
Yeah, but tedious and confusing though. I used to do that during Red Hat Linux 7.x days. Too much work. I don't have the free time to do that anymore.
__________________
Ant @ The Ant Farm (http://antfarm.ma.cx) and Ant's Quality Foraged Links (http://aqfl.net).
ant is offline   Reply With Quote

Old 06-05-10, 09:11 AM   #21
ant
A GeForced Ant
 
ant's Avatar
 
Join Date: Sep 2002
Location: An Ant Farm
Posts: 348
Default Re: insmod: error inserting './usr/src/nv/nvidia.ko and can't find my NVIDIA card?

According to http://packages.debian.org/changelog...2-15/changelog :

"linux-2.6 (2.6.32-12) unstable; urgency=low" section said:
"Re-enable nouveau autoloading.

"linux-2.6 (2.6.32-10) unstable; urgency=low" section said:
drm: Apply all changes from 2.6.33 and 2.6.33.1:
- Add nouveau driver
__________________
Ant @ The Ant Farm (http://antfarm.ma.cx) and Ant's Quality Foraged Links (http://aqfl.net).
ant is offline   Reply With Quote
Old 06-05-10, 10:12 AM   #22
dk75
Registered User
 
Join Date: Jan 2009
Posts: 171
Default Re: insmod: error inserting './usr/src/nv/nvidia.ko and can't find my NVIDIA card?

as for initrd image and nouveau sitting there wouldn't generating new initrd with nouveau blackisted solve the problem also?

I'm using 2.6.32 Ubuntu test kernel (backport from U10.04) with U9.10 and I've struck same problem but I've got it around by setting "modeset=0" in kernel boot (GRUB2). But I've read that it won't work anymore with U10.04 and one must do blacklisting nouveau instead.

And as for nVidia solution then I've read here that nVidia don't plan to do it's driver to be KMS capable (but Ubuntu devs done it themselves for example).
__________________
  • Linux Debian Sid x86_64/ 3.2.0
  • Lenovo T61p
  • NVIDIA driver 295.33
  • Xorg/XServer 7.6+12/1.11.4
  • GNOME 3.2.2
dk75 is offline   Reply With Quote
Old 06-06-10, 10:20 AM   #23
Roman Horník
Master of this Fřrum
 
Roman Horník's Avatar
 
Join Date: Jun 2010
Location: Space → Milky Way → Solar System → Earth → North Hemisphere → Central Europe → Czech Republic → East Bohemia → Pardubice Region → Chrudim District → Seč → Peace Square 310
Posts: 7
Default Re: insmod: error inserting './usr/src/nv/nvidia.ko and can't find my NVIDIA card?

Hey,

I have just successfully installed the driver 256.29 beta on 2.6.32-5-686!

It could be due to the fact that I had installed the driver nvidia-glx 195.36 at first and then (after reboot) 256.29.

Now everything works excellently!
Roman Horník is offline   Reply With Quote
Old 06-13-10, 12:00 PM   #24
ant
A GeForced Ant
 
ant's Avatar
 
Join Date: Sep 2002
Location: An Ant Farm
Posts: 348
Question Re: insmod: error inserting './usr/src/nv/nvidia.ko and can't find my NVIDIA card?

Quote:
Originally Posted by ant View Post
Thanks Danix. Woohoo! It worked.

So what will future NVIDIA drivers do? Will they disable this Noveau? Will we have to use this trick or will be able to do the old fashion way (will have to undo changes)?
Hi again. I saw http://us.download.nvidia.com/XFree8...36.31-pkg1.run was released, but I didn't see anything about Noveau fixes in Debian. Do I assume I still have to use the same tricks?

If so, then will we have to do this forever?
__________________
Ant @ The Ant Farm (http://antfarm.ma.cx) and Ant's Quality Foraged Links (http://aqfl.net).
ant is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:25 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.