LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-14-2007, 09:47 AM   #1
marius311
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
NVIDIA fails to load after upgrade to 2.6.22


I just compiled and installed the new kernel (2.6.22), but when try to boot into it, X dies telling me that it failed to load the nvidia module. If I try to do modprobe nvidia I get the same message. Here's an excerpt from the X log file:

Quote:
(II) Setting vga for screen 0.
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "MetaModes" "DFP: 1680x1050 +0+0"
(**) NVIDIA(0): Option "AddARGBGLXVisuals" "True"
(**) NVIDIA(0): Enabling RENDER acceleration
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) NVIDIA(0): enabled.
(EE) NVIDIA(0): Failed to load the NVIDIA kernel module!
(EE) NVIDIA(0): *** Aborting ***
(II) UnloadModule: "nvidia"
(II) UnloadModule: "ramdac"
(II) UnloadModule: "fb"
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found
And now my 2.6.20-16 kernel has the same problem. Fortunately I still had a 2.6.20-15 which works. What was weird was that when I went into the older one, under Ubuntu "Restricted Drivers", the nvidia drivers were disabled. I enabled and when I rebooted into the old kernel, I had nvidia, but the other kernels still dont work.

Im not too familiar with this. I think I understand how modules work, but is the nvidia driver specific to a certain kernel? Do I need to get a newer version or something? Thanks for any help.
 
Old 09-14-2007, 11:00 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Closed source modules are kernel specific ... since you compiled the new kernel instead of using aptitude, the module did not get upgraded automatically.

The nv module should operate your card.

It is not unusual for a kernel update to break proprietary drivers. For this reason, there is a regular request for a binary API in linux, which is always rejected.

nvdia are usually pretty good at staying current though.

Last edited by Simon Bridge; 09-14-2007 at 11:06 AM.
 
Old 09-14-2007, 11:33 AM   #3
blackrose
LQ Newbie
 
Registered: Jul 2003
Location: Northern Virginia
Distribution: RedHat 9
Posts: 9

Rep: Reputation: 0
All you need to do is rebuild your nvidia module. The module is built off of a specific set of kernel headers and such; if you do anything with your kernel (even, I think, just re-compiling the one you have) you need to re-build your nvidia module for it to load right.
 
Old 09-14-2007, 11:51 AM   #4
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
I've had the same problem in the past, and where I found the solution was in a tutorial by Ubuntu expert Alberto Milone, whose website is at http://albertomilone.com/index.html

Look up the links to Nvidia problem-solving there and I believe you will be on your way to success.
 
Old 09-14-2007, 12:18 PM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You mean, you read his guide:
http://albertomilone.com/latest_nvidia_udsf_feisty.html
... where he says: "Every time you change or upgrade your kernel you will have to reinstall the Nvidia driver, no matter which method you used to install the driver."
???

The guide has two "method 1"'s ... but the author also provides "envy", which I have been hearing nice things about.
 
Old 09-14-2007, 12:22 PM   #6
bryantrv
Member
 
Registered: Jan 2005
Location: DeLand, Florida US
Distribution: Debian Etch
Posts: 91

Rep: Reputation: 15
Another vote for Envy.
 
Old 09-14-2007, 03:10 PM   #7
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Envy is what I used, and it worked instantly and I had tears in my eyes because I'd been struggling for three or four hours to try to get that card to work (again).

I definitely vote for Envy.

But I'm done "upgrading" my kernel indefinitely because every time I do something else fails.
 
Old 09-15-2007, 01:36 PM   #8
marius311
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Yes! Envy did it. Thanks for the help.

And the new kernel fixed the one thing I'd hoped it would, which was that every time I unplugged my laptop from the wall while it was running, my processor clocks down to save power, but linux I guess didn't "notice" and so my clock, music, and videos would just run slower. Anyway, problem solved, maybe it has something to do with the tickless timer thing, either way I'm happy.
 
Old 09-15-2007, 01:48 PM   #9
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
I'm glad you solved two problems -- getting the Nvidia driver to work, and the timing problem. Thanks for reporting!
 
Old 09-15-2007, 09:57 PM   #10
ericlpearl
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by marius311 View Post
I just compiled and installed the new kernel (2.6.22), but when try to boot into it, X dies telling me that it failed to load the nvidia module. If I try to do modprobe nvidia I get the same message. Here's an excerpt from the X log file:



And now my 2.6.20-16 kernel has the same problem. Fortunately I still had a 2.6.20-15 which works. What was weird was that when I went into the older one, under Ubuntu "Restricted Drivers", the nvidia drivers were disabled. I enabled and when I rebooted into the old kernel, I had nvidia, but the other kernels still dont work.

Im not too familiar with this. I think I understand how modules work, but is the nvidia driver specific to a certain kernel? Do I need to get a newer version or something? Thanks for any help.
The nvidia driver matches the kernel version with the modules for the driver. These modules are found in /lib/modules. In my case I have 2.6.18.8-0.5-default as my kernel version and
drwxr-xr-x 3 root root 72 2007-06-21 16:32 2.6.18.2-34-default
drwxr-xr-x 4 root root 504 2007-07-20 22:06 2.6.18.8-0.3-default
drwxr-xr-x 4 root root 560 2007-09-02 22:55 2.6.18.8-0.5-default
are the module directories even showing the previous version for Opensuse 10.2. The latest one matches my kernel version. If you recompile a new version of the kernel then the matching modules don't exist yet for the nvidia drivers until you rerun the nvidia.....run file again as root which will create a new module directory in /lib/modules to match the latest kernel version. Done it lots of times and works every time though a bit of a bother because X has to be shut down. In your case it didn't even start. Nvidia recompiles against the newer include files that come with the source of the newer kernel.

Have fun.
 
Old 09-17-2007, 10:05 AM   #11
bowkomor
LQ Newbie
 
Registered: Oct 2006
Location: Luxembourg
Distribution: Ubuntu & RedHat/CentOS
Posts: 10

Rep: Reputation: 0
my 5 cents...

Hi,

I had the same issue. I upgraded the feisty kernel from 2.6.16 to 2.6.22 because I hope it would solve an issue with an SATA LG CD/DVD player/burner (which it did ).
I have a nvidia graphics card and used the binary package that they (NVIDIA ) provide on their website. Just booted the new kernel in a terminal (by booting to run level 3). Installed the package again, rebooted and done.

Worked really well for me and it don't mind to redo it every time I install a new kernel. It's not like I'm installing new kernels every day.
 
Old 09-20-2007, 09:14 AM   #12
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Just booted the new kernel in a terminal (by booting to run level 3). Installed the package again, rebooted and done.
Which is fine for most people until they change graphics cards. You state that this is feisty, how did you get it to boot to rl3?

Did you know that Feisty has packages for nvidia which will automatically update with your kernel? (Provided you use the package manager.)
 
Old 09-24-2007, 06:30 AM   #13
bowkomor
LQ Newbie
 
Registered: Oct 2006
Location: Luxembourg
Distribution: Ubuntu & RedHat/CentOS
Posts: 10

Rep: Reputation: 0
You're right, ubuntu doesn't have a runlevel 3. What I meant is booting to a console without X. In ubuntu this is runlevel 1 (single user mode).
I'm sorry, probably too used to runlevel 3 in other distros. I don't understand anyway why Ubuntu has changed this. Anyone?
In all other distros I know, basically AFAIK it has always been like that: rl 3 = full user mode without X, rl5 = full user mode with X. I ignore which good reason Canonical has to change this standard behavior.
Anyway,
Ubuntu has only 2 runlevels (other than 0 and 6): 1 and 2.
You can boot Ubuntu into a console by doing the following:
1. Press ESC when system boots, to enable the grub menu
2. select the kernel that you want to boot using the arrow keys
3. Press 'e' to edit the command
4. Go down one line, to the line that starts with "kernel ...."
5. Press 'e' to edit
6. remove 'quiet' and 'splash' (optional) and add 'single' (no quotes, of course)
7. Press ENTER
8. Press 'b' to boot

For the second question, I know that Ubuntu has packages that provide nvidia packages, but:
1. they didn't work for me (the 'nv' driver in the xorg.conf that is), so I (am used to ) run of to the nvidia website to download the latest driver.
2. I had to install a custom kernel (2.6.22-6, IIRC) in order to get my SATA DVD burner to be recognised.
3. I had trouble with my firewire card, or more precisely the dv1394 kernel module, which magically fixed itself with the newer kernel.
(I needed my dv1394 kernel module to create a raw1394 device in order to be able to use Kino with my camcorder. Apparently there is some "disagreement" between the kernel guys and the video editing guys about the raw device being a security issue)
BTW, I compiled Kino myself as well, because I found version 1.1.1 much better than 0.9.2.
 
Old 09-25-2007, 01:29 AM   #14
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
1. they didn't work for me (the 'nv' driver in the xorg.conf that is), so I (am used to ) run of to the nvidia website to download the latest driver.
No nononono ... ubuntu has the nvidia drivers in repo, properly packaged. Feisty has a tool for installing them:

System > Administration > Restricted Drivers Manager

The "latest driver" is the wrong one, unless you have a recent card. Check the supported cards list.

Have a look at:
http://ubuntuguide.org/wiki/Ubuntu_Feisty
 
Old 09-26-2007, 02:01 AM   #15
bowkomor
LQ Newbie
 
Registered: Oct 2006
Location: Luxembourg
Distribution: Ubuntu & RedHat/CentOS
Posts: 10

Rep: Reputation: 0
IIRC, whenever I tried it I got a "Your hardware doesn't require any restricted drivers" message and it all stops there.
Admitted, I didn't try to install the package "by hand" (via apt-get).
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia module fails after upgrade to xorg coyopil Debian 2 06-04-2006 06:40 AM
Tried To Install Nvidia Drivers - Now X fails to load Fillado Mandriva 6 02-15-2005 04:27 PM
NVidia driver will not load after kernel upgrade Ptrs!OP Linux - Hardware 10 02-06-2005 05:53 AM
nvidia installer fails to create nvidia module rooman Linux - Software 3 10-04-2004 03:39 AM
SOLVED: nVidia fails to load GLX library Ed-MtnBiker Fedora 0 03-26-2004 04:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration