LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   No Direct rendering with Nvidia Geforce 2 (https://www.linuxquestions.org/questions/linux-hardware-18/no-direct-rendering-with-nvidia-geforce-2-a-588863/)

valkarin 10-02-2007 08:01 AM

No Direct rendering with Nvidia Geforce 2 (solved)
 
Problem: Frame rate of around 350 fps with glxgears. Nexuiz so slow it's unplayable.

System: Ubuntu 6.06, kernel 2.6.15-29, Video Card, Nvidia GeForce 2, Drivers from repo (not the nVidia ones)

Here is the output of glxinfo

Code:

name of display: :0.0
display: :0  screen: 0
direct rendering: No
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
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
client glx vendor string: SGI
client glx version string: 1.4
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_copy_sub_buffer, 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_pbuffer,
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.4
GLX extensions:
    GLX_ARB_get_proc_address, GLX_EXT_import_context, GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_SGI_make_current_read, GLX_SGI_swap_control,
    GLX_SGI_video_sync, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce2 MX 100/200/AGP/SSE2/forceSW
OpenGL version string: 1.4 (1.5.6 NVIDIA 87.76)
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_point_parameters,
    GL_ARB_point_sprite, GL_ARB_texture_compression, 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_texture_rectangle, GL_ARB_transpose_matrix, GL_ARB_vertex_program,
    GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
    GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
    GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_point_parameters,
    GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_shared_texture_palette,
    GL_EXT_stencil_wrap, GL_EXT_texture_compression_s3tc,
    GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add,
    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_texture_rectangle,
    GL_EXT_vertex_array, GL_IBM_rasterpos_clip,
    GL_IBM_texture_mirrored_repeat, GL_NV_blend_square, GL_NV_fog_distance,
    GL_NV_light_max_exponent, GL_NV_texgen_reflection,
    GL_NV_texture_env_combine4, GL_NV_texture_rectangle,
    GL_SGIS_generate_mipmap, GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod,
    GL_SUN_multi_draw_arrays, GL_SUN_slice_accum

  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 24 tc  0 32  0 r  y  .  8  8  8  0  4 24  8 16 16 16 16  0 0 None
0x22 24 dc  0 32  0 r  y  .  8  8  8  0  4 24  8 16 16 16 16  0 0 None
0x23 24 tc  0 32  0 r  y  .  8  8  8  8  4 24  8 16 16 16 16  0 0 None
0x24 24 tc  0 32  0 r  .  .  8  8  8  0  4 24  8 16 16 16 16  0 0 None
0x25 24 tc  0 32  0 r  .  .  8  8  8  8  4 24  8 16 16 16 16  0 0 None
0x26 24 tc  0 32  0 r  y  .  8  8  8  0  4 24  0 16 16 16 16  0 0 None
0x27 24 tc  0 32  0 r  y  .  8  8  8  8  4 24  0 16 16 16 16  0 0 None
0x28 24 tc  0 32  0 r  .  .  8  8  8  0  4 24  0 16 16 16 16  0 0 None
0x29 24 tc  0 32  0 r  .  .  8  8  8  8  4 24  0 16 16 16 16  0 0 None
0x2a 24 tc  0 32  0 r  y  .  8  8  8  0  4 16  0 16 16 16 16  0 0 None
0x2b 24 tc  0 32  0 r  y  .  8  8  8  8  4 16  0 16 16 16 16  0 0 None
0x2c 24 tc  0 32  0 r  .  .  8  8  8  0  4 16  0 16 16 16 16  0 0 None
0x2d 24 tc  0 32  0 r  .  .  8  8  8  8  4 16  0 16 16 16 16  0 0 None
0x2e 24 tc  0 32  0 r  y  .  8  8  8  0  4  0  0 16 16 16 16  0 0 None
0x2f 24 tc  0 32  0 r  y  .  8  8  8  8  4  0  0 16 16 16 16  0 0 None
0x30 24 tc  0 32  0 r  .  .  8  8  8  0  4  0  0 16 16 16 16  0 0 None
0x31 24 tc  0 32  0 r  .  .  8  8  8  8  4  0  0 16 16 16 16  0 0 None
0x32 24 dc  0 32  0 r  y  .  8  8  8  8  4 24  8 16 16 16 16  0 0 None
0x33 24 dc  0 32  0 r  .  .  8  8  8  0  4 24  8 16 16 16 16  0 0 None
0x34 24 dc  0 32  0 r  .  .  8  8  8  8  4 24  8 16 16 16 16  0 0 None
0x35 24 dc  0 32  0 r  y  .  8  8  8  0  4 24  0 16 16 16 16  0 0 None
0x36 24 dc  0 32  0 r  y  .  8  8  8  8  4 24  0 16 16 16 16  0 0 None
0x37 24 dc  0 32  0 r  .  .  8  8  8  0  4 24  0 16 16 16 16  0 0 None
0x38 24 dc  0 32  0 r  .  .  8  8  8  8  4 24  0 16 16 16 16  0 0 None
0x39 24 dc  0 32  0 r  y  .  8  8  8  0  4 16  0 16 16 16 16  0 0 None
0x3a 24 dc  0 32  0 r  y  .  8  8  8  8  4 16  0 16 16 16 16  0 0 None
0x3b 24 dc  0 32  0 r  .  .  8  8  8  0  4 16  0 16 16 16 16  0 0 None
0x3c 24 dc  0 32  0 r  .  .  8  8  8  8  4 16  0 16 16 16 16  0 0 None
0x3d 24 dc  0 32  0 r  y  .  8  8  8  0  4  0  0 16 16 16 16  0 0 None
0x3e 24 dc  0 32  0 r  y  .  8  8  8  8  4  0  0 16 16 16 16  0 0 None
0x3f 24 dc  0 32  0 r  .  .  8  8  8  0  4  0  0 16 16 16 16  0 0 None
0x40 24 dc  0 32  0 r  .  .  8  8  8  8  4  0  0 16 16 16 16  0 0 None

Here is my xorg.conf:
Code:

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#  sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
        FontPath        "/usr/share/X11/fonts/misc"
        FontPath        "/usr/share/X11/fonts/cyrillic"
        FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/share/X11/fonts/Type1"
        FontPath        "/usr/share/X11/fonts/100dpi"
        FontPath        "/usr/share/X11/fonts/75dpi"
        # path to defoma fonts
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
        Load        "bitmap"
        Load        "ddc"
        Load        "extmod"
        Load        "freetype"
        Load        "glx"
        Load        "int10"
        Load        "type1"
        Load        "vbe"
EndSection

Section "InputDevice"
        Identifier        "Generic Keyboard"
        Driver                "kbd"
        Option                "CoreKeyboard"
        Option                "XkbRules"        "xorg"
        Option                "XkbModel"        "pc104"
        Option                "XkbLayout"        "us"
        Option                "XkbVariant"        "none"
        Option                "XkbOptions"        "none"
EndSection

Section "InputDevice"
        Identifier        "Configured Mouse"
        Driver                "mouse"
        Option                "CorePointer"
        Option                "Device"                "/dev/input/mice"
        Option                "Protocol"                "ExplorerPS/2"
        Option                "ZAxisMapping"                "4 5"
        Option                "Emulate3Buttons"        "true"
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device"        "/dev/wacom"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "stylus"
  Option        "ForceDevice"  "ISDV4"              # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "eraser"
  Option        "Device"        "/dev/wacom"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "eraser"
  Option        "ForceDevice"  "ISDV4"              # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "cursor"
  Option        "Device"        "/dev/wacom"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "cursor"
  Option        "ForceDevice"  "ISDV4"              # Tablet PC ONLY
EndSection

Section "Device"
        Identifier        "NVIDIA Corporation NV11DDR [GeForce2 MX 100 DDR/200 DDR]"
        Driver                "nvidia"
        BusID                "PCI:1:0:0"
EndSection

Section "Monitor"
        Identifier        "VX700"
        Option                "DPMS"
        HorizSync        30-70
        VertRefresh        50-160
EndSection

Section "Screen"
        Identifier        "Default Screen"
        Device                "NVIDIA Corporation NV11DDR [GeForce2 MX 100 DDR/200 DDR]"
        Monitor                "VX700"
        DefaultDepth        24
        SubSection "Display"
                Depth                1
                Modes                "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                4
                Modes                "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                8
                Modes                "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                15
                Modes                "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                16
                Modes                "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth                24
                Modes                "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier        "Default Layout"
        Screen                "Default Screen"
        InputDevice        "Generic Keyboard"
        InputDevice        "Configured Mouse"
        InputDevice    "stylus" "SendCoreEvents"
        InputDevice    "cursor" "SendCoreEvents"
        InputDevice    "eraser" "SendCoreEvents"
EndSection

Section "DRI"
        Mode        0666
EndSection

Why isn't this working? I have tried several methods of turning on the direct rendering. No joy.

davedave1 10-02-2007 08:42 AM

1. Try the "nv" drivers instead.
2. in xorg.conf add "Load "dri"" to the Module section
3. Update to a more current Xorg version

valkarin 10-02-2007 08:56 AM

Quote:

1. Try the "nv" drivers instead.
2. in xorg.conf add "Load "dri"" to the Module section
3. Update to a more current Xorg version
I thought the "nv" driver was 2d. I am trying to get the 3D rendering on and boost the frame rate. Also have been told all over the place that DRI needs to be turned off for 3D to work. On a side note what is DRI anyway? How do I update the Xorg? Do I download it off the web and compile it, or what?

dracolich 10-02-2007 02:25 PM

Is your user a member of the video group? DRI=Direct Rendering Infrastructure, which is a fancy way of saying that the video hardware handles graphics processing.

GrapefruiTgirl 10-02-2007 02:31 PM

FWIW, you do not need to load DRI when using the real 'nv' driver. The nVidia driver implements DRI on its own, and will work by itself..

I'm not up on the ins and outs of installing the 'nv' driver into Ubuntu, but you can get the installer binary from http://www.nvidia.com/Download/index.aspx?lang=en-us and I suspect that for your card, it will *probably* be the ...9631... version. *Maybe the newest one will work, but I'm not sure. the new one is something like version 100.14 or something.

I thought the Ubuntu updater (Apt-whatever) offered the nv driver? Oh well..

ghostdancer 10-02-2007 03:32 PM

Do: "grep WW /var/log/Xorg.0.log" and "grep EE /var/log/Xorg.0.log" - Check for any warning (WW) or error (EE) from the log. Maybe you can get some clue what had happened.

By the way, reading from NVIDIA, it seems you should download the 96.43.xx series driver.

valkarin 10-02-2007 05:35 PM

The repos offer the nv driver but that is not what I want. I want direct rendering. for that I need the "nvidia" driver, which I have installed and is working. But direct rendering is turned off. I want it on. I am using the 3D driver from the repos. Should I use the ones from nvidia instead?

The var log you asked for are

Quote:

(WW) The directory "/usr/share/X11/fonts/cyrillic" does not exist.
(WW) NVIDIA(0): No size information available in CRT-0's EDID; cannot compute
(WW) NVIDIA(0): DPI from EDID.
(EE) xf86OpenSerial: Cannot open device /dev/wacom
(EE) xf86OpenSerial: Cannot open device /dev/wacom
(EE) xf86OpenSerial: Cannot open device /dev/wacom
(EE) xf86OpenSerial: Cannot open device /dev/wacom
(EE) xf86OpenSerial: Cannot open device /dev/wacom
(EE) xf86OpenSerial: Cannot open device /dev/wacom
My user is a member of the video group and has hardware acceleration privilages. I can play 3D games but the frame rate is slow (around 350 fps)

GrapefruiTgirl 10-02-2007 05:52 PM

Yes, my apologies -- I had mixed the two drivers up momentarily. The real one is "nvidia", and the non-real one is 'nv' -- apologies again.

Everything else I said was correct, and yes, if you want DRI, you need the real "nvidia" driver, which DOES implement DRI all by itself. And that last part, which I mixed up also, was supposed to read "I thought the repos offered the real "nvidia" driver," but I am likely mistaken there, as you just stated that it offers the 'nv' driver instead.
:)

