个人工具

“ATI显卡安装配置指南”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
Instructions for 6.10 (Edgy) 在 6.10 (Edgy) 中安装的说明
(正在重定向到 UbuntuHelp:BinaryDriverHowto/ATI/zh
 
第1行: 第1行:
== ATI 显卡安装配置指南 ==
+
#REDIRECT[[UbuntuHelp:BinaryDriverHowto/ATI/zh]]
原文出处:https://help.ubuntu.com/community/BinaryDriverHowto/ATI
+
 
+
原文作者:UbuntuWiki
+
 
+
授权许可:
+
 
+
* [http://creativecommons.org/licenses/by-sa/2.0/ 创作共用协议Attribution-ShareAlike 2.0]
+
* [http://www.gnu.org/copyleft/fdl.html GNU自由文档许可证]
+
翻译人员:oneleaf ion_immortal
+
 
+
校正人员:xiaocao2000
+
 
+
贡献人员:FireHare
+
 
+
适用版本:
+
 
+
文章状态:等待翻译
+
 
+
----
+
 
+
 
+
 
+
 
+
Ubuntu默认对ATI制造的显卡使用开源的[[UbuntuHelp:RadeonDriver|'ati'或'radeon'驱动]].然而,很多用户更喜欢用由ati.com提供的'fglrx'驱动.本手册将介绍您如何使用该驱动.
+
 
+
=== 系统需求 ===
+
请确保您的显卡具有如下属性:
+
 
+
* 它是一块"镭"显卡
+
* 卡的类型为9xxx系列,9500或更高,或卡的类型为X系列(例如X300),或其拥有电视输出TV-Ouet能力. 'fglrx' 驱动不支持早于8500的显卡.
+
* 命令 lspci 显示卡的名字带"ATI"字样.
+
* 您需要3D硬件加速支持,或显示刷新率高于60Hz.开源驱动在其他方面都做得很好.
+
Note that if you own an ATI card from the R400 series or below, you already have working 2D and may have accelerated 3D with the default drivers.  These cards include:
+
 
+
请注意:如果您有一块R400系列或更低型号的ATI显卡,您已经可以在2D下工作并且可能在默认驱动下使用3D加速。这样的显卡包括:
+
 
+
* R400 series Xnnn (X800, X700, etc) (3D works)
+
* R300 series (9300+) (3D works)
+
* R200 and R100 series (9200 and below)
+
* R400 系列 Xnnn(X800,X700等)(3D 工作)
+
* R300 系列(9300+)(3D 工作)
+
* R200 和 R100系列(9200及更低)
+
For specific chipsets and models, see [http://xorg.freedesktop.org/releases/X11R6.7.0/doc/radeon.4.html the Xorg 7.0 Release Notes].
+
 
+
对应特定的芯片组和型号,请查看[http://xorg.freedesktop.org/releases/X11R6.7.0/doc/radeon.4.html the Xorg 7.0 发行事项].
+
 
+
The TV-Out functionality may not work with the open source drivers; if you don't have TV-Out or don't want to use it, however, then you probably don't need to use fglrx.
+
 
+
视频输出(TV-Out)功能在开源驱动下可能无法工作;如果您没有视频输出或不想使用它,那您一般不需要使用fglrx。
+
 
+
=== Install from Ubuntu repositories (easier)            从Ubuntu软件仓库安装(简易方法) ===
+
==== Instructions for 6.10 (Edgy)              在 6.10 (Edgy) 中安装的说明 ====
+
* Install the driver provided by ati included in the repositories:
+
 
+
* 安装软件仓库中包含的由ATI提供的驱动
+
 
+
<pre><nowiki>
+
sudo apt-get update
+
sudo apt-get install xorg-driver-fglrx</nowiki></pre>
+
* You might also want to install a control panel for your graphic card. Please note that I do not recommend it, as it seems to be buggy, and generally doesnt work.
+
* 您可能还想为您的图形卡安装一个控制面板。请注意我并不推荐这样做,因为这个控制面板看起来有些bug,并且一般不起作用。
+
<pre><nowiki>
+
sudo apt-get install fglrx-control</nowiki></pre>
+
* Make sure fglrx is not disabled: <code><nowiki>gksudo gedit /etc/default/linux-restricted-modules-common</nowiki></code>
+
* 确认 fglrx 未被禁用,方法如下(在终端命令行中输入以下命令,查看最后一行的DISABLED_MODULES=""的双引号中是否含有fglrx。--译者注):<code><nowiki>  gksudo gedit /etc/default/linux-restricted-modules-common</nowiki></code>
+
* Generate a new set of module dependencies so the fglrx driver starts properly.
+
* 产生一组新的模块以便 fglrx 驱动完全启动。
+
<pre><nowiki>
+
sudo depmod -a</nowiki></pre>
+
* You now have to configure xorg to use your graphic card. The aticonfig tool, provided with the driver, will do that for you:
+
* 现在您需要配置xorg来使用您的图形卡。驱动自带的aticonfig工具会帮您完成这项工作。
+
<pre><nowiki>
+
sudo aticonfig --initial
+
sudo aticonfig --overlay-type=Xv</nowiki></pre>
+
* ATI are well known not to be able to provide correct drivers for their hardware so you will have to deactivate the composite extension in /etc/X11/xorg.conf , otherwise you will get a jerky video display:
+
* 众所周知,ATI无法为它们的硬件提供正确的驱动,所以您需要在 /etc/X11/xorg.conf 中使复合扩展不被激活,否则您会得到一个不平稳的视频显示。
+
* <code><nowiki>gksudo gedit /etc/X11/xorg.conf</nowiki></code> and add the following lines at the end of the file:
+
* (在终端命令行中运行--译者注)gksudo gedit /etc/X11/xorg.conf 并在文件末尾添加如下几行:
+
<pre><nowiki>
+
Section "Extensions"
+
Option      "Composite" "0"
+
EndSection</nowiki></pre>
+
// After making all those modifications, your X server might not want to start again. Don't worry, you can still modify xorg.conf using vim <code><nowiki>sudo vim /etc/X11/xorg.conf</nowiki></code>. To enter edit mode press i, to escape press escape, to save type :w and to quit type :q . And to start X again, on the command line type startx. //
+
 
+
// 做完这些修改之后,您的 X server 可能无法再次启动。别担心,您还可以通过使用vim来修改xorg.conf,命令是:sudo vim /etc/X11/xorg.conf  。要进入编辑模式,按 i ;要离开,按 Esc ;要保存,输入 :w ;要退出,输入 :q 。另外要再次启动 X ,在命令行中输入startx即可。//
+
 
+
Save and restart xorg by pressing Ctrl Alt and Backspace simultaneously.
+
 
+
保存修改结果并同时按 CTRL+ALT+BACKSPACE 来重启 xorg
+
 
+
Confirm it worked, by issuing the "fglrxinfo" command:
+
 
+
要确认生效,使用 "fglrxinfo" 命令查看结果
+
 
+
* fglrxinfo/glxinfo may not work properly for you via SSH and via the console when logged in as root.
+
* 当您通过SSH或控制台以root身份登入时,fglrxinfo/glxinfo 可能无法正常工作。
+
<pre><nowiki>
+
$ fglrxinfo
+
display: :0.0  screen: 0
+
OpenGL vendor string: ATI Technologies Inc.
+
OpenGL renderer string: RADEON 9700 Generic
+
OpenGL version string: 2.0.5755 (8.24.8)
+
</nowiki></pre>
+
===== Troubleshooting        疑难问题解决 =====
+
If fglrxinfo gives you the following, your installation is not completed correctly:
+
 
+
如果 fglrxinfo 返回如下结果,证明您的安装没有正确结束:
+
 
+
<pre><nowiki>
+
$ fglrxinfo
+
display: :0.0  screen: 0
+
OpenGL vendor string: Mesa project: www.mesa3d.org
+
OpenGL renderer string: Mesa GLX Indirect
+
OpenGL version string: 1.2 (1.5 Mesa 6.4.1)</nowiki></pre>
+
These two commands might fix your installation, try this, reboot, and run fglrxinfo again:
+
 
+
下面这两行命令可能能修复您的安装,试一试,重启,再重新运行 fglrxinfo:
+
 
+
<pre><nowiki>
+
mkdir -p /usr/X11R6/lib/modules/dri
+
ln -s /usr/lib/dri/fglrx_dri.so /usr/X11R6/lib/modules/dri </nowiki></pre>
+
[http://www.thinkwiki.org/wiki/Problems_with_fglrx#Perpetual_Mesa_GLX_Indirect_on_Debian Source for the Mesa fix, with in-depth explanation]
+
 
+
[http://www.thinkwiki.org/wiki/Problems_with_fglrx#Perpetual_Mesa_GLX_Indirect_on_Debian (????)]
+
 
+
If the above fix did not work, watch for these things:
+
 
+
如果上面的修复方法无效,那么看看这些事项:
+
 
+
* As fglrx is proprietary, just like many other proprietary software you might want to try to reboot your machine.
+
* 由于 fglrx 是专用的,像其它许多专用软件一样,您可能需要重启您的计算机试试。
+
* Make sure that the resctricted-modules package installed correspond to the kernel your are running and that you can load the fglrx driver, either by issuing the command "sudo modprobe fglrx" or by verifying that the module appears in the list of loaded modules, by issuing the command "lsmod";
+
* 使用命令 "sudo modprobe fglrx" 来查看结果,或者通过运行命令 "lsmod" 来核实已加载的组件列表中的组件,确保安装约束组件包(restricted-modules package,这里原文误拼成 "resctricted")与您正在运行的内核相一致,并且您能加载 fglrx 驱动;
+
* It may be necessary to establish a symbolic link for the /usr/lib/dri folder, by issuing the following command:  "sudo ln -s /usr/lib/dri /usr/lib/xorg/modules/dri";
+
* 为 /usr/lib/dri 文件夹建立一个符号链接 (symbolic link)可能是必须的,通过运行如下命令 "sudo ln -s /usr/lib/dri /usr/lib/xorg/modules/dri" 来建立它;
+
* You may have to unload the radeon and dri modules, by issuing "sudo rmmod radeon" and "sudo rmmod dri";
+
* 您可能必须卸载 radeon 和 dri 组件,通过运行 "sudo rmmod radeon" 和 "sudo rmmod dri" 来实现;
+
* Make sure you unload the module ati-agp by issuing "sudo rmmod ati-agp" and blacklist it in /etc/modprobe.d/blacklist.
+
* 通过运行 "sudo rmmod ati-agp" 和将 ati-agp 加入 /etc/modprobe.d/blacklist 中以确保您卸载了 ati-agp 组件。
+
* Check the /etc/X11/xorg.conf in Section "Module" to have this line: Load "dri" and it is not commented.
+
* 检查 /etc/X11/xorg.conf 文件内 Section "Module" 段中有 Load "dri" 行,且此行并未被注释掉。
+
* Check the /var/log/Xorg.0.log file for errors.  Firstly, search for (EE) (You can probably ignore any wacom entries).  If you find the following then the Composite extension has been enabled (on my system it seems to be enabled by default, and must be explicitly disabled):
+
* 检查 /var/log/Xorg.0.log 文件中的错误信息。首先,检查(EE)部分(您基本上可以忽略任何与 wacom 有关的条目)。如果您找到如下信息,说明复合扩展(Composite extension)已经被启用了(在我的系统中看起来默认就是启动的,并且必须被明确的禁用掉才行):
+
 
+
<pre><nowiki>
+
(II) fglrx(0): Composite extension enabled, disabling direct rendering
+
(WW) fglrx(0): ***********************************************
+
(WW) fglrx(0): * DRI initialization failed!                  *
+
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
+
(WW) fglrx(0): * 2D acceleraton available (MMIO)            *
+
(WW) fglrx(0): * no 3D acceleration available                *
+
(WW) fglrx(0): ********************************************* *</nowiki></pre>
+
The ATI binary drivers do not support Composite.  Ensure that the following entry is not in your xorg.conf:
+
 
+
ATI 双?(binary)驱动并不支持复合。确保如下条目在您的 xorg.conf 中并不存在。
+
 
+
<pre><nowiki>
+
Section "Extensions"
+
Option "Composite" "true"
+
EndSection</nowiki></pre>
+
If there is no Composite entry, add one specifying "false" rather than true.  This was necessary on my system.
+
 
+
如果没有复合(Composite)的条目,添加一个并明确的设置为 "false" 总比设置为 "true" 要好。这在我的系统中是必须的。
+
 
+
If you are looking for a specific video configuration please read the driver's manual. It will tell you all about dual-head configurations for example :) .
+
 
+
如果您在寻找一个特定的视频配置,请阅读驱动手册。它会以例子告诉您关于双头显示(dual-head)配置的全部内容 :) 。
+
 
+
<pre><nowiki>
+
man fglrx</nowiki></pre>
+
If you suffer from a "white screen" overlayed onto gdm upon logout and the system seizing up, i.e., if you share the Ubuntu system with multiple users, then modify the file /etc/X11/gdm/gdm.conf and either add or change the AlwaysRestartServer option:/etc/X11/gdm/gdm.conf
+
 
+
如果您因为一个"白色屏幕"在系统登录或是注销到GDM时覆盖全屏而苦恼;如果您的Ubuntu系统是多人共同使用的,那么你可以修改这个文件/etc/X11/gdm/gdm.conf.加入或更改其中的AlwaysRestartServer选项。
+
<pre><nowiki>
+
AlwaysRestartServer=true</nowiki></pre>
+
 
+
==== Ubuntu 6.06 (Dapper Drake) 安装说明 ====
+
Install the kernel drivers. These drivers should be installed by default, but it's better to make sure they are installed. You need the package linux-<code><nowiki>$arch</nowiki></code>, where you replace <code><nowiki>$arch</nowiki></code> by the CPU architecture for the machine. This is 386 for Intel Pentium, 686 for Celeron, Pentium Pro, Pentium II, Pentium III, and Pentium 4 without Hyper-Threading. 686-smp for Pentium 4 with Hyper-Threading, or k7 or k7-smp for AMD athlon. On 64-bit systems, this may be amd64-generic, amd64-k8, amd64-k8-smp, or amd64-xeon.
+
 
+
安装内核驱动。这些驱动应该是被默认安装的,但是你最好还是确定一下他们是否已经安装。你需要使用软件包 linux-<code><nowiki>$arch</nowiki></code>,替换哪里要依椐机器的CPU架构。这里有386的Intel Pentium、686的Celeron, Pentium Pro, Pentium II, Pentium III和不带超线程的Pentium 4,686-smp带超线程的Pentium 4 ,或是 k7、k7-smp的AMD athlon。在64位系统上的,这里可能有amd64-generic, amd64-k8, amd64-k8-smp或是amd64-xeon.
+
 
+
<pre><nowiki>
+
sudo apt-get install linux-686
+
or
+
sudo apt-get install linux-k7
+
or
+
...</nowiki></pre>
+
You also need to install the restricted-modules package that match ***exactly*** the kernel you are running, as well as specific required packages: (if you ran the previous command, make sure to reboot on your new kernel, otherwise this will install the wrong kernel modules !)
+
 
+
你还需要安装restricted-modules的软件包,他们要与你正在运行的内核相匹配,以及有特别要求的软件包:(如果你确信能运行旧有的命令,用你的新内核重新启动,否则安装内核模块将会出错!)
+
 
+
<pre><nowiki>
+
sudo apt-get update
+
sudo apt-get install linux-restricted-modules-$(uname -r)
+
sudo apt-get install xorg-driver-fglrx fglrx-control</nowiki></pre>
+
Please note that the fglrx-control package is not compulsory as it seems to be buggy (but wont affect your machine in anyway :) ).
+
 
+
需要提醒的是fglrx-control软件包不是必需的因为他似乎存在一些BUG(但是常常在许多方面影响你的机器:))
+
 
+
If the restricted-modules package for the kernel you are running is not available (it happens sometimes with K/Ubuntu), you may have to opt for running a kernel for which this package is available or to install the drivers directly from the setup script provided by ATI (https://support.ati.com/ics/support/default.asp?deptID=894&task=knowledge&folderID=27)
+
 
+
如果针对你正运行内核的restricted-modules软件包不能启用(有些时候发生在K/Ubuntu),你可能要选择针对内核可用的软件包或是直接从由ATI提供的安装脚本安装驱动(https://support.ati.com/ics/support/default.asp?deptID=894&task=knowledge&folderID=27)
+
 
+
Once the above packages are correctly installed, run these commands:
+
 
+
一旦上面的软件包被正确的安装,运行这些命令
+
 
+
<pre><nowiki>
+
sudo aticonfig --initial
+
sudo aticonfig --overlay-type=Xv</nowiki></pre>
+
Then go back and edit xorg.conf with your favorite editor, perhaps:
+
 
+
然后,用你最喜爱的编辑器编辑xorg.conf 后返回退出。
+
<pre><nowiki>
+
gksudo gedit /etc/X11/xorg.conf</nowiki></pre>
+
and make sure that under the "Device" section, the Driver is set to
+
 
+
并且确定"Device"段下面,驱动设定为
+
<pre><nowiki>
+
Driver "fglrx"</nowiki></pre>
+
You will have 2 device sections related to your graphic card, one is the pre-aticonfig one, and should use the ati or radeon driver. No need to change this part as it is not used by xorg anymore. The other device section however will have to use the fglrx driver.
+
 
+
你会有两个设备段(device sections)与你的显卡相关,一个是pre-aticonfig,应使用ATI或是rradeon的驱动程序。这一部分是不需要修改的因为Xorg从来不会使用它。而另一个设备段使用的却是fglrx驱动程序。
+
 
+
It appears that fglrx is often unstable, at least on AMD64. System may lock on 8.25 driver. 3D accell may not work on 8.28. The 8.26.18 driver may be your best bet, as of Sept2006. Instructions for updating drivers are at: http://wiki.cchtml.com/index.php/Ubuntu_Dapper_Installation_Guide#Method_2:_Generating.2FInstalling_Ubuntu_packages_for_the_8.28.8_drivers_in_Ubuntu_Dapper_Manually But I recommend 8.26 at this time, not 8.28.
+
 
+
最近在AMD64平台上,fglrx 常常显示出其不稳定性。系统可能锁定在8.25版本驱动程序上。在8.28版本上3D accell 可能不会工作。2006年9月发布的8.26.18版本驱动程序可能是最好的。升级驱动程序的说明在:
+
http://wiki.cchtml.com/index.php/Ubuntu_Dapper_Installation_Guide#Method_2:_Generating.2FInstalling_Ubuntu_packages_for_the_8.28.8_drivers_in_Ubuntu_Dapper_Manually 但是我在这个时侯推荐8.26版本,而非8.28版本。
+
 
+
重启系统.
+
 
+
确认驱动程序已经工作:
+
 
+
<pre><nowiki>
+
$ fglrxinfo
+
display: :0.0  screen: 0
+
OpenGL vendor string: ATI Technologies Inc.
+
OpenGL renderer string: RADEON 9700 Generic
+
OpenGL version string: 2.0.5755 (8.24.8)</nowiki></pre>
+
来源: http://wiki.cchtml.com/index.php/Ubuntu_Dapper_Installation_Guide
+
 
+
===== Troubleshooting(疑难问题解决) =====
+
You may see a message <code><nowiki>Xlib:  extension "XFree86-DRI" missing on display ":1.0</nowiki></code>.  If the line <code><nowiki>load "dri"</nowiki></code> in <code><nowiki>Section "Module"</nowiki></code> is missing from your <code><nowiki>/etc/X11/xorg.conf</nowiki></code> then add it.  However this message does not necessarily indicate a problem.
+
 
+
你可能会看到一个消息<code><nowiki>Xlib:  extension "XFree86-DRI" missing on display ":1.0</nowiki></code>.如果<code><nowiki>load "dri"</nowiki></code> 在<code><nowiki>Section "Module"</nowiki></code>这行,在你的<code><nowiki>/etc/X11/xorg.conf</nowiki></code>中丢失则要加上它。但是这个信息并不一定能指出问题所在。
+
 
+
If  gives you the following, your installation is not completed correctly:
+
 
+
如果fglrxinfo给你下面的信息,说明你的安装不是完整适当地。
+
 
+
* fglrxinfo/glxinfo may not work properly for your via SSH and via the console when logged in as root.
+
* 当作为root身分登录时fglrxinfo/glxinfo 可能没有正确的工作在你的via SSH 和via控制台上。
+
<pre><nowiki>
+
$ fglrxinfo
+
display: :0.0  screen: 0
+
OpenGL vendor string: Mesa project: www.mesa3d.org
+
OpenGL renderer string: Mesa GLX Indirect
+
OpenGL version string: 1.2 (1.5 Mesa 6.4.1)</nowiki></pre>
+
In this case, watch for these things:
+
 
+
这样的话,查看这些内容:
+
 
+
* Make sure that the resctricted-modules package installed correspond to the kernel your are running and that you can load the fglrx driver, wether by issuing the command "sudo modprobe fglrx" or by verifying that the module appears in the list of loaded modules, by issuing the command "lsmod";
+
 
+
* 确信已安装了适用于你内核的resctricted-modules软件包并且你能够载入fglrx驱动程序,通过命令"sudo modprobe fglrx"或是检查模块装载列表,通过命令"lsmod";
+
 
+
* It may be necessary to establish a symbolic link for the /usr/lib/dri folder, by issuing the following command:  "sudo ln -s /usr/lib/dri /usr/lib/xorg/modules/dri";
+
 
+
* 通过命令:"sudo ln -s /usr/lib/dri /usr/lib/xorg/modules/dri"为/usr/lib/dri 目录建立一个软链接是很有必要的;
+
 
+
* You may have to deload the radeon and dri modules, by issuing "sudo rmmod radeon" and "sudo rmmod dri";
+
 
+
* 通过命令"sudo rmmod radeon" and "sudo rmmod dri",你可能不用装载radeon 和dri 模块;
+
 
+
* Make sure you deload the module ati-agp by issuing "sudo rmmod ati-agp" and blacklist it in /etc/modprobe.d/blacklist;
+
 
+
* 通过命令"sudo rmmod ati-agp"决定你不装载ati-agp 模块并且将它列入/etc/modprobe.d/blacklist黑名单;
+
 
+
* Check the /etc/X11/xorg.conf in Section "Module" to have this line: Load "dri" and it is not commented.
+
 
+
* 检查在/etc/X11/xorg.conf中"Module"段有这样一行:"dri"并且不是被注释的。
+
 
+
==== Instructions for 5.10 (Breezy) ====
+
* Install the kernel drivers. These drivers should be installed by default, but it's better to make sure they are installed. You need the package linux-<code><nowiki>$arch</nowiki></code>, where you replace <code><nowiki>$arch</nowiki></code> by the CPU architecture for the machine. This is 386 for Intel Pentium, 686 for Celeron, Pentium Pro, Pentium II, Pentium III, and Pentium 4 without Hyper-Threading. 686-smp for Pentium 4 with Hyper-Threading, or k7 or k7-smp for AMD athlon. On 64-bit systems, this may be amd64-generic, amd64-k8, amd64-k8-smp, or amd64-xeon.
+
<pre><nowiki>
+
sudo apt-get install linux-686</nowiki></pre>
+
 
+
* Install the xorg-driver-fglrx package:
+
<pre><nowiki>
+
sudo apt-get install xorg-driver-fglrx</nowiki></pre>
+
 
+
* Add <code><nowiki>fglrx</nowiki></code> to <code><nowiki>/etc/modules</nowiki></code> (optional, the advantages/drawbacks of this are: ......):
+
<pre><nowiki>
+
echo fglrx | sudo tee -a /etc/modules</nowiki></pre>
+
 
+
* Reconfigure Xserver:
+
<pre><nowiki>
+
sudo dpkg-reconfigure xserver-xorg</nowiki></pre>
+
** If '''ati''' is auto-selected at the video card selection screen, then go down to select '''fglrx'''. Leave other settings to their default value. Or, if you really know what you're doing, do the following instead:
+
<pre><nowiki>
+
sudo sed -e 's/"ati"/"fglrx"/' -i /etc/X11/xorg.conf</nowiki></pre>
+
 
+
* Restart your computer
+
=== Install from ati.com (latest version of drivers) ===
+
==== Instructions for 6.10 (Edgy) ====
+
* '''Download what's needed:'''
+
* Download the appropiate drivers from [http://ati.amd.com/support/driver.html ati.amd.com]. You will need the ATI Driver Installer, not the separate XFree86/X.org rpm packages. Save the installer into an empty directory (or at least one containing no *.deb files), since it will create some new files.
+
* Make sure the universe section of the Ubuntu repositories is enabled (See the AddingRepositoriesHowto), and then run:
+
<pre><nowiki>
+
sudo aptitude install module-assistant build-essential debhelper debconf dh-make fakeroot libstdc++5 linux-headers-$(uname -r)
+
</nowiki></pre>
+
* '''Disable Composite Extension:'''
+
In Ubuntu Edgy the Composite extension is enabled by default, however, fglrx does not yet support Composite  with DRI. To disable Composite you must edit the /etc/X11/xorg.conf file, so add these lines at the end of xorg.conf:
+
 
+
<pre><nowiki>
+
Section "Extensions"
+
Option  "Composite" "Disable"
+
EndSection
+
</nowiki></pre>
+
* '''Blacklist old fglrx module from linux-restricted-modules'''
+
As ubuntu's linux-restricted-modules package includes the fglrx module from an old driver version (8.28.8), we have to blacklist this module to make sure the new kernel module which is needed by the new driver will be used instead.
+
 
+
<pre><nowiki>
+
gksudo gedit /etc/default/linux-restricted-modules-common
+
We need to add fglrx (only! don't remove anything!) to this:
+
DISABLED_MODULES="somemodule2 fglrx"
+
</nowiki></pre>
+
'''Next,'''
+
 
+
* Perform the following commands (where ''<version>'' is the version number of the installer):
+
<pre><nowiki>
+
sudo ln -sf bash /bin/sh
+
bash ./ati-driver-installer-<version>.run --buildpkg Ubuntu/edgy
+
sudo ln -sf dash /bin/sh
+
You may need to wait a few mintues for this to complete.
+
</nowiki></pre>
+
This will create a number of .deb files in the current directory.
+
 
+
* '''next,'''
+
<pre><nowiki>
+
sudo dpkg -i *.deb
+
</nowiki></pre>
+
next you build the kernel module -  (also note, this has to be done every time you upgrade the kernel)
+
 
+
<pre><nowiki>
+
sudo module-assistant prepare,update
+
sudo module-assistant build,install fglrx-kernel (or module-assistant -f to force a rebuild if needed)
+
sudo depmod
+
sudo rm -f /usr/src/fglrx-kernel*.deb
+
</nowiki></pre>
+
now see '''Modifying xorg.conf'''. Skip the "lrm-manager" and "depmod" commands.
+
 
+
After a reboot, confirm that it worked, by issuing the "fglrxinfo" command, as mentioned elsewhere on this page. Look at the troubleshooting sections to confirm if the output of the command is correct.
+
 
+
==== 6.06版本的操作(Dapper)====
+
* 在[http://www.ati.com/support/driver.html ati.com]下载合适的驱动。你需要的是ATI驱动安装文件,而不是分离的XFree86/X.org rpm包。将安装文件放到一个空目录下(或者至少不含有*.deb文件的目录),因为它会产生很多新文件。
+
* 确保全局选项Ubuntu基本解释设置为允许(参考AddingRepositoriesHowto)
+
* 执行以下命令("<version>"代表安装文件的版本号。
+
<pre><nowiki>
+
$ sudo apt-get install fakeroot gcc-3.4 module-assistant build-essential debhelper
+
$ fakeroot sh ./ati-driver-installer-<version>.run --buildpkg Ubuntu/edgy
+
你需要等待几分钟以便完成上述步骤。
+
</nowiki></pre>
+
以上步骤会在当前目录产生一些.deb文件。注意,如果你运行Dapper,替换"edgy"(前者)with"dapper"。
+
 
+
<pre><nowiki>
+
1 sudo dpkg -i *.deb
+
2 sudo module-assistant prepare,update
+
3 sudo module-assistant build,install fglrx-kernel
+
4 sudo depmod
+
注意:每当你升级kernel以后,你需要重复2-4步以便建立kernel模块
+
note: You need to repeat steps 2-4 - building the kernel module -
+
everytime you upgrade the kernel.
+
</nowiki></pre>
+
===== Seveas Repository =====
+
You do not need to take all these steps if you run an up-to-date Dapper installation on a 32 bit system. Dennis Kaarsemaker provides these packages in a repository. Add the following line to /etc/apt/sources.list:
+
 
+
<pre><nowiki>
+
deb http://mirror.ubuntulinux.nl/ dapper-seveas drivers
+
</nowiki></pre>
+
(There also is breezy-seveas for the Breezy users)
+
 
+
Then you can simply install the ubuntu-fglrx-<code><nowiki>$arch</nowiki></code> (see above for the meaning of <code><nowiki>$arch</nowiki></code>) package.
+
 
+
/!\ The fglrx driver on Dapper (8.26.18-1) can cause rss-glx screensavers to run very slowly.
+
 
+
==== Modifying xorg.conf ====
+
When you install from ati.com drivers or the dapper-seveas repository, you still need to change xorg.conf and add the fglrx module to /etc/modules as described under "Ubuntu provided drivers".  There are scripts from ATI that may or may not work for you.  They will backup xorg.conf before modifying it.
+
 
+
<pre><nowiki>
+
$ sudo aticonfig --initial
+
$ sudo aticonfig --overlay-type=Xv
+
</nowiki></pre>
+
/!\ Whether you install manually or from dapper-seveas, you MUST disable the Ubuntu-provided fglrx by performing these actions:
+
 
+
* Disable fglrx in /etc/default/linux-restricted-modules-common
+
* Run sudo /sbin/lrm-manager
+
* Run sudo depmod -a
+
* Reboot
+
There is a [http://ubuntuforums.org/showthread.php?t=204910 forum thread] on installing ATI drivers from ati.com.  Look there if you have trouble, and if your problem isn't already solved there, post a question.
+
 
+
==== Troubleshooting ====
+
* If you run Edgy, you might get something like ''./ati-installer.sh: 156: Syntax error: Bad substitution'' while trying to run the installer. This is because Edgy replaced the Shell ''sh'' with ''dash''. Here you can see my very brutal solution (take care!):
+
<pre><nowiki>
+
$ sudo mv /bin/sh /bin/sh.old
+
$ sudo ln -s /bin/bash /bin/sh
+
$ fakeroot sh ./ati-driver-installer-<version>.run --buildpkg Ubuntu/edgy
+
$ sudo rm /bin/sh
+
$ sudo mv /bin/sh.old /bin/sh
+
</nowiki></pre>
+
* At the moment (Aug 14th, 2006), the installer can only build packages for dapper, not edgy. That's no problem, it'll still work. If the driver still doesn't run correctly, you might repeat the same steps like above, but with ''--extract'' instead of ''--buildpkg Ubuntu/dapper'':
+
* With 8.30.3 (Nov 08th, 2006) ''--buildpkg Ubuntu/edgy'' worked. -- i cannot confirm that, i have 6.10 and it still doesn't work (error in line 999)
+
<pre><nowiki>
+
$ sudo mv /bin/sh /bin/sh.old
+
$ sudo ln -s /bin/bash /bin/sh
+
$ fakeroot sh ./ati-driver-installer-<version>.run --extract
+
$ sudo rm /bin/sh
+
$ sudo mv /bin/sh.old /bin/sh
+
</nowiki></pre>
+
A new directory appears. Copy the X.org drivers where they belong to:
+
 
+
<pre><nowiki>
+
$ sudo cp fglrx-install/x710/usr/X11R6/lib/modules/drivers/fglrx_drv.so /usr/lib/xorg/modules/drivers/fglrx_drv.so
+
$ sudo cp fglrx-install/x710/usr/X11R6/lib/modules/linux/libfglrxdrm.so /usr/lib/xorg/modules/linux/libfglrxdrm.so
+
</nowiki></pre>
+
Ok, that's it. Time to clean up:
+
 
+
<pre><nowiki>
+
$ rm -rf fglrx-install fglrx-installer_8.27.10-1_i386.changes
+
</nowiki></pre>
+
Good Luck!
+
 
+
==== More Troubleshooting ====
+
* If you're using an AMD64 configuration and your Xorg.0.log mentions a 'duplicate symbol rol_long' message, comment out the 'Load "int10"' line in the Module section of /etc/X11/xorg.conf
+
* If you are using an ATI Radeon Xpress 200M on an AMD64 CPU and the fglrx driver crashes with a blank screen on startup, change your BIOS settings to use the UMA+Sideport Video Mode with 128MB of Shared Video Memory.  See http://ensode.net/ati_radeon_xpress_200m_linux.html
+
* If you are going to compile 3d applications, you will want to install the `fglrx-driver-dev` package
+
* The fglrx doesn't support 16 bit colour on some chip sets, if you have problems with X locking up on boot try setting this in your xorg.conf file to 24
+
* If you are having problems related to DRI or 3d acceleration and the following lines show up in your /var/log/Xorg.0.log
+
<pre><nowiki>
+
(WW) fglrx(0): Kernel Module version does *not* match driver.
+
(EE) fglrx(0): incompatible kernel module detected - HW accelerated OpenGL will not work</nowiki></pre>
+
** then make sure you installed either linux-<code><nowiki>$arch</nowiki></code> or ubuntu-fglrx-<code><nowiki>$arch</nowiki></code>.Another reason for either this error message, or incorrect driver information when running fglrxinfo (reports that the mesa driver is still being used) could be that the (K)Ubuntu fglrx drivers were not uninstalled before installing the ATI driver, or that the restricted-modules package is installed. To fix this issue, start Adept or Synaptic and remove the fglrx packages supplied with (K)Ubuntu as well as the restricted-modules package.  Quit KDE and go to a console.
+
<pre><nowiki>
+
$ sudo modprobe -r fglrx
+
$ gksudo gedit /etc/X11R6/xorg.conf
+
</nowiki></pre>
+
* Change the driver for the device to 'ati' instead of fglrx to use the standard Xorg supplied driver.
+
<pre><nowiki>
+
$ startx
+
</nowiki></pre>
+
* Now re-run the ATI driver installation
+
* If there are no obvious error messages in <code><nowiki>Xorg.0.log</nowiki></code> but 3D acceleration is still not working, you should look at <code><nowiki>glxinfo</nowiki></code> output in debug mode:
+
<pre><nowiki>
+
LIBGL_DEBUG=verbose glxinfo
+
</nowiki></pre>
+
* Possibly there are some errors in the beginning concerning not found drivers in <code><nowiki>/usr/X11R6/lib/modules/dri/</nowiki></code>. This could be the case if you used the driver from ATI and are now using again the provided fglrx driver. ATI's fglrx driver installs a script in <code><nowiki>/etc/X11/Xsession.d/10fglrx</nowiki></code> which changes the search path for libraries, causing  3D-related errors. In this case just remove the script:
+
<pre><nowiki>
+
$ sudo rm /etc/X11/Xsession.d/10fglrx
+
</nowiki></pre>
+
* Sometimes 2D acceleration with xv is not enabled. You need this for smooth video playback among other things. In this case you should check if your <code><nowiki>/etc/X11/xorg.conf</nowiki></code> contains the line <code><nowiki>Option "VideoOverlay" "on"</nowiki></code> in the corresponding section:
+
<pre><nowiki>
+
Section "Device"
+
Identifier      "ATI Radeon"
+
Driver          "fglrx"
+
Option          "VideoOverlay" "on"
+
BusID          "PCI:1:0:0"
+
EndSection
+
</nowiki></pre>
+
* You might want to install the fglrx-control package, which provides a control panel to configure graphics card options such as dual-head display (two monitors) and TV out.
+
* Some people might experience random hangups. I heard that this ''might'' help: Edit <code><nowiki>/etc/X11/xorg.conf</nowiki></code> and add the following options in the corresponding section:
+
<pre><nowiki>
+
Section "Device"
+
Identifier  "ATI Technologies, Inc. ATI Default Card"
+
Driver      "fglrx"
+
Option      "no_accel" "no"
+
Option      "no_dri" "no"
+
Option      "DynamicClocks" "on"
+
Option      "mtrr" "on"
+
Option      "DesktopSetup" "Single"
+
Option      "ScreenOverlap" "0"
+
Option      "Capabilities" "0x00000000"
+
Option      "CapabilitiesEx" "0x00000000"
+
Option      "VideoOverlay" "on"
+
Option      "OpenGLOverlay" "off"
+
Option      "CenterMode" "off"
+
Option      "PseudoColorVisuals" "off"
+
Option      "Stereo" "off"
+
Option      "StereoSyncEnable" "1"
+
Option      "FSAAEnable" "no"
+
Option      "FSAAScale" "1"
+
Option      "FSAADisableGamma" "no"
+
Option      "FSAACustomizeMSPos" "no"
+
Option      "FSAAMSPosX0" "0.000000"
+
Option      "FSAAMSPosY0" "0.000000"
+
Option      "FSAAMSPosX1" "0.000000"
+
Option      "FSAAMSPosY1" "0.000000"
+
Option      "FSAAMSPosX2" "0.000000"
+
Option      "FSAAMSPosY2" "0.000000"
+
Option      "FSAAMSPosX3" "0.000000"
+
Option      "FSAAMSPosY3" "0.000000"
+
Option      "FSAAMSPosX4" "0.000000"
+
Option      "FSAAMSPosY4" "0.000000"
+
Option      "FSAAMSPosX5" "0.000000"
+
Option      "FSAAMSPosY5" "0.000000"
+
Option      "UseFastTLS" "0"
+
Option      "BlockSignalsOnLock" "on"
+
Option      "UseInternalAGPGART" "no"
+
Option      "ForceGenericCPU" "no"
+
Option      "KernelModuleParm" "agplock=0"
+
Option      "PowerState" "1"
+
BusID      "PCI:1:0:0"
+
EndSection</nowiki></pre>
+
* On laptops, in /etc/default/acpi-support, consider setting
+
<pre><nowiki>
+
ENABLE_LAPTOP_MODE=true
+
</nowiki></pre>
+
The comments in that file mention that this setting can cause mysterious hangs, but battery life is considerably improved.
+
 
+
If you don't mind tinkering, you can get an ACPI capable laptop boot in lower power mode, as described here: [[UbuntuHelp:BinaryDriverHowto/Fglrx lowpower]]
+
 
+
Note: <code><nowiki>fglrx: version magic '2.6.17-10-generic SMP mod_unload 586 REGPARM gcc-3.3' should be '2.6.17-10-generic SMP mod_unload 586 REGPARM gcc-4.1'</nowiki></code> - if you get errors similar to this (check via <code><nowiki>dmesg|grep -i fglr</nowiki></code>) and maybe if <code><nowiki>modprobe fglrx</nowiki></code> returns <code><nowiki>"FATAL: Error running install command for fglrx"</nowiki></code> then this means you did not compile the fglrx kernel module using the correct GCC version. In this example, gcc3.3 was used, while gcc4.1 is required. To fix:
+
 
+
<pre><nowiki>
+
sudo aptitude install gcc-4.1
+
sudo ln -s /usr/bin/gcc-4.1 /usr/bin/gcc
+
Now you should rebuild the fglrx kernel module.
+
For example:
+
sudo module-assistant -f build,install fglrx-kernel
+
</nowiki></pre>
+
If you need to remove the fglrx source code before rebuilding for some reason, you can try:
+
 
+
<pre><nowiki>
+
sudo apt-get remove fglrx-kernel-source fglrx-kernel fglrx-kernel-$(uname -r)
+
</nowiki></pre>
+
you'll then need to again get the fglrx deb files (from the ATI installer) before you can build again.
+
 
+
after all this, reboot.
+
 
+
=== Other links ===
+
* [http://support.ati.com/ics/survey/survey.asp?deptID=894&surveyID=508&type=web ATI's Driver Feedback Program] - (are you happy with their drivers? Maybe you'd prefer them to open-source their drivers so maintaining and installing would be easier for everyone...)
+
* [[UbuntuHelp:RadeonDriver|The ATI Radeon open-source driver HowTo @ubuntu]]
+
 
+
 
+
请参照[http://forum.ubuntu.org.cn/viewtopic.php?t=26188]
+

2008年11月3日 (一) 19:20的最新版本