Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-26-07, 08:01 AM   #1
thewall83
Registered User
 
Join Date: Jan 2007
Posts: 11
Default Install the same nvidia driver on two different kernel

I would like to install the same nvidia driver (1.0-9746) on two different kernel that I have on my machine:
2.6.20-rc4: compiled by me.
2.6.17-10-generic: the default kernel of my linux distrubution (ubuntu 6.10).

If I install the driver on one kernel and try to boot the other, the X server doesn't start...
How should I solve?
Thanks.
thewall83 is offline   Reply With Quote
Old 01-26-07, 08:17 AM   #2
TPG
Unregistered User
 
TPG's Avatar
 
Join Date: Apr 2006
Location: Poland, Warsaw
Posts: 203
Default Re: Install the same nvidia driver on two different kernel

You have to install nvidia driver against each kernel you have on your hdd.
__________________
mandriva > all
kthnxbai
TPG is offline   Reply With Quote
Old 01-26-07, 08:38 AM   #3
thewall83
Registered User
 
Join Date: Jan 2007
Posts: 11
Default Re: Install the same nvidia driver on two different kernel

Quote:
Originally Posted by TPG
You have to install nvidia driver against each kernel you have on your hdd.
Maybe I was not clear in my first post:
If I install the nvidia driver on the first kernel(for example the 2.6.20-rc4) and then I boot the second(the 2.6.17-10) and install the driver on it, at the next boot the 2.6.20-rc4 don't recognize the nvidia driver and i have to install it again....so losing the driver installation on the 2.6.17-10....and so on...

I hope it's clear now.
thewall83 is offline   Reply With Quote
Old 01-26-07, 10:09 AM   #4
BashfulTux
Registered User
 
Join Date: Apr 2006
Posts: 147
Default Re: Install the same nvidia driver on two different kernel

Quote:
Originally Posted by thewall83
Maybe I was not clear in my first post:
If I install the nvidia driver on the first kernel(for example the 2.6.20-rc4) and then I boot the second(the 2.6.17-10) and install the driver on it, at the next boot the 2.6.20-rc4 don't recognize the nvidia driver and i have to install it again....so losing the driver installation on the 2.6.17-10....and so on...

I hope it's clear now.
Look at the module-assistant package it will do what you want by making a .deb package that gets installed for each kernel.
BashfulTux is offline   Reply With Quote
Old 01-26-07, 10:16 AM   #5
thewall83
Registered User
 
Join Date: Jan 2007
Posts: 11
Default Re: Install the same nvidia driver on two different kernel

Quote:
Originally Posted by BashfulTux
Look at the module-assistant package
What is the module assistant package? Sorry, I'm really newbie.
Do you mean synaptics or adept?
thewall83 is offline   Reply With Quote
Old 01-26-07, 11:23 AM   #6
BashfulTux
Registered User
 
Join Date: Apr 2006
Posts: 147
Default Re: Install the same nvidia driver on two different kernel

Quote:
Originally Posted by thewall83
What is the module assistant package? Sorry, I'm really newbie.
Do you mean synaptics or adept?
The module assistant package is a program that runs from the command line that will build/compile a module source package for your running kernel into a .deb file that is then installed onto your system thus allowing you to have more than one kernel version of the package installed at the same time.

Code:
COLUMNS=125 dpkg -l | grep nvidia
ii  nvidia-glx                1.0.9746-1                NVIDIA binary XFree86 4.x driver
ii  nvidia-glx-dev            1.0.9746-1                NVIDIA binary XFree86 4.x / Xorg driver development files
ii  nvidia-kernel-2.6.18-ck1- 1.0.9746-1+2.6.18-ck1-smp NVIDIA binary kernel module for Linux 2.6.18-ck1-smp
ii  nvidia-kernel-2.6.19-ck2- 1.0.9746-1+2.6.19-ck2-smp NVIDIA binary kernel module for Linux 2.6.19-ck2-smp
ii  nvidia-kernel-common      20051028+1                NVIDIA binary kernel module common files
ii  nvidia-kernel-source      1.0.9746-1                NVIDIA binary kernel module source
ii  nvidia-settings           1.0+20060516-3            Tool of configuring the NVIDIA graphics driver
As you can see above I have two versions of the nvidia 9746 driver installed one each for the 2.6.18 and 2.6.19 kernels that are on my machine. These were compiled then installed using the module-assistant and the nvidia-kernel-source package 1.0.9746-1 I installed from the Debian repositories.

If you want to install the Nvidia driver using the module assistant package then you first have to run the official Nvidia installer with the uninstall option to remove it from your machine. Then you need to see what is available for the nvidia-kernel-source package in your distro with something like this.

Code:
apt-cache policy nvidia-kernel-source
nvidia-kernel-source:
  Installed: 1.0.9746-1
  Candidate: 1.0.9746-1
  Version table:
     1.0.9746-2 0
          1 http://ftp2.de.debian.org experimental/non-free Packages
 *** 1.0.9746-1 0
        500 http://localhost binary/ Packages
        100 /var/lib/dpkg/status
     1.0.8776-4 0
        990 http://ftp2.de.debian.org testing/non-free Packages
        600 http://ftp2.de.debian.org sid/non-free Packages
Here you can see in Debian I need the non-free part of the archives enabled in my /etc/apt/sources.list to be able to get the driver source and in the case of the 9746 driver I need the experimental repository of packages as well. I believe in Ubuntu non-free would be the restricted line that you can enable by removing the # from the front of it in the sources.list file then run apt-get update to have the package cache updated with the newly available packages. For the experimental repository I not sure what would be the match for it in Ubuntu or if it would even be needed this would depend on how they organize the packages what you should do is use the apt-cache command I show above and see what it shows you for the versions of the driver source available. Once you know what version is installable then I can show you the commands needed to install the driver .deb files on your computer.
BashfulTux is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mageia 2 Cannot Install 71.86.15 for Riva TNT/TNT2 kbulgrien NVIDIA Linux 3 06-29-12 08:27 AM
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 04:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
Lucid rt kernel can't load latest nvidia driver module, but generic does. marcod NVIDIA Linux 0 05-02-12 06:23 AM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM

All times are GMT -5. The time now is 08:30 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.