Jump to content

Direct rendering won't work [solved]


MrMorden
 Share

Recommended Posts

Hello, everyone:

 

When I run glxinfo, it says Direct rendering: no. In my attempts to solve this problem, I have googled the following: (www.google.com/linux, of course)

 

Direct rendering won't work

Direct rendering doesn't work

How to enable direct rendering

How to enable direct rendering Mandrake 10.1

How to turn on direct rendering Mandrake 10.1

 

and similar. I have also attempted to modify xorg.conf, adding the following:

 

Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"

 

Neither of which worked. I also attempted to give all users permission to read and write from all nivida devices (chomd 666 /dev/nvidia*) which did not work either.

 

My system configuration is as follows:

 

Distro: Mandrake 10.1

Video card: GeForce FX 5900 Ultra

Video driver: Nvidia display driver 1.0-6629

Kernel: 2.6.8.1-12mdkcustom

CPU: Athlon XP 3200+

Motherboard: Giga-byte 7NNXP

 

Also, when running glxgears I get about 3k FPS running at 1280x1024 24 bit depth.

 

Any help would be greatly appreciated. Thank you!

 

Edit: Corrected video driver version

Edited by MrMorden
Link to comment
Share on other sites

Tried inserting your suggestion, it didn't work. Here's my xorg.conf:

 

# File generated by XFdrake.

 

# **********************************************************************

# Refer to the XF86Config man page for details about the format of

# this file.

# **********************************************************************

 

Section "Files"

# Multiple FontPath entries are allowed (they are concatenated together)

# By default, Mandrake 6.0 and later now use a font server independent of

# the X server to render fonts.

FontPath "unix/:-1"

EndSection

 

Section "ServerFlags"

#DontZap # disable <Crtl><Alt><BS> (server abort)

AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work

#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)

EndSection

 

Section "Module"

Load "dbe" # Double-Buffering Extension

Load "v4l" # Video for Linux

Load "extmod"

Load "type1"

Load "freetype"

Load "glx" # 3D layer

# Load "dri"

EndSection

 

Section "DRI"

Mode 0666

EndSection

 

Section "InputDevice"

Identifier "Keyboard1"

Driver "keyboard"

Option "XkbModel" "pc105"

Option "XkbLayout" "en_US"

Option "XkbOptions" ""

EndSection

 

Section "InputDevice"

Identifier "Mouse1"

Driver "mouse"

Option "Protocol" "ExplorerPS/2"

Option "Device" "/dev/mouse"

Option "ZAxisMapping" "6 7"

EndSection

 

Section "Monitor"

Identifier "monitor1"

VendorName "Plug'n Play"

HorizSync 31-80

VertRefresh 56-75

 

# Sony Vaio C1(X,XS,VE,VN)?

# 1024x480 @ 85.6 Hz, 48 kHz hsync

ModeLine "1024x480" 65.00 1024 1032 1176 1344 480 488 494 563 -hsync -vsync

 

# Dell D800 and few Inspiron (16/10) 1280x800

ModeLine "1280x800" 147.89 1280 1376 1512 1744 800 801 804 848

 

# Dell D800 and few Inspiron (16/10) 1680x1050

ModeLine "1680x1050" 214.51 1680 1800 1984 2288 1050 1051 1054 1103

 

# Dell D800 and few Inspiron (16/10) 1920x1200

ModeLine "1920x1200" 230 1920 1936 2096 2528 1200 1201 1204 1250 +HSync +VSync

 

# TV fullscreen mode or DVD fullscreen output.

# 768x576 @ 79 Hz, 50 kHz hsync

ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

 

# 768x576 @ 100 Hz, 61.6 kHz hsync

ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616

EndSection

 

Section "Device"

Identifier "device1"

BoardName "NVIDIA GeForce FX (generic)"

Driver "nvidia"

Option "DPMS"

Option "NvAGP" "3"

# Option "RenderAccel" "true"

# Option "AllowGLXWithComposite" "true"

EndSection

 

Section "Screen"

Identifier "screen1"

Device "device1"

Monitor "monitor1"

DefaultColorDepth 24

 

Subsection "Display"

Depth 8

Virtual 1280 1024

EndSubsection

 

Subsection "Display"

Depth 15

Virtual 1280 1024

EndSubsection

 

Subsection "Display"

Depth 16

Virtual 1280 1024

EndSubsection

 

Subsection "Display"

Depth 24

Virtual 1280 1024

EndSubsection

EndSection

 

Section "ServerLayout"

Identifier "layout1"

InputDevice "Keyboard1" "CoreKeyboard"

InputDevice "Mouse1" "CorePointer"

Screen "screen1"

EndSection

 

Oh, and thanks for your help!

 

Edit: added thanks :D

Edited by MrMorden
Link to comment
Share on other sites

Tried inserting your suggestion, it didn't work.  Here's my xorg.conf:

 

Section "Module"

    Load "dbe" # Double-Buffering Extension

    Load "v4l" # Video for Linux

    Load "extmod"

    Load "type1"

    Load "freetype"

    Load "glx" # 3D layer

#    Load "dri"

EndSection

 

Oh, and thanks for your help!

 

Edit: added thanks :D

 

By looking in your xorg.conf, I think I've found the problem. I've highlighted it above in bold (I've also removed the rest of the config to make my post a bit smaller :P ). Remove the "#" on this line, so that it can load DRI. The "#" at the beginning is commenting out this line, so DRI isn't getting a chance to load.

 

Even if this was removed, and the section "dri" wasn't added, direct rendering stil wouldn't work. You need both that section, and the load dri line for it to work.

Link to comment
Share on other sites

I'm assuming you've installed the latest and correct NVidia drivers for your card?

 

Also, make sure you have mesa installed as well. There's mesa and libmesa too, but if you select the mesa one first, the associated libraries will be selected as well.

Link to comment
Share on other sites

Neither of which worked.  I also attempted to give all users permission to read and write from all nivida devices (chomd 666 /dev/nvidia*) which did not work either.

 

My system configuration is as follows:

 

Distro: Mandrake 10.1

Video card: GeForce FX 5900 Ultra

Video driver: Nvidia display driver 1.0-6629

Kernel: 2.6.8.1-12mdkcustom

CPU: Athlon XP 3200+

Motherboard: Giga-byte 7NNXP

 

Also, when running glxgears I get about 3k FPS running at 1280x1024 24 bit depth.

 

Any help would be greatly appreciated.  Thank you!

 

Edit: Corrected video driver version

 

I had a similar problem with driver 6629, Get the latest driver from nvidia, worked for me.

Link to comment
Share on other sites

I had a similar problem with driver 6629, Get the latest driver from nvidia, worked for me.

 

Hrm...I thought that might be the case...I tried installing the new driver already, but it's complaining that it can't find nvidia.ko and claims that I might have the "wrong kernel sources installed." Argh. Well, I've been meaning to upgrade to 2.6.12...

Link to comment
Share on other sites

Do you have your kernel sources installed? They should be in /usr/src if they are. Type uname -r and see what version of kernel you have, and match the source accordingly.

 

Sounds like it might not be there, or that it is the wrong one that's installed for your current kernel.

Link to comment
Share on other sites

Thanks for your help, everyone. I'm going to recompile 2.6.12 from source, along with the ck patches. I've been meaning to do that anyway. I'll reply again (or post another topic, whichever is more appropriate) if I need more help after the kernel upgrade.

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...