Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-09-2005, 12:10 PM
|
#1
|
Member
Registered: May 2003
Location: South Africa
Distribution: Ubuntu
Posts: 75
Rep:
|
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
|
|
|
01-09-2005, 12:26 PM
|
#2
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
hi,
did you comment-out the " load dri " and " load GLcore " in xorg.conf ?
if not...try that.
egag
|
|
|
01-09-2005, 02:03 PM
|
#3
|
Member
Registered: May 2003
Location: South Africa
Distribution: Ubuntu
Posts: 75
Original Poster
Rep:
|
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?
|
|
|
01-09-2005, 02:16 PM
|
#4
|
Member
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305
Rep:
|
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...
|
|
|
01-09-2005, 05:47 PM
|
#5
|
Member
Registered: Nov 2003
Distribution: slackware 15
Posts: 546
Rep:
|
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
|
|
|
01-11-2005, 06:02 AM
|
#6
|
Member
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305
Rep:
|
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'.
|
|
|
01-11-2005, 03:20 PM
|
#7
|
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Rep:
|
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.
|
|
|
01-12-2005, 03:58 PM
|
#8
|
Member
Registered: May 2003
Location: South Africa
Distribution: Ubuntu
Posts: 75
Original Poster
Rep:
|
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
|
|
|
01-13-2005, 04:01 PM
|
#9
|
Member
Registered: May 2003
Location: South Africa
Distribution: Ubuntu
Posts: 75
Original Poster
Rep:
|
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
|
|
|
02-08-2005, 05:51 PM
|
#10
|
LQ Newbie
Registered: Feb 2005
Location: Dijon, France
Distribution: Mandrakelinux 10.1
Posts: 1
Rep:
|
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)
|
|
|
03-12-2005, 09:14 PM
|
#11
|
Member
Registered: Aug 2003
Posts: 386
Rep:
|
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!
|
|
|
03-12-2005, 09:23 PM
|
#12
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
It was probably a problem with udev coz I had a similar problem on Fedora Core.
|
|
|
03-14-2005, 09:59 AM
|
#13
|
LQ Newbie
Registered: Jan 2005
Location: /latvia/valmiera/
Distribution: Gentoo...
Posts: 14
Rep:
|
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??
|
|
|
03-14-2005, 10:29 AM
|
#14
|
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Rep:
|
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 ) 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:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|