个人工具

UbuntuHelp:BinaryDriverHowto/ATI

来自Ubuntu中文

跳转至: 导航, 搜索


Introduction

By default Ubuntu will use the open source 'ati' or 'radeon' driver for cards manufactured by ATI. Some users however prefer the proprietary fglrx driver for various reasons. The instructions on this page will tell you how to use this driver. If you encounter bugs with these closed-source drivers, developers will not be willing or even able to assist you in resolving your issues. Use them at your own risk. We encourage our users to prefer open source drivers. There are two ways you can install proprietary fglrx drivers. The preferred way is to use the drivers provided via the Ubuntu repositories. More advanced users can also try the drivers from http://support.amd.com/us/gpudownload/Pages/index.aspx. Both approaches are documented below and you need to take only one of them. While the Ubuntu 9.10 Karmic based one (derived from ATI Catalyst 9.10) is the safer among the two, the latest ATI Catalyst, 10.3, may be needed in some cases, especially for RadeonHD 5x00 series cards.

Prerequisites For Installing the fglrx Driver from the Ubuntu 9.10 Karmic Repositories

The first thing to check for when you consider using the fglrx driver is whether your ATI graphics card is supported. The fglrx driver available in Ubuntu 9.10 Karmic repositories derives from ATI Catalyst 9.10. 1. To begin with click on:

http://www2.ati.com/drivers/linux/catalyst_910_linux.pdf 2. Download and open the above pdf file. 3. Identify whether your ATI graphics card model series is available on pages 2 or 3 of this pdf file.

E.g. the ATI Radeon 4670 graphics card is covered under the section ATI Desktop Product Family Support with the specific pointer ATI Radeon™ HD 4600 Series. If your ATI graphics card series is in there, then proceed to the next section or else stick to the open source driver that is installed by default with Ubuntu 9.10 Karmic.

Installation of the fglrx Driver from the Ubuntu 9.10 Karmic Repositories

The easiest way to install binary drivers is to use the built in Hardware Drivers manager in Ubuntu. In Ubuntu 9.10, this is found under System->Administration->Hardware Drivers. After the fglrx driver is installed. Reboot your system and login. To check whether the fglrx driver is working, open a Terminal and type:

fglrxinfo

If fglrx is installed and working well you should see output such as:

display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 4600 Series 
OpenGL version string: 3.2.9232

Here a ATI Radeon 4600 series graphics card has been used for the purposes of illustration. The actual details such as OpenGL version etc. may also be different.

Install the fglrx Driver from ATI Catalyst 10.3 For Ubuntu 9.10 Karmic

Before you go about installing the fglrx driver from ATI Catalyst 10.3 do read: http://www.amd.com/us-en/Copyright/0,,1435_1439,00.html. and http://www2.ati.com/drivers/linux/catalyst_103_linux.pdf 1. First, check whether your ATI graphics card is supported by ATI Catalyst 10.3. Click on http://support.amd.com/us/gpudownload/Pages/index.aspx. Choose either Linux x86 or x86-64 depending on whether you are using Ubuntu 32 bit or Ubuntu 64 bit. In this HowTo an amd 64 Ubuntu 9.10 installation will be chosen for illustrative purposes. 2. Then choose your graphics card type e.g. Radeon, Mobility Radeon, Integrated/MotherBoard etc. 3. Choose your graphics card series e.g. if you have ATI Radeon 4670 then you should choose ATI Radeon HD 4600 Series. If your ATI graphics card series is not listed it means that ATI Catalyst 10.3 does not support it. Stick to the open source driver. 4. Enable the "Source Code" repository from the Synaptic Package Manger.

Install the ATI/AMD proprietary fglrx graphics as described in the previous section, if it is not yet installed. Reboot your system. 5. In this HowTo the ATI Radeon HD 4670 graphics card will be used for illustrating the method. 6. Choose your ATI Garphics card (in this HowTo ATI Radeon 4670) from the list available as per points 1, 2 and 3 above. Then click on GO! 7. Navigate to and Click on Download to download the file:

http://www2.ati.com/drivers/linux/ati-driver-installer-10-3-x86.x86_64.run. 8. In this HowTo, the .run file will be saved to the Desktop. The location of this file will be \home\abc\Desktop. Here "abc" is the assumed username. Ensure that there is no other file saved to the Desktop. 9. To change to the directory where the .run file has been downloaded, open a Terminal and type:

cd /home/abc/Desktop

To check the .run file is actually located there, type at the Terminal:

ls

And you should see "ati-driver-installer-10-3-x86.x86_64.run" in the list of files displayed. 10. In the Terminal type:

sudo apt-get update

On a standard desktop install of Ubuntu 9.10 you may also need to install the QT4 libraries. To do this type:

sudo apt-get install libqtgui4

This is not necessary if you are running Kubuntu or have already installed the libraries. 11. In the Terminal, to create the deb files, type:

sudo sh ./ati-driver-installer-9-12-x86.x86_64.run --buildpkg Ubuntu/karmic

If it is required a package manager window will open and install some dependencies and after a while create the following 6 deb packages in the desktop: a. fglrx-amdcccle - Catalyst Control Center for the ATI graphics accelerators b. fglrx-kernel-source - Kernel module source for the ATI graphics accelerators c. fglrx-modaliases - Identifiers supported by the ATI graphics driver d. libamdxvba1 - AMD Unified Video Decoder library e. xorg-driver-fglrx - Video driver for the ATI graphics accelerators f. xorg-driver-fglrx-dev - Video driver for the ATI graphics accelerators (devel files)

12. If you wish you can read fglrx-installer_8.702-0ubuntu1_amd64.changes to know the changes that have been effected through ATI Catalyst 10.3 and related information. 13. If you are using a 32 bit installation of Ubuntu 9.10 then you will see these 6 deb files with i386 in place of amd64. In other words the deb files that correspond to your architecture are automatically created. 14. To install the created deb files, type in the Terminal:

sudo dpkg -i *.deb

15. In case any of the packages are broken then open **Synaptic Package Manager** and click on **Fix Broken Packages** from the **Edit** option of the main tab. In case you are new to Ubuntu, broken here means that some dependent packages are not yet installed. Once you sort out the issue as indicated above through the Synaptic Package Manager, the problem of broken packages should be resolved. 16. Now "libamdxvba1" is optional but since it provides some aspects of the AMD Unified Video Decoder it may be of some use. (http://en.wikipedia.org/wiki/Unified_Video_Decoder). 17. While still in the terminal, type in:

sudo aticonfig --initial

18. Close the Terminal and reboot the system. 19. If all is right, the fglrx driver that corresponds to ATI Catalyst 10.3 i.e 8.702 will be installed and working on your system. 20. To confirm the drivers are working open a Terminal and type:

fglrxinfo

You should get output similar to the following:

display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 4600 Series 
OpenGL version string: 3.2.9232

If you see any mention of "MESA" in the output, the fglrx drivers have not been installed correctly. 21. In the Other Sub-Menu of the Applications Menu you will find ATI Catalyst Control Center. You can check the version of fglrx that is working by clicking on Information in the left panel of the ATI Catalyst Control Center. 22. To make changes through the ATI Catalyst Control Center, start the ATI Catalyst Control Center by opening a Terminal and typing:

sudo amdcccle 

To know more about the ATI Catalyst Control Center click on: http://ati.amd.com/products/catalystcontrolcenter/index.html All the configuration options for the ATI Catalyst Control Center mentioned there may not be available on your Ubuntu 9.10 system.

Instructions to Install the fglrx Driver for Ubuntu 8.04 (Hardy) and 8.10 (Intrepid) from the Ubuntu Repositories

Enable the accelerated ATI graphics driver in the hardware drivers menu (System->Administration->Hardware Drivers), then do:

sudo dpkg-reconfigure -phigh linux-restricted-modules-`uname -r`
sudo insmod /lib/modules/`uname -r`/volatile/fglrx.ko

Log out and log in. Confirm it worked, by issuing the "fglrxinfo" command:

  • fglrxinfo/glxinfo may not work properly for you via SSH and via the console when logged in as root.
$ 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)

Troubleshooting

You may see a message
Xlib:  extension "XFree86-DRI" missing on display ":1.0

If the line

load "dri"

in

Section "Module"
is missing from your /etc/X11/xorg.conf then add it. However this message does not necessarily indicate a problem.

If fglrxinfo gives you the following, your installation is not completed correctly:

  • fglrxinfo/glxinfo may not work properly for you via SSH and via the console when logged in as root.
$ 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)

In this case, watch for these things:

  • Make sure that the restricted-modules package installed correspond to the kernel your are running and that you can load the fglrx driver, whether 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";
  • 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";
  • You may have to deload the radeon and dri modules, by issuing "sudo rmmod radeon" and "sudo rmmod dri";
  • Make sure you deload the module ati-agp by issuing "sudo rmmod ati-agp" and blacklist it in /etc/modprobe.d/blacklist.
  • Check the /etc/X11/xorg.conf in Section "Module" to have this line: Load "dri" and it is not commented.

Other Links

<<Include(Tag/ContentCleanup)>>