[wiki]HOW-TO: ATI fglrx driver 8.18.8

参与到Ubuntu的翻译中来
回复
头像
DarkEyes
帖子: 549
注册时间: 2005-07-01 13:09
来自: 广西南宁

[wiki]HOW-TO: ATI fglrx driver 8.18.8

#1

帖子 DarkEyes » 2005-10-31 14:29

1. I recommend the installation of this driver only if you are experiencing the widescreen resolution bug (with the 8.16.20 driver) which leaves you stuck at 1024x768 resolution. Breezy comes with the 8.16.20 driver and there is no performance difference between the two drivers.

2. This method involves creating .deb files and then installing the drivers. You can simply run the .sh file and use the graphical installer if you have all of the prerequisites in place. The .deb approach has a few key advantages: it'll give useful errors if you're missing anything and it allows for easier removal (using Synaptic).

3. Important Warning: Installation of this driver requires removing the restricted-modules package in order to work. That package includes drivers for madwifi (Atheros wireless cards), nvidia cards, and a handful of other devices. I have a work-around for the madwifi drivers but you need to perform it before removing the restricted modules (jump to end of this post).

4. When running the dpkg-reconfigure command you should answer the questions that you know and take the defaults for the rest. You might want to say no to the monitor detection--it has caused X-Windows to crash for some people.

Remove old fglrx driver

Remove Breezy's included drivers if they are installed:

代码: 全选

sudo apt-get remove xorg-driver-fglrx
sudo apt-get remove fglrx-control
sudo apt-get remove linux-restricted-modules-$(uname -r)
sudo dpkg-reconfigure xserver-xorg #Select the ATI driver
Reboot.

5. Installing the new driver

Download the ATI driver installer:
https://support.ati.com/ics/support/def ... olderID=27

All Platforms:

Change to the download directory (cd /path/to/directory). You might get some errors regarding dependencies during the installation. You can ignore them since they should be resolved when you run the upgrade step.

代码: 全选

sudo apt-get install gcc-3.4 module-assistant build-essential fakeroot dh-make debconf
sudo sh ./ati-driver-installer-8.18.8-i386.run --buildpkg Ubuntu/breezy
sudo dpkg -i fglrx-control_8.18.8-1_i386.deb
sudo dpkg -i fglrx-kernel-source_8.18.8-1_i386.deb
sudo dpkg -i xorg-driver-fglrx_8.18.8-1_i386.deb
sudo apt-get -f upgrade
Now to compile the kernel driver:

代码: 全选

sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant a-i fglrx
Now to update your xorg.conf for fglrx (there are a variety of ways of doing this):

代码: 全选

sudo aticonfig --initial
6. 64-bit users:

You have to downgrade to an older version of libdri.a due to an incompatilbity with the ATI drivers. Download here.

Change to download directory:

代码: 全选

gunzip libdri.a.gz
sudo cp /usr/X11R6/lib/modules/extensions/libdri.a libdri.a.old
sudo cp libdri.a /usr/X11R6/lib/modules/extensions/
If you wish to revert to any non-fglrx driver you will need to copy the libdri.a.old file back over the fglrx version.

All platforms: Ctrl-Alt-Backspace to restart your session.

Confirm that it worked

代码: 全选

mlomker@mlomkernote:/$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700 Generic
OpenGL version string: 1.3.5395 (X4.3.0-8.18.8)
Troubleshooting

7. 64-bit users:

You may get this error message when you go to restart:

代码: 全选

Duplicate symbol rol_long in /usr/X11R6/lib/modules/drivers/fglrx_drv.o
Also defined in /usr/X11R6/lib/modules/linux/libint10.a
You can fix this by editing your xorg.conf file and commenting out the libint10.a line:

代码: 全选

sudo nano /etc/X11/xorg.conf

代码: 全选

Section "Module"
#       Load    "int10"
EndSection
Ctrl-X, Y, Enter to save.

Madwifi drivers

代码: 全选