valkarin 10-02-2007 06:19 PM

Should I use the drivers offered by the nvidia website instead?

GrapefruiTgirl 10-02-2007 06:27 PM

If you want full 3D acceleration and maximum performance, then Yes.
However, that said, I personally am not aware of, nor knowledgeable about, any issues, IF there are any, with installing it in Ubuntu. It's generally a pretty simple process, I mean it literally takes me about 30 seconds to hop into init-3, killing X in the process, and execute the installer (pressing YES and OK a few times) and then jump to init-4 which restarts my X.

Ubuntu may not be so slick; Ubuntu uses Init-5, for one thing, and uses GDM rather than my KDM and KDE, which needs to be stopped using "killall gdm" in a root console (or with sudo.)

so you'll likely want to do something like:

sudo killall gdm
telinit 1 (or maybe 2 or 3, I'm not sure on 'buntu)
./<installer-package-name>
<follow-instructions>
<restart GDM>

and that should do it, in a perfect world :)

GrapefruiTgirl 10-02-2007 06:32 PM

I should add too, another thing I know absolutely nothing about, is the "envy" installer. As I understand, it is another means of installing nVidia driver into Ubuntu, but you really would need to look into that if it comes to it; because I honestly know zilch about it. Back when I started into Linux (less than a year ago) I tried 'buntu for like a day or two, and then got rid of it and have been using Slackware ever since. Therefore, many of the intricacies of doing stuff as efficiently in Ubuntu as I can in Slack, are beyond me.

If I can help at all, don't hesitate to ask, and perhaps another person will add something or correct me, but meanwhile, you may as well download the driver.

valkarin 10-02-2007 07:23 PM

I have downloaded the driver and will install in the morning. I am going to look into envy and see what's what with it. Ubuntu is getting to be more trouble than it's worth. I am thinking of going with Debian (I like the apt-get package manager).

GrapefruiTgirl 10-02-2007 07:29 PM

Righto then, good luck on the Envy thing, AND with the install, if you proceed in the mroning :)

davedave1 10-03-2007 12:38 AM

No point shifting to Debian from Ubuntu for apt-get, they both use it as standard.

I've used the Nvidia proprietary drivers in the past but kept on having issues with them. If it is the only way to get 3D working then good luck...

ghostdancer 10-03-2007 12:54 AM

Quote:

Originally Posted by davedave1 (Post 2911370)
...I've used the Nvidia proprietary drivers in the past but kept on having issues with them. If it is the only way to get 3D working then good luck...

I have GeForce4 MX 4000 and GeForce 8500 GT, both work fantastically well. The driver installation is so easy I can get it working even with -rc kernels. Compare with another major graphic provider, *cough*ATI*cough*, where there is always a possibility for manual patching or hacking the installer when upgrading kernel, I will go with NVIDIA with every Linux system I built.


All times are GMT -5. The time now is 08:23 PM.