LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Need to keep re-installing NVIDIA Dirver ? (https://www.linuxquestions.org/questions/slackware-14/need-to-keep-re-installing-nvidia-dirver-559439/)

bogzab 06-05-2007 06:09 PM

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?

BCarey 06-05-2007 06:20 PM

Quote:

Originally Posted by bogzab
Any way around it?

Depending on your needs, you might find the native nv driver adequate.

Brian

H_TeXMeX_H 06-05-2007 07:23 PM

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

erklaerbaer 06-05-2007 07:31 PM

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

tomcdyer 06-07-2007 01:24 PM

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.

simcox1 06-07-2007 03:16 PM

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.

tomcdyer 06-10-2007 06:51 AM

May i ask,

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

Thanks

cdale77 06-10-2007 07:48 PM

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.

tomcdyer 06-11-2007 03:05 PM

It sounds like you have spent a lot of time on this and all i can say i 'WOW'.

BCarey 06-12-2007 09:44 AM

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


All times are GMT -5. The time now is 01:27 PM.