LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-28-2008, 06:14 PM   #1
IcoNyx
Member
 
Registered: Mar 2003
Location: Nevada
Distribution: Anything but Ubuntu... don't ask.
Posts: 145

Rep: Reputation: 15
Nvidia support in debian...


I have read multiple guides regarding the installation of the Nvidia drivers in linux and thus far I have found them ALL to be flat out wrong.

the most common one requires the installation of nvidia-kernel-source and then using module assistant to build and install it. the problem here is that the distro I use (lenny) does not contain the package nvidia-kernel-source in any of it's repositories. I set up apt to install from the unstable directory and am able then to use the installer but it fails the build process.

the second method of installing the drivers is useing the manual install using the nvidia proprietary install script, this one is the best (IMHO) option because it is clean and effective... the problem here is that the version of gcc installed is 4.1 and the kernel reports gcc 4.2 was used to compile the kernel.
Installation of gcc 4.2 from the unstable repo does NOT fix this error. one document I found online advises to simply ignore this error and install the module anyway. the problem I have here is that NORMALLY when installing the nvidia driver this way causes the nice little nvidia logo to pop up BEFORE X. problem here is the logo odes not come up so I am under the impression that the kernel has done what the nvidia installer has warned and refused to load the nvidia module.

can anyone here tell me the proper way to get the nvidia module installed and working?
 
Old 01-28-2008, 06:18 PM   #2
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643

Rep: Reputation: 32
Quote:
Originally Posted by IcoNyx View Post
I have read multiple guides regarding the installation of the Nvidia drivers in linux and thus far I have found them ALL to be flat out wrong.

the most common one requires the installation of nvidia-kernel-source and then using module assistant to build and install it. the problem here is that the distro I use (lenny) does not contain the package nvidia-kernel-source in any of it's repositories. I set up apt to install from the unstable directory and am able then to use the installer but it fails the build process.

the second method of installing the drivers is useing the manual install using the nvidia proprietary install script, this one is the best (IMHO) option because it is clean and effective... the problem here is that the version of gcc installed is 4.1 and the kernel reports gcc 4.2 was used to compile the kernel.
Installation of gcc 4.2 from the unstable repo does NOT fix this error. one document I found online advises to simply ignore this error and install the module anyway. the problem I have here is that NORMALLY when installing the nvidia driver this way causes the nice little nvidia logo to pop up BEFORE X. problem here is the logo odes not come up so I am under the impression that the kernel has done what the nvidia installer has warned and refused to load the nvidia module.

can anyone here tell me the proper way to get the nvidia module installed and working?
I have been using the NVIDIA scpript without problem despite the GCC difference....however, I have recompiled the kernel and now I dont get the error.
 
Old 01-28-2008, 06:29 PM   #3
IcoNyx
Member
 
Registered: Mar 2003
Location: Nevada
Distribution: Anything but Ubuntu... don't ask.
Posts: 145

Original Poster
Rep: Reputation: 15
yeah, the problem with recompileing the kernel is that I ALSO have an ipw3945 card... which I can NEVER get working properly from source...
 
Old 01-28-2008, 06:34 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Ah, well, the thing is that Lenny has not been brought up to date yet as far as nvidia drivers goes. The workaround involves temporarily enabling the Sid repositories, which do have all that is required to install the drivers using the module-assistant. Once you are done, disable sid again so you don't accidentally update the other 300+ packages that are different between testing and sid. Works fine for me, I did it only yesterday.

Whether you see the Nvidia logo pop up or not usually depends on what you write in your xorg.conf. Also, you need to remember to add nvidia to /etc/modules and, unless you reboot, you need to modprobe nvidia before restarting X. Verify with glxinfo and glxgears from mesa-utils, you should be fine.

Last edited by jay73; 01-28-2008 at 06:39 PM.
 
Old 01-28-2008, 06:58 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
http://wiki.debian.org/NvidiaGraphicsDrivers#non-free

Looks like it's a known problem:
Quote:
Current issues

Testing users: NVIDIA packages are currently not in testing due to lack of maintainance, a Linux bug and X server 1.4's ABI change. Filipus Klutiero plans to update the document when the situation is fixed. In the meantime, packages referred to by this guide will not be available on pure testing systems. It is possible to setup a testing/unstable mix.
 
