Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

X.Org 7.1 and DRI

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
18 posts • Page 1 of 1
Author
Message
EmptyDoor
n00b
n00b
Posts: 22
Joined: Fri Oct 08, 2004 7:41 pm
Location: Bergen, Norway
Contact:
Contact EmptyDoor
Website

X.Org 7.1 and DRI

  • Quote

Post by EmptyDoor » Mon Apr 17, 2006 6:08 pm

I have problems with DRI and Warcraft III since upgrading to X.Org 7, so I thought I might try 7.1, but now direct rendering doesn't work at all. I unmasked
x11-base/xorg-server
media-libs/mesa
x11-drivers/xf86-video-i810
and installed their latest versions.
Was it a box?
Top
Q-collective
Advocate
Advocate
User avatar
Posts: 2076
Joined: Mon Mar 22, 2004 5:21 pm

  • Quote

Post by Q-collective » Mon Apr 17, 2006 8:42 pm

Same problem, haven't been able to get it working again on my radeon 9600xt using the r300 drivers.
Top
vipernicus
Veteran
Veteran
User avatar
Posts: 1462
Joined: Mon Jan 17, 2005 10:35 pm
Location: Your College IT Dept.
Contact:
Contact vipernicus
Website

  • Quote

Post by vipernicus » Mon Apr 17, 2006 9:12 pm

Q-collective wrote:Same problem, haven't been able to get it working again on my radeon 9600xt using the r300 drivers.
I can get the open source ati driver to do direct rendering on my 9600XT. What does your xorg.conf look like?
Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog
Top
Q-collective
Advocate
Advocate
User avatar
Posts: 2076
Joined: Mon Mar 22, 2004 5:21 pm

  • Quote

Post by Q-collective » Mon Apr 17, 2006 10:43 pm

vipernicus wrote:
Q-collective wrote:Same problem, haven't been able to get it working again on my radeon 9600xt using the r300 drivers.
I can get the open source ati driver to do direct rendering on my 9600XT. What does your xorg.conf look like?
My xorg.conf is not the problem. DRI just quit working after I upgraded the thing to mesa 6.5.
Anyway, If you like xorg.conf's anyway:

Code: Select all

Section "Module"

    Load        "dbe"  	# Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    #Load	"vnc"
    Load	"type1"
    Load	"freetype"
    Load	"glx"
    Load	"dri"
EndSection

Section "Files"
    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/TTF/"
    FontPath   "/usr/share/fonts/Type1/"
    FontPath   "/usr/share/fonts/75dpi/"
    FontPath   "/usr/share/fonts/100dpi/"
    FontPath   "/usr/share/fonts/local/"
EndSection

Section "InputDevice"
    Identifier	"Keyboard1"
    Driver	"kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"	"xorg"
    #Option "XkbModel"	"trustda"
    Option "XkbModel"	"pc105"
    #Option "XkbLayout"	"us,us_intl"
    Option  "XkbOptions" "compose:ralt"
    Option  "XkbOptions" "grp:ctrls_toggle,grp_led:num"
EndSection

Section "InputDevice"
    Identifier	"Mouse1"
    Driver	"mouse"
    Option "Protocol"    "IMPS/2"
    Option "ZAxisMapping"   "4 5"
    Option "Device"      "/dev/input/mice"
EndSection

Section "Monitor"
    Identifier  "My Monitor"
    HorizSync   30-70
    VertRefresh 50-120
    Option "DPMS"
    DisplaySize 450 330
EndSection

Section "Device"
    Identifier  "** ATI Radeon (generic)               [radeon]"
    Driver      "radeon"
    Option "EnablePageFlip" "off"
    Option "AGPMode" "8"
    #Option "AccelMethod" "exa" 
    #Option      "RenderAccel" "true"
    #VideoRam    131072
    # Insert Clocks lines here if appropriate
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "** ATI Radeon (generic)               [radeon]"
    Monitor     "My Monitor"
    DefaultDepth 24
    #Option     "PasswordFile"    "/root/.vnc/passwd"
    Subsection "Display"
        Depth       24
        Modes       "1400x1050" "1600x1200" "1280x1024"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "DRI"
   Mode 0666
EndSection

Section "Extensions"
#    Option "Composite" "Enable"
EndSection
Top
EmptyDoor
n00b
n00b
Posts: 22
Joined: Fri Oct 08, 2004 7:41 pm
Location: Bergen, Norway
Contact:
Contact EmptyDoor
Website

  • Quote

