LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-05-2007, 06:09 PM   #1
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Rep: Reputation: 33
Need to keep re-installing NVIDIA Dirver ?


OK, I built my own 2.6.20 kernel for Slackware 11. Took a few weeks but eventually figured out what options I needed to make it work. The only difficulty I have is as follows: I have installed both the original 2.4.33 and the new 2.6.20 kernels in the LILO boot file, so I have the choice which to fire up. (Still cautious with my hand-made 2.6 version...). Both will boot happily into a text console, but which I try and start an X session after I have asked LILO to switch to a different kernel from the one I used last time I booted, X server moans that it cannot open an X session. I then have to re-install the NVIDIA driver (which in the course of installation finds the previous installation and warns me that it needs to uninstall this) - after which X works fine. If I then re-boot and chose the other kernel version again - same problem. OK if I stick to one kernel, but not OK if I swap between them.

The way I understand it the NVIDIA support in the kernel is compiled as a module (the NVIDIA installation programme specifically says it is compiling a module) and the modules for the different kernel versions sit in different directories (/lib/modules/x.y.z), so why this problem? Does the NVIDIA driver module not get written to the version-specific directory? Any way around it?
 
Old 06-05-2007, 06:20 PM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by bogzab
Any way around it?
Depending on your needs, you might find the native nv driver adequate.

Brian
 
Old 06-05-2007, 07:23 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Another reason why I hate the nvidia installer and the proprietary nvidia drivers. They mess things up.

If you don't need 3D accel, the nv driver is great. And maybe soon, a stable nouveau driver will come out ...
 
Old 06-05-2007, 07:31 PM   #4
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
you can just compile the module with the -K switch, e.g.
Quote:
./NVIDIA* -aKN
Quote:
And maybe soon, a stable nouveau driver will come out ...
don't hold you breath
 
Old 06-07-2007, 01:24 PM   #5
tomcdyer
Member
 
Registered: Jun 2007
Location: Surrey, UK
Distribution: Slackware 11 (mainly), Vista, XP
Posts: 108

Rep: Reputation: 15
I would use the native untill a new driver comes out (one that works), I have some computers whith NVIDIA cards in and i have to say, they are far less trouble than those with ATI cards.
 
Old 06-07-2007, 03:16 PM   #6
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
See 'man nvidia-installer'

As eklaerbaer says, the -K option will install the kernel module only and won't uninstall your existing version, so you can have nvidia modules for several different kernels.
 
Old 06-10-2007, 06:51 AM   #7
tomcdyer
Member
 
Registered: Jun 2007
Location: Surrey, UK
Distribution: Slackware 11 (mainly), Vista, XP
Posts: 108

Rep: Reputation: 15
May i ask,

What did your modified kernal do?
As in, whats its difference to the normal?

Thanks
 
Old 06-10-2007, 07:48 PM   #8
cdale77
Member
 
Registered: Oct 2006
Location: Berekeley
Distribution: Slackware 11; 2.6.21.1
Posts: 48

Rep: Reputation: 15
I've had great success compiling my own kernels to work with an NVIDIA card. Here's basic scoop:

-turn off ALL the graphics support options. None, not even modules. Nothing. You've got to turn the whole thing over to the NVIDIA drivers. The consequences of this are that you have a non-free driver running a core part of your system and you don't get any penguin logos or small text on start up. Frankly, I don't care, but others might.


-after each kernel compile, you have to reinstall the NVIDIA driver. If you boot straight into runlevel 4 and use KDM, watch out. Whenever I compile a new kernel, I edit /etc/inittab to boot into runlevel 3 so that I can reinstall the NVIDIA drivers before I try to start X. It's a bit of a pain, but I just keep a copy of the NVIDIA driver and my xorg.conf in a separate partition (/home) and it's not that big of a deal.

I spent weeks, on this, too, so get in touch if you'd like more help.

Last edited by cdale77; 06-10-2007 at 07:50 PM.
 
Old 06-11-2007, 03:05 PM   #9
tomcdyer
Member
 
Registered: Jun 2007
Location: Surrey, UK
Distribution: Slackware 11 (mainly), Vista, XP
Posts: 108

Rep: Reputation: 15
It sounds like you have spent a lot of time on this and all i can say i 'WOW'.
 
Old 06-12-2007, 09:44 AM   #10
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by cdale77
If you boot straight into runlevel 4 and use KDM, watch out. Whenever I compile a new kernel, I edit /etc/inittab to boot into runlevel 3 so that I can reinstall the NVIDIA drivers before I try to start X. It's a bit of a pain, but I just keep a copy of the NVIDIA driver and my xorg.conf in a separate partition (/home) and it's not that big of a deal.
Instead of editing your inittab you can just say "kernel_name 3" at the boot prompt to override the default run level and boot into run level 3 when you need to.

Brian
 
  


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 Geforce 2 GTS dirver kernel module won't load in Suse 10.0 dannyalberici SUSE / openSUSE 4 02-04-2006 09:11 PM
problem with suse 9.3 nvidia dirver dred SUSE / openSUSE 11 07-12-2005 08:19 AM
intel 537ep dirver on feodra core 3 Gonto Linux - Hardware 6 05-18-2005 07:04 PM
Kernel compile breaks both nvidia driver module and dirver installation darkleaf Linux - Software 9 08-19-2004 04:24 PM
video dirver for quake3 (demo) Smerk Linux - Games 10 12-19-2003 01:56 PM

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

All times are GMT -5. The time now is 11:31 PM.

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