Go Back   nV News Forums > Linux Support Forums > NVIDIA FreeBSD

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-03-08, 03:37 PM   #1
olivier69
Registered User
 
Join Date: Sep 2007
Posts: 11
Question Is compat5x really needed ?

Apparently, the libGL.so binary distributed with FreeBSD nVidia drivers is the only binary which needs compat5x in this package. When I install the ports' libGL after nvidia-driver (96xx or 71xx, I've got an integrated GeForce 4 MX) everything works fine without compat5x. It even solved a "black screen" problem I had with full-screen 3D apps when using 96xx drivers (I still have better perfs with 71xx though).

For example :
# portupgrade -f xorg-server
# portupgrade -f nvidia-driver
# portupgrade -f libGL
# pkg_delete -f compat5x\*
And after that, every 3D app works fine.

So, is there a reason for which this binary libGL is distributed with the FreeBSD nVidia driver ? Now that modular xorg is the only supported X server on FreeBSD, wouldn't it be better to remove the bundled libGL, depend on the graphics/libGL port, and remove compat5x dependency ?
olivier69 is offline   Reply With Quote
Old 06-03-08, 06:01 PM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Is compat5x really needed ?

Please see http://www.nvnews.net/vbulletin/show...&postcount=314. The libGL.so.1/libGLcore.so.1 libraries bundled with the driver include NVIDIA's OpenGL implementation and cannot be replaced if you want hardware acceleration.
zander is offline   Reply With Quote
Old 06-04-08, 11:51 AM   #3
olivier69
Registered User
 
Join Date: Sep 2007
Posts: 11
Exclamation Re: Is compat5x really needed ?

But they are, at least on my system. And I've got hardware acceleration. That's why I posted...

% ldconfig -r | grep libGL
108:-lGL.1 => /usr/local/lib/libGL.so.1
168:-lGLU.1 => /usr/local/lib/libGLU.so.1
190:-lGLcore.1 => /usr/local/lib/libGLcore.so.1
% ll /usr/local/lib/libGL*
lrwxr-xr-x 1 root wheel - 10 3 jui 21:16 /usr/local/lib/libGL.so@ -> libGL.so.1
-r-xr-xr-x 1 root wheel - 387840 3 jui 21:16 /usr/local/lib/libGL.so.1*
lrwxr-xr-x 1 root wheel - 11 3 jui 21:17 /usr/local/lib/libGLU.so@ -> libGLU.so.1
-r-xr-xr-x 1 root wheel - 503260 3 jui 21:17 /usr/local/lib/libGLU.so.1*
lrwxr-xr-x 1 root wheel - 14 3 jui 21:11 /usr/local/lib/libGLcore.so@ -> libGLcore.so.1
-r--r--r-- 1 root wheel - 8504784 3 jui 21:11 /usr/local/lib/libGLcore.so.1
% ll NVIDIA-FreeBSD-x86-96.43.05/obj/libGL*
-r--r--r-- 1 root wheel 612044 13 fév 18:12 NVIDIA-FreeBSD-x86-96.43.05/obj/libGL.so.1
-rwxr-xr-x 1 root wheel 8504784 13 fév 18:12 NVIDIA-FreeBSD-x86-96.43.05/obj/libGLcore.so.1

That's clear my libGL is not the nvidia one, no need to md5.

libGLcore.so.1 has been installed by nvidia-driver, which I have to install after xorg-server (because it also has this lib). libGL.so.1 has been installed after nvidia-driver by the x11/libGL port. After that, I deleted compat5x. Now everything is working fine, even better than before replacing nvidia's libGL with the port's one. By "fine" I mean "with hardware acceleration".

I've got a GeForce4 MX Integrated GPU and I use latest ports : xorg 7.3, xorg-server 1.4, libGL 7.0.3.
olivier69 is offline   Reply With Quote
Old 06-04-08, 12:23 PM   #4
olivier69
Registered User
 
Join Date: Sep 2007
Posts: 11
Default Re: Is compat5x really needed ?

What is strange is that :
% glxinfo | grep direct
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)

But quake3, rtc wolfenstein, glxgears and eduke32+HRP run well with no FPS loss (compared to before replacing nvidia's libGL with the graphics/libGL port and pkg_delete'ing compat5x).
olivier69 is offline   Reply With Quote
Old 06-04-08, 02:32 PM   #5
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Is compat5x really needed ?

Are these native FreeBSD or Linux applications?
zander is offline   Reply With Quote
Old 06-04-08, 04:07 PM   #6
olivier69
Registered User
 
Join Date: Sep 2007
Posts: 11
Default Re: Is compat5x really needed ?

Both.
Quake 3 : native
Return to Castle Wolfenstein : Linux compat
glxgears : native
eduke32 : native

Note that the graphics/libGL port has only replaced native libGL, not the Linux one.
olivier69 is offline   Reply With Quote
Old 06-05-08, 01:58 PM   #7
gigiita
Registered User
 
Join Date: Jan 2008
Posts: 17
Default Re: Is compat5x really needed ?

Please, try to run glxinfo. There are three important strings:
- server glx vendor string
- client glx vendor string
- OpenGL vendor string
All three should report "NVIDIA Corporation", which means you have correctly installed the nVidia driver, and you have full hardware acceleration

If instead you have "client glx vendor string: SGI" it means you have the Mesa version of libGL and you have some partial hardware acceleration.
With a GeForce 4 MX it is much probable you don't notice any performance loss or if you have a fast CPU, you can get better performance with this hardware/software mix.

To have full acceleration you should reinstall nVidia driver over libGL.

By the way, which FreeBSD version are you running?
gigiita is offline   Reply With Quote
Old 06-05-08, 03:12 PM   #8
olivier69
Registered User
 
Join Date: Sep 2007
Posts: 11
Default Re: Is compat5x really needed ?

% glxinfo | grep vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: SGI
OpenGL vendor string: NVIDIA Corporation

Yes, I've got the Mesa libGL, and I really don't have any difference with when I used the nvidia's one. Maybe I should diff the output of glxinfo with the nvidia libGL and the Mesa one, to see if my system supports less OpenGL extensions ?

I'm running 7.0. And without compat5x now
olivier69 is offline   Reply With Quote

Old 06-05-08, 05:16 PM   #9
zebdits
Registered User
 
Join Date: Mar 2007
Posts: 51
Default Re: Is compat5x really needed ?

Someone may also consider that 5.x release is EOL since May 31, 2008
zebdits is offline   Reply With Quote
Old 06-06-08, 06:53 AM   #10
gigiita
Registered User
 
Join Date: Jan 2008
Posts: 17
Default Re: Is compat5x really needed ?

Quote:
Originally Posted by olivier69 View Post
% glxinfo | grep vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: SGI
OpenGL vendor string: NVIDIA Corporation

Yes, I've got the Mesa libGL, and I really don't have any difference with when I used the nvidia's one. Maybe I should diff the output of glxinfo with the nvidia libGL and the Mesa one, to see if my system supports less OpenGL extensions ?

I'm running 7.0. And without compat5x now
To me, equipped with a 7600 GS, the nVidia client gives me OpenGL 2.1.2 support, the SGI client gives only 1.4. Maybe a GeForce 4 MX can anyway support no more than 1.4 or 1.5.
I have performance drop if I use SGI client, but more important, I really miss some functions. For example, using Celestia with nVidia client gives me five render paths, including the newest OpenGL 2.0, using the SGI one gives me only three paths without 2.0.
What makes me think is the fact that you can run Linux applications. Here we are discussing from long time about troubles in the Linux emulation without understand where is the trick. It seems that on FreeBSD 7.0 Linux emulation and nVidia are somewhat incompatible, as anyone of us can run Linux 3D games, for example.
But you can, with an old 4 MX card. That's a master information!
Please, keep us informed about any news about your system.
gigiita is offline   Reply With Quote
Old 06-06-08, 03:07 PM   #11
olivier69
Registered User
 
Join Date: Sep 2007
Posts: 11
Default Re: Is compat5x really needed ?

Ok
I'm still using "compat.linux.osrelease: 2.4.2" and "emulators/linux_base-fc4".

I tried Return to Castle Wolfenstein (games/rtcw) with 2.6 and a more recent fc-release, but it didn't work. I don't remember why... maybe just shared libs versions problems with this old game.
olivier69 is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Flame's crypto attack may have needed $200,000 worth of compute power News Archived News Items 0 06-11-12 09:40 PM
Anatomy of a hack: 6 separate bugs needed to bring down Google browser News Archived News Items 0 05-22-12 06:40 PM
NVidia Drivers HowTo for RedHat 8.0 needed eduardp NVIDIA Linux 10 10-04-02 03:59 AM
Powersupply help needed. Zarich General Hardware 7 09-25-02 01:45 AM
Video card upgrade advice needed Billy34 NVIDIA GeForce 7, 8, And 9 Series 5 08-28-02 05:19 PM

All times are GMT -5. The time now is 02:26 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.