This Guide is Dead
I am no longer supporting this guide. I will leave it up for posterity but if you want compositing effects, please upgrade to feisty (and beyond) and use System->Preferences->Desktop Effects. This guide was a hack to get things running when this technology was new, and now the technology has been tested and made more official (and it works better than this guide).
That said, here is the original guide:
Howto: ATI Radeon Mobility 9000 + Edgy FGLRX ( 8.28 ) + Beryl
First I would like to thank Lennart Hansen and his guide, and also the Ubuntu Forums for helping me find the FGLRX solutions for suspend/hibernate.
Also I would like to thank my Computer Vision professor for having boring lectures, inspiring me to get beryl working instead of paying attention. Also my Computer Integrated surgery professor for being boring and giving me the motivation to write this guide instead of paying attention. Be cool stay in school!
This guide has 3 parts:
- Beryl and XGL
- Tweaks & Optimizations
Just to clear things up, when I write:
The "$" means to run this on the command line. You can open a terminal by going to Applications->Accessories->Terminal.
When I say Edit "file" I mean run: "$ sudo gedit file" or "$ sudo nano -w file", or any other way you want to edit it.
Update your packages:
Install the driver and module:
$ sudo aptitude update
$ sudo aptitude dist-upgrade
For some reason, linux-restricted modules will install the modules, but when you reboot they disappear. So what we do is install them, copy the fglrx module to a safe folder, and then uninstall them. You will have to do this for every kernel update. When I figure out a better way to do this, I'll update the guide.
$ sudo aptitude install xorg-driver-fglrx
Now copy the module (the first line creates the directory, so if it is already there and there is an error, it is not a problem):
$ sudo aptitude install linux-restricted-modules-`uname -r`
Now uninstall the package:
$ sudo mkdir /lib/modules/`uname -r`/misc
$ sudo cp /lib/modules/`uname -r`/volatile/fglrx.ko /lib/modules/`uname -r`/misc/fglrx.ko
Now update your module list:
$ sudo aptitude remove linux-restricted-modules-`uname -r`
Now you've all seen this before if you've tried to use fglrx. If you know what you are doing, you can just edit xorg.conf manually to use fglrx, or just type this:
Add this to the end of xorg.conf ("$ sudo gedit /etc/X11/xorg.conf" to edit it):
$ sudo aticonfig --initial
$ sudo aticonfig --overlay-type=Xv
Now you have two choices to test fglrx.
Option "Composite" "0"
1) The easy way: reboot
2) If you know what you are doing, log out, switch to a console, stop gdm, rmmod radeon and modprobe fglrx, then start gdm. Then you don't have to reboot.
Log in and make sure that fglrx is working:
Mine spits out:
Make sure it says ATI and not Mesa.
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY/RADEON 9000 DDR Generic
OpenGL version string: 1.3.1091 (X4.3.0-8.28.8)
Beryl and XGL
Big thanks to this guide:
I pretty much copied what he did, but on the command line, because it is easier to do in a text-howto. You can also do things his way.
Edit /etc/apt/sources.list and add this:
The second batch are for the svn releases. As of 2/7/2007 when I edited this, only the svn releases and old versions (<=1.4) are working, so naturally I want the svn because it has cool stuff.
deb http://ubuntu.beryl-project.org edgy main
deb-src http://ubuntu.beryl-project.org edgy main
deb http://download.tuxfamily.org/3v1deb edgy beryl-svn
deb-src http://download.tuxfamily.org/3v1deb edgy beryl-svn
So if you do not want to install the svn packages, you have to manually downgrade to 1.4 to get it to work.
Now update your repo:
Now install XGL and Beryl:
$ sudo aptitude update
$ sudo aptitude dist-upgrade
Now create the XGL script. Edit "/usr/bin/startxgl" and paste in this:
$ sudo aptitude install beryl emerald-themes xserver-xgl
Make it executable:
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
exec dbus-launch --exit-with-session gnome-session
Now make a separate session for XGL. Edit "/usr/share/xsessions/xgl.desktop":
$ sudo chmod +x /usr/bin/startxgl
Now log out, and log in with the XGL session (click Sessions and choose XGL). Once you log in, run "beryl-manager" to start beryl. You can add this to your session start up programs if you want, but its good to test it first.
Comment=Start an Xgl Session
If you try to move a window and it crashes, read the next section!!!
Tweaks & Optimizations
You can always log in to normal gnome and run "beryl-manager" to edit settings without beryl being loaded. This is very useful.
Start beryl-manager automatically
Go to the Startup Programs tab and click Add, then type "beryl-manager".
Crashes & Performance
I had trouble with wobbly windows, and also since the Mobility 9000 isnt that great a card, I tuned some stuff down for good responsiveness. Download the attached beryl-settings.Profile and click the beryl-manager icon and click Beryl Settings Manager and click import and import the attached file (after unzipping).
Also check out this post:
Dashing Good Looks
I opened the emerald theme manager (right click the beryl icon) and chose the human theme, because I like it. Also I clicked the Emerald Settings tab and made the Titlebar Doubleclick Action = Maximize/Restore.
Hey why don't my caps/skydome work?!
If your caps don't work, try converting to PNG. Also, for skydome, make sure your resolution of your image is a power of two by a power of two. Like any of these dimensions:
512x512, 2048x1024, 4096x512, etc... Any combo of a power of two will work.
FGLRX Suspend and Hibernate
Edit "/etc/default/acpi-support" and change the following lines:
Turn off the gnome-panel "launching box" that runs slow in xgl
Run gconf-editor and go to:
and uncheck "enable animations"