Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.