Not Doing So Well
This guide is pretty broken right now since edgy and various updates, including the move to beryl.
I was able to get beryl running by using Ubuntu Edgy's fglrx driver (not the one from ati.com, the one from the repos). Here is the guide:
Here is the old guide, in case any of the info is still useful.
Hey all this is my first howto, and a lot of blood, sweat, tears, microwave burritos, diet cola, chips, missed sleep, forum searching, google searching, soul searching, company time, and head scratching went into this.
First off I'd like to thank the guys at Kororaa for showing me that it was possible to get xgl compiz working with decent performance on my computer. Also thanks to Remix_88 for fixing the 1024x768 issue!
I'd also like to thank gruvsyco for his thread, on which a lot of my progress came from.
Second, who is this guide for? This guide is for people with an ATI Mobility card who cannot get XGL/Beryl to work with the fglrx driver, and would like to use the open source xorg radeon driver for acceleration.
OK now its go time.
First, off, if you have installed ubuntu clean and have not set up fglrx, and "glxinfo | grep rendering" gives you "Yes", and "lsmod | grep radeon" lists "radeon", skip to step 2.
1. Get Radeon Going
First, we need to remove xorg-driver-fglrx
OK now lets grab the newest radeon driver from the compiz/beryl repos.
sudo aptitude remove xorg-driver-fglrx
And add this to the end:
gksudo gedit /etc/apt/sources.list
now add in the right stuff for the radeon driver:
deb http://www.beerorkid.com/compiz dapper main aiglx
deb http://media.blutkind.org/xgl/ dapper main aiglx
OK now we need our Xorg.conf to be ready
sudo aptitude update
sudo aptitude dist-upgrade
sudo aptitude reinstall libgl1-mesa libgl1-mesa-dri
Here are the areas of interest:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sudo gedit /etc/X11/xorg.conf
Now set up the modules to get the right ones at boot:
# Leave the identifier and BusID alone, but add the options
Identifier "YOURS HERE"
BusID "YOURS HERE"
Option "backingstore" "true"
Option "EnablePageFlip" "true"
Option "SubPixelOrder" "none"
Option "AccelMethod" "XAA"
Option "RenderAccel" "true"
Option "AGPMode" "4"
Option "ColorTiling" "on"
Option "DynamicClocks" "on"
Option "mtrr" "on"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
# You can put your modes below, for your own resolutions, these are mine:
Modes "1400x1050" "1280x1024" "1280x800" "1024x768" "800x600" "640x480"
Option "Composite" "Enable"
Make sure that you have these lines:
gksudo gedit /etc/modules
Add a little something to your .drirc to get full resolution support:
#agpgart # you dont need these two lines, just make sure they are NOT there
Now reboot to get the modules to load.
<device screen="1" driver="r200">
<option name="allow_large_textures" value="2" />
If this didn't work and you got a text login, login and do "sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf" and then "sudo /etc/init.d/gdm restart". If you had to do this, you should stop now, you won't be able to get farther.
For the rest of you, log in to gnome and open a terminal and type:
and make sure you get a Yes.
glxinfo | grep rendering
OK Part 1 is done.
2. XGL Time!
So Compiz-quinnstorm forked to Beryl, which is what this howto will now cover.
First, lets install xgl and Beryl:
Now I dont know about you guys, but I hate switching GDM to XGL, because if it messes up I have to use the text console, so we are going to make our own xgl session.
sudo aptitude install xserver-xgl beryl emerald-themes
Here is the content:
sudo gedit /usr/share/xsessions/xgl.desktop
OK now we need to make /usr/bin/startxgl.sh:
sudo gedit /usr/bin/startxgl.sh
now make it executable:
Xgl -fullscreen :1 -ac -accel xv -accel glx:pbuffer &
# Start GNOME
OK now log out and press CTRL+ALT+BACKSPACE. Click Options and then Select Session. Choose XGL. Log in and click "Just for this session" just in case it messes up.
sudo chmod +x /usr/bin/startxgl.sh
To edit beryl related settings, run csm. To edit the window manager themes, run "beryl-settings".
Version 0.9 10/17/2006 11:41 EST
Switched from Compiz to Beryl. I haven't tested the changes so feedback would be helpful!
Version 0.8 09/06/2006 17:22 EST
Removed gnome-compiz-manager from the guide, since it no longer affects the current compiz version. Use csm to edit plugins and "compiz-start" to run compiz.
Version 0.7 08/30/2006 16:13 EST
Added Remix_88's fix for resolutions, and change installation commands to use the newer quinn packages instead of the vanilla ones.
Version 0.6 08/29/2006 17:13 EST
Fixed a typo (added 'install' to 'sudo aptitude')
Version 0.5 08/09/2006 11:24 CDT
Added the note to tell people to skip step 1 if they have a working default install.
Version 0.4 08/06/2006 14:03 CDT
Re-organized the radeon section to do things in a better order and more simply. Thanks Flavian.
Version 0.3 07/25/2006 11:29 CDT
Forced reinstall of Mesa packages
Version 0.2 07/24/2006 15:08 CDT
Added note about removing fglrx module
Version 0.1 07/19/2006 19:45 CDT