LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   another thread about 3d Hardware acceleration wih NVIDIA (https://www.linuxquestions.org/questions/linux-software-2/another-thread-about-3d-hardware-acceleration-wih-nvidia-97939/)

thegreatgatsby 09-28-2003 03:34 PM

another thread about 3d Hardware acceleration wih NVIDIA
 
Trying to activate 3d hardware acceleration
NVIDIA GeForce2 GPU driver
I have downloaded & installed the nvidia drivers (through suse's update service)
3d graphic acceleration enabled, but when trying to play tux racer "3d hardware support not enabled"
have looked in suse database (which suggests the below actions) & have read the readme file.
However have not got it working!!
please could someone help

thanks



le@linux:~> /usr/bin/gears
1634 frames in 5.000 seconds = 326.800 FPS
1697 frames in 5.001 seconds = 339.332 FPS
le@linux:~> su
Password:
linux:/home/le # /usr/X11R6/bin/switch2nv_glx
bash: /usr/X11R6/bin/switch2nv_glx: No such file or directory
linux:/home/le # /usr/bin/gears
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

GLUT: Fatal Error in gears: could not open display: :0.0
linux:/home/le # /usr/bin/gears
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


:newbie:

Caeda 09-28-2003 04:05 PM

And in your XF86Config file you have the option

Load GLX

and not..

Load DRI

thegreatgatsby 09-28-2003 04:22 PM

sorry, please could you explain what i need to do?
are you saying I should I type something like:

linux:/home/le # /usr/X11R6/bin/load glx

???

biggyfries 09-28-2003 06:42 PM

xf86config
 
To find more info regarding the XF86 config file, i went straight to the "horse's mouth", and got the insturctions form NVIDIA:

nvidia link

i went into /etc/X11/XF86Config (opened it up in a text editor), and followed nvidia's instructions on it (section 3).

Done it twice so far, and this worked for me. Only bad thing: you have to do it over with upgrading your kernel.

HTH,

dan

thegreatgatsby 09-29-2003 02:43 PM

thanks, have looked at the readme file & my xf86 config
it appears I don't have glx.
this is part of the output:

II) LoadModule: "glx"
(WW) Warning, couldn't open module glx
(II) UnloadModule: "glx"
(EE) Failed to load module "glx" (module does not exist, 0)
(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.4496
Module class: XFree86 Video Driver

and

EE) NVIDIA(0): Failed to load GLX
(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture

what next?? should I try and re-install the nVIDIA drivers??



:newbie:

mossy 09-29-2003 05:10 PM

I would get the latest drivers from the nVidia site and follow them to the 'T' - my installation went fine - the instructions were very informative and I was really pleased overall. worked like a charm IF you follow the instructions properly.

OR - just go over their instructions anyway and see if their instructions for the file editing can help you - they should be pretty similiar.

crashmeister 09-30-2003 05:15 AM

When you try to run glxgears as root from a user account you'll need to do xhost + first as the user to allow root to use the x server.

thegreatgatsby 09-30-2003 05:47 AM

why does glx not load / exist?

crashmeister 09-30-2003 06:38 AM

You'll probably better off to get the drivers from nvidia and install those instead of the Suse setup.Something seems to go wrong there.You can also try this to see what goes on there:

bash-2.05b# cat /proc/driver/nvidia/version
NVRM version: NVIDIA Linux x86 nvidia.o Kernel Module 1.0-4496 Wed Jul 16 19:03:09 PDT 2003
GCC version: gcc version 3.3.1 20030904 (Gentoo Linux 3.3.1-r1, propolice)
bash-2.05b# cat /proc/driver/nvidia/cards/0
Model: GeForce FX 5600
IRQ: 5
Video BIOS: 04.31.20.38.00
Card Type: AGP
bash-2.05b# cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: NVIDIA
AGP Rate: 8x
Fast Writes: Enabled
SBA: Disabled
bash-2.05b# cat /proc/driver/nvidia/agp/card
Fast Writes: Supported
SBA: Supported
AGP Rates: 8x 4x
Registers: 0x1f000e1b:0x1f004112

thegreatgatsby 09-30-2003 07:27 AM

thank you, I really appreciate your help
it appears that the newest drivers are installed
as you can probably tell I'm pretty new to this!!

le@linux:~> cat /proc/driver/nvidia/version
NVRM version: NVIDIA Linux x86 nvidia.o Kernel Module 1.0-4496 Wed Jul 16 19:03:09 PDT 2003
GCC version: gcc version 3.2
le@linux:~> cat /proc/driver/nvidia/cards/0
Model: GeForce2 Integrated GPU
IRQ: 11
Video BIOS: 03.1a.01.03.02
Card Type: AGP
le@linux:~> cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: NVIDIA
AGP Rate: 4x
Fast Writes: Disabled
SBA: Disabled
le@linux:~> cat /proc/driver/nvidia/agp/card
Fast Writes: Supported
SBA: Not Supported
AGP Rates: 4x 1x
Registers: 0x1f000015:0x1f000104

crashmeister 09-30-2003 07:45 AM

Check with /usr/X11R6/lib/modules/extensions
There should be a link called libglx.so to /usr/lib/opengl/nvidia/extensions/libglx.so
At least thats what it loads for glx here.

thegreatgatsby 09-30-2003 07:50 AM

/usr/X11R6/lib/modules/extensions

is empty

crashmeister 09-30-2003 08:08 AM

You could try to add this link if the lib exsists in /usr/lib/opengl/nvidia/extensions/libglx.so
As root do:
cd /usr/X11R6/lib/modules/extensions
ln -s /usr/lib/opengl/nvidia/extensions/libglx.so

If that doesn't work get rid of the link afterwards.

thegreatgatsby 09-30-2003 08:41 AM

thanks
have done above
lib glx.so is now there along with other stuff
I have rebooted
but still get following in my xf86 log & no 3d hardware acceleration.

should I get rid of the link, and if so how? (can I just delete them all in file manager)

II) LoadModule: "glx"
(WW) Warning, couldn't open module glx
(II) UnloadModule: "glx"
(EE) Failed to load module "glx" (module does not exist, 0)

crashmeister 09-30-2003 08:48 AM

You can delete the link in a file manager - no problem.
I'd try to uninstall the Suse-nvidia stuff you got in there and install the drivers from nvidia's website.


All times are GMT -5. The time now is 10:53 AM.