PDA

View Full Version : [SOLVED] Problems with Direct Rendering


TUOggy
November 26th, 2007, 07:52 PM
I'm not sure this is the right section, but here I go. I posted this as a reply to another thread earlier, but thought that it probably didn't belong where I originally posted it.

I am running a fresh install of Feisty and I have a GeForce FX 5500. I need direct rendering to be enabled to run certain games and awn, but I can't seem to get it to work. I have gone through every forum that I can find and used nearly every keyword that I can find. I have reinstalled ubuntu about 10 times in the last week, tried envy, used the restricted drivers, and even tried to install the driver from NVidia's website (failed miserably at that one because I can't seem to run .run files) but nothing seems to work.

Here is the result of running a glxinfo:

name of display: :1003.0
display: :1003 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
GLX_SGIS_multisample, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier,
GLX_SGIX_fbconfig
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync,
GLX_NV_swap_group, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGI_swap_control, GLX_NV_float_buffer, GLX_ARB_fbconfig_float,
GLX_EXT_fbconfig_packed_float, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_SGIX_fbconfig, GLX_ARB_get_proc_address
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.4.1)
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_ATI_texture_mirror_once, GL_EXT_texture_env_add,
GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_func_separate,
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_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_lod_bias, GL_EXT_texture_object,
GL_EXT_vertex_array, GL_HP_occlusion_test, GL_IBM_texture_mirrored_repeat,
GL_NV_blend_square, GL_NV_texgen_reflection, GL_NV_texture_rectangle,
GL_SGIS_generate_mipmap, GL_SGIS_texture_lod, GL_SGIX_depth_texture,
GL_SGIX_shadow

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
----------------------------------------------------------------------
0x39 24 tc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
0x3a 24 tc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None
0x3b 24 tc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
0x3c 24 tc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 0 0 None


and here is my xorg.conf file:

# /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 xorg.conf(5) manual page.
# (Type "man 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/fonts/X11/misc"
Fontpath "/usr/share/fonts/X11/cyrillic"
Fontpath "/usr/share/fonts/X11/100dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/75dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/Type1"
Fontpath "/usr/share/fonts/X11/100dpi"
Fontpath "/usr/share/fonts/X11/75dpi"
# path to defoma fonts
Fontpath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

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

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

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

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

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

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

Section "Device"
Identifier "nVidia Corporation NV31 [GeForce FX 5600]"
Driver "nvidia"
Busid "PCI:3:0:0"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
Option "AllowGLXWithComposite" "True"
Option "RenderAccel" "True"
Option "AddARGBGLXVisuals" "True"
EndSection

Section "Monitor"
Identifier "G75f-3"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation NV31 [GeForce FX 5600]"
Monitor "G75f-3"
Defaultdepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "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

I am really new with Linux as I recently shifted from Windows XP and Vista. I am absolutely lost here.

What do I do? (Keep in mind, extreme newb)

kalosaurusrex
November 26th, 2007, 08:07 PM
Try installing the nvidia drivers?

