PDA

View Full Version : Radeon 9200 SE direct rendering difficulties (Xubuntu Intrepid)


Demos
02-10-2009, 04:53 PM
Hi everyone. This forum seems to be the only one where answerers know what they say so I'll try to be the more explicit I can.

I already search for solutions on Ubuntu forums and the entire web including this forum so I hope to not being asking for a question already solved (access granted for kicking my *ss if I'm wrong:p).

You have to know that I'm quite still a beginner (senior beginner maybe) using Linux and especially concerning xorg.conf's configuration. An other important point is that English is not my native language but anyway I'll try to be the clearest as possible.

Let's describe my computer :
OS : Xubuntu Intrepid Ibex (8.10)
lspci :
01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200] (rev 01)

I'm not able to activate direct rendering and I think that's generating lags with my flash player. Being a webdevelopper you'll understand it's a bit frustrating.

After a lot of time I think I focused on the good log :
oam@chez-oam:~$ glxinfo | grep render
libGL: XF86DRIGetClientDriverName: 5.3.0 r200 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/r200_dri.so
libGL error: dlopen /usr/lib/dri/r200_dri.so failed (/usr/lib/dri/r200_dri.so: undefined symbol: _glapi_tls_Context)
libGL error: unable to load driver: r200_dri.so
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
OpenGL renderer string: Mesa DRI R200 20060602 AGP 8x x86/MMX+/3DNow!+/SSE TCL

All packages related to fglrx are purged excepted the one for Jockey (I also may kick it out...).

You have to know I tried a lot of useless tricks to fix it (changing libgl.so for example as adviced on some forums). So my os maybe a bit different from default config. Anyway after a "sudo dpkg-reconfigure -phigh xserver-xorg" performances come back to their first status so it doesn't seem so important.

An other information :
In the best case, glxgears gave me about 1600 fps. Sometimes (depending on the xorg.conf i test it can be about 850 or 150fps in the worst case). Default configuration is the best case.
I've seen it can go through to ~5000 with this video card on some forums.

Sorry to be so long but I really think compatibility with old hardware is more important for linux than other OSs. Because Linux is a product of dreamers, surely the only free product all over the world that can be the best in its category (...with firefox); and using old hardware means giving quality to those who haven't enough money to be swindled by porks as Microsoft.

So, as I saw that X's developers come here, I hope my issue will help you to improve this impressive soft (at least as I hope that this issue is not caused by myself:confused:).

Let's stop talking, I'm waiting for questions and tests if you need.
Thanks in advance.

agd5f
02-10-2009, 05:25 PM
looks like your 3D driver wasn't compiled properly.

suokko
02-10-2009, 06:35 PM
sudo apt-get install xserver-xorg-video-radeon xserver-xorg-video-ati

and make sure that radeon and drm module is loaded into kernel:
lsmod |grep radeon

edit: also good to check that all mesa packages are correctly installed: libgl1-mesa-dri, libgl1-mesa-glx

Demos
02-10-2009, 06:36 PM
I'm using the driver "radeon" of the kernel...

Actually I read that the free driver was a part of the kernel (it seems to be wrong). So may I recompile it and, if it's the case, how can I do it.

That's the xorg.conf i use :


Section "Device"
Identifier "Configured Video Device"
Driver "radeon"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection


The changes I tried haven't gave any result so I let it the simpler as possible.

"sudo apt-get install xserver-xorg-video-radeon xserver-xorg-video-ati "
=> 0 mis à jour, 0 nouvellement installés, 11 à enlever et 0 non mis à jour.
(nothing to do in english).

"root@chez-oam:~# lsmod |grep radeon "
=>
radeon 124192 2
drm 82452 3 radeon

agd5f
02-10-2009, 07:08 PM
/usr/lib/dri/r200_dri.so is the 3D driver. As the error message indicates it's missing symbols. There's some problem with the 3D driver. Make sure you've updated your 3D drivers (libgl1-mesa-dri on debian or ubuntu).

Ren Höek
02-11-2009, 07:39 AM
[..]
All packages related to fglrx are purged excepted the one for Jockey (I also may kick it out...).
[..]


If you had fglrx installed, it can be, that the fglrx's libGL.so is still used (even if the package is not installed any more).

Try
$ locate libGL.so
and if there are other entries than
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.2
delete them (better to make some backups first) reboot and see if it worked out.

