Ubuntu Edgy, ATI’s fglrx, DRI, 3D acceleration and X.org Composite extension
September 6th, 2006
I think that Ubuntu Edgy Knot 2 is the first Linux distribution that enables the Composite extension by default for X.org. While this is really exciting, unfortunately it seems to negatively affect DRI and 3D acceleration when using ATI’s closed-source drivers, fglrx.
I don’t know exactly the reasons of this, but enabling Composite extensions disables ATI’s driver support for DRI and 3D acceleration. The X.org logs show DRI has been disabled, but they offer no clue on what’s going on, so I eventually found tout he answer while digging on the Ubuntu forums.
To disable Composite extensions, add the following lines to the end of /etc/X11/xorg.conf file:
Section "Extensions"
Option "Composite" "false"
EndSection
This will bring back support for DRI, 3D acceleration and, thus, OpenGL support.
September 17th, 2006 at 6:45 PM
[...] Google is my friend in times of need, turns out I need to disable the X composite extension for frglx (the ATi binary driver) to work properly. An hour and several reboots later this simple fix fixed it, always they way. [...]
September 22nd, 2006 at 10:49 PM
Uhoo , thanks , now i have the acceleration (i thought installing the latest drivers from their site but you saved me )
fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9550 Generic
OpenGL version string: 2.0.6011 (8.28.8)
October 3rd, 2006 at 10:51 PM
[...] On 9/28/06, Felipe Alfaro Solana wrote: > On 9/28/06, m c wrote: > > Hi all, > > > > The fglrx driver seems to fail on loading the drm module and DRI fails > > to initialise on my ATI X1900. Same result on both Dapper and Edgy… > > > > The errors in Xorg.log are: > > (II) Reloading /usr/lib/xorg/modules/linux/libdrm.so > > drmOpenDevice: node name is /dev/dri/card0 > > drmOpenDevice: open result is -1, (No such device or address) > > drmOpenDevice: open result is -1, (No such device or address) > > drmOpenDevice: Open failed > > [drm] failed to load kernel module “fglrx” > > (WW) fglrx(0): Failed to open DRM connection > > > > and: > > (II) fglrx(0): Composite extension enabled, disabling direct render > > Seems you’re using the Composite extension. AFAIK, fglrx doesn’t like > Composite extension. > > Take a look at this. I think it may help you: > > http://felipe-alfaro.org/blog/2006/09/06/ubuntu-edgy-ati-fglrx-dri-3d-acceleration-and-xorg-composite-extension/ [...]
October 3rd, 2006 at 10:51 PM
[...] http://felipe-alfaro.org/blog/2006/09/06/ubuntu-edgy-ati-fglrx-dri-3d-acceleration-and-xorg-composite-extension/ [...]
October 8th, 2006 at 10:25 AM
This works great. Thanks!
October 9th, 2006 at 2:10 PM
Hi! I surfed in to you website when searching on fglrx, i to have the same problem on my laptop with a X1300 card. I have added the line to my xorg.conf file, but it still doesnt work
I run the 8.29.06 ati drivers. Have you got any more ideas? The thread i posted is here http://ubuntuforums.org/showthread.php?t=271752 i would appreciate a answer on email, or on the thread
Regards, Tommy
October 9th, 2006 at 7:48 PM
Try the following:
# mv /etc/modprobe.d/fglrx /tmp
# reboot
I had problems with Edgy not loading the fglrx module which turns out causes problems and doesn’t allow DRI to work.
October 21st, 2006 at 4:24 AM
thx dude, you saved my day
October 27th, 2006 at 9:36 PM
Cheers my friend! This worked a treat and I have been slamming my head on a brick wall for ages on this!
October 29th, 2006 at 12:07 AM
excellent tip thanks very much
November 1st, 2006 at 12:08 PM
[...] I’ve got a Radeon Xpress 200M card in this Toshiba Satellite notebook, and after upgrading, I was greeted by both a broken boot screen and an X.org server crash. The boot sceeen was resolved with a quick “apt-get install ubuntu-desktop”, but X was a bit trickier to fix. You can get a quick fix by enabling the basic, no-3d-acceleration “ati” driver, but in the time it takes you to do that, you might as well go here and read up on the fix. [...]
November 3rd, 2006 at 3:05 PM
Xpress 200M doesn’t work yet! The opensource drivers don’t support acceleration yet, and the proprietary driver doesn’t support compositing yet! So you’re not going to get AIGLX to work
November 3rd, 2006 at 5:09 PM
Unfortunately, it seems only the nVidia Beta propietary seems to be functional and powerful enough to drive AIGLX.
I have tried the ATI open-source drivers, but it seems they don’t recognise the MacBook’s Pro ATI graphics card, and ATI’s fglrx doesn’t support
GLX_texture_from_pixmap, so I haven’t been able to use AIGLX with that ATI card yet.November 4th, 2006 at 6:54 PM
Hello!
I’m having problems installing ati on my vaio vgn-s1xp
whith a radeon 9700.
In fglrxinfo it gives me this:
Xlib: extension “XFree86-DRI” missing on display “:0.0″
When I turn composites off, I thik the dri loads, but I only get a black screen! Have to turn composites on again to be able to use ubunto (6.10).
Any help would be apreciated!
Thanks in advance!
November 9th, 2006 at 12:58 PM
Hi, I am very new to linux (ie less than a couple of days).
I am using ATI Radeon Express 200M with Ubuntu 6.10.
When I type fglrxinfo I get the following :
Xlib: extension “XFree86-DRI” missing on display “:0.0″.
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: http://www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.5.1)
And when I do what you suggested, it says can’t save file, cause I don’t have permission. When I try to change the file permissions it says that I am not the owner!
Please help!
November 9th, 2006 at 3:00 PM
Hi, NewLinuxUser:
First of all, I want to take the oportunity to give you a warm welcome to the world of Linux.
In order to modify the file
/etc/X11/xorg.org, you need to elevate your privileges./etc/X11/xorg.confis a system configuration. Normally, you log into your Linux box using a normal user account which doesn’t have privileges to edit system files.In order to edit
/etc/X11/xorg.conf, you will have to temporarily elevate your privileges using thesudocommand to invoke your favorite editor.sudowill ask for your password and, if correct, will launch a new shell running with elevated privileges, running as user root, also known as super-user.To edit
/etc/X11/xorg.conf, you can use a command-line, text-mode editor, likevimoremacs, or a GUI one, likegedit(GNOME Text Editor) orkedit(KDE Text Editor). Since you are new to Linux, you will probably want to use one of the multiple GUI editors available for your desktop environment (GNOME, KDE, XFCE, etc.).To invoke
vimwith elevated privileges in order to edit/etc/X11/xorg.conf, use:sudo vim /etc/X11/xorg.confIf you want to use a GUI-based text editor, you can run:
gksudo gedit /etc/X11/xorg.confThis will run GNOME Text Editor with elevated privileges (running as user root)and will automatically open the file
/etc/X11/xorg.conf. Alternatively, you can omit the filename when invokinggeditand use File -> Open to open that file for editing.One advice: please, don’t run commands or log in as root for your day-to-day work. This user has full control over the machine and has no access control restrictions, so it is dangerous to run programs as root, since you can run a command by accident or mistake that deletes critical files from your system, or run untrusted programs that may compromise the security and/or stability of your system.
Hope this helps. In case it doesn’t, please post a new comment or e-mail me at felipe_alfaro AT linuxmail DOT org.
November 16th, 2006 at 2:09 AM
Thanks dude, this worked for me!
Sometimes the Option “Disable” or “0″ doesn’t work for all.
November 21st, 2006 at 12:59 AM
Thanks for that great help!!!!
Go on blogging!
November 29th, 2006 at 7:34 PM
Hi . The trick doesn’t work with me. I have Ati X1600 PCIE and the latest drivers. I added the lines at the xorg.conf file but i can’t get 3d acceleration. what else can i do ??? Are there any other drivers for my VGA to install and have 3d acceleration and Beryl ?
November 30th, 2006 at 12:39 PM
hey guys, im still new to ubuntu and linux in general.. i installed ubuntu edgy, but its a little laggy. i installed the ati drivers, and when i use fglrxinfo it says this:
chirag@chirag-desktop:~$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON X700 PRO Generic
OpenGL version string: 2.0.6011 (8.28.8)
i downloaded the newest drivers form the ati website for my card, but the file extension is .run, how to i execute this file? or do i even need to? the only reason i think i would need to is it says the …X700 PRO Generic, so i think i need to use the proprietary ati drivers. any other special drivers i need to install? with windows there’s the special agp to pci bridge drivers, and cpu and motherboard drivers, anything like that in ubuntu? thanks so much!! //chirag
December 3rd, 2006 at 2:36 PM
Chirag,
use sh, but be sure that you’re running bash and not dash, or you’ll get a ‘bad substitution’ error. Change the /etc/init.d/sh link. On Ubuntu: sudo ln -sf /bin/bash /bin/sh and to change back: sudo ln -sf /bin/dash /bin/sh. Or Google it, it’s all over the place.
Filipe, you rock. I’ve been fighting this thing all day. I’m a Linux noob setting up my new dev box with Ubuntu, Mono/C#, and VMware for Win32/.NET dev, and this gfx problem was driving me nuts. Couldn’t get decent VM guest resolution.
Thx again.
December 3rd, 2006 at 6:54 PM
Hello,
Also new to Ubuntu Linux. I have been trying to get my ATI 1900 3D work. I still get the error message Xlib: extension “XFree86-DRI” missing on display “:0.0″. I have tried everything you all suggested and still cant get rid of this error. What am I missing. Any help would be valued.
Thanks Robert
December 21st, 2006 at 8:25 AM
Thanks for the tip, I now have 3D support, all I need to do now is figure out how to get DVI to work…
December 21st, 2006 at 11:28 AM
When I tried to run the “mv /etc/modprobe.d/fglrx /tmp” command, I received this: “No such file or directory”. I have the same problem as NewLinuxUser. Any thoughts?
February 10th, 2007 at 2:37 PM
Dude. If you were not a guy I would be all over you.
Thank you very much for blogging this.
Kiwi NZ.
February 11th, 2007 at 3:02 PM
Jepp, same for me with my Radeon X1950. I’ll have installed the latest driver (8.33.6) and it should work. i hear the buzz from the graphic card fan but still get the error. Xlib: extension “XFree86-DRI” missing on display “:0.0″.
I am not sure it can find my card.. in xorg.conf it only has “Identifier “ATI Technologies, Inc. ATI Default Card”"
well i will have to tweak some more maybe it comes around..
cheers
February 13th, 2007 at 12:26 AM
What worked for me to get OpenGL running on my ATI Radeon Xpress 200M was to turn off the “Composite” extension in xorg.conf. I’ve running the ATI proprietary drivers version 8.33.6-1 on Ubuntu Edgy 8.10. From what I read, the most recent versions of xorg turn on the Composite feature by default. I added these lines to my xorg.conf:
Section “Extensions”
Option “Composite” “Disable”
EndSection
February 13th, 2007 at 12:04 PM
Felipe, you save my life man. Thanks!
March 1st, 2007 at 5:14 AM
GREEEEEEEEEEEEEAT !!!
Thanks Felipe. You saved our lives!
March 4th, 2007 at 11:39 PM
PLEASE for the love of the penguins help me
ok, so I am having an additional problem with x1900
1) in ubuntu graphics card works ok with opensource drivers, but I am not able to use a better resolution than 1280X1024 even though it shows greater screen resolution support, up to 1680X1050 in xorg.conf.
However when I scroll using mouse wheel or slide bar in, for instance this page, it skips as opposed to smooth rendering.
I mention this because when I do install flgrx drivers 2 things happen.
One, I cannot scroll in a web page at all. Well I can and I can see that it is working, but in order to see the “refreshed” display I have to minimze and maximize the webpage. I have added the composite off section to xorg and rebooted.
2.) I will also get overlays, AKA if I have two windows open
and minimize the top one that image will remain in the second window until I min/max.
Switching tabs in firefox will also refresh the display.
Also when a warning window pops “start or restore firefox” for instance it doesnt actually appear.
I can see it in the panel, but it will not draw on the screen until I move my mouse over it at which point it will draw the start/restore boxes independantly on mouse scroll over. and the title bar, but no text.
xorg also identifies itself as an x1600 after I have installed the drivers as well.
This is true for both ubuntu and opensuse, I have not been able to get any other distros to work with this graphics card. They all default out upon reboot after the install to a black screen.
This card has worked. I took my box down for a few days to make some mods (upgrade to 2 GB PC400 ram and 500GB sata HD from 160 ide and 1.5 PC200) and switch to open suse. I was running beryl project when I did this. Now all I can get is the whitescreen of death in the beryl project when I tried to install over this error in either ubuntu or opensuse.
PLEASE FOR THE LOVE OF THE PENGUINS HELP ME
April 2nd, 2007 at 7:58 AM
Thanks very much for solving this problem.
April 2nd, 2007 at 2:48 PM
Dear god, I was tearing my hair out trying to figure this out.
You win an internet.
April 15th, 2007 at 10:18 PM
Hell yeah — thanx a million!
April 17th, 2007 at 1:50 AM
You RULE!!!!
July 1st, 2007 at 3:23 PM
Hi there,
Guys, just wanted to post that I am now on linux after 15 years of NT to Vista. Vista made me think about what was going on in the community land.
All I can say is thank you – it is now a tough learning curve, but worth the effort and the OS is so enjoyable.
I have ATI driver issues – and i will read and get ti sorted..
Anyway,
Hopefully I can contribute at as later date.
Brebo
August 12th, 2009 at 6:41 PM
I love the 3d that you mention
May 26th, 2010 at 11:06 PM
hey guys i have a Intel® 845G grapics card and i was Playing the computer came World of warcraft and it runs very slow with Very small Fps (frames per second) ive lowerd the quality of the game. and i ahve a 1gig of ram. is there anything else i can do to get my Fps up higher