Stop X (you'll need to have some basic terminal experience, or you will be getting some now)

Press Control-Alt-F1

Login.

Run:

sudo /etc/init.d/gdm stop


Lets remove the nividia-glx-new package:

sudo apt-get remove nvidia-glx-new

then in the directory of your choice lets install the nvidia driver from here:
http://www.nvidia.com/object/linux_d...100.14.19.html (http://www.nvidia.com/object/linux_display_ia32_100.14.19.html)

Run:

wget http://us.download.nvidia.com/XFree8...14.19-pkg1.run (http://us.download.nvidia.com/XFree86/Linux-x86/100.14.19/NVIDIA-Linux-x86-100.14.19-pkg1.run)

then run:

sh NVIDIA-Linux-x86-100.14.19-pkg1.run

Modify the /etc/rc.local :

sudo nano /etc/rc.local

add line: modprobe -r nvidia

Save/Exit (Control-O, then Control-X

Finally run:

startx

On the next reboot it should automatically boot up into ubuntu desktop.

That's what I did, and it works for me. I have a GeForce 6800XT.

Hope this helps.

A

TUOggy
November 26th, 2007, 08:20 PM
So here's what I get when I run
wget http://us.download.nvidia.com/XFree8...14.19-pkg1.run

--18:24:40-- http://us.download.nvidia.com/XFree8...14.19-pkg1.run
=> `XFree8...14.19-pkg1.run'
Resolving us.download.nvidia.com... 70.183.191.72, 70.183.191.73
Connecting to us.download.nvidia.com|70.183.191.72|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
18:24:40 ERROR 404: Not Found.

buntunub
November 26th, 2007, 08:27 PM
Dont bother manually installing your nvidia drivers. The above advice is wrong anyway. Use ENVY.

TUOggy
November 26th, 2007, 08:36 PM
Okay, so I followed those directions, and still nothing. I have also tried envy, and it has not been able to set up direct rendering properly.

I'm really lost. So far the posts that I have seen have all said one of 3 things. Manual install, install through restricted drivers, or use envy. I have tried all 3 now and still nothing.

Is it something in my xorg.conf file?

kalosaurusrex
November 26th, 2007, 09:16 PM
The error you got from wget means that it can't reach the file for some reason, so go to nvidia's site directly and get it.

I think that saying the directions are 'wrong' is a bit harsh. It worked perfectly for me. I'm playing WoW right now on that system.

I also tried Envy with no success, and the nvidia-glx-new drivers. In fact I spent a lot of time working on getting the rendering to work.

The steps I provided work perfectly, and I didn't come up with them entirely on my own, there are several other threads with the same information.

And if someone else would like to provide something that does work (and envy does not for me..) please feel free.

TUOggy
November 26th, 2007, 09:44 PM
That Worked!!!!!

Now I just have to reinstall WoW!!!!

Thanks so much

MickLionheart
November 27th, 2007, 01:00 AM
Just a side note, the wget didn't work beacuse you copied the link title.
I believe the ubuntu forums shorten long URL titles.
THe real command line would be:
wget http://us.download.nvidia.com/XFree86/Linux-x86/100.14.19/NVIDIA-Linux-x86-100.14.19-pkg1.run

You can get the full URL by right clicking the link and choosing "Copy Link Location"

daborg
November 27th, 2007, 01:07 AM
I got direct rendering working by uninstalling and purging the configuration of xserver-xgl and then reinstalling it and restarting X:

sudo aptitude purge xserver-xgl
sudo aptitude install xserver-xgl
sudo /etc/init.d/gdm stop
sudo /etc/init.d/gdm start

I have no idea why it worked, but it did and I'm happy.

buntunub
November 27th, 2007, 01:29 PM
I think that saying the directions are 'wrong' is a bit harsh. It worked perfectly for me. I'm playing WoW right now on that system.


You installed manually adding the rc.local modprobe bit. I tried this and it caused alot of errors using your method and I had to start over from scratch. Not that big a deal really since I was already at square one on this issue. I tried ENVY grabbing the latest and greatest Nvidia driver and this too did not work. The problem I think is that the latest Nvidia driver is not backwards compatible with my older card (6600 GT). I will try a manual install of the older driver tonight and see if that works.

kalosaurusrex
November 27th, 2007, 01:45 PM
Well good luck. I dunno why it didn't work, worked great for me. The modprobe is needed because if you don't do it then for some reason the driver isn't loaded on boot, which is odd because it's actually removing the nvidia module, but I think it may have something to do with the driver loading it's own module and the two conflicting. Just a guess. Anyway I can't say why it didn't work for you. Sorry!

A

buntunub
November 27th, 2007, 02:10 PM
Found this (http://edseek.com/archives/2007/05/27/debian-etch-nvidia-direct-rendering-no/) too. Its interesting because that seems aweful close to the errors im seeing.

TUOggy
November 29th, 2007, 12:33 PM
I figured out that one of my problems was the fact that I was trying to do everything through FreeNX. I didn't realize that Direct Rendering is disabled by default when using NX. When I did the manual install on the system without using the NX software, it worked wonderfully. Thanks again on the instructions with the manual install!!!