cd /lib/modules/$(uname -r)/volatile
sudo cp ath_hal.ko ../madwifi
最新座驾:帕萨特1.8T御尊版
头像
catinsnow
帖子: 773
注册时间: 2005-08-02 7:23
来自: 上海

#2

帖子 catinsnow » 2005-11-01 14:09

建议你只在碰到宽屏分辨率问题(使用8.16.20驱动)时才安装此驱动.随Breezy一起来的8.16.20驱动和这个驱动没有性能差异.

这个方法需要创建.deb文件然后安装驱动.你可以简单的通过运行.sh文件(译者注:实际上下载的驱动文件是.run结尾的)进入图形安装程序,前提是所有需要的东西都已经在正确的位置上.通过.deb安装关键的好处是:当错过什么时可以给你有用的错误提示,并且可以方便的缷载(用新力得).

重要警告:安装的这个驱动要正确工作需要缷裁restricted-modules包,这个包包含madwifi驱动(Atheros无线网卡),nvidia显卡驱动,和一些其它的设备驱动.我为madwifi做了工作,但你要在安装驱动之前做(跳到本篇的最后).

缷载旧驱动

如果安装了这些Breezy驱动,缷载它:

代码: 全选

sudo apt-get remove xorg-driver-fglrx
sudo apt-get remove fglrx-control
sudo apt-get remove linux-restricted-modules-$(uname -r)
sudo dpkg-reconfigure xserver-xorg #Select the ATI driver
重启计算机.

安装新驱动


下载ATI驱动安装程序:
https://support.ati.com/ics/support/def ... olderID=27

所有平台:

进入到下载目录(cd /path/to/directory).你安装过程中你可能会得到一些错误信息.可以忽略它,运行upgrade步骤时会解决.
译注:生成的deb文件应该在/tmp下.所以加了下面红色的代码.

代码: 全选

sudo apt-get install gcc-3.4 module-assistant build-essential fakeroot dh-make debconf
sudo sh ./ati-driver-installer-8.18.8-i386.run --buildpkg Ubuntu/breezy
[color=red]cd /tmp[/color]
sudo dpkg -i fglrx-control_8.18.8-1_i386.deb
sudo dpkg -i fglrx-kernel-source_8.18.8-1_i386.deb
sudo dpkg -i xorg-driver-fglrx_8.18.8-1_i386.deb
sudo apt-get -f upgrade
现在编译核心驱动:

代码: 全选

sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant a-i fglrx
译注:如果出现错误

代码: 全选

[color=red]Package fglrx-kernel-source was not built successfully, see
/var/cache/modass/fglrx-kernel-source*buildlog* for details! [/color]
这样做:

代码: 全选

[color=red]cd /usr/src
sudo dpkg -i fglrx-kernel-2.6.12-9-686_8.18.8-1_i386.deb[/color]
接着为fglrx驱动更新你的xorg.conf文件(有多个方法可以做到):

代码: 全选

sudo aticonfig --initial
用64位系统的用户:

你将不得不把libdri.a文件降低到一个可以兼容这个ATI驱动的版本.在这里下载.
http://mail3.mpr.org/mlomker/libdri.a.gz

进入下载目录:

代码: 全选

gunzip libdri.a.gz
sudo cp /usr/X11R6/lib/modules/extensions/libdri.a libdri.a.old
sudo cp libdri.a /usr/X11R6/lib/modules/extensions/
如果你希望返回到非fglrx驱动,需要拷贝libdri.a.old文件覆盖这个fglrx兼容的版本.

所有平台:
Ctrl-Alt-Backspace重启会话.
译注:有可能重启你的机器才能生效.

确认驱动工作正常:

代码: 全选

mlomker@mlomkernote:/$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700 Generic
OpenGL version string: 1.3.5395 (X4.3.0-8.18.8)
问题解决:

用64位系统的用户


重启后你可能得到这样的错误:

代码: 全选

