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
Code:
cd ~/Desktop; mkdir atitemp; cd atitemp
Step 1: Download the proper packages we will need.
Code:
sudo apt-get install fakeroot gcc-3.4 module-assistant build-essential debhelper
Step 2: Download the latest driver from the ATI/AMD site, as of 11/23/2006, it is 8.31.5
Code:
wget https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-8.31.5-x86.x86_64.run
Step 3: Make the driver executable
Code:
chmod +x ati-driver-installer-8.31.5-x86.x86_64.run
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)
Code:
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 5: We need to install the generated packages and build the kernel module (this is the actual driver)
Code:
sudo dpkg -i *.deb
sudo module-assistant prepare,update
sudo module-assistant build,install fglrx-kernel
sudo depmod
Step 6: Package linux-restricted-modules has it's own fglrx module which we need to blacklist.
Code:
sudo gedit /etc/default/linux-restricted-modules-common
put fglrx between the quotes, save and exist
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.
Code:
sudo modprobe fglrx
Step 8: Edit /etc/X11/xorg.conf to load fglrx instead of whatever is there.
Code:
sudo gedit /etc/X11/xorg.conf
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).
Step 9: We need to restart X.
Code:
sudo /etc/init.d/gdm restart
At this point you should have the drivers working confirm with the following code:
Code:
glxinfo | grep direct
You should receive output that looks like this:
Code:
Direct Rendering: yes
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.
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:
Code:
sudo cp /lib/modules/2.6.17-10-generic/misc/fglrx.ko /lib/modules/2.6.17-10-generic/volatile/fglrx.ko
Bookmarks