Jump to content

Trouble with OpenGL with an NVidia graphics card


m0tion
 Share

Recommended Posts

I'm running Mandrake 10.1 x86-64 RC1. I have an NVidia Geforce4 Ti4200 (AGP), the NVidia kernel module is loaded and I'm using it as my driver in my XF86Config. When I run "glxgears" from a shell in X I get the following messages:

[wigginjs@tehabsolutrazar wigginjs]$ glxgears

Loading required GL library /usr/lib64/libGL.so.1

Segmentation fault

 

When I run the Doom3 demo from a shell in X I get the following messages:

[wigginjs@tehabsolutrazar wigginjs]$ doom3-demo

DOOM 1.1.1286 linux-x86 Nov 28 2004 20:09:31

Hostname: absolutrazar

Alias: tehabsolutrazar

Alias: localhost

local IP: 127.0.0.1

------ Initializing File System ------

Loaded pk4 /usr/local/games/doom3-demo/demo/demo00.pk4 with checksum 0xfe75bbef

Current search path:

/home/wigginjs/.doom3-demo/demo

/usr/local/games/doom3-demo/demo

/usr/local/games/doom3-demo/demo/demo00.pk4 (12234 files)

game DLL: 0x0 in pak: 0x0

file system initialized.

--------------------------------------

 

Running in restricted demo mode.

 

----- Initializing Decls -----

------------------------------

------- Initializing renderSystem --------

using ARB renderSystem

renderSystem initialized.

--------------------------------------

5151 strings read from strings/english.lang

Couldn't open journal files

couldn't exec editor.cfg

execing default.cfg

couldn't exec DoomConfig.cfg

couldn't exec autoexec.cfg

5151 strings read from strings/english.lang

----- Initializing Sound System ------

sound system initialized.

--------------------------------------

----- R_InitOpenGL -----

Setup X display connection

dlopen(libGL.so.1)

Initializing OpenGL display

Using XFree86-VidModeExtension Version 2.2

DGA DirectVideo Mouse (Version 2.0) initialized

Free86-VidModeExtension Activated at 640x480

Loading compatibility GL library /usr/X11R6/lib/libGL.so.1.4.502

 

In the case of glxgears a small window opens in the top corner of my screen and then immediately closes. In the case of doom3-demo, my screen resolution does get changed to 640x480, but it is just a "zoomed" mode of X, I never actually see any game generated graphics. The game is then stuck at the last line you see in the quote until I kill it. It seems like the GL libraries are available and being loaded, but not functioning correctly in my system. Any ideas, suggestions? I'd be happy to run some more tests, but I can't think of anything else that would be relevant.

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

1) any difference running under root?

 

2) Which drivers are you using? Have you tried downloading from a different site and re-installing?

 

2) try fixing your simlinks in case they're broken: as root run

ln -fs /usr/lib/libGL.so.$NVVER /usr/X11R6/lib/libGL.so

ln -fs /usr/lib/libGL.so.$NVVER /usr/X11R6/lib/libGL.so.1

ln -fs libGL.so.$NVVER /usr/lib/libGL.so.1.2

 

where $NVVER is the version of your nvidia package, e.g. 1.0.6106

Link to comment
Share on other sites

1) no, same result when I run these programs as root

 

2) I have version number 1.0.6629. I haven't tried reinstalling them because they seem to work fine otherwise, when X starts up I get the NVidia splash screen and everything.

 

3) I re-made these symlinks and it didn't seem to have an effect. I checked out the file /usr/lib64/libGL.so.1 and it is a symlink to /usr/lib64/libGL.so.1.0.6629, I suppose this is the 64-bit version of this library. I did install the AMD64 compatible NVidia drivers. I tried linking /usr/lib64/libGL.so.1 to /usr/lib/libGL.so.1.0.6629 (the 32-bit version of the library, I suppose) and I get the message shown below.

 

[root@tehabsolutrazar downloads]# glxgears

Loading compatibility GL library /usr/X11R6/lib64/libGL.so.1.4.502

Segmentation fault

 

I don't have any ideas on how to procede.

Link to comment
Share on other sites

Did you make all the required changes to your xorg.conf ?

 

2) I have version number 1.0.6629. I haven't tried reinstalling them because they seem to work fine otherwise, when X starts up I get the NVidia splash screen and everything.

 

I'd tend to disagree, if GL doesn't work you might as well be using the open source nvidia driver.

Link to comment
Share on other sites

QChem:

 