Duplicate symbol rol_long in /usr/X11R6/lib/modules/drivers/fglrx_drv.o
Also defined in /usr/X11R6/lib/modules/linux/libint10.a
可以编辑你的xorg.conf文件,注释掉libint10.a行来解决它:

代码: 全选

sudo nano /etc/X11/xorg.conf

代码: 全选

Section "Module"
#       Load    "int10"
EndSection
Ctrl-X, Y, 回车存盘.

Madwifi驱动:

代码: 全选

cd /lib/modules/$(uname -r)/volatile
sudo cp ath_hal.ko ../madwifi
上次由 catinsnow 在 2005-11-01 21:38,总共编辑 1 次。
Ubuntu Intrepid
#P4 2.4
P4 2.4C
#1024MB
2048MB
#120G
500G+120G
Nvidia FX5700
#ATI9100 --拆了,受不了ATI的驱动.
头像
catinsnow
帖子: 773
注册时间: 2005-08-02 7:23
来自: 上海

#3

帖子 catinsnow » 2005-11-01 14:25

ok.
Ubuntu Intrepid
#P4 2.4
P4 2.4C
#1024MB
2048MB
#120G
500G+120G
Nvidia FX5700
#ATI9100 --拆了,受不了ATI的驱动.
xuefengwang101
帖子: 57
注册时间: 2005-05-18 13:39

#4

帖子 xuefengwang101 » 2005-11-01 14:45

1 如果你还忍受着宽屏笔记本的分辨率停留在1024x768的情况下(8。16。20驱动所带来的问题),那么我建议安装这个驱动。Breezy伴随而来的驱动是8。16。20。而这两个驱动在性能上也没什么区别

2 这个方法报包括创建一个.deb的文件然后在再安装这个驱动。如果你已经具备了安装所必须的先决条件,那么你也可以只运行.sh文件并用图形安装程序来安装它。用.deb这种安装方法有几个优点:如果你还缺少什么必备的文件或者程序它会给你有用的错误提示并且它允许你很容易的卸载程序(用新得立)

3 郑重警告:安装这个驱动并正常工作需要你去除掉restricted-modules包,这个软件包包含有madwifi(另外一种无线网卡),nvdia显卡,和少数其他设备的驱动。我正在从事有关于madwifi驱动方面的工作,在你去除restricted modules你必须执行这一步(跳到最后)--(最后这一句是在是翻译的不怎么好阿,有翻译的好的给改一下)

4 在运行dpkg-reconfigure命令的时候你应该回答你所知道的问题,如果不知道就按照默认的就好了。你或许在回答 monitor detection的时候选no --在有些人的机子上使x-windows崩溃了(在我的机子上就是这样,我建议还是选no吧,没什么影响的)

去除(或者说卸载更好?)旧版本的驱动

如果你已经安装了的话去除Breezy已经包含的驱动

代码:sudo apt-get remove xorg-driver-fglrx
sudo apt-get remove fglrx-control
sudo apt-get remove linux-restricted-modules-$(uname -r)
sudo dpkg-reconfigure xserver-xorg #Select the ATI driver

重启

5安装新的驱动

下载ati的驱动安装程序:
https://support.ati.com/ics/support/def ... olderID=27

对所有的平台(版本):

进入你下载文件的目录(cd/path/to/directory)。在安装的过程中你会许会得到关于依赖性的错误提示。你可以忽略它因为我们在upgrade这一步时会解决这个问题的
代码:

sudo apt-get install gcc-3.4 module-assistant build-essential fakeroot dh-make debconf
sudo sh ./ati-driver-installer-8.18.8-i386.run --buildpkg Ubuntu/breezy
sudo dpkg -i fglrx-control_8.18.8-1_i386.deb
sudo dpkg -i fglrx-kernel-source_8.18.8-1_i386.deb
sudo dpkg -i xorg-driver-fglrx_8.18.8-1_i386.deb
sudo apt-get -f upgrade

现在来编译内核驱动:
代码:
sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant a-i fglrx

