Thursday, October 3, 2013

How To Install Legacy Catalyst ATI Drivers 13.1 in Fedora 18

This approach has been taken from Giuseppe Marco Randazzo's Blog Post

Note: This method will only work for kernel <=3.9.11-200

Note: This method has been tested for a fresh install of fedora 18

Note: Make sure that you have booted into the kernel version 3.6.10-4

Steps:
First download kernel-3.6.10-4.fc18.x86_64.rpm, kernel-headers-3.6.10-4.fc18.x86_64, kernel-devel-3.6.10-4.fc18.x86_64 and rpmfusion-free-release-stable
$ yum install -y kernel-3.6.10-4.fc18.x86_64.rpm kernel-headers-3.6.10-4.fc18.x86_64 \
  kernel-devel-3.6.10-4.fc18.x86_64 rpmfusion-free-release-stable 
$ yum remove audit -y
$ yum install -y qt-x11 akmods git
$ cd /var/lib; git clone https://github.com/zeld/zrepo.git
$ echo "[zrepo]
name=zrepo Repository
baseurl=file:///var/lib/zrepo/$releasever/$basearch
gpgcheck=0
enabled=1" > /etc/yum.repos.d/zrepo.repo
$ yum remove xorg-x11-drv-* -y
$ yum --disablerepo="*" --enablerepo="zrepo" downgrade \
  xorg-x11-server-common-1.12.4-3.fc18.x86_64  xorg-x11-server-Xorg-1.12.4-3.fc18.x86_64
$ yum --disablerepo="*" --enablerepo="zrepo" install \
  xorg-x11-drv-evdev xorg-x11-drv-synaptics xorg-x11-drv-catalyst-legacy akmod-catalyst-legacy
$ mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-old.img
$ dracut /boot/initramfs-$(uname -r).img $(uname -r)
$ grub2-mkconfig -o /boot/grub2/grub.cfg
$ echo "exclude=xorg-x11-server-* xorg-x11-drv-* kernel-*" >> /etc/yum.conf
$ sed -i '/^GRUB_CMDLINE_LINUX=\"/s/\"$/ rd.blacklist=radeon nomodeset radeon.audio=1 radeon.audio=1\"/' \
  /etc/default/grub