Post by EmptyDoor » Sun Apr 23, 2006 8:12 pm

When I upgraded the kernel to 2.6.13, glxinfo gives some more error output, but it displays all the gl extensions it should, which did not happen with 2.6.15 after the X.Org upgrade. The error messages are.

libGL warning: 3D driver returned no fb configs.
libGL error: InitDriver failed
libGL error: reverting to (slow) indirect rendering
Was it a box?
Top
R. Daneel Olivaw
n00b
n00b
Posts: 47
Joined: Tue Jul 06, 2004 11:56 am

  • Quote

Post by R. Daneel Olivaw » Sun Apr 23, 2006 8:28 pm

Q-collective wrote:Same problem, haven't been able to get it working again on my radeon 9600xt using the r300 drivers.
xorg-x11 is working fine with the r300 drivers.


during xorg install opengl was automatically switched to xorg-x11 or mesa, i had to swith back to it ?
i updated libdrm
i also had to upgrade xf86-video-at to 6.6.0, previous version fond work with the latest xorg-x11

i had problem of screen corruption the cure was to disabling colortiling in xorg.conf
Top
Slippery Jim
Guru
Guru
User avatar
Posts: 300
Joined: Sat Jan 08, 2005 9:25 pm

  • Quote

Post by Slippery Jim » Wed May 24, 2006 4:16 am

same problem here, using the r300 open sourge driver. I get:

Code: Select all

(EE) AIGLX error: Calling driver entry point failed(EE) AIGLX: reverting to software rendering
I also noticed that the DRI modules are now in /usr/lib/dri instead of /usr/lib/xorg/modules/dri. I tried symlinking them, but it didn't do anything.

EDIT:

The symlinks do make a difference, but it still fails for different reasons:

before:

Code: Select all

Rainsong james # LIBGL_DEBUG=verbose glxinfo
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 4.0.3 r300 (screen 0)
libGL: OpenDriver: trying  /tls/r300_dri.so
libGL: OpenDriver: trying  /r300_dri.so
libGL error: dlopen  /r300_dri.so failed ( /r300_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/tls/r300_dri.so
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/r300_dri.so
libGL error: dlopen /usr/lib/xorg/modules/dri/r300_dri.so failed (/usr/lib/xorg/modules/dri/r300_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to find driver: r300_dri.so
display: :0  screen: 0
direct rendering: No
after:

Code: Select all

Rainsong james # LIBGL_DEBUG=verbose glxinfo
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 4.0.3 r300 (screen 0)
libGL: OpenDriver: trying  /tls/r300_dri.so
libGL: OpenDriver: trying  /r300_dri.so
libGL error: dlopen  /r300_dri.so failed ( /r300_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/tls/r300_dri.so
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/r300_dri.so
drmOpenByBusid: Searching for BusID pci:0000:01:05.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:01:05.0
libGL error:
R300 DRI driver expected DRM version 1.24.x but got version 1.22.0
libGL warning: 3D driver returned no fbconfigs.
libGL error: InitDriver failed
libGL error: reverting to (slow) indirect rendering
display: :0  screen: 0
direct rendering: No
Top
daff
Apprentice
Apprentice
User avatar
Posts: 232
Joined: Wed Jul 02, 2003 2:53 pm
Location: Vienna, Austria

  • Quote

Post by daff » Wed May 24, 2006 5:46 am

Did any of you do anything specific to get Xorg 7.1 working (or at least starting) with dri and glx modules loaded?

Following the upgrade guide I updated yesterday to the masked xorg-x11-7.1_rc2 (coming from 6.8.2) on my Thinkpad to get at least some of the improved hardware acceleration new Xorg offers for ATI cards. Mine is a FireGL T2 aka M10 using the r300 driver I think.

However I cannot even start X when I have Load "dri" and Load "glx" directives in my xorg.conf. Right after starting the command the screen goes blank and the machine completely and ultimately freezes. Can't even get in via ssh and have to disconnect it from power to start it again. It starts fine when I remove the dri and glx directives, however.

I use gentoo-sources-2.6.16-r7 and have drm.ko and radeon.ko compiled as modules (Character Devices -> Direct Rendering Manager). Before I had those X would start but report some errors about not being able to load the drm and radeon kernel modules so I figure they are needed. Mesa 6.5-r3 is installed and so is libdrm 2.0.1 and xf86-video-ati 6.6.0.

Does anybody have any ideas here? Apparently it should be possible to have DRI with the r300, but how? Did I miss anything, some needed package maybe?
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Top
Slippery Jim
Guru
Guru
User avatar
Posts: 300
Joined: Sat Jan 08, 2005 9:25 pm

  • Quote

Post by Slippery Jim » Wed May 24, 2006 1:29 pm

daff wrote:Did any of you do anything specific to get Xorg 7.1 working (or at least starting) with dri and glx modules loaded?

Following the upgrade guide I updated yesterday to the masked xorg-x11-7.1_rc2 (coming from 6.8.2) on my Thinkpad to get at least some of the improved hardware acceleration new Xorg offers for ATI cards. Mine is a FireGL T2 aka M10 using the r300 driver I think.

However I cannot even start X when I have Load "dri" and Load "glx" directives in my xorg.conf. Right after starting the command the screen goes blank and the machine completely and ultimately freezes. Can't even get in via ssh and have to disconnect it from power to start it again. It starts fine when I remove the dri and glx directives, however.

I use gentoo-sources-2.6.16-r7 and have drm.ko and radeon.ko compiled as modules (Character Devices -> Direct Rendering Manager). Before I had those X would start but report some errors about not being able to load the drm and radeon kernel modules so I figure they are needed. Mesa 6.5-r3 is installed and so is libdrm 2.0.1 and xf86-video-ati 6.6.0.

Does anybody have any ideas here? Apparently it should be possible to have DRI with the r300, but how? Did I miss anything, some needed package maybe?
Ok, I did get r300 direct rendering to work with 7.0, but it was unstable. It would go to max cpu usage sometimes, or lock up hard when doing 3D or surfing (?). I can get the glx and dri modules to load in 7.1, but direct rendering is disabled, as noted in my post above.

I had problems similar to yours when I started with the r300 drivers. It seems that you must compile all the parts with the same compiler. I recompiled mesa, libdrm, xorg-server (using emerge -v1) and the kernel DRM modules. The drivers then loaded, but I still got the black screen, until I disabled fast writes with: Option "AGPFastWrite" "no".

I also have: Option "AGPMode" "4" for my 4xAGP board. It defaults to "1", and I think that may cause problems for 4x/8x cards.
Top
_droop_
l33t
l33t
Posts: 957
Joined: Sun May 30, 2004 12:15 pm

  • Quote

Post by _droop_ » Thu May 25, 2006 7:38 am

Hi,

same problem here...

Due to the message displayed by glxinfo

Code: Select all

R300 DRI driver expected DRM version 1.24.x but got version 1.22.0
libGL warning: 3D driver returned no fbconfigs.
libGL error: InitDriver failed
libGL error: reverting to (slow) indirect rendering
And the dmesg :

Code: Select all

[drm] Initialized radeon 1.22.0 20051229 on minor 0
It seems that the 2.6.16 has not the good version of drm to run xorg 7.1 with hardware acceleration.

I'm going to test with a vanilla 2.6.17rc... I'll report the result in a few hour.

Take care.

edit : with 2.6.17, there is no problem of version, but X seg fault as soon as it starts...
Top
daff
Apprentice
Apprentice
User avatar
Posts: 232
Joined: Wed Jul 02, 2003 2:53 pm
Location: Vienna, Austria

  • Quote

Post by daff » Thu May 25, 2006 1:00 pm

Thanks for the reply Slippery Jim!

After experimenting around some more I came to the same conclusions as you. I recompiled all of the kernel and kernel modules, recompiled almost all X packages and removed almost all options in the "device" section, then gradually readded them. I believe the FastWrite option really was the problem's root.

X is working fine now, alhtough I too suffer from the bug you mention. There exists a bug report in X.org's bugzilla so it should at least be a known problem (the bug is still marked as NEW though).

_dropp_: Seems we're still out of luck. Bah.
Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.
Top
infjms00
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 112
Joined: Fri Feb 17, 2006 8:57 am
Location: Vigo, SPAIN

  • Quote

Post by infjms00 » Thu May 25, 2006 7:26 pm

Vanilla 2.6.17-rc4 worked fine for me with xorg 7.1
Top
didumos
Guru
Guru
Posts: 322
Joined: Thu Jan 19, 2006 4:46 pm
Location: uk

  • Quote

Post by didumos » Sun Jun 04, 2006 1:30 pm

Q-collective wrote:Same problem, haven't been able to get it working again on my radeon 9600xt using the r300 drivers.
Same card, drivers and problem here after upgrading to mesa-6.5-r3.

Code: Select all

~ $ LIBGL_DEBUG=verbose glxinfo 
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 4.0.3 r300 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/tls/r300_dri.so
libGL: OpenDriver: trying /usr/lib/dri/r300_dri.so
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
libGL error: 
R300 DRI driver expected DRM version 1.24.x but got version 1.22.0
libGL warning: 3D driver returned no fbconfigs.
libGL error: InitDriver failed
libGL error: reverting to (slow) indirect rendering
display: :0  screen: 0
direct rendering: No
xf86-video-ati-6.6.0
gentoo-sources-2.6.16-r7

Is this just incompatibility with kernels <2.6.17?
Top
infjms00
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 112
Joined: Fri Feb 17, 2006 8:57 am
Location: Vigo, SPAIN

  • Quote

Post by infjms00 » Sun Jun 04, 2006 4:52 pm

Yes it is, it seems drm kernel driver < 2.6.17 doesn't work with the new r300 drivers.
Top
knopper
Tux's lil' helper
Tux's lil' helper
Posts: 106
Joined: Sat Apr 20, 2002 8:41 pm
Location: The Netherlands
Contact:
Contact knopper
Website

  • Quote

Post by knopper » Sun Jun 04, 2006 4:54 pm

I've basically got the same problem, though I noticed that if I run "modprobe radeon" (I have an ATI card...) before I start X and list the device nodes in /dev/dri they have the right permissions. The group of the device nodes is set to video.

If I run "startx" after that everything comes up like it should though when I look at the permissions again it seems the group owner has switched from video to root and when I run glxinfo it says:

libGL error: open DRM failed (Operation not permitted)
libGL error: reverting to (slow) indirect rendering

So I wonder why xorg is changing the group owner? Is there anyone who has the same issue?
Top
Kanniball
Apprentice
Apprentice
Posts: 208
Joined: Fri Jan 23, 2004 3:35 pm
Location: Portugal

  • Quote

Post by Kanniball » Tue Jun 06, 2006 9:38 am

First of all I need to make symlinks because the mesa ebuild don't install the driver on the right place.
but I still don't have 3d :S

Code: Select all

name of display: :0.0
libGL: XF86DRIGetClientDriverName: 4.0.3 r300 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/tls/r300_dri.so
libGL: OpenDriver: trying /usr/lib/dri/r300_dri.so
drmOpenByBusid: Searching for BusID pci:0000:03:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:03:00.0
Radeon 9500/9700/9800 cards are not currently stable.
More details can be found at https://bugs.freedesktop.org/show_bug.cgi?id=6318
libGL warning: 3D driver returned no fbconfigs.
libGL error: InitDriver failed
libGL error: reverting to (slow) indirect rendering
display: :0  screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
I'm using 2.6.17-rc5 vanilla sources, and I have all the modules loaded.
This is really weird.
Top
haven
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 141
Joined: Wed Nov 19, 2003 5:03 pm
Location: Belfast, Uk
Contact:
Contact haven
Website

  • Quote

Post by haven » Thu Jun 29, 2006 12:42 am

I had the same issues, thankfully solved now. I should note that I am not using the kernel DRM, instead I'm using the x11-drm module.

Ok I've done two things - the latter is definately important and the former may or may not be (I've not tested it without yet).

Firstly I did:
echo "R300_FORCE_R300="1"" >> /etc/env.d/00local
Secondly I grabbed the tarball mentioed in this thread (last post at the bottom).

Create a portage overlay if you haven't already and extrac the tarball to it and then emerge -uDp world if like me you've got everything unmasked and are running bleeding edge.

Once the updates were done a quick reboot and the issues went away
13858 frames in 5.0 seconds = 2771.562 FPS
Previously I got 230'ish and was suffering from the same:
libGL warning: 3D driver returned no fb configs.
libGL error: InitDriver failed
libGL error: reverting to (slow) indirect rendering
error as some of you.

I hope this helps.
Top
rockfly12
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Wed Aug 24, 2005 10:13 pm
Location: New Hampshire

  • Quote

Post by rockfly12 » Mon Jul 10, 2006 9:56 pm

knopper,

The solution to your problem is in the following thread:

http://forums.gentoo.org/viewtopic-t-47 ... itted.html

If you want to skip the post you can simply remove the comments from the following lines in your xorg.conf and restart X:

# Section "DRI"
# Mode 0666
# EndSection
Top
Post Reply

18 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy