nVidia drivers for one kernel bugger those of the other kernel?
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.
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.)
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.
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.
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
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.
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.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.