LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   nvidia driver problems (https://www.linuxquestions.org/questions/linux-newbie-8/nvidia-driver-problems-275720/)

Avatar33 01-09-2005 11:10 AM

nvidia driver problems
 
Hi.

I've recently installed Mandrake 10.1 and I'm slowly sorting out all the problems that I have. My current problem is that I can't get the Nvidia driver to work.
It first installed fine, and then I setup xorg.conf according to the documentation (readme.txt that accompanies the driver).
When I tried to restart X, I got the following errors:
Code:

(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module!
(EE) NVIDIA(0):  *** Aborting ***
(II) UnloadModule: "nvidia"
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

I then read some posts and noticed that many people needed to explicitly set the kernel version when installing:
Code:

sh NVIDIA-Linux-x86-1.0-6629-pkg1.run --kernel-name=2.6.8.1-10mdk
I did this and it installed successfully, but with the following warning:
Code:

Your kernel was configured to include rivafb support as a loadable kernel module.
The rivafb driver conflicts with the NVIDIA driver; the NVIDIA module will still be built and installed but be aware the NVIDIA driver will not be able to function properly if the rivafb module is loaded

I checked the xorg.conf file again and restarted X, but still got the same error.
When I do a lsmod to see which modules are loaded, I do not see rivafb.

Does anyone know how to solve this problem?
Any help would be appreciated.
Thanks

egag 01-09-2005 11:26 AM

hi,

did you comment-out the " load dri " and " load GLcore " in xorg.conf ?
if not...try that.

egag

Avatar33 01-09-2005 01:03 PM

Thanks for your reply.
Yes I have. (Actually those items did not even exist in my xorg.conf file so nothing had to be done)

Any other ideas?

mugstar 01-09-2005 01:16 PM

Quote:

Your kernel was configured to include rivafb support as a loadable kernel module.
Loadable: this is why lsmod doesn't report it.

AFAIK, you'll have to recompile your kernel and ensure this module is left out entirely.
I'm at work just now, but I have a newly-built kernel waiting to be installed when I get home.
I'll let you know...

urka58 01-09-2005 04:47 PM

I would check first if device nodes for Nvidia are populating your /dev directory.
If not as root create them by
mknod /dev/nvidia c 195 0
mknod /dev/nvidiactl c 195 255.
Then check your /etc/modprobe-preload has a line with
nvidia
In case edit as necessary.
It is possible you need to load the "agpgart" module as well.
Hope this helps.
Ciao

mugstar 01-11-2005 05:02 AM

There's no need to build a new kernel. What works is as follows:

1. Ensure you have the correct kernel-source package installed. `uname -r` will give you the kernel version. If it's 2.6.x, then `urpmi kernel-source-2.6` does the job.

2. Do `telinit 3` to stop the xorg server.

3. Install the Nvidia driver , ignoring the warning about the conflict with the rivafb driver.

4. Edit /etc/X11/xorg.conf as per the nvidia README.

5. Do `modprobe -r rivafb` to unload the rivafb kernel module.

6. Add the line 'nvidia' to the file /etc/modprobe.preload.

7. Do `telinit 5` or reboot. If you see the nvidia logo, you're dancin'.

bigjohn 01-11-2005 02:20 PM

Quote:

Originally posted by mugstar
<snip>

1. Ensure you have the correct kernel-source package installed. `uname -r` will give you the kernel version. If it's 2.6.x, then `urpmi kernel-source-2.6` does the job.

</snip>

That was what I always had to do for the two and a half years that I ran mandrake (well after a kernel upgrade anyway).

It seems that people don't always appreciate that the kernel and the kernel sources are different things.

The nvidia driver should install OK for you kernel version, but of course it cant build the module without the sources to tell it what and where needs building.

Then you just make the changes that it tells you in the readme i.e. the "load glx" bit, and changing or making sure that the driver is specifically identified as "nvidia" rather than "nv" which is just generic nvidia support (which my system hates).

regards

John

p.s. If you like mandrake, you can always buy a "boxed set original", that way the nvidia driver is pre-configured/installed and you only need to do the above when you get a new sources/kernel version.

Avatar33 01-12-2005 02:58 PM

Hi all. Thanks for the replies and sorry for the delay (Internet problems).

After applying urka's solution, everything went smooth.
I started X and got the nvidia splash screen.
Quote:

If you see the nvidia logo, you're dancin'.
Well I almost am, except that when I start any application that uses openGL the application terminates with out any warning. I saw something in the readme that comes with the nvidia driver about this.

I going to read that now, I just thought I'd post because I've been offline for a little while.

If anyone knows why this is happening, your knowledge would be appreciated.
Thank you all once again.
Avatar

Avatar33 01-13-2005 03:01 PM

I solved my problem.
I was starting in runlevel 3 and then using "startx" to get into X.
Once I got bored of doing that, I changed to runlevel 5 and my opengl started working.
That pretty much confuses me, but I don't care.

Thanks for your help.
Avatar

xevel 02-08-2005 04:51 PM

Quote:

Originally posted by mugstar
If you see the nvidia logo, you're dancin'.
That's really what I have done.
When I tried toinstalled the latest NVIDIA drivers, all things went good until I reboot my computer, then I had to reinstall the drivers to get X to work again. (exactly the same error as Avatar33)
Then I read this topic and now I'm playing UT2004 all day long.
Thank you very much!
(and sorry for my bad english)

jsmarshall85 03-12-2005 08:14 PM

not that anyone is watching this anymore, but i had this problem for a long time, but went to nvidia.com to see if there was an updated driver and there was, 7167, i installed it, configured X, got the nvidia splash screen, whici is all good, but after a reboot (where it usually gave me this problem) it worked! no more having to reinstall the driver every time i reboot!

reddazz 03-12-2005 08:23 PM

It was probably a problem with udev coz I had a similar problem on Fedora Core.

eldzis 03-14-2005 08:59 AM

hi
i am having some problems with nvidia:
install went ok, the X server works ok, but when i load some games like TuxRacer veerything in game slows down, everything is very slow
the same with other games, but i have GeForce4 64MB MX-440 i have played UT2004 without problems on windows
so what is wrong in linux??
and else, when i brows throu startup logs in X server log i noticed this line
Code:

(**) NVIDIA(0): DPMS enabled (II) Loading extension NV-CONTROL (EE) NVIDIA(0): Failed to load GLX
but when i checked my xorg.conf
everything was ok with modules section:
Code:

Section "Module"        Load  "dbe"        Load  "extmod"        Load  "fbdevhw"        Load  "glx"        Load  "record"        Load  "freetype"        Load  "type1" EndSection
so can anyone help me??

bigjohn 03-14-2005 09:29 AM

I had a problem similar to that recently eldzis,

I can't say if I've cured it completely. I'd just done the latest bit of "#emerge sync, #emerge -upD world and #emerge -uD world", some of the gnome stuff had emerged (well actually if my memory serves me correctly it was gnome 2.8.1-r???). All my graphics started being "choppy" (I should also mention that I'm a KDE user, but always had gnome installed as well, as when I started, I didn't know which frontend GUI I'd prefer).

Also I can't remember if it also coincided with an update to the latest nvidia driver e-build (6629 ?????), just that the "gnome thing" stuck in my mind.

Any way, I've made it so that my /etc/make.conf has "this lot" as use flags

Quote:

USE="aim alsa arts bindist bonobo cdr crypt cups curl divx4linux doc dvd emacs emacs-w3 ethereal evo exif flash foomaticdb ftp gif gnome gstreamer gtk gtk2 gtkhtml icq imlib jabber java jpeg kde libwww miknod ming motif mozilla mpeg msn ncurses nis nvidia offensive oggvorbis opengl oss pdflib perl php png posix ppds python qt quicktime readline ruby samba scanner session simplexml snmp sockets spell ssl svg svga szip tcltk tcp truetype usb xml xml2 xmms yahoo"
Please notice the highlighted RED nvidia use flag. Then if my memory serves me correctly I then did
Code:

emerge -uD --newuse world
Yes, the recompile takes a while (ha, nothing new there :D) and then finished off with
Code:

opengl-update nvidia
which gave me this

Quote:

bash-2.05b# opengl-update nvidia
* Switching to nvidia OpenGL interface...
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies... [ ok ]
bash-2.05b#
Might help? Failing that then just search for more specific things here (and yes, sorry if that seems like I'm "trying to teach granny, too suck eggs", but that's about all I can think of).

regards

John


p.s. Having done all that, I get

Quote:

bash-2.05b$ glxgears
3957 frames in 5.0 seconds = 791.400 FPS
3816 frames in 5.0 seconds = 763.200 FPS
4195 frames in 5.0 seconds = 839.000 FPS
4198 frames in 5.0 seconds = 839.600 FPS
4200 frames in 5.0 seconds = 840.000 FPS
4198 frames in 5.0 seconds = 839.600 FPS
4190 frames in 5.0 seconds = 838.000 FPS
X connection to :0.0 broken (explicit kill or server shutdown).
bash-2.05b$
Which is probably rubbish, but it's still the fastest that I've had things running at for a while - and yes "Tuxracer" plays ok at those speeds (ha, all I have to do now is find out how to get things running even faster - but that's another story!).


All times are GMT -5. The time now is 05:39 AM.