LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-25-2007, 02:46 PM   #1
sureshot324
Member
 
Registered: Mar 2004
Posts: 49

Rep: Reputation: 15
Nvidia module not loading with new kernel


After apt-get updated my kernel to 2.6.18-5 from 2.6.18-4, I couldn't start xserver anymore. When I type startx, I get an error that starts with 'FATAL: Module nvidia not found.'

I get the same error when I run modprobe nvidia. I did add nvidia to /etc/modules.

I did a search in /lib/modules for *nvidia* and I found the problem. /lib/modules/2.6.18-5/nvidia/nvidia.ko does not exist. However, it does exist in the modules folder for 2.6.18-4. I booted up using the 2.5.18-4 kernel and sure enough xserver loaded fine.

So I need to add the nvidia module to the 2.6.18-5 modules files. I tried removing and adding the nvidia-glx-legacy (it's a geforce 1) with apt-get but that didn't work. I even tried copying the nvidia.ko file from the 2.6.18-4 folder to the 2.6.18-5, but as I expected that didn't work either.

Can anyone tell me how I can get the nvidia module working with the 2.6.18-5 kernel?

Last edited by sureshot324; 09-25-2007 at 02:50 PM.
 
Old 09-25-2007, 02:55 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Are you using Debian (or a Debian derived distro)? If so, apt-get install module-assistant. Then change to single user mode (init 1 from a root shell). Then run
Code:
m-a update
m-a prepare
m-a a-i nvidia
init 2 (or init 5, some distros use 5 as multi-user gui mode)
m-a is a symlink to the module-assistant package. What these commands do is download a list of available module source code, then prepare the code for compile (i.e. make sure the right dependencies are installed), the a-i (automatically install) the nvidia kernel module.
 
Old 09-25-2007, 03:14 PM   #3
sureshot324
Member
 
Registered: Mar 2004
Posts: 49

Original Poster
Rep: Reputation: 15
I did that, and now I get a different error when running startx:

FATAL: Error inserting nvidia (/lib/modules/2.6.18-5-686/nvidia/nvidia.ko): No such device.

Does this mean it's not finding my video card? I do now have the nvidia.ko file in the 1.6.18-5 modules folder.

I also have some more general questions. Why is a package like module assistant necessary? Shouldn't apt-get resolve all the dependencies and make sure the correct modules are installed? Also it seems like module assistant is compiling the nvidia module from source. Why can't it use a precompiled module like most other linux packages you install with apt-get?
 
Old 09-25-2007, 03:21 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Sorry, I typically have used module assistant because I was running testing. Sometimes the binary wasn't recompiled and placed in the repositories in a timely manner. So you'd have to rebuild it from source yourself or use the nvidia installer. I think module-assistant will just download the binary if it exists in the repositories.

Not sure what that error mean. Were there any other errors on the screen during the compile? Maybe look in /var/log for module-assistant or nvidia logs?

By the way, are you using Debian?
 
Old 09-25-2007, 03:26 PM   #5
sureshot324
Member
 
Registered: Mar 2004
Posts: 49

Original Poster
Rep: Reputation: 15
Thanks for your help so far. I am using debian etch. Here is what follows the error I posted before:

(EE) NVIDIA(0): Failed to load the NVIDIA kernel module!
(EE) NVIDIA(0): *** Aborting ***
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found
 
Old 09-25-2007, 03:51 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Is the module installed? lsmod | grep nvidia

Edit: sorry, duh, it says failed to load...

Try dpkg-reconfigure xserver-xorg
 
Old 09-25-2007, 03:54 PM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Oh yeah, did you reboot into the 2.6.18-5 kernel and then run the module-assistant stuff? Or did you run it from the working 2.6.18-4 kernel?
 
  


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
2in1 problem thread. (nvidia kernel module vs X module, and strange workbug phenom) htedrom Linux - Software 15 10-04-2007 10:55 PM
Loading nvidia kernel module fails in Gentoo Alkibiades Linux - Software 7 03-24-2007 05:37 PM
nvidia driver 8762 kernel module mismatch x module openfun Ubuntu 5 06-27-2006 10:02 PM
nvidia module not loading Wartz Linux - Hardware 3 02-09-2005 06:31 AM
Loading nVidia Module spaaarky21 Fedora 5 12-11-2004 02:18 PM

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

All times are GMT -5. The time now is 10:25 AM.

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