Old 01-28-2008, 07:04 PM   #6
IcoNyx
Member
 
Registered: Mar 2003
Location: Nevada
Distribution: Anything but Ubuntu... don't ask.
Posts: 145

Original Poster
Rep: Reputation: 15
Thank you for your responces... though I am loathed to do so (bad history and all) I'm going to go ahead and recompile my kernel. I hope ipw3945 source works with a package install of the ipw3945d from testing, cause I have NO clue how to make the daemon work from console.
 
Old 01-28-2008, 07:14 PM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Quote:
Originally Posted by IcoNyx View Post
the second method of installing the drivers is useing the manual install using the nvidia proprietary install script, this one is the best (IMHO) option because it is clean and effective... the problem here is that the version of gcc installed is 4.1 and the kernel reports gcc 4.2 was used to compile the kernel.
Oh yeah, I also seem to remember that I had this problem once in Sarge. The solution was to install the correct gcc, and then I had to change the symbolic link in /usr/bin (or was it /usr/sbin?) for gcc. It was pointing to gcc-4.1 and you just deleted it and recreate the link to point to 4.2.
 
Old 01-28-2008, 07:20 PM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Say, how exactly did the build fail? Mine failed too - I thought - but then I carefully read the output and I found out I only had to install glx. I wouldn't know why it wouldn't work for you.
 
Old 01-28-2008, 07:41 PM   #9
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by IcoNyx View Post
I have read multiple guides regarding the installation of the Nvidia drivers in linux and thus far I have found them ALL to be flat out wrong.

the most common one requires the installation of nvidia-kernel-source and then using module assistant to build and install it. the problem here is that the distro I use (lenny) does not contain the package nvidia-kernel-source in any of it's repositories. I set up apt to install from the unstable directory and am able then to use the installer but it fails the build process.

the second method of installing the drivers is useing the manual install using the nvidia proprietary install script, this one is the best (IMHO) option because it is clean and effective... the problem here is that the version of gcc installed is 4.1 and the kernel reports gcc 4.2 was used to compile the kernel.
Installation of gcc 4.2 from the unstable repo does NOT fix this error. one document I found online advises to simply ignore this error and install the module anyway. the problem I have here is that NORMALLY when installing the nvidia driver this way causes the nice little nvidia logo to pop up BEFORE X. problem here is the logo odes not come up so I am under the impression that the kernel has done what the nvidia installer has warned and refused to load the nvidia module.

can anyone here tell me the proper way to get the nvidia module installed and working?
You can do it two ways the easy with the official .run file in the shell just before compiling the module type in then enter export CC=/usr/bin/gcc-4.2 (with gc 4.2 installed of course) or if wanting to use the compiler installed export IGNORE_CC_MISMATCH=1 otherwise you can download the unstable sources for the nvidia-kernel-source and change one digit in the debian/control and debian/control.in file in the nvidia-glx section of it for the xserver-xorg-core if memory serves me correctly changing from >= 1.4 to 1.3 so it will work with Lenny's X version. All the talk of the binary Xorg change is complete and utter BS it works fine with it.

Code:
>$ apt-cache policy nvidia-kernel-source xserver-xorg
nvidia-kernel-source:
  Installed: 169.07-2.1
  Candidate: 169.07-2.1
  Version table:
 *** 169.07-2.1 0
        990 http://localhost binary/ Packages
        100 /var/lib/dpkg/status
     169.07-2 0
        600 http://ftp.de.debian.org sid/non-free Packages
xserver-xorg:
  Installed: 1:7.2-5
  Candidate: 1:7.2-5
  Version table:
     1:7.3+10 0
        600 http://ftp.de.debian.org sid/main Packages
 *** 1:7.2-5 0
        990 http://ftp.de.debian.org testing/main Packages
        100 /var/lib/dpkg/status
nvidia-kernel-2.6.23:
  Installed: 169.07-2.1+2.6.23-10.00.Custom
  Candidate: 169.07-2.1+2.6.23-10.00.Custom
  Version table:
 *** 169.07-2.1+2.6.23-10.00.Custom 0
        990 http://localhost binary/ Packages
        100 /var/lib/dpkg/status

>$ uname -a
Linux HappyTux 2.6.23 #1 SMP Mon Dec 31 01:38:11 AST 2007 x86_64 GNU/Linux

