原文地址:http://wiki.cchtml.com/index.php/Ubuntu_Edgy_Installation_Guide
安装指南:在Ubuntu Edgy上安装ATI显卡驱动
最新版的fglrx驱动程序支持Radeon 9500以上显卡,X系列最高支持到X1900。
目录
* 1 安装前
1.1 启用 "restricted" Repository
1.2 禁用 Composite Extension
* 2 开始安装
2.1 Ubuntu方式安装驱动程序
2.2 手动安装驱动程序
2.3 设置驱动程序
2.4 完成安装
* 3 安装后
3.1 验证
* 4 Ubuntu-specific Issues
4.1 Revert to Xorg driver
* 5 参考
安装前
启用 "restricted" Repository
确保/etc/apt/sources.list中的restricted repository已启用,否则下面所述无用。
禁用Composite Extension
在Ubuntu Edgy中,Composite extension被默认为启用,而fglrx不能够同时支持Composite和DRI。按下面的步骤来禁用Composite:
编辑文件 xorg.conf
sudo gedit /etc/X11/xorg.conf
在文件末尾添加下面几行:
Section "Extensions"
Option "Composite" "Disable"
EndSection
* Note: Xubuntu 没有gedit. 默认的文本编辑器是mousepad.
* Note: Kubuntu 没有gedit. 默认的文本编辑器是 Kate. 另外也可以使用 nano.
开始安装
以Ubuntu的方式安装驱动
sudo apt-get update
sudo apt-get install linux-restricted-modules-$(uname -r) #Okay if it is already installed
sudo apt-get install xorg-driver-fglrx
sudo depmod -a
手动安装驱动
* Note: 可以取代上节所述的另一种方法.
下载 ATI driver installer: ati-driver-installer-8.33.6-x86.x86_64.run(这个安装程序可用于 32bit和64bit系统).
转到下载目录,在执行下面步骤前,确保你将/etc/apt/sources.list里的 universe 和 multiverse repositories 启用了。
安装必须的工具:
sudo apt-get update
sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5 linux-headers-$(uname -r)
创建 .deb 包:
sudo ln -sf bash /bin/sh
bash ati-driver-installer-8.33.6-x86.x86_64.run --buildpkg Ubuntu/edgy
sudo ln -sf dash /bin/sh
安装 .deb 包:
sudo dpkg -i xorg-driver-fglrx_8.33.6-1*.deb
sudo dpkg -i fglrx-kernel-source_8.33.6-1*.deb
sudo dpkg -i fglrx-control_8.33.6-1*.deb
将/usr/src/中所有旧的fglrx debs移除 :
sudo rm /usr/src/fglrx-kernel*.deb
编译内核模块:
sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant build fglrx
sudo module-assistant install fglrx
sudo depmod -a
重要提示: 在每次内核更新后,你都得重编译内核模块!
设置驱动程序
sudo aticonfig --initial
* Note: 除了使用命令aticonfig --initial,还可以编辑/etc/X11/xorg.conf,将段落"Device"中的字符串"ati"替换为 "fglrx"。使用这种方法不会丢失你原有的 "Screen" 和 "Monitor"设置,之后可以使用aticonfig来设置overlay等等。
sudo aticonfig --overlay-type=Xv
完成安装
保存所有打开的文件,重启计算机。
sudo shutdown -r now
* Note: 还可以按 CTRL+ALT+BACKSPACE 重启X Server。必须移除所有老版本的内核模块如 "drm" "radeon" 或是 "fglrx".
安装后
验证
运行下面命令,检查输出以判断fglrx驱动程序是否成功安装。
$fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700 Generic
OpenGL version string: 2.0.6286 (8.33.6)
Ubuntu特别文章-specific Issues
恢复Xorg驱动
如果,无论什么原因,fglrx驱动程序安装失败了,你都可以通过执行下面的命令来恢复Xorg驱动。
sudo dpkg-reconfigure xserver-xorg
选择“ati”驱动程序,如果有备份,你也可以还原至最初的/etc/X11/xorg.conf配置文件。
此外,你还需要移除xorg-driver-fglrx,或是手动安装的使得3D加速可用的驱动程序。因为它们提供的文件 /usr/lib/libGL.so.1.2将原有的libgl1-mesa包给替换了。你可以使用下面的命令来重新安装。
sudo apt-get install --reinstall libgl1-mesa
参考
* Frequently Asked Questions
* Performance Issues
* Verifying Installation
* Troubleshooting Installation