现在用fglrx来更新你的xorg.conf(有许多办法来作这一步):

代码:
sudo aticonfig --initial

6 64位的用户:
你不得不降级使用旧版本的libdri.a
从这里下载:http://mail3.mpr.org/mlomker/libdri.a.gz
进入下载目录:
代码:
gunzip libdri.a.gz
sudo cp /usr/X11R6/lib/modules/extensions/libdri.a libdri.a.old
sudo cp libdri.a /usr/X11R6/lib/modules/extensions/

如果你希望恢复非fglrx的驱动的话,你需要备份libdri.a.old去还原fglrx的版本

所有的平台(版本):Ctrl-Alt-Backspace来重启你的会话

确认驱动是否工作
代码:
mlomker@mlomkernote:/$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700 Generic
OpenGL version string: 1.3.5395 (X4.3.0-8.18.8)

故障解决:
63位用户:
在你重启的时候你或许会看到下面这样的错误信息:
代码:
Duplicate symbol rol_long in /usr/X11R6/lib/modules/drivers/fglrx_drv.o
Also defined in /usr/X11R6/lib/modules/linux/libint10.a

你可以通过编辑xorg.cong文件并注释掉libint10.a 这行来解决这个问题
代码:
sudo nano /etc/X11/xorg.conf

需要注释的代码如下:
Section "Module"
# Load "int10"
EndSection

Ctrl-X, Y, Enter
然后保存

Madwifi驱动

代码:
cd /lib/modules/$(uname -r)/volatile
sudo cp ath_hal.ko ../madwifi

初次翻译,大家能看懂怎么装就好了,估计有好多话不怎么通畅啊
明白意思就好了
ASUS L4R PM1.5 ATI9100IGP 40G/512Memory
图片
xuefengwang101
帖子: 57
注册时间: 2005-05-18 13:39

#5

帖子 xuefengwang101 » 2005-11-01 14:47

晕catinsnow也翻译了,早知道就不白费力气了啊
郁闷
ASUS L4R PM1.5 ATI9100IGP 40G/512Memory
图片
头像
catinsnow
帖子: 773
注册时间: 2005-08-02 7:23
来自: 上海

#6

帖子 catinsnow » 2005-11-01 21:40

为了文档的可用性,增加了红色的代码部分,如有不对的地方,请指正.
Ubuntu Intrepid
#P4 2.4
P4 2.4C
#1024MB
2048MB
#120G
500G+120G
Nvidia FX5700
#ATI9100 --拆了,受不了ATI的驱动.
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#7

帖子 oneleaf » 2005-12-01 10:03

bsbture
帖子: 20
注册时间: 2005-10-15 9:37

#8

帖子 bsbture » 2005-12-03 20:00

这个好,很是受用
Jeremy
帖子: 224
注册时间: 2005-11-08 10:12

#9

帖子 Jeremy » 2005-12-05 23:08

但是在官方上写了“32-Bit packages must be installed for 64-Bit Linux drivers to install or work. ”
这样的情况下,是不是要做两次Deb包,来安装呢?
fssilove
帖子: 59
注册时间: 2005-12-09 21:56

#10

帖子 fssilove » 2005-12-09 22:06

偶尔想学LINUX
偶然知道这里.

实在看不懂楼主及各位的回贴.
实在PF.每个贴都认认真真.

努力努力....
slxslxslx
帖子: 21
注册时间: 2005-12-25 9:05

#11

帖子 slxslxslx » 2005-12-25 15:45

catinsnow 写了:建议你只在碰到宽屏分辨率问题(使用8.16.20驱动)时才安装此驱动.随Breezy一起来的8.16.20驱动和这个驱动没有性能差异.

这个方法需要创建.deb文件然后安装驱动.你可以简单的通过运行.sh文件(译者注:实际上下载的驱动文件是.run结尾的)进入图形安装程序,前提是所有需要的东西都已经在正确的位置上.通过.deb安装关键的好处是:当错过什么时可以给你有用的错误提示,并且可以方便的缷载(用新力得).

