LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   nvidia w/alternate kernels...can it be done? (https://www.linuxquestions.org/questions/linux-hardware-18/nvidia-w-alternate-kernels-can-it-be-done-561249/)

rtreinen 06-12-2007 01:52 PM

nvidia w/alternate kernels...can it be done?
 
I have UbuntuStudio on my desktop and I was wondering if there was a way to set it up where I could boot into the generic kernel when I wish and switch back without having to reinstall nvidia-glx-new and all that. As of yet, each time I upgrade the kernel, it renders the older kernels useless due to the nvidia drivers getting tweaked.

Just wondering because I have that capability on my laptop, but of course it doesn't have the nvidia card.

Thanks.

MS3FGX 06-13-2007 07:21 AM

Yes, you will want to use the -K option of the Nvidia installer.

From the help output of the installer:

Quote:

-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.

rtreinen 06-14-2007 02:08 AM

Okay, I see what you're saying, but I'm not sure where to apply it. Currently, I have the 2.6.20-16-lowlatency running with the nvidia-glx-new installed. I had 2.6..20-16-generic before that, and it's still there, but I can't use it unless I go in recovery mode, then dpkg-reconfigure xserver-xorg and set it to vesa, I guess, because that's what I had to do to get into the lowlatency before I reinstalled the nvidia drivers. So, in what order would I do all this if I wanted to make the generic kernel and xserver run normally again with nvidia drivers of its own?
Thanks.

MS3FGX 06-14-2007 06:57 AM

First you would want to remove the Ubuntu package for the Nvidia driver. You want to be using the official installer from here.

Then you would install it while running your primary kernel, reboot and select your other kernel(s), and reinstall it while running that kernel with the -K switch. The idea is that you only install the kernel module when using the -K switch, rather than it reinstalling everything. You do need to be running that particular kernel to build the correct module for it, so there will be a fair bit of rebooting involved if you have a number of kernels.


All times are GMT -5. The time now is 07:55 AM.