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-16-2008, 12:21 PM   #1
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131

Rep: Reputation: 19
Unhappy different kernel, no nvidia driver. HELP!


i have ubuntu 8.04 and i have 3 kernels installed: generic, rtai and multimedia. on the generic kerne, the 3d nvidia driver works fine, but on the other kernels it refuses to work, working in low res mode with the vesa driver. does anyone know of a solution where the 3d driver will work on all/any kernels on my box. thanks in advance

james waples,14
 
Old 09-16-2008, 12:29 PM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Go to the Nvidia site and download the driver. Run the installer. Done.

This does require you to have the gnu compiler environment, and the proper set of kernel headers, available.
 
Old 09-16-2008, 12:32 PM   #3
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
well the nvidia installer compiles the kernel module against whatever is in '/usr/src/linux' every time I change or recompile my kernel I have to reinstall the nvidia driver to get it to work. while it is possible to have separate modules for each kernel; I don't know how you would make this work for the nvidia driver as there is a module for x11 as well. just curious what is the reason you have 3 kernels? why can't you have 1 that does everything you need?
 
Old 09-16-2008, 12:54 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by johnson_steve View Post
well the nvidia installer compiles the kernel module against whatever is in '/usr/src/linux' every time I change or recompile my kernel I have to reinstall the nvidia driver to get it to work.
This is not specifically true. It doesn't matter where the source for the running kernel is; it can be on a different drive or even an NFS drive. The nvidia driver look at /lib/modules/`uname -r`/source to find the source for the currently running kernel.
 
Old 09-16-2008, 01:08 PM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by johnson_steve View Post
well the nvidia installer compiles the kernel module against whatever is in '/usr/src/linux' every time I change or recompile my kernel I have to reinstall the nvidia driver to get it to work. while it is possible to have separate modules for each kernel; I don't know how you would make this work for the nvidia driver as there is a module for x11 as well. just curious what is the reason you have 3 kernels? why can't you have 1 that does everything you need?
Yes, this will happen. The problem, I suspect, is in the compilation of the libraries in /usr/lib/.

What you need to do is compile these libraries in each kernel, then uniquely name them, then symlink them to the required standard name. You alter the startup scripts so that, before starting X after booting, you determine what kernel is running and create the proper symlink for the libraries that work with that kernel.

You specifically want to look at libGL.so and libGLcore.so in /usr/lib.
 
Old 09-17-2008, 10:00 AM   #6
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131

Original Poster
Rep: Reputation: 19
thanks. rather confusing as im a relative newbie and i cant be bothered to recompile my kernel cos it would probably break it
 
Old 09-17-2008, 10:01 AM   #7
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131

Original Poster
Rep: Reputation: 19
and to steve johnson: i have one that is normal, one (rtai) for linucnc/emc for my homebrew cnc machine and one for music making
 
Old 09-17-2008, 12:26 PM   #8
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
OK, I used to have to switch kernels like that for making music because I never could get the nvidia driver to play nice with the low latency kernel stuff. now I just have a dedicated box for audio recording with no monitor. when I did switch kernels like that I realized that I only needed the 'nvidia' driver when I was playing games not when I was recording. what I did was have the nvidia driver properly installed for the regular kernel and two xorg.conf files:

xorg.conf.nvidia --> set up to use the 'nvidia' driver.

xorg.conf.vesa --> set up to use the 'vesa' driver.

Then I wrote a script that used 'uname' to determine what kernel I was running and copy the required file to '/etc/X11/xorg.conf' I set this script up to run at boot before X started. The result was if I selected my regular kernel from grub it copied xorg.conf.nvidia to xorg.conf and I had full 3D for games and such, but if I selected my low latency kernel from the grub menu it copied xorg.conf.vesa to xorg.conf and started X with the 'vesa' driver. If you are interested post the output of 'uname -a' for each of the 3 kernels. I can dig out that script and adapt it for your system.

Unrelated, but I would like to hear about your cnc. I've been thinking about building one for a while and I'd like to know what hardware/software you used to get it to work on linux.
 
Old 09-18-2008, 10:06 AM   #9
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131

Original Poster
Rep: Reputation: 19
to steve: my email address is jamwaffles@googlemail.com. please feel free to ask any questions on there and ill try and help. thanks for the solution

james
 
Old 09-20-2008, 09:12 AM   #10
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
If I am not mistaken there is a way to have nvidia modules compiled for multiple kernels so that you simple can boot the kernel you prefer and the appropriate nvidia kernel is loaded. Just like all other modules which are specifically compiled for one kernel.

Open the NVIDIA...nnn...RUN file you downloaded with a text editor, and read thru the first part. It is a text file. I gives directions how to use it for different kernels. I haven't tried it yet, I was up to do it, but at the time the installer was not compatible with my kernel so I postponed it.

jlinkels
 
Old 09-21-2008, 04:41 AM   #11
jamwaffles
Member
 
Registered: Mar 2008
Distribution: Ubuntu Lucid
Posts: 131

Original Poster
Rep: Reputation: 19
thanks very much. i think i may have sorted the problem anyway, but if it breaks again (probably), ill have a look at your solution. thanks very much

james
 
Old 09-21-2008, 10:41 AM   #12
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
Thank you for the info on your cnc. I actually had the 3 steppers and drawer slides all ready set aside for a machine like yours. what are you using as a cutting tool? what are you cutting?
 
  


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
Kernel 2.6.8 Nvidia Driver Thoron Debian 1 05-05-2005 10:05 PM
Nvidia driver and Kernel 2.6.3 jriis Debian 6 04-15-2004 03:00 AM
kernel 2.6.3--bk8 and NVIDIA-Linux-x86-1.0-5336 video driver from Nvidia zdenkod Linux - Hardware 2 03-09-2004 05:38 AM
NVIDIA driver and kernel 2.6.0 Ninja_212 Slackware 3 01-12-2004 02:49 AM
help!--nvidia driver for 2.6 kernel ?! oskernel Linux - Hardware 1 10-30-2003 05:34 AM

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

All times are GMT -5. The time now is 05:28 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