>$ lsmod |grep nvidia
nvidia               8894372  34
i2c_core               27072  6 nvidia,eeprom,tuner,cx88xx,i2c_algo_bit,tveeprom

Last edited by HappyTux; 01-28-2008 at 07:43 PM. Reason: Add versions installed
 
Old 01-28-2008, 08:50 PM   #10
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I've gotten tired enough of this issue being fumbled in thread after thread that I think I'll take the time to post the correct sequence.

Get the current kernel and headers from Sid, as well as the kernel source. That will give you a clean kernel to start against. The alternative is to completely clean up the mess you have as a result of the unsuccessful attempts. Then, From single user mode with the Sid repositories active ...

# aptitude install nvidia-kernel-source
# cd /usr/src/
# tar xvjf nvidia-kernel.tar.bz2 \* This step is necessary because of a current bug.
# m-a prepare
# m-a a-i nvidia-kernel
# aptitude install nvidia-glx nvidia-xconfig
# mv /etc/X11/xorg.conf /etc/X11/xorg.conf_bak
# nvidia-xconfig
# modprobe -v nvidia

Change your sources.list file back to Lenny; reboot into X, and carry on.

Last edited by rickh; 01-28-2008 at 08:52 PM.
 
Old 01-28-2008, 09:07 PM   #11
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by rickh View Post
I've gotten tired enough of this issue being fumbled in thread after thread that I think I'll take the time to post the correct sequence.

Get the current kernel and headers from Sid, as well as the kernel source. That will give you a clean kernel to start against. The alternative is to completely clean up the mess you have as a result of the unsuccessful attempts. Then, From single user mode with the Sid repositories active ...

# aptitude install nvidia-kernel-source
# cd /usr/src/
# tar xvjf nvidia-kernel.tar.bz2 \* This step is necessary because of a current bug.
# m-a prepare
# m-a a-i nvidia-kernel
# aptitude install nvidia-glx nvidia-xconfig
# mv /etc/X11/xorg.conf /etc/X11/xorg.conf_bak
# nvidia-xconfig
# modprobe -v nvidia

Change your sources.list file back to Lenny; reboot into X, and carry on.
That won't work with Lenny's X installed you need Xorg from unstable installed as well unless you rebuild the source.
 
Old 01-28-2008, 09:12 PM   #12
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
That won't work with Lenny's X installed you need Xorg from unstable
That's not impossible. I don't have a Lenny system with Nvidia cards to test on, but it works very well in Sid. My tagline is my disclaimer.
 
Old 01-28-2008, 09:27 PM   #13
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
FWIW, it's not necessary to upgrade the kernel. Lenny is now at 2.6.22 -3 and just using the nvidia packages from sid is all that it takes. No upgrade of xorg needed either.
 
Old 01-28-2008, 09:32 PM   #14
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by rickh View Post
That's not impossible. I don't have a Lenny system with Nvidia cards to test on, but it works very well in Sid. My tagline is my disclaimer.
Of course it does that is what it is built for and I have as you can see by my packages installed in my post a Lenny install so I know what needed to be done to get it installed, also some people do read this with the sigs turned off you know.
 
Old 01-28-2008, 09:36 PM   #15
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by jay73 View Post
FWIW, it's not necessary to upgrade the kernel. Lenny is now at 2.6.22 -3 and just using the nvidia packages from sid is all that it takes. No upgrade of xorg needed either.
Give it a try then it won't work anyways enough of this foolishness...

apt-get install nvidia-glx/unstable
Reading package lists... Done
Building dependency tree
Reading state information... Done
Selected version 169.07-2 (Debian:unstable) for nvidia-glx
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nvidia-glx: Depends: xserver-xorg-core (>= 2:1.4) but 2:1.3.0.0.dfsg-12 is to be installed
E: Broken packages
 
  


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
nvidia support santana Linux - Hardware 2 04-17-2007 06:41 AM
Can't build nvidia.ko on MEPIS3.3. Read /usr.../nvidia-kernelsource/README.debian digorykirke Linux - Software 0 03-16-2005 02:10 AM
Support for NVIDIA GeForce4 MX? joeyjwc Linux - Hardware 3 09-02-2004 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:19 AM.

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