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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-01-2008, 08:25 AM
|
#1
|
|
Senior Member
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Rep:
|
nVidia drivers for one kernel bugger those of the other kernel?
Installed a new kernel 2.6.24....amd64 for Debian Lenny and needed to make new nVidia drivers for it, using nVidia's own installer thing. Did this and it buggered same for the 2.6.18 ..... kernel (which works better than the new one). How do I get graphics for both kernels?
Read this elsewhere on this site:
Quote:
|
Nvidia drivers must be installed for each kernel. Make sure that each kernel has its own Nvidia module, and that when you install one it doesn't install over the top of the others
|
So how is the said outcome produced? (Thought of doing 'locate nvidia' and then tarring the output and then shoving them back in before rebooting into the kernel.)
|
|
|
|
11-01-2008, 04:21 PM
|
#2
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
|
While I have never done it myself, the installer's documentation says the following options are used to set the driver up for multiple kernels:
Code:
-K, --kernel-module-only
Install a kernel module only, and do not uninstall the
existing driver. This is intended to be used to install
kernel modules for additional kernels (in cases where you
might boot between several different kernels). To use this
option, you must already have a driver installed, and the
version of the installed driver must match the version of
this kernel module.
--no-kernel-module
Install everything but the kernel module, and do not remove
any existing, possibly conflicting kernel modules. This
can be useful in some DEBUG environments. If you use this
option, you must be careful to ensure that a NVIDIA kernel
module matching this driver version is installed
seperately.
So it looks like you would first run --no-kernel-module to get the drivers installed, and then run -K under each kernel you want to install a module for.
|
|
|
|
11-01-2008, 04:44 PM
|
#3
|
|
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732
Rep:
|
Let me know how the "--kernel-module-only" works. I could never figure out how to install multiple NVidia drivers either; I always assumed their script was plain stupid and wasted a lot of my time copying files and restoring them after the NVidia installer script wrote over them.
|
|
|
|
11-02-2008, 06:45 AM
|
#4
|
|
Senior Member
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Original Poster
Rep:
|
Quote:
Originally Posted by MS3FGX
While I have never done it myself, the installer's documentation says the following options are used to set the driver up for multiple kernels:
Code:
-K, --kernel-module-only
Install a kernel module only, and do not uninstall the
existing driver. This is intended to be used to install
kernel modules for additional kernels (in cases where you
might boot between several different kernels). To use this
option, you must already have a driver installed, and the
version of the installed driver must match the version of
this kernel module.
--no-kernel-module
Install everything but the kernel module, and do not remove
any existing, possibly conflicting kernel modules. This
can be useful in some DEBUG environments. If you use this
option, you must be careful to ensure that a NVIDIA kernel
module matching this driver version is installed
seperately.
So it looks like you would first run --no-kernel-module to get the drivers installed, and then run -K under each kernel you want to install a module for.
|
Thanks. Alright I'll do that then, though I cannot quite understand the reasoning.
piniped:
Quote:
|
wasted a lot of my time copying files and restoring them after the NVidia installer script wrote over them
|
I tried this and it had no effect whatever.
|
|
|
|
11-02-2008, 11:33 AM
|
#5
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
|
Quote:
|
Thanks. Alright I'll do that then, though I cannot quite understand the reasoning.
|
Normally, the installer overwrites all the Nvidia XOrg files with the newest ones, and then compiles and replaces the actual kernel module. By using the two separate steps, you can install the XOrg side of the driver without touching the kernel modules, which will allow you to build multiple modules and not mess with core setup.
|
|
|
|
11-03-2008, 07:51 AM
|
#6
|
|
Senior Member
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Original Poster
Rep:
|
Quote:
Originally Posted by MS3FGX
Normally, the installer overwrites all the Nvidia XOrg files with the newest ones, and then compiles and replaces the actual kernel module. By using the two separate steps, you can install the XOrg side of the driver without touching the kernel modules, which will allow you to build multiple modules and not mess with core setup.
|
Did it and it worked perfectly.
In case I got lucky here are details:
# bash NVIDIAinstallThing.run --no-kernel-module (This in the 2.6.18-amd64 kernel which was the one that happened to have graphics working, get slight impression you have to use the one with the module working but don't know.)
# bash NVIDIAinstallThing.run -K
Reboot into 2.6.24-amd64 kernel.
# bash NVIDIAinstallThing.run -K
Then had X with both kernels (X will only run with these drivers on my thing.)
Problem solved - thanks.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:11 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|