No 3D acceleration with nvidia on SuSE 8.2: HELP! - X

This is a discussion on No 3D acceleration with nvidia on SuSE 8.2: HELP! - X ; Hi, I've been having trouble getting 3D acceleration up and running on my SuSE 8.2 box (stock kernel) with an nvidia NV18 (GeForce 4 MX 440) card with 64 megs of RAM. It looks like the culprit is that glx ...

+ Reply to Thread
Results 1 to 7 of 7

Thread: No 3D acceleration with nvidia on SuSE 8.2: HELP!

  1. No 3D acceleration with nvidia on SuSE 8.2: HELP!

    Hi,

    I've been having trouble getting 3D acceleration up and running on my
    SuSE 8.2 box (stock kernel) with an nvidia NV18 (GeForce 4 MX 440) card
    with 64 megs of RAM. It looks like the culprit is that glx is not loading.

    I've installed the latest driver from nvidias website and followed their
    instructions. Everything seems fine: I get the nvidia splash screen and
    all that but my 3D performance is still slow. glxgears produces very low
    frame rates:

    $ glxgears
    1237 frames in 5.0 seconds = 247.400 FPS
    1313 frames in 5.0 seconds = 262.600 FPS

    I was expecting numbers in the thousands which is what I get on my lower
    spec laptop. The desktop producing these low rates is a an Athlon
    2000XP, on an Asus VIA mobo (A7V266) with around 630mb RAM. I've set the
    screen resolution to 1200x1600 with 16bit colours. That's running in
    XFree86 Version 4.3.

    I do get the nvidia splash screen and lsmod shows the kernel module is
    loaded. So it all seems to be there but I'm not getting the 3D acceleration:

    glxinfo says- direct rendering: No
    and 3Ddiag also says that I'm on software 3D rendering.

    (outputs at bottom of post)

    My XF86config file seems good and is obviously trying to load glx:

    Section "Module"
    Load "dbe"
    Load "type1"
    Load "speedo"
    Load "freetype"
    Load "extmod"
    Load "glx"
    Load "v4l"
    EndSection

    Section "Device"
    BoardName "GeForce4 MX 440"
    Driver "nvidia"
    Identifier "Device[0]"
    Screen 0
    Option "Rotate" "off"
    VendorName "NVidia"
    EndSection

    My XF86log shows that it can load module glx.
    (II) NVIDIA(0): Setting mode "1600x1200"
    (II) Loading extension NV-GLX
    (II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized
    (II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
    (==) NVIDIA(0): Backing store disabled
    (==) NVIDIA(0): Silken mouse enabled
    (II) Loading extension NV-CONTROL
    (EE) NVIDIA(0): Failed to load GLX
    (WW) NVIDIA(0): Option "Rotate" is not used
    (WW) NVIDIA(0): Option "CalcAlgorithm" is not used



    So I fix that by sorting out the symbolic links in
    /usr/X11R6/lib/modules/extensions/

    Now it loads. However, the performance of glxgears is unchanged and
    games such as cube (www.cube.com) run at ~28FPS and are barely playable.

    Anyone have any idea what I could be doing wrong??

    Rob


    p.s. hope I have provided the right sorts of info to help people answer
    the question.





    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%

    $ 3Ddiag
    3Ddiag version 0.691
    Verifying 3D configuration:
    Using 3dinfo
    ************************************************** **********

    Verifying 3D configuration based on XFree86 4 for 3D board
    "nVidia Corporation 0x0181 (10de@0181)":


    Verifying driver installation:
    nvidia ... failed!
    ======================= !!! WARNING !!! ========================
    Due to license issues only a Dummy Nvidia 2D/3D driver with
    Software 3D/OpenGL rendering is provided. Please download
    the official 2D/3D Nvidia driver from the nVidia webserver
    (http://www.nvidia.com), if you want to use 3D hardware
    accelerated 3D/OpenGL.
    ================================================== ==============

    Tests for correct OpenGL libraries/GLX extensions:

    Test for correct XFree86 version ... done.

    Tests for XFree86 configuration:
    Config File /etc/X11/XF86Config ... done.
    Driver ... done.
    Color Depth ... done.
    Extensions ... done.
    Options ... done.

    ----------------------- NOTE -----------------------------------
    If 3D hardware OpenGL configuration is not stable enough, you
    should switch back to 'Mesa Software Rendering'. You can
    verify this configuration with the command "3Ddiag --mesasoft".
    ----------------------- NOTE -----------------------------------

    Checking GLU/glut runtime configuration:
    GLU ... done (package mesaglu)
    glut ... done (package mesaglut)






    glxinfo
    name of display: :0.0
    display: :0 screen: 0
    direct rendering: No
    server glx vendor string: Brian Paul
    server glx version string: 1.4 Mesa 5.0
    server glx extensions:
    GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
    GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
    GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_SGI_video_sync, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer
    client glx vendor string: Brian Paul
    client glx version string: 1.4 Mesa 5.0
    client glx extensions:
    GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
    GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
    GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_SGI_video_sync, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer
    GLX extensions:
    GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
    GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
    GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_SGI_video_sync, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer
    OpenGL vendor string: Brian Paul
    OpenGL renderer string: Mesa X11
    OpenGL version string: 1.4 Mesa 5.0
    OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multisample,
    GL_ARB_multitexture, GL_ARB_point_parameters, GL_ARB_shadow,
    GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
    GL_ARB_texture_compression, GL_ARB_texture_cube_map,
    GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
    GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
    GL_ARB_texture_mirrored_repeat, GL_ARB_transpose_matrix,
    GL_ARB_window_pos, GL_ATI_texture_mirror_once, GL_EXT_abgr,
    GL_EXT_bgra,
    GL_EXT_blend_color, GL_EXT_blend_func_separate, GL_EXT_blend_logic_op,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
    GL_EXT_convolution, GL_EXT_compiled_vertex_array, GL_EXT_fog_coord,
    GL_EXT_histogram, GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels,
    GL_EXT_paletted_texture, GL_EXT_point_parameters,
    GL_EXT_polygon_offset,
    GL_EXT_rescale_normal, GL_EXT_secondary_color, GL_EXT_shadow_funcs,
    GL_EXT_shared_texture_palette, GL_EXT_stencil_wrap,
    GL_EXT_stencil_two_side, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
    GL_EXT_texture_env_dot3, GL_EXT_texture_object,
    GL_EXT_texture_lod_bias,
    GL_EXT_vertex_array, GL_HP_occlusion_test, GL_IBM_rasterpos_clip,
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
    GL_MESA_pack_invert, GL_MESA_resize_buffers, GL_MESA_ycbcr_texture,
    GL_MESA_window_pos, GL_NV_blend_square, GL_NV_point_sprite,
    GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_NV_vertex_program,
    GL_NV_vertex_program1_1, GL_SGI_color_matrix, GL_SGI_color_table,
    GL_SGIS_generate_mipmap, GL_SGIS_pixel_texture,
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
    GL_SGIX_depth_texture, GL_SGIX_pixel_texture, GL_SGIX_shadow,
    GL_SGIX_shadow_ambient
    glu version: 1.3
    glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

    visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
    id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
    ----------------------------------------------------------------------
    0x21 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 None
    0x22 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
    0x23 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
    0x24 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
    0x25 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
    0x26 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
    0x27 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None
    0x28 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 16 0 0 None



    $ 3Ddiag
    3Ddiag version 0.691
    Verifying 3D configuration:
    Using 3dinfo
    ************************************************** **********

    Verifying 3D configuration based on XFree86 4 for 3D board
    "nVidia Corporation 0x0181 (10de@0181)":


    Verifying driver installation:
    nvidia ... failed!
    ======================= !!! WARNING !!! ========================
    Due to license issues only a Dummy Nvidia 2D/3D driver with
    Software 3D/OpenGL rendering is provided. Please download
    the official 2D/3D Nvidia driver from the nVidia webserver
    (http://www.nvidia.com), if you want to use 3D hardware
    accelerated 3D/OpenGL.
    ================================================== ==============

    Tests for correct OpenGL libraries/GLX extensions:

    Test for correct XFree86 version ... done.

    Tests for XFree86 configuration:
    Config File /etc/X11/XF86Config ... done.
    Driver ... done.
    Color Depth ... done.
    Extensions ... done.
    Options ... done.

    ----------------------- NOTE -----------------------------------
    If 3D hardware OpenGL configuration is not stable enough, you
    should switch back to 'Mesa Software Rendering'. You can
    verify this configuration with the command "3Ddiag --mesasoft".
    ----------------------- NOTE -----------------------------------

    Checking GLU/glut runtime configuration:
    GLU ... done (package mesaglu)
    glut ... done (package mesaglut)

  2. Re: No 3D acceleration with nvidia on SuSE 8.2: HELP!

    On Mon, 20 Sep 2004 12:46:39 +0100, Rob staggered into the Black Sun and
    said:
    > I've been having trouble getting 3D acceleration up and running on my
    > SuSE 8.2 box (stock kernel) with an nvidia NV18 (GeForce 4 MX 440).
    > I've installed the latest driver from nvidias website and followed
    > their instructions.


    Did you install both the nvidia-kernel module and the nvidia-glx
    libraries? If the nvidia-glx libraries are missing, you'll get the
    symptoms you describe. The package you want is called nvidia-glx;
    "emerge nvidia-glx" on Gentoo. If you don't have a set of libraries in
    /usr/lib/opengl/nvidia/ , you don't have nvidia-glx.

    > The desktop producing these low rates is a an Athlon 2000XP, on an
    > Asus VIA mobo (A7V266) with around 630mb RAM. I've set the screen
    > resolution to 1200x1600 with 16bit colours. That's running in XFree86
    > Version 4.3.
    >
    > My XF86log shows that it can load module glx.
    > (EE) NVIDIA(0): Failed to load GLX


    Um, you meant "can't", right?

    > So I fix that by sorting out the symbolic links in
    > /usr/X11R6/lib/modules/extensions/


    What? You shouldn't be messing with those except for making sure
    libglx.so is a symlink pointing to the libglx.so in
    /usr/lib/opengl/nvidia/extensions/ .

    > glxinfo
    > direct rendering: No
    > server glx version string: 1.4 Mesa 5.0


    You aren't using the nVidia GLX. Fix that and your 3D will be a lot
    faster.

    --
    Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
    Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
    http://www.brainbench.com / Hire me!
    -----------------------------/ http://crow202.dyndns.org/~mhgraham/resume

  3. Re: No 3D acceleration with nvidia on SuSE 8.2: HELP!



    >>
    >>My XF86log shows that it can load module glx.
    >>(EE) NVIDIA(0): Failed to load GLX

    >
    >
    > Um, you meant "can't", right?
    >
    >


    I do!

    >>So I fix that by sorting out the symbolic links in
    >>/usr/X11R6/lib/modules/extensions/

    >
    >
    > What? You shouldn't be messing with those except for making sure
    > libglx.so is a symlink pointing to the libglx.so in
    > /usr/lib/opengl/nvidia/extensions/ .
    >
    >

    Yep. That's what I did because it wasn't doing that. When I pointed it
    to the right place it was happy and loaded GLX.

    >>glxinfo
    >>direct rendering: No
    >>server glx version string: 1.4 Mesa 5.0

    >
    >
    > You aren't using the nVidia GLX. Fix that and your 3D will be a lot
    > faster.
    >


    Ah, yes! Now i just need to work out how to get nvidia-glx to appear

    $ egrep -i 'glx' /var/log/XFree86.0.log

    (II) Module glx: vendor="NVIDIA Corporation"
    (II) Loading extension GLX
    (II) Loading extension NV-GLX
    (II) Initializing extension GLX



    Cheers,
    Rob

  4. Re: No 3D acceleration with nvidia on SuSE 8.2: HELP!

    On Mon, 20 Sep 2004 13:44:49 +0100, Rob staggered into the Black Sun and said:
    >>>So I fix that by sorting out the symbolic links in
    >>>/usr/X11R6/lib/modules/extensions/

    >> What? You shouldn't be messing with those except for making sure
    >> libglx.so is a symlink pointing to the libglx.so in
    >> /usr/lib/opengl/nvidia/extensions/ .

    > Yep. That's what I did because it wasn't doing that. When I pointed it
    > to the right place it was happy and loaded GLX.


    All right, that's good. glxgears should give you better framerates, and
    glxinfo should report that you're using the nVidia GLX module.

    > Ah, yes! Now i just need to work out how to get nvidia-glx to appear
    > $ egrep -i 'glx' /var/log/XFree86.0.log
    > (II) Loading extension NV-GLX


    It's already there. Try glxinfo and glxgears and things should be much
    faster now.

    --
    Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
    Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
    http://www.brainbench.com / Hire me!
    -----------------------------/ http://crow202.dyndns.org/~mhgraham/resume

  5. Re: No 3D acceleration with nvidia on SuSE 8.2: HELP!

    Thanks for your help. It seems that I have no NVIDIA-GLX. It still looks
    like I'm missing something and it may be /usr/lib/opengl/ since that
    directory does not exist. The deal is as follows:

    The situation now is good as far as direct rendering is concerned:
    $ glxinfo
    name of display: :0.0
    display: :0 screen: 0
    direct rendering: Yes

    And XFree86.0.log shows no errors

    Unfortunately I'm getting even lower FPS:
    $ glxgears
    941 frames in 5.0 seconds = 188.200 FPS
    994 frames in 5.0 seconds = 198.800 FPS

    The nvidia readme says that:
    'xdpyinfo' should show the "GLX", "NV-GLX" and "NVIDIA-GLX" extensions

    And it is missing the last of these: no NVIDIA-GLX--
    $ xdpyinfo | egrep -i 'glx'
    GLX
    NV-GLX


    3Ddiag is giving me:
    $ 3Ddiag
    3Ddiag version 0.691
    Verifying 3D configuration:
    Using 3dinfo
    ************************************************** **********

    Verifying 3D configuration based on XFree86 4 for 3D board
    "nVidia Corporation 0x0181 (10de@0181)":


    Verifying driver installation:
    nvidia ... failed!
    ======================= !!! WARNING !!! ========================
    Due to license issues only a Dummy Nvidia 2D/3D driver with
    Software 3D/OpenGL rendering is provided. Please download
    the official 2D/3D Nvidia driver from the nVidia webserver
    (http://www.nvidia.com), if you want to use 3D hardware
    accelerated 3D/OpenGL.
    ================================================== ==============

    Tests for correct OpenGL libraries/GLX extensions:

    Test for correct XFree86 version ... done.

    Tests for XFree86 configuration:
    Config File /etc/X11/XF86Config ... done.
    Driver ... done.
    Color Depth ... done.
    Extensions ... done.
    Options ... done.

    ----------------------- NOTE -----------------------------------
    If 3D hardware OpenGL configuration is not stable enough, you
    should switch back to 'Mesa Software Rendering'. You can
    verify this configuration with the command "3Ddiag --mesasoft".
    ----------------------- NOTE -----------------------------------

    Checking GLU/glut runtime configuration:
    GLU ... done (package mesaglu)
    glut ... done (package mesaglut)

  6. It can't be /usr/lib/opengl/

    Rob wrote:
    > Thanks for your help. It seems that I have no NVIDIA-GLX. It still looks
    > like I'm missing something and it may be /usr/lib/opengl/ since that
    > directory does not exist. The deal is as follows:


    Can't be this, my libs are just in different places and are all in place:

    ldd /usr/X11R6/bin/glxgears
    libGL.so.1 => /usr/lib/libGL.so.1 (0x40029000)
    libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40091000)
    libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x400a0000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x4016e000)
    libm.so.6 => /lib/libm.so.6 (0x401bf000)
    libc.so.6 => /lib/libc.so.6 (0x401e1000)
    libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x40314000)
    libnvidia-tls.so.1 => /usr/lib/libnvidia-tls.so.1 (0x409ec000)
    libdl.so.2 => /lib/libdl.so.2 (0x409ee000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


    So what the hell is NVIDIA-GLX and how do I make it appear??


    Cheers,
    Rob

  7. Re: It can't be /usr/lib/opengl/

    In case anyone is similarly stuck and following this thread, it seems
    that NVIDIA-GLX isn't needed because its functionality is now part of
    NV_GLX:

    http://www.nvnews.net/vbulletin/showthread.php?t=35120

    So I think I have a problem with my configuration rather than drivers
    not loading. I still have really slow glxgears performance but celestia
    runs very well. I don't know how much I trust the FPS in glxgears since
    if I run glxgears and celestia together then my FPS in glxgears goes up
    from 190 fps to 700-900 during heavy periods of celestia computation. It
    does however crash down to 20 fps if I enable the opengl options in
    Celestia.

    FPS in cube is up a bit from 20 to 40 fps but still unplayable. I expect
    I need to do some tweaking. Maybe something to do with AGP. Anyone with
    any suggestions: do let me know!

    Cheers,
    Rob

+ Reply to Thread