If you are not sure to delete, you can also post the results first.
And the results of
$ cat /var/log/Xorg.0.log | grep "(WW)\|(EE)\|(NI)\|(??)"
too, please.

Demos
02-11-2009, 01:39 PM
First,
root@chez-oam:~# locate libGL.so
/home/oam/libGL.so.1.2
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.2
/usr/lib/libGL.so.1.2.backup
/usr/lib/fglrx/libGL.so.1.2.xlibmesa

root@chez-oam:~# cat /var/log/Xorg.0.log | grep "(WW)\|(EE)\|(NI)\|(??)"
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(WW) RADEON(0): DRI init changed memory map, adjusting ...
(WW) RADEON(0): MC_FB_LOCATION was: 0xd7ffd000 is: 0xd7ffd000
(WW) RADEON(0): MC_AGP_LOCATION was: 0xffffffc0 is: 0xe07fe000

So i chose to make a full clean of my packages. I removed all traces of uninstalled packages, updated everything, autoclean, etc.

After a reboot, there wasn't any rest of fglrx (i hope).

Then, "glxinfo | grep render" still returned error :
libGL error: dlopen /usr/X11R6/lib/modules/dri/r200_dri.so failed (/usr/X11R6/lib/modules/dri/r200_dri.so: cannot open shared object file: No such file or directory)
so I switched libGL.so.1.2 and its backup. As said before, I downloaded the old libGL 1.2 while i was trying to use fglrx.

It returns now :

root@chez-oam:~# glxinfo | grep render
glxinfo: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory


root@chez-oam:~# locate libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.2
/usr/lib/libGL.so.1.2.backup

and

root@chez-oam:~# cat /var/log/Xorg.0.log | grep "(WW)\|(EE)\|(NI)\|(??)"
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(WW) RADEON(0): DRI init changed memory map, adjusting ...
(WW) RADEON(0): MC_FB_LOCATION was: 0xd7ffd000 is: 0xd7ffd000
(WW) RADEON(0): MC_AGP_LOCATION was: 0xffffffc0 is: 0xe07fe000


I think I have the good libGL.so.1.2 now but... My word is not trusty.

bridgman
02-11-2009, 02:20 PM
Have you fixed the build errors that agd5f mentioned ? From a distance it sounds like your 3d lib is simply not building correctly and is therefore not being found at runtime.

dungeon
02-11-2009, 03:29 PM
@Demos
When you get errors on open shared libs like libGL.so.1 and r200_dri.so, just do:
$ sudo apt-get --reinstall install libgl1-mesa-glx libgl1-mesa-dri

And please don't change they libs manually, you maybe get undefined symbols because of that, also NEVER use root privilegies without real needs (you can also get undefined symbols if you building mesa as root) and don't ever tried fglrx, because your card is not supported by that driver, etc.

Demos
02-11-2009, 04:14 PM
rebooting and rebooting (beacause ctrl+alt+backspace gave me strange results) I finally saw that my grub hadn't been upgraded when I installed Interpid (my iso is a hardy one).
I fix it now but I don't know if my troubles come from it.

Anyway I reinstalled all mesa's packages using Synaptic or apt-get so much times that i'm getting totally crazy :eek:.

The symbol issue has been solved when I cleaned the last fglrx file from my Linux.

I tried to recompile libgl following content of http://www.mesa3d.org/ but as a beginner I haven't been able to do anything after ./configure.

Anyway, the only pb now is that one :

libGL error: dlopen /usr/X11R6/lib/modules/dri/r200_dri.so failed (/usr/X11R6/lib/modules/dri/r200_dri.so: cannot open shared object file: No such file or directory)


I still hope i'll solve it one day and I thank you for the help you've already gave.

Demos
02-11-2009, 04:16 PM
rebooting and rebooting (beacause ctrl+alt+backspace gave me strange results) I finally saw that my grub hadn't been upgraded when I installed Interpid (my iso is a hardy one).
I fix it now but I don't know if my troubles come from it.

Anyway I reinstalled all mesa's packages using Synaptic or apt-get so much times that i'm getting totally crazy :eek:.

The symbol issue has been solved when I cleaned the last fglrx file from my Linux.

I tried to recompile libgl following content of http://www.mesa3d.org/ but as a beginner I haven't been able to do anything after ./configure.

Anyway, the only pb now is that one :

libGL error: dlopen /usr/X11R6/lib/modules/dri/r200_dri.so failed (/usr/X11R6/lib/modules/dri/r200_dri.so: cannot open shared object file: No such file or directory)