Well, as I said earlier, I changed the driver parameter in XF86Config to "nvidia" and made sure "glx" was listed as a module. When X starts it does display the NVidia splash screen which in my experience means it's using the proprietary NVidia driver. In my configuration /etc/X11/xorg.conf is just a symlink to /etc/X11/XF86Config.

Link to comment
Share on other sites

Ran the same nvidia driver installer again, it defaulted to removing the existing driver and then re-installing it. It also copied the GL libraries again. Everything seems to work now, but I'm not sure why it didn't the first time. Thanks to everyone who helped me trouble-shoot this.

Link to comment
Share on other sites

Interesting, glxgears works fine now as does glxinfo, but doom3-demo now gives the following message.

 

[wigginjs@tehabsolutrazar wigginjs]$ doom3-demo

DOOM 1.1.1286 linux-x86 Nov 28 2004 20:09:31

Hostname: absolutrazar

Alias: tehabsolutrazar

Alias: localhost

local IP: 127.0.0.1

------ Initializing File System ------

Loaded pk4 /usr/local/games/doom3-demo/demo/demo00.pk4 with checksum 0xfe75bbef

Current search path:

/home/wigginjs/.doom3-demo/demo

/usr/local/games/doom3-demo/demo

/usr/local/games/doom3-demo/demo/demo00.pk4 (12234 files)

game DLL: 0x0 in pak: 0x0

file system initialized.

--------------------------------------

 

Running in restricted demo mode.

 

----- Initializing Decls -----

------------------------------

------- Initializing renderSystem --------

using ARB renderSystem

renderSystem initialized.

--------------------------------------

5151 strings read from strings/english.lang

Couldn't open journal files

couldn't exec editor.cfg

execing default.cfg

couldn't exec DoomConfig.cfg

couldn't exec autoexec.cfg

5151 strings read from strings/english.lang

----- Initializing Sound System ------

sound system initialized.

--------------------------------------

----- R_InitOpenGL -----

Setup X display connection

dlopen(libGL.so.1)

dlopen(libGL.so.1)

idRenderSystem::Shutdown()

signal caught: Segmentation fault

si_code 1

Was in fatal error shutdown: Unable to initialize OpenGL

Trying to exit gracefully..

 

Stops earlier than it did before i re-installed the drivers... Now I'm really confused =).

Link to comment
Share on other sites

  • 3 months later...
And check in glxinfo that you've got direct rendering on.

I've got everything working with my nVidia GeForce 4 Ti4200. Quake3 Arena works fine, and so does glxgears.

But now I've tried to run Doom3. And it doesn't :(

And it's only now I found out I DON'T have direct rendering according to glxinfo.

But I haven't a clue about how to set it on...

 

Here's my glxinfo output:

glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: No
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
server glx extensions:
   GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
   GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
   GLX_ARB_multisample
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
   GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
   GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
   GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
   GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control,
   GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
   GLX_SGIX_visual_select_group
GLX extensions:
   GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
   GLX_EXT_visual_rating, GLX_SGI_swap_control, GLX_SGI_video_sync,
   GLX_SGIX_fbconfig
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce4 Ti 4200 with AGP8X/AGP/SSE/3DNOW!
OpenGL version string: 1.2 (1.5.3 NVIDIA 71.74)
OpenGL extensions:
   GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multitexture,
   GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
   GL_ARB_texture_border_clamp, GL_ARB_texture_cube_map,
   GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
   GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
   GL_ARB_window_pos, GL_EXT_texture_env_add, GL_EXT_abgr, GL_EXT_bgra,
   GL_EXT_blend_color, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
   GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
   GL_EXT_packed_pixels, GL_EXT_rescale_normal, GL_EXT_secondary_color,
   GL_EXT_separate_specular_color, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap,
   GL_EXT_texture3D, GL_EXT_texture_edge_clamp, GL_EXT_texture_env_combine,
   GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
   GL_EXT_texture_lod, GL_EXT_texture_lod_bias, GL_EXT_texture_object,
   GL_EXT_vertex_array, GL_IBM_rasterpos_clip,
   GL_IBM_texture_mirrored_repeat, GL_NV_blend_square,
   GL_NV_copy_depth_to_color, GL_NV_depth_clamp, GL_NV_fog_distance,
   GL_NV_light_max_exponent, GL_NV_multisample_filter_hint,
   GL_NV_texgen_reflection, GL_NV_texture_rectangle, GL_SGIS_generate_mipmap,
   GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_shadow,
   GL_SUN_slice_accum
glu version: 1.3
glu extensions:
   GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...