written by Vyacheslav Goltser
This HOWTO is to get ATI's (now AMD's) fglrx module working under edgy. Reason for this HOWTO is that the wiki page has all the info thrown about and weird to follow. This HOWTO attempts to streamline the instruction already available on the wiki page.
Step 0: Let's create a working environment so that we can clean up afterwords
Step 1: Download the proper packages we will need.
cd ~/Desktop; mkdir atitemp; cd atitemp
Step 2: Download the latest driver from the ATI/AMD site, as of 11/23/2006, it is 8.31.5
sudo apt-get install fakeroot gcc-3.4 module-assistant build-essential debhelper
Step 3: Make the driver executable
Step 4: We need to generate the packages, but because the default shell is not bash (which we need) we need to make it default and then generate packages (this piece of code, also undoes it)
chmod +x ati-driver-installer-8.31.5-x86.x86_64.run
Step 5: We need to install the generated packages and build the kernel module (this is the actual driver)
sudo mv /bin/sh /bin/sh.old
sudo ln -s /bin/bash /bin/sh
fakeroot sh ./ati-driver-installer-8.31.5-x86.x86_64.run --buildpkg Ubuntu/edgy
sudo rm /bin/sh
sudo mv /bin/sh.old /bin/sh
Step 6: Package linux-restricted-modules has it's own fglrx module which we need to blacklist.
sudo dpkg -i *.deb
sudo module-assistant prepare,update
sudo module-assistant build,install fglrx-kernel
put fglrx between the quotes, save and exist
sudo gedit /etc/default/linux-restricted-modules-common
Step 7: Let's make sure that the driver is actually loadable. If you get an error here (output about it not being found) then read Troubleshooting Step 1.
Step 8: Edit /etc/X11/xorg.conf to load fglrx instead of whatever is there.
sudo modprobe fglrx
Scroll down to the Section "Device" that reffers to your video card and on the line that starts with Driver, change whatever is in quotes to fglrx (it is most likely that ati or radeon is there).
sudo gedit /etc/X11/xorg.conf
Step 9: We need to restart X.
At this point you should have the drivers working confirm with the following code:
sudo /etc/init.d/gdm restart
You should receive output that looks like this:
glxinfo | grep direct
If you don't get that line, then try rebooting, if that doesn't help, come to the IRC channel #ubuntu on irc.freenode.net network.
Direct Rendering: yes
Troubleshooting step 1: modprobe can tell you that it can't find the module, if it is so, execute the followin g piece of code:
sudo cp /lib/modules/2.6.17-10-generic/misc/fglrx.ko /lib/modules/2.6.17-10-generic/volatile/fglrx.ko