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:
http://www.ubuntuforums.org/showthread.php?t=291464
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
Code:
sudo aptitude remove xorg-driver-fglrx
OK now lets grab the newest radeon driver from the compiz/beryl repos.
Code:
gksudo gedit /etc/apt/sources.list
And add this to the end:
Code:
deb http://www.beerorkid.com/compiz dapper main aiglx
deb http://media.blutkind.org/xgl/ dapper main aiglx
now add in the right stuff for the radeon driver:
Code:
sudo aptitude update
sudo aptitude dist-upgrade
sudo aptitude reinstall libgl1-mesa libgl1-mesa-dri
OK now we need our Xorg.conf to be ready
Code:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sudo gedit /etc/X11/xorg.conf
Here are the areas of interest:
Code:
Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection
#...
# Leave the identifier and BusID alone, but add the options
Section "Device"
Identifier "YOURS HERE"
Driver "radeon"
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"
EndSection
#...
Section "Screen"
Identifier "YOURS"
Device "YOURS"
Monitor "YOURS"
DefaultDepth 24
SubSection "Display"
Depth 24
# You can put your modes below, for your own resolutions, these are mine:
Modes "1400x1050" "1280x1024" "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
#...
Section "DRI"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Now set up the modules to get the right ones at boot:
Code:
gksudo gedit /etc/modules
Make sure that you have these lines:
Code:
#agpgart # you dont need these two lines, just make sure they are NOT there
#fglrx
drm
radeon
Add a little something to your .drirc to get full resolution support:
contents:
Code:
<driconf>
<device screen="1" driver="r200">
<application name="Default">
<option name="allow_large_textures" value="2" />
</application>
</device>
</driconf>
Now reboot to get the modules to load.
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:
Code:
glxinfo | grep rendering
and make sure you get a Yes.
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:
Code:
sudo aptitude install xserver-xgl beryl emerald-themes
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.
Code:
sudo gedit /usr/share/xsessions/xgl.desktop
Here is the content:
Code:
[Desktop Entry]
Encoding=UTF-8
Name=XGL
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application
OK now we need to make /usr/bin/startxgl.sh:
Code:
sudo gedit /usr/bin/startxgl.sh
contents:
Code:
Xgl -fullscreen :1 -ac -accel xv -accel glx:pbuffer &
DISPLAY=:1
# Start GNOME
exec gnome-session
now make it executable:
Code:
sudo chmod +x /usr/bin/startxgl.sh
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.
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
Bookmarks