* [gentoo-user] can't get accelerated opengl renderer ati radeon xpress 200M
@ 2010-04-06 20:12 Tony Miller
2010-04-07 0:06 ` [gentoo-user] " walt
2010-04-07 7:25 ` [gentoo-user] " Marc Joliet
0 siblings, 2 replies; 8+ messages in thread
From: Tony Miller @ 2010-04-06 20:12 UTC (permalink / raw
To: gentoo-user
I've been trying for awhile now to get the accelerated opengl renderer
working on my radeon xpress 200M card(which is supposedly an rv370 or
rs4000 according to this wiki page:
http://dri.freedesktop.org/wiki/ATIRadeon). I've been following this
guide alot: http://dri.freedesktop.org/wiki/ATIRadeon
I know it is important to change this string from glxinfo:
OpenGL renderer string: Software Rasterizer
to this:
OpenGL renderer string: Mesa DRI R200 (RV280 5C61) 20090101
x86/MMX+/3DNow!+/SSE TCL DRI2
But I'm not sure how.
This error in my xorg.log seems to be the key:
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: Searching for BusID pci:0000:01:05.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -19
drmOpenDevice: node name is /dev/dri/card1
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -19
drmOpenDevice: node name is /dev/dri/card2
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -19
(etc, etc, etc, etc, etc, etc, etc)
(EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
[dri] Disabling DRI.
Well the directory /dev/dri/ is empty, so there you go.
I have these package versions:
xorg-server 1.7.6
mesa 7.8
libdrm 2.4.19
xf86-video-ati 6.12.192
xorg-drivers 1.7
I have drm set in my kernel too:
tony@o_0 ~ $ zgrep DRM /proc/config.gz
CONFIG_DRM=m
CONFIG_DRM_KMS_HELPER=m
CONFIG_DRM_TTM=m
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
CONFIG_DRM_RADEON=m
CONFIG_DRM_RADEON_KMS=y
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I830 is not set
# CONFIG_DRM_I915 is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set
# CONFIG_DRM_VMWGFX is not set
# CONFIG_DRM_NOUVEAU is not set
# CONFIG_DRM_I2C_CH7006 is not set
and this dmesg output appears to indicate that its working ok:
[ 53.428828] [drm] Initialized drm 1.1.0 20060810
[ 53.642115] [drm] radeon defaulting to kernel modesetting.
[ 53.642122] [drm] radeon kernel modesetting enabled.
But glxgears only gets about 19 fps. Here is what glxinfo | grep OpenGL reports:
OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer
OpenGL version string: 2.1 Mesa 7.8
OpenGL shading language version string: 1.20
OpenGL extensions:
And might as well post my xorg.conf as well:
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Module"
Load "record"
Load "extmod"
Load "dri"
Load "glx"
Load "GLcore"
Load "dri2"
Load "dbe"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "ShadowFB" # [<bool>]
#Option "DefaultRefresh" # [<bool>]
#Option "ModeSetClearScreen" # [<bool>]
Identifier "Card0"
Driver "radeon"
VendorName "ATI Technologies Inc"
BoardName "RC410 [Radeon Xpress 200M]"
BusID "PCI:1:5:0"
Option "MergedFB" "true"
Option "CRT2Position" "LeftOf"
Option "ColorTiling" "true"
Option "EnablePageFlip" "true"
#Option "AccelMethod" "EXA"
#Option "AccelDFS" "true"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1280x800" "1024x768" "800x600" "640x480"
Virtual 2560 1024 #the first value is the sum of horizontal
resolutions your displays use
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
If anyone has any idea, please let me know. Would posting to the xorg
or radeon mailing lists be good places for help as well?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: can't get accelerated opengl renderer ati radeon xpress 200M
2010-04-06 20:12 [gentoo-user] can't get accelerated opengl renderer ati radeon xpress 200M Tony Miller
@ 2010-04-07 0:06 ` walt
2010-04-07 7:25 ` [gentoo-user] " Marc Joliet
1 sibling, 0 replies; 8+ messages in thread
From: walt @ 2010-04-07 0:06 UTC (permalink / raw
To: gentoo-user
On 04/06/2010 01:12 PM, Tony Miller wrote:
> I've been trying for awhile now to get the accelerated opengl renderer
> working on my radeon xpress 200M card(which is supposedly an rv370 or
> rs4000 according to this wiki page:
> http://dri.freedesktop.org/wiki/ATIRadeon). I've been following this
> guide alot: http://dri.freedesktop.org/wiki/ATIRadeon
>
> I know it is important to change this string from glxinfo:
>
> OpenGL renderer string: Software Rasterizer
>
> to this:
>
> OpenGL renderer string: Mesa DRI R200 (RV280 5C61) 20090101
> x86/MMX+/3DNow!+/SSE TCL DRI2
>
> But I'm not sure how.
It can't hurt to try putting it the "Device" section of xorg.conf, maybe
something like this:
Option "OpenGL renderer" "Mesa DRI R200....."
Xorg may spit in your eye, but it can't hurt to try.
>
> This error in my xorg.log seems to be the key:
>
>
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is -1, (No such device)
By amazing coincidence, I just posted a similar problem to the xorg mail
list and got no replies. Maybe try some ATI lists instead?
Anyway, I finally got /dev/dri/card0 created at boot time by fiddling with
my kernel config a zillion times or two, and AFAICT there are two types of
changes that may (possibly) account for my success. I'm still not sure.
I finally got console framebuffer working by compiling support into the
kernel instead of as a module. In retrospect, the module obviously was
not being loaded at boot time when the card0 device should be created.
However, I also changed other kernel video/drm/fb support to compiled-in
instead of modules, so the console framebuffer thing may just be a red
herring. Try compiling all the video/dri/drm stuff into your kernel
instead of making them modules.
BTW, I added no udev support files for dri/card0, so that device is not
created by udev, apparently, but by the kernel directly.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] can't get accelerated opengl renderer ati radeon xpress 200M
2010-04-06 20:12 [gentoo-user] can't get accelerated opengl renderer ati radeon xpress 200M Tony Miller
2010-04-07 0:06 ` [gentoo-user] " walt
@ 2010-04-07 7:25 ` Marc Joliet
2010-04-08 0:38 ` Tony Miller
1 sibling, 1 reply; 8+ messages in thread
From: Marc Joliet @ 2010-04-07 7:25 UTC (permalink / raw
To: Gentoo-User ML
[-- Attachment #1: Type: text/plain, Size: 2507 bytes --]
Am Tue, 6 Apr 2010 13:12:39 -0700
schrieb Tony Miller <mcfiredrill@gmail.com>:
> I've been trying for awhile now to get the accelerated opengl renderer
> working on my radeon xpress 200M card(which is supposedly an rv370 or
> rs4000 according to this wiki page:
> http://dri.freedesktop.org/wiki/ATIRadeon). I've been following this
> guide alot: http://dri.freedesktop.org/wiki/ATIRadeon
>
> I know it is important to change this string from glxinfo:
>
> OpenGL renderer string: Software Rasterizer
>
> to this:
>
> OpenGL renderer string: Mesa DRI R200 (RV280 5C61) 20090101
> x86/MMX+/3DNow!+/SSE TCL DRI2
>
> But I'm not sure how.
>
> This error in my xorg.log seems to be the key:
[SNIP xorg error]
Sorry, I don't know what to make of that.
> Well the directory /dev/dri/ is empty, so there you go.
>
> I have these package versions:
>
> xorg-server 1.7.6
> mesa 7.8
> libdrm 2.4.19
> xf86-video-ati 6.12.192
> xorg-drivers 1.7
I have those, too, except I upgraded to mesa-7.8.1 and xf86-video-ati-6.13.0
last night.
> I have drm set in my kernel too:
>
> tony@o_0 ~ $ zgrep DRM /proc/config.gz
> CONFIG_DRM=m
> CONFIG_DRM_KMS_HELPER=m
> CONFIG_DRM_TTM=m
> # CONFIG_DRM_TDFX is not set
> # CONFIG_DRM_R128 is not set
> CONFIG_DRM_RADEON=m
> CONFIG_DRM_RADEON_KMS=y
> # CONFIG_DRM_I810 is not set
> # CONFIG_DRM_I830 is not set
> # CONFIG_DRM_I915 is not set
> # CONFIG_DRM_MGA is not set
> # CONFIG_DRM_SIS is not set
> # CONFIG_DRM_VIA is not set
> # CONFIG_DRM_SAVAGE is not set
> # CONFIG_DRM_VMWGFX is not set
> # CONFIG_DRM_NOUVEAU is not set
> # CONFIG_DRM_I2C_CH7006 is not set
I have the exact same options set.
[SNIP glxinfo, xorg.conf]
I also have an empty xorg.conf, maybe it's worth trying it out. Perhaps you
just have a bad combination of options (even if you got them from the "official"
documentation)?
> If anyone has any idea, please let me know. Would posting to the xorg
> or radeon mailing lists be good places for help as well?
I have one idea: which Kernel are you using? I have gentoo-sources-2.6.33
installed. I read that the radeon devs recommend to use kernel versions >=2.6.33
for KMS instead of 2.6.32.
Just goes to show how different ones experience with the same software can be.
For me and my HD4650 (r6xx) it was smooth sailing: I followed Gentoos 3D
acceleration guide and just needed to install the radeon-ucode package and
everything "just worked".
--
Marc Joliet
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] can't get accelerated opengl renderer ati radeon xpress 200M
2010-04-07 7:25 ` [gentoo-user] " Marc Joliet
@ 2010-04-08 0:38 ` Tony Miller
0 siblings, 0 replies; 8+ messages in thread
From: Tony Miller @ 2010-04-08 0:38 UTC (permalink / raw
To: gentoo-user
On Wed, Apr 07, 2010 at 09:25:21AM +0200, Marc Joliet wrote:
> Am Tue, 6 Apr 2010 13:12:39 -0700
> schrieb Tony Miller <mcfiredrill@gmail.com>:
>
> I also have an empty xorg.conf, maybe it's worth trying it out. Perhaps you
> just have a bad combination of options (even if you got them from the "official"
> documentation)?
>
Tried an empty xorg.conf, still getting same error in Xorg.log and
Software Renderer for OpenGl Renderer.
> > If anyone has any idea, please let me know. Would posting to the xorg
> > or radeon mailing lists be good places for help as well?
>
> I have one idea: which Kernel are you using? I have gentoo-sources-2.6.33
> installed. I read that the radeon devs recommend to use kernel versions >=2.6.33
> for KMS instead of 2.6.32.
>
I also have 2.6.33.
> Just goes to show how different ones experience with the same software can be.
> For me and my HD4650 (r6xx) it was smooth sailing: I followed Gentoos 3D
> acceleration guide and just needed to install the radeon-ucode package and
> everything "just worked".
Yeah, wish I could afford a different card, this one is being pretty
difficult it seems.
-Tony
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] can't get accelerated opengl renderer ati radeon xpress 200M
[not found] <ewnpD-6h4-13@gated-at.bofh.it>
@ 2010-04-08 8:18 ` Gregory Shearman
2010-04-10 21:21 ` Tony Miller
0 siblings, 1 reply; 8+ messages in thread
From: Gregory Shearman @ 2010-04-08 8:18 UTC (permalink / raw
To: gentoo-user
In linux.gentoo.user, you wrote:
GentooPenguin# /usr/sbin/lspci | grep Radeon
01:05.0 VGA compatible controller: ATI Technologies Inc RC410 [Radeon
Xpress 200M]
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is -1, (No such device)
> drmOpenDevice: open result is -1, (No such device)
> drmOpenDevice: Open failed
> drmOpenByBusid: Searching for BusID pci:0000:01:05.0
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is -1, (No such device)
> drmOpenDevice: open result is -1, (No such device)
> drmOpenDevice: Open failed
> drmOpenByBusid: drmOpenMinor returns -19
> drmOpenDevice: node name is /dev/dri/card1
> drmOpenDevice: open result is -1, (No such device)
> drmOpenDevice: open result is -1, (No such device)
> drmOpenDevice: Open failed
> drmOpenByBusid: drmOpenMinor returns -19
> drmOpenDevice: node name is /dev/dri/card2
> drmOpenDevice: open result is -1, (No such device)
> drmOpenDevice: open result is -1, (No such device)
> drmOpenDevice: Open failed
> drmOpenByBusid: drmOpenMinor returns -19
> (etc, etc, etc, etc, etc, etc, etc)
> (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
> [dri] Disabling DRI.
>
>
> Well the directory /dev/dri/ is empty, so there you go.
Hmmm... Mine has an entry for card0:
GentooPenguin# ls -l /dev/dri
crw-rw---- 1 root video 226, 0 2010-04-08 17:42 card0
Are you sure your opengl libraries are being found in /usr/lib/opengl?
I used to run the ATI proprietary driver and switched to the open Radeon
driver and remember some fiddling was required in this directory,
possibly a symlink pointing in the wrong direction.
What does the command "eselect opengl list" show you?
Mine tells me that the xorg-x11 driver is being used.
> I have these package versions:
>
> xorg-server 1.7.6
> mesa 7.8
> libdrm 2.4.19
> xf86-video-ati 6.12.192
> xorg-drivers 1.7
I'm running:
xorg-server 1.6.5-r1
mesa 7.5.2
libdrm 2.4.15
xf86-video-ati 6.12.5
xorg-drivers 1.6
> I have drm set in my kernel too:
>
> tony@o_0 ~ $ zgrep DRM /proc/config.gz
> CONFIG_DRM=m
> CONFIG_DRM_KMS_HELPER=m
> CONFIG_DRM_TTM=m
> # CONFIG_DRM_TDFX is not set
> # CONFIG_DRM_R128 is not set
> CONFIG_DRM_RADEON=m
> CONFIG_DRM_RADEON_KMS=y
> # CONFIG_DRM_I810 is not set
> # CONFIG_DRM_I830 is not set
> # CONFIG_DRM_I915 is not set
> # CONFIG_DRM_MGA is not set
> # CONFIG_DRM_SIS is not set
> # CONFIG_DRM_VIA is not set
> # CONFIG_DRM_SAVAGE is not set
> # CONFIG_DRM_VMWGFX is not set
> # CONFIG_DRM_NOUVEAU is not set
> # CONFIG_DRM_I2C_CH7006 is not set
GentooPenguin$ zgrep DRM /proc/config.gz
CONFIG_DRM=m
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
CONFIG_DRM_RADEON=m
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I830 is not set
# CONFIG_DRM_I915 is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set
> and this dmesg output appears to indicate that its working ok:
>
> [ 53.428828] [drm] Initialized drm 1.1.0 20060810
> [ 53.642115] [drm] radeon defaulting to kernel modesetting.
> [ 53.642122] [drm] radeon kernel modesetting enabled.
>
> But glxgears only gets about 19 fps. Here is what glxinfo | grep OpenGL reports:
I get:
1438 frames in 5.0 seconds = 287.483 FPS
Not really screaming along, but adequate for my needs.
> Section "Module"
> Load "record"
> Load "extmod"
> Load "dri"
> Load "glx"
> Load "GLcore"
> Load "dri2"
> Load "dbe"
> EndSection
My xorg.conf shows:
Section "Module"
Load "extmod"
Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "glx"
EndSection
> Section "Device"
> ### Available Driver options are:-
> ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
> ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
> ### [arg]: arg optional
> #Option "ShadowFB" # [<bool>]
> #Option "DefaultRefresh" # [<bool>]
> #Option "ModeSetClearScreen" # [<bool>]
> Identifier "Card0"
> Driver "radeon"
> VendorName "ATI Technologies Inc"
> BoardName "RC410 [Radeon Xpress 200M]"
> BusID "PCI:1:5:0"
> Option "MergedFB" "true"
> Option "CRT2Position" "LeftOf"
> Option "ColorTiling" "true"
> Option "EnablePageFlip" "true"
> #Option "AccelMethod" "EXA"
> #Option "AccelDFS" "true"
> EndSection
My Device Section:
Section "Device"
Identifier "ATI Graphics Adapter 0"
Driver "radeon"
Option "AccelMethod" "EXA"
BusID "PCI:1:5:0"
EndSection
> If anyone has any idea, please let me know. Would posting to the xorg
> or radeon mailing lists be good places for help as well?
I hope this helps.
--
Regards,
Gregory.
Gentoo Linux - Penguin Power
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] can't get accelerated opengl renderer ati radeon xpress 200M
2010-04-08 8:18 ` Gregory Shearman
@ 2010-04-10 21:21 ` Tony Miller
0 siblings, 0 replies; 8+ messages in thread
From: Tony Miller @ 2010-04-10 21:21 UTC (permalink / raw
To: gentoo-user
On Thu, Apr 8, 2010 at 1:18 AM, Gregory Shearman <zekeyg@gmail.com> wrote:
> In linux.gentoo.user, you wrote:
>
> GentooPenguin# /usr/sbin/lspci | grep Radeon
>
> 01:05.0 VGA compatible controller: ATI Technologies Inc RC410 [Radeon
> Xpress 200M]
>
Yesssir!
o_0 tony # lspci | grep Radeon
01:05.0 VGA compatible controller: ATI Technologies Inc RC410 [Radeon
Xpress 200M]
> Are you sure your opengl libraries are being found in /usr/lib/opengl?
Maybe we could compare this information:
o_0 opengl # ls -lh /usr/lib/opengl/xorg-x11/lib/
total 352K
lrwxrwxrwx 1 root root 10 2010-04-08 02:46 libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root 12 2010-04-08 02:46 libGL.so.1 -> libGL.so.1.2
-rwxr-xr-x 1 root root 345K 2010-04-08 02:45 libGL.so.1.2
o_0 opengl # ldd /usr/lib/opengl/xorg-x11/lib/libGL.so.1.2
linux-gate.so.1 => (0xb7851000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb77ce000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb77c8000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb77c4000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb77be000)
libX11-xcb.so.1 => /opt/gfx-test/lib/libX11-xcb.so.1 (0xb77ba000)
libX11.so.6 => /opt/gfx-test/lib/libX11.so.6 (0xb769d000)
libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0xb768a000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb766f000)
libdrm.so.2 => /opt/gfx-test/lib/libdrm.so.2 (0xb7664000)
libm.so.6 => /lib/libm.so.6 (0xb763e000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7624000)
libdl.so.2 => /lib/libdl.so.2 (0xb7620000)
libc.so.6 => /lib/libc.so.6 (0xb74d8000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb74d4000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb74ce000)
librt.so.1 => /lib/librt.so.1 (0xb74c4000)
/lib/ld-linux.so.2 (0xb7852000)
o_0 opengl # ls -lh /usr/lib/opengl/xorg-x11/extensions/
total 388K
-rwxr-xr-x 1 root root 14K 2010-04-05 18:13 libdri2.so
-rwxr-xr-x 1 root root 38K 2010-04-05 18:13 libdri.so
-rwxr-xr-x 1 root root 327K 2010-04-05 18:13 libglx.so
o_0 opengl # ldd /usr/lib/opengl/xorg-x11/extensions/libdri2.so
linux-gate.so.1 => (0xb7837000)
libdrm.so.2 => /opt/gfx-test/lib/libdrm.so.2 (0xb780c000)
libm.so.6 => /lib/libm.so.6 (0xb77e6000)
librt.so.1 => /lib/librt.so.1 (0xb77dd000)
libc.so.6 => /lib/libc.so.6 (0xb7695000)
/lib/ld-linux.so.2 (0xb7838000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb767b000)
o_0 opengl # ldd /usr/lib/opengl/xorg-x11/extensions/libdri.so
linux-gate.so.1 => (0xb773b000)
libdrm.so.2 => /opt/gfx-test/lib/libdrm.so.2 (0xb770b000)
libm.so.6 => /lib/libm.so.6 (0xb76e5000)
librt.so.1 => /lib/librt.so.1 (0xb76dc000)
libc.so.6 => /lib/libc.so.6 (0xb7594000)
/lib/ld-linux.so.2 (0xb773c000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb757a000)
o_0 opengl # ldd /usr/lib/opengl/xorg-x11/extensions/libglx.so
linux-gate.so.1 => (0xb78a2000)
libm.so.6 => /lib/libm.so.6 (0xb780e000)
librt.so.1 => /lib/librt.so.1 (0xb7805000)
libc.so.6 => /lib/libc.so.6 (0xb76bd000)
/lib/ld-linux.so.2 (0xb78a3000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb76a4000)
I also see a lot of lines like this in my Xorg.log, any particular one
I should look out for?
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
> What does the command "eselect opengl list" show you?
>
> Mine tells me that the xorg-x11 driver is being used.
>
o_0 tony # eselect opengl list
Available OpenGL implementations:
[1] xorg-x11 *
>> But glxgears only gets about 19 fps. Here is what glxinfo | grep OpenGL reports:
>
> I get:
>
> 1438 frames in 5.0 seconds = 287.483 FPS
>
> Not really screaming along, but adequate for my needs.
That would be good enough for me as well. :)
>
>> Section "Module"
>> Load "record"
>> Load "extmod"
>> Load "dri"
>> Load "glx"
>> Load "GLcore"
>> Load "dri2"
>> Load "dbe"
>> EndSection
>
> My xorg.conf shows:
>
> Section "Module"
> Load "extmod"
> Load "dri"
> Load "dbe"
> Load "record"
> Load "xtrap"
> Load "glx"
> EndSection
>
>> Section "Device"
>> ### Available Driver options are:-
>> ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
>> ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
>> ### [arg]: arg optional
>> #Option "ShadowFB" # [<bool>]
>> #Option "DefaultRefresh" # [<bool>]
>> #Option "ModeSetClearScreen" # [<bool>]
>> Identifier "Card0"
>> Driver "radeon"
>> VendorName "ATI Technologies Inc"
>> BoardName "RC410 [Radeon Xpress 200M]"
>> BusID "PCI:1:5:0"
>> Option "MergedFB" "true"
>> Option "CRT2Position" "LeftOf"
>> Option "ColorTiling" "true"
>> Option "EnablePageFlip" "true"
>> #Option "AccelMethod" "EXA"
>> #Option "AccelDFS" "true"
>> EndSection
>
> My Device Section:
>
> Section "Device"
> Identifier "ATI Graphics Adapter 0"
> Driver "radeon"
> Option "AccelMethod" "EXA"
> BusID "PCI:1:5:0"
> EndSection
>
I tried copying yours. It all worked except it couldn't find the 'xtrap' module.
Didn't make a difference though. Still have no accelerated rendering
and nothing in /dev/dri.
What does glxinfo | grep render say for you?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] can't get accelerated opengl renderer ati radeon xpress 200M
[not found] ` <exQpz-6JG-7@gated-at.bofh.it>
@ 2010-04-11 6:31 ` Gregory Shearman
2010-04-12 8:21 ` Tony Miller
0 siblings, 1 reply; 8+ messages in thread
From: Gregory Shearman @ 2010-04-11 6:31 UTC (permalink / raw
To: gentoo-user
In linux.gentoo.user, you wrote:
> On Thu, Apr 8, 2010 at 1:18 AM, Gregory Shearman <zekeyg@gmail.com> wrote:
>> In linux.gentoo.user, you wrote:
>>
>> GentooPenguin# /usr/sbin/lspci | grep Radeon
>>
>> 01:05.0 VGA compatible controller: ATI Technologies Inc RC410 [Radeon
>> Xpress 200M]
>>
> Yesssir!
>
> o_0 tony # lspci | grep Radeon
> 01:05.0 VGA compatible controller: ATI Technologies Inc RC410 [Radeon
> Xpress 200M]
>
>> Are you sure your opengl libraries are being found in /usr/lib/opengl?
>
> Maybe we could compare this information:
>
> o_0 opengl # ls -lh /usr/lib/opengl/xorg-x11/lib/
> total 352K
> lrwxrwxrwx 1 root root 10 2010-04-08 02:46 libGL.so -> libGL.so.1
> lrwxrwxrwx 1 root root 12 2010-04-08 02:46 libGL.so.1 -> libGL.so.1.2
> -rwxr-xr-x 1 root root 345K 2010-04-08 02:45 libGL.so.1.2
Hmmm.... here's mine:
GentooPenguin$ ls -lh /usr/lib/opengl/xorg-x11/lib/
total 392K
-rw-r--r-- 1 root root 723 2010-04-04 22:22 libGL.la
lrwxrwxrwx 1 root root 10 2010-04-04 22:22 libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root 12 2010-04-04 22:22 libGL.so.1 -> libGL.so.1.2
-rwxr-xr-x 1 root root 383K 2010-04-04 22:22 libGL.so.1.2
Note the "libGL.la" file. I wonder where yours has got to, or if it's
necessary for proper operation.
When I check which package produces this file I get:
GentooPenguin$ /usr/src/linux-2.6.31-gentoo-r6 $ equery belongs libGL.la
[ Searching for file(s) libGL.la in *... ]
media-libs/mesa-7.5.2 (/usr/lib/opengl/xorg-x11/lib/libGL.la)
You're running a newer version of mesa aren't you? Perhaps it doesn't
produce this file.
>
> o_0 opengl # ldd /usr/lib/opengl/xorg-x11/lib/libGL.so.1.2
> linux-gate.so.1 => (0xb7851000)
> libXext.so.6 => /usr/lib/libXext.so.6 (0xb77ce000)
> libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb77c8000)
> libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb77c4000)
> libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb77be000)
> libX11-xcb.so.1 => /opt/gfx-test/lib/libX11-xcb.so.1 (0xb77ba000)
> libX11.so.6 => /opt/gfx-test/lib/libX11.so.6 (0xb769d000)
> libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0xb768a000)
> libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb766f000)
> libdrm.so.2 => /opt/gfx-test/lib/libdrm.so.2 (0xb7664000)
> libm.so.6 => /lib/libm.so.6 (0xb763e000)
> libpthread.so.0 => /lib/libpthread.so.0 (0xb7624000)
> libdl.so.2 => /lib/libdl.so.2 (0xb7620000)
> libc.so.6 => /lib/libc.so.6 (0xb74d8000)
> libXau.so.6 => /usr/lib/libXau.so.6 (0xb74d4000)
> libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb74ce000)
> librt.so.1 => /lib/librt.so.1 (0xb74c4000)
> /lib/ld-linux.so.2 (0xb7852000)
>
Why are libX11-xcb.so.1, libX11.so.6, libdrm.so.2 in the
/opt/gfx-test/lib directory rather than in /usr/lib as they are on my
machine?
> o_0 opengl # ls -lh /usr/lib/opengl/xorg-x11/extensions/
> total 388K
> -rwxr-xr-x 1 root root 14K 2010-04-05 18:13 libdri2.so
> -rwxr-xr-x 1 root root 38K 2010-04-05 18:13 libdri.so
> -rwxr-xr-x 1 root root 327K 2010-04-05 18:13 libglx.so
The same as on my machine, but you need links from
/usr/lib/xorg/modules/extensions for each of these files. Have you done:
GentooPenguin# eselect opengl set xorg-x11
Sometimes this works.
> o_0 opengl # ldd /usr/lib/opengl/xorg-x11/extensions/libdri2.so
> linux-gate.so.1 => (0xb7837000)
> libdrm.so.2 => /opt/gfx-test/lib/libdrm.so.2 (0xb780c000)
> libm.so.6 => /lib/libm.so.6 (0xb77e6000)
> librt.so.1 => /lib/librt.so.1 (0xb77dd000)
> libc.so.6 => /lib/libc.so.6 (0xb7695000)
> /lib/ld-linux.so.2 (0xb7838000)
> libpthread.so.0 => /lib/libpthread.so.0 (0xb767b000)
>
> o_0 opengl # ldd /usr/lib/opengl/xorg-x11/extensions/libdri.so
> linux-gate.so.1 => (0xb773b000)
> libdrm.so.2 => /opt/gfx-test/lib/libdrm.so.2 (0xb770b000)
> libm.so.6 => /lib/libm.so.6 (0xb76e5000)
> librt.so.1 => /lib/librt.so.1 (0xb76dc000)
> libc.so.6 => /lib/libc.so.6 (0xb7594000)
> /lib/ld-linux.so.2 (0xb773c000)
> libpthread.so.0 => /lib/libpthread.so.0 (0xb757a000)
>
Again there are links to libs in /opt/gfx-test that aren't on my
machine.
>> Section "Device"
>> Identifier "ATI Graphics Adapter 0"
>> Driver "radeon"
>> Option "AccelMethod" "EXA"
>> BusID "PCI:1:5:0"
>> EndSection
>>
> I tried copying yours. It all worked except it couldn't find the 'xtrap' module.
Oh dear! Neither can mine:
(EE) Failed to load module "xtrap" (module does not exist, 0)
I'd better remove it from my xorg.conf.
> Didn't make a difference though. Still have no accelerated rendering
> and nothing in /dev/dri.
Really odd. Have you re-emerged all the drivers found in
/var/db/pkg/x11-drivers? I'm starting to stab in the dark here.
> What does glxinfo | grep render say for you?
direct rendering: Yes
OpenGL renderer string: Mesa DRI R300 20060815 x86/MMX/SSE2 NO-TCL
Do you have this section in your /etc/X11/xorg.conf:
Section "DRI"
Mode 0666
EndSection
Have you followed the Hardware Acceleration Guide's Kernel config
directions?
I've got the:
Processor type and features --->
<*> MTRR (Memory Type Range Register) support
Device drivers --->
Graphics support --->
<M> /dev/agpgart (AGP Support) --->
<M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI
support) --->
selected, as well as:
<M> ATI Radeon
What have you got in this directory:
GentooPenguin$ ls /usr/lib/xorg/modules/extensions
-rwxr-xr-x 1 root root 17820 2009-12-22 00:59 libdbe.so
lrwxrwxrwx 1 root root 46 2010-04-04 22:22 libdri2.so ->
../../../opengl/xorg-x11/extensions/libdri2.so
lrwxrwxrwx 1 root root 45 2010-04-04 22:22 libdri.so ->
../../../opengl/xorg-x11/extensions/libdri.so
-rwxr-xr-x 1 root root 88172 2009-12-22 00:59 libextmod.so
lrwxrwxrwx 1 root root 45 2010-04-04 22:22 libglx.so ->
../../../opengl/xorg-x11/extensions/libglx.so
-rwxr-xr-x 1 root root 26052 2009-12-22 00:59 librecord.so
Note the links to the /usr/lib/opengl/xorg-x11/extensions directory.
I hope something in here helps!
--
Regards,
Gregory.
Gentoo Linux - Penguin Power
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] can't get accelerated opengl renderer ati radeon xpress 200M
2010-04-11 6:31 ` Gregory Shearman
@ 2010-04-12 8:21 ` Tony Miller
0 siblings, 0 replies; 8+ messages in thread
From: Tony Miller @ 2010-04-12 8:21 UTC (permalink / raw
To: gentoo-user
On Sat, Apr 10, 2010 at 11:31 PM, Gregory Shearman <zekeyg@gmail.com> wrote:
> Why are libX11-xcb.so.1, libX11.so.6, libdrm.so.2 in the
> /opt/gfx-test/lib directory rather than in /usr/lib as they are on my
> machine?
Sorry about that, this /opt/gfx-test/ directory was something I
created to test a hand compiled X stack. It shouldn't be interfering
with running the portage installed X stack, but I should make sure to
be completely certain.
> Have you followed the Hardware Acceleration Guide's Kernel config
> directions?
>
> I've got the:
>
> Processor type and features --->
> <*> MTRR (Memory Type Range Register) support
>
> Device drivers --->
> Graphics support --->
> <M> /dev/agpgart (AGP Support) --->
> <M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI
> support) --->
>
>
> selected, as well as:
>
> <M> ATI Radeon
>
After you mentioned this I decided to check my kernel configuration again.
Device drivers --->
Graphics support --->
Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
[*] Enable modesetting on radeon by default - NEW DRIVER
Here's part of the description for this option:
Choose this option if you want kernel modesetting enabled by default.
This is a completely new driver. It's only part of the existing drm
for compatibility reasons. It requires an entirely different graphics
stack above it and works very differently from the old drm stack.
i.e. don't enable this unless you know what you are doing it may
cause issues or bugs compared to the previous userspace driver stack.
When kernel modesetting is enabled the IOCTL of radeon/drm
driver are considered as invalid and an error message is printed
in the log and they return failure.
This made me reconsider whether I should set this option or not...
I gave it a try without the option set and I get direct rendering fine.
tony@o_0 ~ $ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Mesa DRI R300 (RS400 5A62) 20090101 x86/MMX/SSE2 NO-TCL
Now I have card0 in /dev/dri.
I get about 100 fps now, not extremely fast but certainly a lot better
than before!
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-04-12 8:22 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-06 20:12 [gentoo-user] can't get accelerated opengl renderer ati radeon xpress 200M Tony Miller
2010-04-07 0:06 ` [gentoo-user] " walt
2010-04-07 7:25 ` [gentoo-user] " Marc Joliet
2010-04-08 0:38 ` Tony Miller
[not found] <ewnpD-6h4-13@gated-at.bofh.it>
2010-04-08 8:18 ` Gregory Shearman
2010-04-10 21:21 ` Tony Miller
[not found] <ewVhE-65O-21@gated-at.bofh.it>
[not found] ` <ewVhE-65O-19@gated-at.bofh.it>
[not found] ` <exQpz-6JG-7@gated-at.bofh.it>
2010-04-11 6:31 ` Gregory Shearman
2010-04-12 8:21 ` Tony Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox