I have been having some difficulty with installing and getting the new
NVIDIA drivers to work on my FreeBSD 4.9 machine. I have done
everything I can think of and have read on the internet and newsgroups
but still have no luck. I am considering installing the new 5.x CURRENT
because I was able to get the driver to work under that over the summer,
but I wish to run STABLE instead of CURRENT.
I have listed all of my problems, steps taken, files, and command output
on this site here:
http://www.cs.uic.edu/~snightli/nvidia.htm
But will cover it again below. By the error messages, it seems that the
glx extension is either not installed or cannot be found. I do not know
how to fix this.
I am experiencing difficulty configuring the nvidia driver for my RIVA
TNT2 Model 64 graphics card on a FreeBSD 4.9 -RELEASE machine.
Before the system crashes and reboots, the specific error I receive is this,
==========================================
(WW) NVIDIA: Chipset "RIVA TNT2 Model 64" in Device section "Card 0"
isn't valid for this driver
(EE) No devices detected
Fatal server error:
No screens found
==========================================
My X-windows works with the "nv" driver. This error only appears when I
switch to the "nvidia" driver in the /etc/X11/XF86Config file.
XFree86 4.3 is installed on my machine and meets the stated requirement
of XFree86 4.2 or greater.
This is the procedure I have followed:
1) Compiled a new kernel with the "options USER_LDT"
2) Installed the driver from /usr/ports/x11/nvidia-driver/
3) Configured XF86Config as stated in README.txt
4) This did not work so I recompiled the kernel again, hoping it would
compile the nvidia module.
I have attempted changing the AGP GART driver in /boot/loader.conf and
this did not work. I assume that this can only be added after the driver
is working properly. I have since added the option line
Options "NvAGP" "0"
to cancel anything I may have changed.
If I comment out the Chipset line in /etc/X11/XF86Config and then type
startx, X hangs the machine for a few seconds and then the machine
crashes and reboots itself. This is followed by salvaging the filesystem
upon rebooting.
The command glxinfo provides the following error:
Xlib: extension "GLX" missing on display ":0.0".
In my /etc/X11/XF86Config file, in the Module section, My
Load "glx"
is not commented out.
I have run make deinstall and make reinstall in the directory
/usr/ports/x11/nvidia-driver/ directory and the glx extension is still
missing.
/var/log/XFree86.0.log has an interesting error when using the nv driver.
(EE) [GLX]: Failed to add GLX extension (NVIDIA XFree86 driver not found)
I am really lost with this and am considering the possibility of a
reinstall. I would really appreciate any help. Thank you.
Sincerely,
Scott Nightlinger
I would probably also give up but this past summer I had installed 5.1
and was able to get the nvidia driver to work properly then. I think I
was lucky. This is the same machine now. I just wish to run STABLE
rather than CURRENT. I therefore know I can get this working
properly...somehow.
-Scott
I sent the following bug report tonight :
http://www.freebsd.org/cgi/query-pr.cgi?pr=60738
The nVidia "made in nVidia" drivers just seem to work well on my computer
(RTCW and Q3A work flawlessly), but they are still buggy.
Thus, I won't recommend nVidia drivers and hardware for BSD anymore. I hope
there are good ATi drivers (including hardware-accelerated OpenGL)...
S.W.
PS : they don't crash with 5-CURRENT, but now I'm being cautious.
Stéphane,
It seems you are stating that nvidia drivers in FreeBSD 4.x conflict
with your sound card. For that to happen (and for it to be relevent
here), it seems you are alluding to the possibility that nvidia drivers
are accessing memory outside of their provided range. If this is
happening, then the nvidia drivers would be just as buggy in 5.x as in 4.x.
A buggy card could certainly be a problem. I prefer to focus on a
software configuration problem rather than a hardware problem, but this
is a possibility.
Now, the situation that the nvidia driver seemingly produces the bug in
4.x and not in 5.x is intriguing. Does anyone have the nvidia drivers
(not "nv", rather "nvidia") working in 4.x?
If the drivers were developed for 5.x, then this would be a good reason
to either switch to 5.x current or wait until stable is advanced to 5.x
before switching to the new driver.
Thank you for the information.
-Scott
> Stéphane Witzmann wrote:
>> I sent the following bug report tonight :
>> http://www.freebsd.org/cgi/query-pr.cgi?pr=60738
>>
>> The nVidia "made in nVidia" drivers just seem to work well on my computer
>> (RTCW and Q3A work flawlessly), but they are still buggy.
>
> Stéphane,
> It seems you are stating that nvidia drivers in FreeBSD 4.x conflict
> with your sound card. For that to happen (and for it to be relevent
> here), it seems you are alluding to the possibility that nvidia drivers
> are accessing memory outside of their provided range. If this is
> happening, then the nvidia drivers would be just as buggy in 5.x as in
> 4.x.
In fact, I'm running 5.1-RELEASE, and I have the problem described in the
link I gave above. However, this bug seems to lighten (doesn't crash
anymore, at least this way) with FreeBSD-CURRENT.
> A buggy card could certainly be a problem. I prefer to focus on a
> software configuration problem rather than a hardware problem, but this
> is a possibility.
I have a friend who is running Linux (debian) and who is switching to ATi
because of the nVidia drivers. I agree it would be great it nVidia could
produce non-buggy drivers, but they are not focused enough on UNIX-like
systems. And someway, it's great that they try to join the party...
> Now, the situation that the nvidia driver seemingly produces the bug in
> 4.x and not in 5.x is intriguing. Does anyone have the nvidia drivers
> (not "nv", rather "nvidia") working in 4.x?
> If the drivers were developed for 5.x, then this would be a good reason
> to either switch to 5.x current or wait until stable is advanced to 5.x
> before switching to the new driver.
My 5-CURRENT crashed just a few minutes ago, so I switched back to 5.1 -
RELEASE (and I have the same bug as before...). I'm sorry I cannot help you
with your 4.x .
> Thank you for the information.
> -Scott
S.W.
Just a thought, did you compile your kernel with
"device agp"
and the nvidia module with
"-DWITH_FREEBSD_AGP"
I had some trouble with getting the nvidia stuff working on a colleague's
machine (Christmas is, after all, the time for playing Quake ;), until I
rebuilt the kernel and port with the above options, and now it, too, Just
Works ;)
Or maybe you already did it this way, in which case you might wanna try it
_without_ "-DWITH_FREEBSD_AGP" (which is what works on my machine)
Just my 0.02UKP
> Hello All,
>
<<snip>>
>
> Sincerely,
> Scott Nightlinger
Hello Sam,
Yes, I just double checked my kernel and "device agp" is in there.
I did not know how to get the options to be included in the nvidia
module compilation so your suggestion with "-D..." was most helpful. I
tried each one separately and then all three together.
/usr/ports/x11/nvidia-driver/
make deinstall
make -DWITH_FREEBSD_AGP reinstall
... check to see if it works ...
make deinstall
make -DFORCE_AGP_RATE reinstall
... check to see if it works ...
make deinstall
make -DWITH_NVIDIA_HACKS
... check to see if it works ...
make deinstall
make -DWITH_FREEBSD_AGP -DFORCE_AGP_RATE -DWITH_NVIDIA_HACKS reinstall
... check to see if it works ...
None of these worked. I continue to get this error message though and I
do not know what to do about it.
(EE) [GLX]: Failed to add GLX extension (NVIDIA XFree86 driver not found)
I think it would fix the problem if someone could help me with this error.
Thank you Sam for the suggestions.
Scott
> None of these worked. I continue to get this error message though and I
> do not know what to do about it.
>
> (EE) [GLX]: Failed to add GLX extension (NVIDIA XFree86 driver not found)
>
> I think it would fix the problem if someone could help me with this error.
#include <disclaimer.h>
/* I do not have an nvidia, and this thread is not convincing me to
* get one anytime soon. Just trying to help...
*/
how about confirming that the port put the driver in /usr/X11R6/lib \
/modules/dri (erh, nvidia_dri.so ?), and if it did _not_, try adding
the path that it _did_ put it in the XF86Config, i.e.;
Section "Files"
ModulePath "/usr/X11R6/lib/modules,/usr/X11R6/???/goofy/path?"
I checked the pkg-plist on freshports, but I've found discrepancies
between pkg-plist and +CONTENTS in the past.
--
donLouis
You hve to comment out Chipset in XF86Config
# Chipset "RIVA TNT2 Model 64"
Hello Stefan,
Yes, I have commented out the "Chipset" and the "Card" line. My system
hangs and crashes with a reboot after typing "startx".
Thank you for your help,
-Scott
Hello donLouis,
Thank you for your help and for being explicit. The driver has been
placed in /usr/X11R6/lib/modules/drivers/nvidia_drv.o
I added the following line in Section "Files" just in case
ModulePath "/usr/X11R6/lib/modules,/usr/X11R6/lib/modules/drivers"
and this did not help. My system still crashed after "startx".
I do not know how or why I still receive the "driver not found" error.
Especially since the module is loaded into the kernel, as verified with
kldstat.
If I may ask, what brand and model of video card do you use for your
FreeBSD system?
I am using 4.9 release but had installed 5.1 over the summer and the
nvidia driver worked fine then. I am giving up on 4.9 with nvidia for
now. I will install 5.1 release and see if that will work.
Thank you,
-Scott
> Hello donLouis,
>
> Thank you for your help and for being explicit. The driver has been
> placed in /usr/X11R6/lib/modules/drivers/nvidia_drv.o
>
> I added the following line in Section "Files" just in case
> ModulePath "/usr/X11R6/lib/modules,/usr/X11R6/lib/modules/drivers"
> and this did not help. My system still crashed after "startx".
> I do not know how or why I still receive the "driver not found" error.
> Especially since the module is loaded into the kernel, as verified with
> kldstat.
Just a guess, really. As far as kldstat goes, someone earlier mentioned
something about the linux.ko being loaded _before_ the nvidia.ko.
Check out nvida's readme at:
http://www.nvidia.com/object/freebsd_1.0-3203.html
It _seems_ to give very explicit instructions about the setup
required for the XF86Config, freebsd, and the linux components.
> If I may ask, what brand and model of video card do you use for your
> FreeBSD system?
I have _never_ had any trouble configuring X with ATI hardware,
although I've never used high-end stuff. Specifically, this
one is a Radeon Mobility M6 LY. Hmm, glxgears says:
7373 frames in 5.0 seconds = 1474.600 FPS
I'm not even sure how good or bad that is.
> I am using 4.9 release but had installed 5.1 over the summer and the
> nvidia driver worked fine then. I am giving up on 4.9 with nvidia for
> now. I will install 5.1 release and see if that will work.
One possible "gotcha" is that the port may have changed since then.
check out
http://www.freebsd.org/cgi/cvsweb.cgi/ports/x11/nvidia-driver/
_maybe_ something has changed in the linux_base, or some patch, or
whatever, that is causing people all this grief with nvidia.
Good luck, and may the Video Gods smile down upon you in favor.
--
donLouis
Comment out not the "Card"Line, only the "Chipset" line.
Success?
Greetings from germany and a happy new year.
Stefan
Don't do that. No encoded stuff outside of the *.binaries.* hierarchy.
Post it in plain, as it is (supposed to be) a plain text file.
--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
Yes, I have. The nvidia drivers, version 4305, work for me on both
4-STABLE and 5-CURRENT (cvsup and make world about three times per
month) with no problem.
The computer is dual processor. Native FreeBSD's AGP used. I don't use
OpenGL. X are 4.3.0
Dan
Extract relevant parts from of LOG (if anybody interested):
------------
XFree86 Version 4.3.0
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
...
(--) PCI:*(1:0:0) nVidia Corporation NV5 [RIVA TNT2 Ultra] rev 17,
Mem @ 0xd8000000/24, 0xda000000/25
...
(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.4365
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.1
...
(II) LoadModule: "nvidia"
(II) Loading /usr/X11R6/lib/modules/drivers/nvidia_drv.o
(II) Module nvidia: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.4365
Module class: XFree86 Video Driver
...
(II) NVIDIA XFree86 Driver 1.0-4365 Wed May 28 09:23:41 PDT 2003
(II) NVIDIA Unified Driver for all NVIDIA GPUs
...
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "HWcursor"
(**) NVIDIA(0): Using HW cursor
(==) NVIDIA(0): video key set to default value of 0x101fe
(--) NVIDIA(0): Linear framebuffer at 0xDA000000
(--) NVIDIA(0): MMIO registers at 0xD8000000
(--) NVIDIA(0): Found 1 CRTC on board
(II) NVIDIA(0): Supported display device(s): CRT-0, DFP-0, TV-0
(II) NVIDIA(0): Boot display device(s): CRT-0
(II) NVIDIA(0): NVIDIA GPU detected as: RIVA TNT2 Ultra
(II) NVIDIA(0): Chip Architecture: 0x4
(II) NVIDIA(0): Chip Implementation: 0x5
(II) NVIDIA(0): Chip Revision: 0x1
(--) NVIDIA(0): VideoBIOS: 03.05.00.10.00
(--) NVIDIA(0): VideoRAM: 32768 kBytes
(II) NVIDIA(0): Connected display device(s): CRT-0
(--) NVIDIA(0): Detected TV Encoder: Chrontel 7005
(II) NVIDIA(0): Enabled display device(s): CRT-0
(II) NVIDIA(0): Mapping display device 0 (CRT-0) to CRTC 0
(--) NVIDIA(0): Display device CRT-0: maximum pixel clock at 8 bpp: 250 MHz
(--) NVIDIA(0): Display device CRT-0: maximum pixel clock at 16 bpp: 250 MHz
(--) NVIDIA(0): Display device CRT-0: maximum pixel clock at 32 bpp: 215 MHz
...
(II) NVIDIA(0): Memory and vga registers mapped
(II) NVIDIA(0): Verifying AGP usage for Screen 0...
(II) NVIDIA(0): AGP 2X successfully initialized
(II) NVIDIA(0): kernel module enabled successfully
(II) NVIDIA(0): Interrupts enabled
(II) NVIDIA(0): Setting mode "1280x1024"
(II) NVIDIA(0): First mode initialized
(II) NVIDIA(0): Visuals set up
(II) NVIDIA(0): Pixmap depths set up
(II) NVIDIA(0): GLX visuals set up
(II) NVIDIA(0): Framebuffer set up
(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(II) NVIDIA(0): Default colormap set up
(II) NVIDIA(0): Palette loaded
(**) Option "dpms"
(**) NVIDIA(0): DPMS enabled
(II) Loading extension NV-GLX
(II) Loading extension NV-CONTROL
(II) NVIDIA(0): Screen initialization complete
--
Dan Lukes tel: +420 2 21914205, fax: +420 2 21914206
root of FIONet, KolejNET, webmaster of www.freebsd.cz
AKA: d...@obluda.cz, d...@freebsd.cz,d...@kolej.mff.cuni.cz
I would like to add that I had emailed nvidia support for assistance
before posting this problem here and had received one reply, which I
will include below.
----
Greetings, Scott. Thank you for your email.
You should remove both of these lines:
ChipSet "RIVA TNT2 Model 64"
Card "nv RIVA TNT2 Model 64"
from the Device section.
If the machine reboots itself at that point, then it might
interesting to see if there are any relevant error messages in your
kernel log files.
You may also want to try disabling AGP (set the "NVAGP" XF86Config
option to "0") to see if that affects the behavior.
I hope that helps,
- Andy Ritger
> Now, the situation that the nvidia driver seemingly produces the bug
> in 4.x and not in 5.x is intriguing. Does anyone have the nvidia
> drivers (not "nv", rather "nvidia") working in 4.x?
They're working fine for me in 4.8-RELEASE. I don't remember all the
details of what I had to tweak to get it working, but I reported my
success in this group, so a Google Groups search should turn it up.
--
Aaron
abau...@esc.pike.il.us
Hello Aaron,
I found your post with the following search:
comp.unix.bsd.freebsd.misc "aaron baugher" nvidia
dated 2003-01-28. It seems I may not have run the "make setup"
properly. I had read about it and attempted it by entering that command
but it did not do anything, just provided the next command line. Maybe
I should have investigated that situation more thoroughly. Anyway, my
system is working just fine with the 5.1 -release.
Thanks,
-Scott
> dated 2003-01-28. It seems I may not have run the "make setup"
> properly. I had read about it and attempted it by entering that
> command but it did not do anything, just provided the next command
> line. Maybe I should have investigated that situation more
> thoroughly. Anyway, my system is working just fine with the 5.1
> -release.
That's good to know. I've been thinking of upgrading, but wasn't
certain the nvidia stuff would work.
--
Aaron
abau...@esc.pike.il.us