6.10/7.04下的ati官方驱动安装

转载自http://forum.ubuntu.org.cn/viewtopic.php?t=26188
主要参考 http://wiki.cchtml.com/index.php/
做了一些改动。
注意,fglrx驱动(即官方闭源驱动)暂时不支持aiglx(因为不支持composite), 依然需要等待。想尝试beryl/compiz(即桌面效果)的可用xgl+fglrx驱动;或者用开源驱动(非ati官方)ati/radeon+ aiglx(无需安装),后者有些特性可能不支持或速度慢,但资源占用相对较少。另外开源驱动对x1k以上系列显卡支持不好。

另外,某些显卡可能会遇到重启以后无法进入x,或者在安装完系统后黑屏,请参考一下这里: http://forum.ubuntu.org.cn/viewtopic.php?t=40830 也可以自己搜索论坛。


方法一:安装自带驱动,edgy的8.28.8驱动/feisty的8.34.8驱动,前者支持8500及以上显卡,后者仅支持9500及以上显卡。
如果你曾经用过方法二,需要先执行
代码:
sudo lrm-manager
并把原来装过的4个包彻底删除。

安装驱动
代码:
sudo apt-get update
sudo apt-get install linux-restricted-modules-$(uname -r)
sudo apt-get install xorg-driver-fglrx fglrx-control
sudo depmod -a

配置驱动
代码:
sudo dpkg-reconfigure xserver-xorg
在选择驱动时,选择fglrx,其他一般保持默认即可。

或者用
代码:
sudo aticonfig --initial -f
以上方法只能两者择一。

然后
代码:
sudo aticonfig --ovt=Xv

如果执行出错,则把备份的xorg.conf.xx改名,用mv命令。
其实本语句相当于在/etc/X11/xorg.conf的Device段添加两行:
代码:
Option      "VideoOverlay"      "on"
Option      "OpenGLOverlay"     "off"

并且
代码:
sudo gedit /etc/X11/xorg.conf
添加两段
代码:
Section "Extensions"
        Option  "Composite" "0"
EndSection

Section "ServerFlags"
        Option  "AIGLX" "off"
EndSection
注意,上面这两段非常重要!(在7.04中,如果你用了sudo dpkg-reconfigure来配置的话,第一段应该已经有了)

重启系统

确认是否正常运行
代码:
fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9600 Generic
OpenGL version string: 2.0.6011 (8.28.8)


方法二:自己编译最新驱动8.38.6,只支持9500及以上显卡,老显卡不支持。(32/64位通吃)
Release Notes
引用:
New Features

This release of the Catalyst® Linux graphics driver introduces support for RedHat Enterprise Linux 5.
Resolved Issues

The following section provide a brief description of resolved issues with the latest version of the ATI Catalyst™ Linux software suite. These include:

* Moving a video window between two monitors in a big desktop configuration no longer crashes the Xserver. Further details can be found in topic number 737-28222
* Playing multiple videos at the same time with textured video no longer results in corruption being noticed. Further details can be found in topic number 737-28223

Known Issues

The following section provides a brief description of known issues associated with the latest version of ATI Catalyst™ Linux software suite. These issues include:

* Corruption may be observed with certain applications on some Linux distributions which enable the Composite extension by default, e.g., RHEL 5. If you are observing application corruption, please disable the Composite extension. Further details can be found in topic number 737-28224
* Using the xgl enabled x-server interface disables display switching hot plug support
* Video tearing during playback. Further details can be found in topic number 737-26984
* There is no support for video playback on the second head in dual head mode. Further details can be found in topic number 737-26985


注意,每次内核升级后都必须重新编译。

下载地址

安装编译所必须的工具
代码:
sudo apt-get update
sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5 linux-headers-$(uname -r)

创建deb包
Edgy:
代码:
sh ati-driver-installer-8.38.6-x86.x86_64.run --buildpkg Ubuntu/edgy

Feisty:
代码:
sh ati-driver-installer-8.38.6-x86.x86_64.run --buildpkg Ubuntu/feisty

屏蔽fglrx核心模块
注意,如果你已经安装了linux-restricted-modules的话,那么此步必做。否则可以跳过。
代码:
sudo gedit /etc/default/linux-restricted-modules-common
代码:
DISABLED_MODULES=""
改成
代码:
DISABLED_MODULES="fglrx"

安装deb包
代码:
sudo dpkg -i xorg-driver-fglrx_*.deb fglrx-kernel-source*.deb fglrx-amdcccle*.deb

移除旧的fglrx
如果你是第一次做,那么会提示你这个文件找不到。别管他,继续往下做就是。
代码:
sudo rm /usr/src/fglrx-kernel*.deb
sudo apt-get -f install

编译内核模块并安装
代码:
sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant build fglrx
cd /usr/src
sudo dpkg -i fglrx-kernel-*
sudo depmod -a

配置驱动
注意,如果以前装过fglrx驱动,此步无须再做。
代码:
sudo dpkg-reconfigure xserver-xorg
在选择驱动时,选择fglrx
或者用
代码:
sudo aticonfig --initial -f
以上方法只能两者择一。
然后
代码:
sudo aticonfig --ovt=Xv

如果执行出错,则把备份的xorg.conf.xx改名,用mv命令。
其实本语句相当于在/etc/X11/xorg.conf的Device段添加两行:
代码:
Option      "VideoOverlay"      "on"
Option      "OpenGLOverlay"     "off"

并且
代码:
sudo gedit /etc/X11/xorg.conf
添加两段
代码:
Section "Extensions"
        Option  "Composite" "0"
EndSection

Section "ServerFlags"
        Option  "AIGLX" "off"
EndSection
上面这两段很重要!(在7.04中,如果你用了sudo dpkg-reconfigure来配置的话,第一段应该已经有了)

重启系统

确认驱动是否正确安装
代码:
$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI MOBILITY RADEON X600 SE # 和你的显卡型号有关。
OpenGL version string: 2.0.6474 (8.38.6) #方法一的话,应该版本低一点。
代码:
$ glxinfo | grep render
direct rendering: Yes #如果开启了xgl,那么这里一定是No,还有其他一些信息。

------------------------------------------------------------------------------------------------------------------------------
如果你碰到2D加速很慢的情况,在/etc/X11/xorg.conf 的 Device section(就是有fglrx的那段)中添上
代码:
Option      "XaaNoOffscreenPixmaps"


另外,如果你想用图形化的工具配置显卡的话,比如双头显示,则可以
代码:
gksu fireglcontrol
如果是用方法二的用
代码:
gksu amdcccle
当然,图形界面的功能非常有限,最强大的还是aticonfig。以后应该会有所改观。

如果还有其他问题,比如nforce3的芯片(主要是asus的K8N),说你仍然运行于mesa,无3d加速,可以看这里:
http://wiki.cchtml.com/index.php/Troubleshooting
------------------------------------------------------------------------------------------------------------------------------
AMD Catalyst Control Centre,现在是1.1正式版,有不少新功能。
附图:

_________________
常见问题指南
6.10/7.04ATI显卡驱动安装

Je Me Souviens

你可能感兴趣的:(6.10/7.04下的ati官方驱动安装)