重要警告:安装的这个驱动要正确工作需要缷裁restricted-modules包,这个包包含madwifi驱动(Atheros无线网卡),nvidia显卡驱动,和一些其它的设备驱动.我为madwifi做了工作,但你要在安装驱动之前做(跳到本篇的最后).

缷载旧驱动

如果安装了这些Breezy驱动,缷载它:

代码: 全选

sudo apt-get remove xorg-driver-fglrx
sudo apt-get remove fglrx-control
sudo apt-get remove linux-restricted-modules-$(uname -r)
sudo dpkg-reconfigure xserver-xorg #Select the ATI driver
重启计算机.

安装新驱动


下载ATI驱动安装程序:
https://support.ati.com/ics/support/def ... olderID=27

所有平台:

进入到下载目录(cd /path/to/directory).你安装过程中你可能会得到一些错误信息.可以忽略它,运行upgrade步骤时会解决.
译注:生成的deb文件应该在/tmp下.所以加了下面红色的代码.

代码: 全选

sudo apt-get install gcc-3.4 module-assistant build-essential fakeroot dh-make debconf
sudo sh ./ati-driver-installer-8.18.8-i386.run --buildpkg Ubuntu/breezy
[color=red]cd /tmp[/color]
sudo dpkg -i fglrx-control_8.18.8-1_i386.deb
sudo dpkg -i fglrx-kernel-source_8.18.8-1_i386.deb
sudo dpkg -i xorg-driver-fglrx_8.18.8-1_i386.deb
sudo apt-get -f upgrade
现在编译核心驱动:

代码: 全选

sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant a-i fglrx
译注:如果出现错误

代码: 全选

[color=red]Package fglrx-kernel-source was not built successfully, see
/var/cache/modass/fglrx-kernel-source*buildlog* for details! [/color]
这样做:

代码: 全选

[color=red]cd /usr/src
sudo dpkg -i fglrx-kernel-2.6.12-9-686_8.18.8-1_i386.deb[/color]
接着为fglrx驱动更新你的xorg.conf文件(有多个方法可以做到):

代码: 全选

sudo aticonfig --initial
用64位系统的用户:

你将不得不把libdri.a文件降低到一个可以兼容这个ATI驱动的版本.在这里下载.
http://mail3.mpr.org/mlomker/libdri.a.gz

进入下载目录:

代码: 全选

gunzip libdri.a.gz
sudo cp /usr/X11R6/lib/modules/extensions/libdri.a libdri.a.old
sudo cp libdri.a /usr/X11R6/lib/modules/extensions/
如果你希望返回到非fglrx驱动,需要拷贝libdri.a.old文件覆盖这个fglrx兼容的版本.

所有平台:
Ctrl-Alt-Backspace重启会话.
译注:有可能重启你的机器才能生效.

确认驱动工作正常:

代码: 全选

mlomker@mlomkernote:/$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700 Generic
OpenGL version string: 1.3.5395 (X4.3.0-8.18.8)
问题解决:

用64位系统的用户


重启后你可能得到这样的错误:

代码: 全选

Duplicate symbol rol_long in /usr/X11R6/lib/modules/drivers/fglrx_drv.o
Also defined in /usr/X11R6/lib/modules/linux/libint10.a
可以编辑你的xorg.conf文件,注释掉libint10.a行来解决它:

代码: 全选

sudo nano /etc/X11/xorg.conf

代码: 全选

Section "Module"
#       Load    "int10"
EndSection
Ctrl-X, Y, 回车存盘.

Madwifi驱动:

代码: 全选

cd /lib/modules/$(uname -r)/volatile
sudo cp ath_hal.ko ../madwifi
无比感谢,按照您说的方法,成功安装了8.20.8版本的驱动程序,我的dell p780在1024*768的分辨率下面又回到了100的刷新率,原来只能上85
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#12

帖子 millenniumdark » 2006-07-29 18:57

这篇可能过时了
先放着再说
回复