I still hope i'll solve it one day and I thank you for the help you've already gave.

Ren Höek
02-11-2009, 05:14 PM
[..]
so I switched libGL.so.1.2 and its backup. As said before, I downloaded the old libGL 1.2 while i was trying to use fglrx.
[..]
root@chez-oam:~# glxinfo | grep render
glxinfo: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
[..]
I think I have the good libGL.so.1.2 now but... My word is not trusty.

Yes, it seems that you messed your libs a little up :).
Reinstall as dungeon mentioned.

And also don't run glxinfo as root. This can leed to "direct rendering: No" too, though it works as normal user.

Demos
02-12-2009, 01:45 AM
I already reinstalled it... :(

Normally there is no more package of fglrx but, just to try, i did it.

oam@chez-oam:~$ locate fglrx
/etc/X11/xorg.conf.fglrx-0
/etc/X11/Xsession.d/10fglrx
/etc/acpi/fglrx-powermode.sh
/etc/acpi/events/fglrx-ac-aticonfig
/etc/acpi/events/fglrx-lid-aticonfig
/etc/default/xorg-driver-fglrx
/usr/bin/fglrx_xgamma
/usr/bin/fglrxinfo
/usr/lib/fglrx
/usr/lib/libfglrx_dm.so.1
/usr/lib/libfglrx_dm.so.1.0
/usr/lib/libfglrx_gamma.so.1
/usr/lib/libfglrx_gamma.so.1.0
/usr/lib/libfglrx_pp.so.1
/usr/lib/libfglrx_pp.so.1.0
/usr/lib/libfglrx_tvout.so.1
/usr/lib/libfglrx_tvout.so.1.0
/usr/lib/dri/fglrx_dri.so
/usr/lib/xorg/modules/drivers/fglrx_drv.so
/usr/lib/xorg/modules/linux/libfglrxdrm.so
/usr/share/fglrx
/usr/share/app-install/desktop/fglrx-driver.desktop
/usr/share/apport/package-hooks/source_fglrx-installer.py
/usr/share/doc/fglrx-amdcccle
/usr/share/doc/fglrx-kernel-source
/usr/share/doc/fglrx-modaliases
/usr/share/doc/xorg-driver-fglrx
/usr/share/jockey/modaliases/fglrx-modules.alias.override
/usr/share/lintian/overrides/fglrx-amdcccle
/usr/share/lintian/overrides/fglrx-kernel-source
/usr/share/lintian/overrides/xorg-driver-fglrx
/usr/src/fglrx-8.543
/var/cache/apt/archives/fglrx-amdcccle_2%3a8.543-0ubuntu4_i386.deb
/var/cache/apt/archives/fglrx-kernel-source_2%3a8.543-0ubuntu4_i386.deb
/var/cache/apt/archives/xorg-driver-fglrx_2%3a8.543-0ubuntu4_i386.deb
/var/lib/dkms/fglrx
/var/lib/dkms/fglrx/8.543
/var/lib/dkms/fglrx/original_module
/var/lib/dkms/fglrx/original_module/2.6.24-23-generic
/var/lib/dkms/fglrx/original_module/2.6.24-23-generic/i686
/var/lib/dkms/fglrx/original_module/2.6.24-23-generic/i686/collisions
/var/lib/dkms/fglrx/original_module/2.6.24-23-generic/i686/collisions/kernel
/var/lib/dkms/fglrx/original_module/2.6.24-23-generic/i686/collisions/volatile
/var/lib/dkms/fglrx/original_module/2.6.24-23-generic/i686/collisions/kernel/drivers
/var/lib/dkms/fglrx/original_module/2.6.24-23-generic/i686/collisions/kernel/drivers/char
/var/lib/dkms/fglrx/original_module/2.6.24-23-generic/i686/collisions/kernel/drivers/char/drm
/var/lib/dkms/fglrx/original_module/2.6.24-23-generic/i686/collisions/kernel/drivers/char/drm/fglrx.ko
/var/lib/dkms/fglrx/original_module/2.6.24-23-generic/i686/collisions/volatile/fglrx.ko
/var/lib/dpkg/info/fglrx-amdcccle.list
/var/lib/dpkg/info/fglrx-amdcccle.md5sums
/var/lib/dpkg/info/fglrx-kernel-source.list
/var/lib/dpkg/info/fglrx-kernel-source.md5sums
/var/lib/dpkg/info/fglrx-kernel-source.postinst
/var/lib/dpkg/info/fglrx-kernel-source.prerm
/var/lib/dpkg/info/fglrx-modaliases.list
/var/lib/dpkg/info/fglrx-modaliases.md5sums
/var/lib/dpkg/info/xorg-driver-fglrx-envy.list
/var/lib/dpkg/info/xorg-driver-fglrx-envy.postrm
/var/lib/dpkg/info/xorg-driver-fglrx.conffiles
/var/lib/dpkg/info/xorg-driver-fglrx.list
/var/lib/dpkg/info/xorg-driver-fglrx.md5sums
/var/lib/dpkg/info/xorg-driver-fglrx.postinst
/var/lib/dpkg/info/xorg-driver-fglrx.postrm
/var/lib/dpkg/info/xorg-driver-fglrx.preinst
/var/lib/dpkg/info/xorg-driver-fglrx.shlibs


Is it normal to see so much files including "fglrx" in their name?

I see on the web (ubuntu forums) that guys solved it when they deleted fglrx. Normally it's done... I'm not trully sure of what "normally" means anymore :o

Concerning grub, until yesterday, it booted on the 2.6.24-23-generic kernel (surely a bug during upgrade or a mistake from me) but now everything works properly and 2.6.27.11 is loaded at boot.

Finally, even as normal user :

oam@chez-oam:~$ LIBGL_DEBUG=verbose glxinfo | grep render
libGL: XF86DRIGetClientDriverName: 5.3.0 r200 (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/r200_dri.so
libGL error: dlopen /usr/X11R6/lib/modules/dri/r200_dri.so failed (/usr/X11R6/lib/modules/dri/r200_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: r200_dri.so
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
OpenGL renderer string: Mesa DRI R200 20060602 AGP 8x x86/MMX+/3DNow!+/SSE TCL




May I do a symbolic link or some stuff like that? It looks dirty...

bridgman
02-12-2009, 02:19 AM
I would really think about trying a clean install of Ubuntu; r200 should work out of the box.

DanL
02-12-2009, 03:02 AM
I've had the same experience with fglrx not uninstalling properly. Just one more reason to use open-source drivers if possible.

Kano
02-12-2009, 04:48 AM
Then uninstall it right:

sudo -i
/usr/share/ati/fglrx-uninstall.sh
apt-get remove --purge $(dpkg -l|awk '/fglrx|amdxv/{print $2}')

Demos
02-15-2009, 08:40 AM
/usr/share/ati/fglrx-uninstall.sh

=> not found



apt-get remove --purge $(dpkg -l|awk '/fglrx|amdxv/{print $2}')

=> still searching in /usr/X11R6/lib/modules/dri

I was giving up but an update of my Xubuntu solved it suddenly. I'm lucky :).

Now I get :
oam@chez-oam:/mnt/archives$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Mesa DRI R200 20060602 AGP 8x x86/MMX+/3DNow!+/SSE TCL


Sadly my issue is not completely resolved.
I tried to activate direct accelerating because I had some lags with Flash Player and some strange effects with xfce.

When I open a new window, it appears blank with little dots (as a physical bug) for about 0.25 second. Then the good image is spread.

I thought it came from my direct accelerating issue. Now I know it's not true.

An other strange behavior is that fps in glxgears didn't increase after resolving the problem. It's still stuck between 1450 et 1650 fps.

I will add a link to a screen-shot soon.

Anyway thank you for your help until now.

PS : Maybe shall I create a new thread?

Kano
02-15-2009, 08:59 AM
mkdir -p /etc/adobe
echo OverrideGPUValidation=true > /etc/adobe/mms.cfg

Demos
02-15-2009, 06:11 PM
I followed your instructions then reboot but the bug is still visible.

The best score of glxgears is still 1650 fps.

Sorry for the picture of the bug but I'm presently trying to bind print screen and any utility able to make a screen-shot. The plug-in of xfce doesn't work until now and the bug is too short in time to be catchable with a click.

Kano
02-15-2009, 06:22 PM
Thats for Flash 10 plugin. Not more not less.

Demos
02-15-2009, 06:51 PM
Thank you, my flash is already nice since i use driver "radeon".

But it's a bit better now :P.

Kano
02-15-2009, 06:59 PM
You can see the diff basically only in fullscreen. In order to avoid flickering try driconf and force vsync on. Of course glxgears will show only refreshrate then ;)