Nvidia driver - Debian way, custom (or not) kernel.

Share your own howto's etc. Not for support questions!

Postby drokmed » 2008-02-29 19:56

bluesdog wrote:replacing 'vesa' with 'nvidia'


woohoo! That was it :)

Thanks
User avatar
drokmed
 
Posts: 1167
Joined: 2007-10-03 19:24
Location: Saint Petersburg, FL

Postby hurtz » 2008-03-12 02:18

Fresh install of Lenny here, how is it done? Missing nvidia-kernel-source.
hurtz
 
Posts: 4
Joined: 2008-03-10 20:36

Postby bluesdog » 2008-03-12 02:52

As noted previously, nvidia-kernel-source and nvidia-glx are currently unavailable from Lenny.

$ apt-cache policy nvidia-kernel-source
nvidia-kernel-source:
Installed: 169.09-1
Candidate: 169.09-1
Version table:
*** 169.09-1 0
800 http://ftp.uk.debian.org sid/non-free Packages
100 /var/lib/dpkg/status
1.0.8776-4 0
750 http://ftp.uk.debian.org etch/non-free Packages
$ apt-cache policy nvidia-glx
nvidia-glx:
Installed: 169.09-1
Candidate: 169.09-1
Version table:
*** 169.09-1 0
800 http://ftp.uk.debian.org sid/non-free Packages
100 /var/lib/dpkg/status
1.0.8776-4 0
750 http://ftp.uk.debian.org etch/non-free Packages
Temporarily add sid repositories to /etc/apt/sources.list in order to install the required packages. The sid version of xorg may also be required, but basically the entire procedure is unlikely to bork your system.

Once you've created and built the module, restore your /etc/apt/sources.list to Lenny only repos.

If you don't wish to 'mix' your system, your only alternative at this time is to use the nVidia script method, with the binary available from the nvidia site.
Tips & Tricks

Something more to read while waiting

If you obviously have not read THIS, don't expect too much...




*winter bluesdog....*
User avatar
bluesdog
 
Posts: 2082
Joined: 2006-02-01 09:02
Location: Similkameen, British Columbia, Canada

Postby boz » 2008-03-12 16:47

bluesdog wrote:If you don't wish to 'mix' your system, your only alternative at this time is to use the nVidia script method, with the binary available from the nvidia site.


This worked really well for me. If you're using Lenny-upgraded-from-Etch and you had the nVidia stuff installed the Debian way on your Etch install, you'll need to remove the nvidia stuff (nvidia-glx and nvidia-kernel, iirc) from your system startup (using update-rc.d)...if you don't do that, your X will fail to start each time you restart your system.
boz
 
Posts: 187
Joined: 2007-05-29 04:14

Postby hurtz » 2008-03-12 18:42

bluesdog wrote:Temporarily add sid repositories to /etc/apt/sources.list in order to install the required packages. The sid version of xorg may also be required, but basically the entire procedure is unlikely to bork your system.


Thanks. Thats what I did but stopped when I saw all the xorg dependencies that were about to be downloaded.

So even after reading all 7 pages of this thread, I'm still not sure why anyone would bother installing nvidia drivers the 'Debian' way if I'm going to run into situations like this:

boz wrote:This worked really well for me. If you're using Lenny-upgraded-from-Etch and you had the nVidia stuff installed the Debian way on your Etch install, you'll need to remove the nvidia stuff (nvidia-glx and nvidia-kernel, iirc) from your system startup (using update-rc.d)...if you don't do that, your X will fail to start each time you restart your system.


Isn't that what we're trying to avoid by doing it the Debian way in the first place?
hurtz
 
Posts: 4
Joined: 2008-03-10 20:36

Postby boz » 2008-03-12 19:51

hurtz wrote:Isn't that what we're trying to avoid by doing it the Debian way in the first place?


Partly, of course. I'm just not keen on running a mixed system. So, yeah, when you update your kernel you're going to need to re-run the nVidia script, but that really doesn't seem like that big a deal to me.

Edit: I misread your post, hurtz. I'm talking about installing from the nVidia script, which is NOT the Debian Way. Once you do that, if you've had drivers installed the Debian Way in the past, you have to make sure that stuff doesn't run at startup or it'll undo the nVidia install.
boz
 
Posts: 187
Joined: 2007-05-29 04:14

Postby hurtz » 2008-03-13 02:37

So will there come a time when those packages will be available in Lenny? I'm just curious whats going on behind the scenes that prevents the source package from being available at this time.

Guess I'll just stick to the nvidia installer for the time being, I really hate mixing testing and unstable.
hurtz
 
Posts: 4
Joined: 2008-03-10 20:36

Postby Eck » 2008-03-15 05:04

It's a matter, as far as I can gather from reading the developer pages, that Xorg 7.3 has some serious problems on specific systems as pointed out in the Release Critical bugs for xserver-xorg 1.4, 7.3, whatever it's called.

The NVidia driver stuff apparently has some bugs too, but then those are mostly long standing licensing stuff and a few things NVidia hasn't fixed. Of course no one else can fix them, but they were let slide for Etch.

As far as it getting into Lenny, who knows? If they can get those couple of bugs fixed that are still Release Critical for Xorg then I suppose NVidia itself would be about as bug free as the version allowed into Etch was. But as long as xserver-xorg-core 1.4 and its video and input drivers are not allowed in, I'd guess that NVidia won't be allowed into Lenny.

It's a bit hard to understand why they require the newer Xorg for Nvidia anyway. Some other distro's still use Xorg 7.2 and newer Nvidia drivers run fine with them.

I ran the Debian way Nvidia Sid and Xorg stuff on Lenny for a while without problems. But I went back to pure Lenny eventually. That was fun getting xorg back to the Lenny version! Had to purge a bunch of stuff and reinstall parts of the desktop tasks individually when re-running the tasks themselves only brought some of the packages back and left out some. Got it done, but it was a hassle. Thankfully Aptitude is the amazing thing that it is.

The script's the easy way for now, until the packages become part of Debian Lenny.
Lenovo z560 Laptop Nvidia GeForce 310m Hitachi 500GB HD Intel HD Audio 4GB RAM
Eck
 
Posts: 740
Joined: 2007-06-27 16:13

Postby hurtz » 2008-03-17 20:42

Thanks for the replies, sticking w/the nvidia install script. Works great!
hurtz
 
Posts: 4
Joined: 2008-03-10 20:36

Postby Eck » 2008-03-23 17:18

I'd think just uninstalling everything using aptitude, like aptitude purge nvidia-glx, would remove stuff like startup scripts?

Anyway, I just installed Debian (from Etch DVD1, comment out the DVD, change sources to testing and added unstable and debian-multimedia, and did the /etc/apt.conf default-release testing thing).

Hey! They fixed up module-assistant so for the first time I actually saw it do its thing successfully! Installed like a dream the Debian way. I did install nvidia-kernel-common and xserver-xorg-core from -t unstable first, answering yes to let it install the associated input and video xorg stuff from unstable. Then I did m-a update, m-a prepare, and m-a a-i nvidia and it worked fine. Then installed -t unstable nvidia-glx, nvidia-glx-dev, nvidia-settings, nvidia-xconfig and I'm all set.

I'm looking forward to see what happens when the upgraded NVidia gets in. Should be soon as we're a version behind at the moment. I guess the way to go is to watch when it appears (the next nvidia-glx) but don't let it upgrade, rather run m-a update, m-a prepare, m-a a-i nvidia again, and then let aptitude upgrade? I'm not too clear on that. Maybe let it upgrade and then do the m-a stuff to upgrade the nvidia-kernel stuff, reboot, and all is well?
Lenovo z560 Laptop Nvidia GeForce 310m Hitachi 500GB HD Intel HD Audio 4GB RAM
Eck
 
Posts: 740
Joined: 2007-06-27 16:13

Postby Eck » 2008-03-27 17:31

Ooh, Lenny's getting the 2.6.24 Kernel upgrades today/tomorrow, whenever it gets to the mirrors. They even made a transitional linux-image-2.6-k7 package to switch us k7 users over to the 686 kernel stuff.

This should be an interesting experience. I'm hoping that OP suggestion on Kernel upgrades goes smoothly. I'm planning on something like:

Reboot after the Kernel upgrade into the single user mode option.

su -
rmmod nvidia
aptitude update
aptitude search linux-headers-2.6 (to check what happened during the upgrade. Although I'll likely do that before the reboot so I can see the whole screen and write down the exact package name if I need to install the newer one myself.)
aptitude purge the older linux-image and linux-headers stuff (unless the headers had already been upgraded. I do have the meta-package so it's possible that it would already have removed the 2.6.22 headers and installed the 2.6.24 ones.)
aptitude install linux-headers whatever, if I need to.
m-a update
m-a prepare
m-a a-i nvidia (that worked the last time so I hope for good things again.)
Not sure if I'll need to do aptitude install -t unstable nvidia-glx nvidia-glx-dev since it's already installed from before.
dpkg-reconfigure xserver-xorg
editor /etc/X11/xorg.conf (to see that the composite extension is still there.)
shutdown -a -r now
hope for the best!
Lenovo z560 Laptop Nvidia GeForce 310m Hitachi 500GB HD Intel HD Audio 4GB RAM
Eck
 
Posts: 740
Joined: 2007-06-27 16:13

Postby Eck » 2008-03-28 22:02

That worked, but since nvidia-glx and the dev remained unchanged I didn't need to do dpkg-reconfigure anything.

The Kernel upgrade did get rid of the ability for the KDE system audio notifications to play. Sound works perfectly otherwise and nothing in my mixer or the KDE sound configuration has changed. They just won't play, except for the sound test in the KDE KControl itself. Clicking the notifications tab and testing those do not work.

Maybe the new Alsa in the Kernel got rid of the interface with the arts stuff, which I guess still plays the KDE notifications. I have it set to Alsa, just like before. No clue. They always disappeared when I turned on Compiz, but now they don't work with kwin either. Even the login sound, which plays fine on the audio test page but not on the system notifications page where nothing plays. Weird.

By the way, the Debian way works on the Knoppix DVD 5.3 and 5.3.1 too! :) NVidia and Linux on the go! Cool.

I'll post in a more appropriate section regarding the KDE notification sounds.
Lenovo z560 Laptop Nvidia GeForce 310m Hitachi 500GB HD Intel HD Audio 4GB RAM
Eck
 
Posts: 740
Joined: 2007-06-27 16:13

Postby drokmed » 2008-04-03 20:28

DOH! Kernel upgrade killed my video driver, so followed Eck's notes:
Eck wrote:su -
rmmod nvidia
aptitude update
m-a update
m-a prepare
m-a a-i nvidia
reboot


Did the trick for me! Video back to normal. Thanks
User avatar
drokmed
 
Posts: 1167
Joined: 2007-10-03 19:24
Location: Saint Petersburg, FL

Postby Job » 2008-04-07 00:46

Code: Select all
apt-get update && apt-get install nvidia-kernel-source module-assistant nvidia-settings nvidia-xconfig


I get
Code: Select all
Package nvidia-kernel-source is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package nvidia-kernel-source has no installation candidate


sources.list below
Code: Select all
# deb cdrom:[Debian GNU/Linux testing _Lenny_ - Official Snapshot i386 NETINST Binary-1 20071008-09:05]/ lenny main

#deb cdrom:[Debian GNU/Linux testing _Lenny_ - Official Snapshot i386 NETINST Binary-1 20071008-09:05]/ lenny main

deb http://ftp.debian.org/debian/ lenny main
deb-src http://ftp.debian.org/debian/ lenny main

deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

##deb http://download.tuxfamily.org/osrdebian unstable compiz-fusion-git

## Multimedia
deb http://www.debian-multimedia.org lenny main

deb http://ftp.nl.debian.org/debian sid main
deb-src http://ftp.nl.debian.org/debian sid main
deb http://ftp.us.debian.org/debian/ lenny main non-free contrib
 
#deb http://debian.three-dimensional.net/debian-multimedia/ unstable main
#deb-src http://debian.three-dimensional.net/debian-multimedia/ unstable main
#deb http://debian.dc-uoit.net/debian-multimedia/ unstable main

#deb http://gulus.usherbrooke.ca/pub/distro/debian/debian-multimedia/ unstable main
#deb-src http://gulus.usherbrooke.ca/pub/distro/debian/debian-multimedia/ unstable main

#deb ftp://gulus.usherbrooke.ca/debian-multimedia/ unstable main
#deb-src ftp://gulus.usherbrooke.ca/debian-multimedia/ unstable main

#deb http://ssl.spaggiari.org:81/ unstable main
#deb-src http://ssl.spaggiari.org:81/ unstable main

#deb http://mirror.csclub.uwaterloo.ca/debian-multimedia/ unstable main
#deb-src http://mirror.csclub.uwaterloo.ca/debian-multimedia/ unstable main

#deb ftp://mirror.csclub.uwaterloo.ca/debian-multimedia/ unstable main
#deb-src ftp://mirror.csclub.uwaterloo.ca/debian-multimedia/ unstable main


as you can see i enabled sid for this exercise. any idea?
thank you,
Last edited by Job on 2008-04-07 00:53, edited 1 time in total.
User avatar
Job
 
Posts: 800
Joined: 2006-12-30 20:20
Location: no clue

Postby roadnottaken » 2008-04-07 02:21

The debian mirror at ftp.nl.debian.org is missing several packages, including nvidia-kernel-source. Try using a different mirror.
BOFH excuse #191:

Just type 'mv * /dev/null'.
User avatar
roadnottaken
 
Posts: 163
Joined: 2007-08-20 17:54

PreviousNext

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable