Click to See Complete Forum and Search --> : 3d apps not using NVidia driver


cybertron
05-21-2004, 11:28 PM
I recently reinstalled Mandrake 10.0 Official from scratch to try to fix a couple of problems including this one. The NVidia installer completes fine and says that everything was installed. I've edited my XF86Config-4 file and x runs just fine with the pretty nvidia splash screen. However, none of my 3d applications or screensavers appear to be using the new drivers.

I've tried doing ldd on glxgears, and discovered that it was using the libGL files in various tls directories. I tried renaming all of the tls directories to XXXtls, which I think is what is suggested in the README, but even though it appeared to be using the correct drivers now, it still doesn't work. There aren't anywhere near as many listed as in the README either.

I've pretty much run out of ideas, and I think I've read just about every word of the rather long nvidia readme. Any help would be appreciated.

Here's the output from ldd;

[cybertron@Tuxtop ~]$ ldd /usr/X11R6/bin/glxgears
linux-gate.so.1 => (0xffffe000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x40025000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40082000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40090000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40172000)
libm.so.6 => /lib/libm.so.6 (0x401c4000)
libc.so.6 => /lib/libc.so.6 (0x401e8000)
libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x40323000)
libdl.so.2 => /lib/libdl.so.2 (0x407cf000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

DSwain
05-21-2004, 11:54 PM
did you do this in the XF86Config-4: under module:

# This loads the GLX module
Load "glx"

that it needed also for glx apps to run properly.

cybertron
05-22-2004, 12:06 AM
Yep, and also made sure that Load "glcore" and "dri" were not there.

DSwain
05-22-2004, 12:44 AM
maybe you should try dri in there... i always used it for my config and always worked fine with it. worth a shot maybe?

GaryJones32
05-22-2004, 05:07 AM
check logs and see if you are getting an error message
this is from the nvidia docs and i had to do this
to get it to work in Fedora
if your system has
the file
/etc/security/console.perms
then you should edit the file and remove the line that starts with
"<dri>" (we have also received reports that additional references to
<dri> in console.perms must be removed, but this has not been verified
by NVIDIA). yes take out/comment out all the references to <dri> or system won't work right -- crazy people
If instead your system has the file
/etc/logindevperms
then you should edit the file and remove the line that lists
/dev/nvidiactl. The above steps will prevent the PAM security system
from modifying the permissions on the NVIDIA device files. Next,
you will need to reset the permissions on the device files back
to their original permissions and owner. You can do that with the
following commands:
chmod 0666 /dev/nvidia* chown root /dev/nvidia*

the permissions have to be set to 666 cause christians thing 3d video games are their antichrist

cybertron
05-22-2004, 11:17 AM
Tried adding Load "dri" back in but got the "extension GLX missing on display :0.0" error.

I didn't see any errors in my /var/log/XFree86.0.log file. There were a couple of warnings, but they didn't seem to be related to my drivers. I'll go try commenting out those lines though and see if that takes care of it.

Have to go restart X now. Will report back when everything's running again. Actually, is just restarting X enough to make these changes take effect? On second thought maybe I'll restart completely just to be safe.

bs_texas
05-22-2004, 11:23 AM
How does ldd show anything related to nvidia drivers?
(I'm not being sarcastic. I just don't know.)
Here's the output from my red hat machine:

[root@localhost root]# ldd /usr/X11R6/bin/glxgears
libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x40030000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x400a4000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x400b2000)
libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40190000)
libm.so.6 => /lib/i686/libm.so.6 (0x401e0000)
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
libdl.so.2 => /lib/libdl.so.2 (0x40202000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
[root@localhost root]#
What should I expect to see in there if the nvidia driver is being used? A far as I know, the nvidia drivers are being used. I do get the splash screen.

Here's the output from a slackware machine:

bslack@bslack9:/usr/X11R6/bin$ ldd glxgears
libGL.so.1 => /usr/lib/libGL.so.1 (0x4002c000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40088000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40096000)
libpthread.so.0 => /lib/libpthread.so.0 (0x4015e000)
libm.so.6 => /lib/libm.so.6 (0x401b0000)
libc.so.6 => /lib/libc.so.6 (0x401d2000)
libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x40301000)
libdl.so.2 => /lib/libdl.so.2 (0x407ac000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
bslack@bslack9:/usr/X11R6/bin$

My 3D screensavers work beautifully...

cybertron
05-22-2004, 11:59 AM
First let me confirm that if you don't remove all references to dri from console.perms your system will not boot. First hand experience:(

Anyway, I still have no acceleration on 3d apps. I did notice however that I don't have all of the /dev entries that I'm supposed to. There's supposed to be nvidia0-3 and nvidiactl, but I've only got nvidia0 and nvidiactl.

I've also discovered that the reason for getting the no GLX on display error is actually my renaming of the tls directories.

As far as what ldd tells you about the 3d driver, it's apparently not much. I can make mine match the ones in the README and then OpenGL apps don't run at all. It was just mentioned in the readme as a way to check that the app was using the correct libraries. Doesn't work very well:) Back to the drawing board I guess.