Monday, March 12, 2007

Compiz with ATI Graphic Card and XGL (For Edgy Eft)

This guide just isn't for the Dell Inspiron 1501, it is also for any computer running the ATI drivers. The first seven steps will show you how to properly install the ATI Drivers in Ubuntu.

Compiz does have issues on the Dell Inspiron 1501, opening programs causes the screen to go black and white. It goes away after moving objects on the desktop. So far this is the only issue I've had.

Step 1: Install and Configure the ATI Driver.
Enable Restricted Repository
Go to your System Menu > Administration > Software Sources. Place a check next to "Proprietary drivers for devices (restricted) The Option Highlighted in Red," click Close, click Reload, and let the application update the package list.

Step 2: Update Your System
Open up a Terminal Window, Then:
sudo apt-get update

sudo apt-get dist-upgrade

Step 3: Edit Your xorg.config File

sudo gedit /etc/X11/xorg.conf
Find Section "Extensions" add this lines to the section

Section "Extensions"
Option "Composite" "Disable"

Section "ServerFlags"
Option "AIGLX" "off"

Step 4: Install Driver
Use Method 2 from the Unofficial ATI Driver Wiki, I couldn't write a better or more straight forward guide.

Step 5: Verifying Proper Installation

You should see this:
red@red-laptop:~$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON XPRESS Series
OpenGL version string: 2.0.6334 (8.34.8)

Step 6: Setting up XGL

sudo apt-get install xserver-xgl

Step 7: Make an XGL Session

sudo gedit /usr/bin/
Add this to the text file:
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
dbus-launch --exit-with-session gnome-session
For Different Windows Manager (KDE/XFCE) Check Here

Then make the script executable:

sudo chmod +x /usr/bin/

Step 8: Add XGL Option to the Gnome Login Manager

sudo gedit /usr/share/xsessions/xgl.desktop
[Desktop Entry]
Comment=Start an Xgl Session
To log into XGL, logout of your current session, and from the login screen click "Options" and "Session chooser".
Select "Xgl" from the Session menu.
DON'T DO IT NOW, Continue with guide

Step 9: Edit Your Source List
Add the following line to the bottom:

sudo gedit /etc/apt/sources.list

deb edgy dev

Download the gpg key:
gpg --keyserver hkp:// --recv-keys 0x483170E9 ; gpg --export -a 0x483170E9 | sudo apt-key add -

Step 10: Install Compiz

sudo apt-get update

sudo apt-get install compiz compiz-plugins compiz-extra compiz-extra-plugins compiz-extra-gnome gnome-compiz-manager

Optional But Recommended:
Download the Compiz Settings Manager, gives you complete control over Compiz settings.

Turn off gtk-window-decorator, if not Compiz tries to load even when not in XGL session.
Go to "System>Preferences>Sessions"
Click gtk-window-decorator (Highlighted in red) and click the disable button

edited by pHreaksYcle


Honza said...

sudo chmod a+x usr/local/bin/

missing slash (/usr)

lsutiger said...

I have tried every tutorial out there to get the ATI drivers to work. I have nearly the same computer as you Dell 1501/Turion X2/ATI Xpress 1150(200m). I am getting an error during sudo module-assistant build fglrx.
The first error ( it is a HUGE log) is:
/usr/src/modules/fglrx/firegl_public.c:208: error: expected declaration │ specifiers or ‘...’ before ‘mlock’

So I opened the file and found "mlock" ( this is only two instances of this) and couldn't seem to find what is wrong.
Any help would be appreciated! I bought this laptop this week with the intent of running a 3D desktop.

redDEAD said...

lsutiger don't use edgy, use feisty

that will fix all your problems

if you are using feisty this guide was written for edgy

mahasiswa teladan said...

hi..Im student from Informatics engineering, this article is very informative, thanks for sharing :)