Configuring the fglrx driver for ATI graphics chips in CentOS and RHEL 5
Created by: Bill Giannikos,Last modification on Fri 08 of Feb, 2008 [15:09 UTC]
If the guide here does not cover what you were looking for you can view the guides section for coverage of other distributions.
SponsorsLenovo are now offering a range of Thinkpads with Suse Linux pre-installed. Run Linux and Windows simultaneously with Parallels Workstation. | Page Contents |
Author
Bill Giannikos (bill2 at giannikos.com.au)www.billgiannikos.com
Introduction
This guide will help you configure the proprietary ATI driver under CentOS and Red Hat Enterprise Linux 5. For those that don't know, CentOS 5 and Red Hat Enterprise Linux 5 are basically the same thing just with a different name so this guide applies to both. I will not be covering the open source radeon driver included with Xorg because its configuration is normally handled automatically by most Linux distributions. We also wont be covering the newly released readeonhd driver as these are still in an early stage.Licensing Issues
ATI/AMD provide their own license for their driver. You will need to read and accept this license before proceeding.Notes
We will be using 'nano' as our text editor of choice but you can use whatever you wish.While this guide is mainly focused to laptop users there isn't any difference for desktop users.
Prerequisites
You should run a full update for your installation to ensure you have all the latest packages installed.Installing the ATI driver
The fglrx driver is not included with CentOS/RHEL so we will need to use a 3rd party repository. Here we will be using the yjl-livna repository.1. Load up a terminal window if you are in the graphic interface.
2. Switch to the root user by entering the command "su -" (without the quotes) and typing in your root password
3. Edit the file /etc/yum.conf. Using nano we type the command "nano -w /etc/yum.conf"
4. If you have already configured yum to use the yjl-livna repository then append "*fglrx* *livna*" to the end of the "includepkgs" line and skip the next setup. Otherwise continue on.
5. Add the following to the bottom of this file:
[yjl-livna]
name=EL $releasever - $basearch - YJL-Livna
baseurl=http://yellowjacketlinux.fileburst.com/yum/yjl/el$releasever/$basearch/yjl-livna
gpgkey=http://www.pennywasted.info/centos/YJL_GPG-KEY
gpgcheck=1
enabled=1
exclude=*kmod*i586*
includepkgs=*fglrx* *livna*
name=EL $releasever - $basearch - YJL-Livna
baseurl=http://yellowjacketlinux.fileburst.com/yum/yjl/el$releasever/$basearch/yjl-livna
gpgkey=http://www.pennywasted.info/centos/YJL_GPG-KEY
gpgcheck=1
enabled=1
exclude=*kmod*i586*
includepkgs=*fglrx* *livna*
6. Save the file. In nano you press Ctrl-X, answer yes to the "Save modified buffer" question and then press enter on the file name to write.
7. If you have not previously setup Livna execute the following command:
rpm --import http://www.pennywasted.info/centos/YJL_GPG-KEY
8. Now execute the following command:
yum install kmod-fglrx xorg-x11-drv-fglrx
9. Reboot your system and you will be using the fglrx driver.
Troubleshooting
Normally after installing the fglrx driver with the steps above your xorg.conf file should have automatically been updates to use the newer driver. If this did not happen or for some reason it has reverted then, as root, enter the following command:livna-config-display
This will switch you back to the fglrx driver.

Comments
trouble with step 8
root@localhost etc# yum install kmod-fglrx xorg-x11-drv-fglrx
Loading "kernel-module" plugin
epel 100% |======================| 1.1 kB 00:00
sl-base 100% |===================| 1.1 kB 00:00
sl-security 100% |======================| 951 B 00:00
http://yellowjacketlinux.fileburst.com/yum/yjl/el5.2/i386/yjl-livna/repodata/repomd.xml: Errno 14 HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: yjl-livna. Please verify its path and try again
My kernel is 2.6.18-92.1.6.el5, and I am running Scientific Linux 5.2, a RHEL5.2 clone, on a Dell 1501.