个人工具

“UbuntuHelp:BinaryDriverHowto/ATI”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/BinaryDriverHowto/ATI}}
 
{{From|https://help.ubuntu.com/community/BinaryDriverHowto/ATI}}
 
{{Languages|UbuntuHelp:BinaryDriverHowto/ATI}}
 
{{Languages|UbuntuHelp:BinaryDriverHowto/ATI}}
By default Ubuntu will use the '''open source''' [[UbuntuHelp:RadeonDriver| '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.
+
=== Introduction ===
There are 2 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 ati.com. Both approaches are documented below and you need to take '''only one''' of them. The Ubuntu-provided ones are the safest bet, the ati.com ones however may be needed (eg: when you need hibernation).
+
By default Ubuntu will use the '''open source''' [[RadeonDriver| '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.  
As mentioned elsewhere, 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 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.
=== Prerequisites ===
+
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.
Make sure the following things are true about your video card:
+
=== Prerequisites For Installing the fglrx Driver from the Ubuntu 9.10 Karmic Repositories ===
* It is a 'Radeon' card
+
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.  
* The model of the card is in the 9xxx series, 9500 or higher, or it is in the X series (e.g. X300), or it has TV-Out capability. The 'fglrx' driver does not support cards earlier than the 9500.
+
1. To begin with click on:  
* The command lspci reveals a card with "ATI" in its name
+
http://www2.ati.com/drivers/linux/catalyst_910_linux.pdf
* You need hardware-accelerated 3D support, or display refresh rates higher than 60 Hz. The open source drivers are fine for all other areas.
+
2. Download and open the above pdf file.
* Some basic knowledge of a Linux command line (see [[UbuntuHelp:UsingTheTerminal|UsingTheTerminal]])
+
3. Identify whether your ATI graphics card model series is available on pages 2 or 3 of this pdf file.
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:
+
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'''.  
* R400 series Xnnn (X800, X700, etc) (3D works)
+
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.
* R300 series (9300+) (3D works)
+
=== Installation of the fglrx Driver from the Ubuntu 9.10 Karmic Repositories ===
* R200 and R100 series (9200 and below)
+
The easiest way to install binary drivers is to use the built in ''Hardware Drivers'' manager in Ubuntu.
For specific chipsets and models, see [http://xorg.freedesktop.org/releases/X11R6.7.0/doc/radeon.4.html the Xorg 7.0 Release Notes].
+
In Ubuntu 9.10, this is found under '''System->Administration->Hardware Drivers'''.
=== Install from Ubuntu repositories (easier) ===
+
After the fglrx driver is installed. Reboot your system and login. To check whether the fglrx driver is working, open a Terminal and type:
==== Instructions for Ubuntu 9.04 (Jaunty) ====
+
Enable the accelerated ATI graphics driver in the 'Hardware Drivers' (System->Hardware drivers), then do:
+
 
<pre><nowiki>
 
<pre><nowiki>
sudo dpkg-reconfigure -phigh linux-restricted-modules-`uname -r`
+
fglrxinfo
sudo insmod /lib/modules/`uname -r`/volatile/fglrx.ko</nowiki></pre>
+
</nowiki></pre>
Log out and log in.
+
If fglrx is installed and working well you should see output such as:
===== JAUNTY NOTICE =====
+
The above Jaunty 9.04 instructions don't actually work because the latest ATI driver is incompatible with XOrg 1.6. To see a guide on instructing how to downgrade XOrg and install the ATI driver, view this link: <<BR>>
+
*http://tan-com.com/posts/technology/fix-ubuntu-904-ati-driver-issue
+
==== Instructions for Ubuntu 8.04 (Hardy) and 8.10 (Intrepid) ====
+
Enable the accelerated ATI graphics driver in the hardware drivers menu (System->Administration->Hardware Drivers), then do:
+
 
<pre><nowiki>
 
<pre><nowiki>
sudo dpkg-reconfigure -phigh linux-restricted-modules-`uname -r`
+
display: :0.0  screen: 0
sudo insmod /lib/modules/`uname -r`/volatile/fglrx.ko</nowiki></pre>
+
OpenGL vendor string: ATI Technologies Inc.
Log out and log in.
+
OpenGL renderer string: ATI Radeon HD 4600 Series
==== Instructions for Kubuntu 7.10 (Gutsy) ====
+
OpenGL version string: 3.2.9232
First make sure ''linux-restricted-modules-generic'' and ''restricted-manager-kde'' are both installed
+
</nowiki></pre>
 +
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:
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install linux-restricted-modules-generic restricted-manager-kde</nowiki></pre>
+
cd /home/abc/Desktop
Open the restricted drivers manager from '''KMenu → System Settings → Advanced → Restricted Drivers''' and select "ATI accelerated graphics driver". This will hopefully enable fglrx in a painless way. If not, follow the instructions for Feisty.
+
</nowiki></pre>
==== Instructions for Ubuntu 7.10 (Gutsy) ====
+
To check the .run file is actually located there, type at the Terminal:
* Install linux-restricted-modules and restricted-manager provided in the restricted repositories:
+
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get update
+
ls
sudo apt-get install linux-restricted-modules-generic restricted-manager</nowiki></pre>
+
</nowiki></pre>
Open the restricted drivers manager in "System -> Administration -> Restricted Drivers Manager" and select "ATI accelerated graphics driver".
+
And you should see "ati-driver-installer-10-3-x86.x86_64.run" in the list of files displayed.
==== Instructions for 6.06 (Dapper) ====
+
10. In the Terminal type:
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
+
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 !)
+
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get update
 
sudo apt-get update
sudo apt-get install linux-restricted-modules-$(uname -r)
+
</nowiki></pre>
sudo apt-get install xorg-driver-fglrx fglrx-control</nowiki></pre>
+
On a standard desktop install of Ubuntu 9.10 you may also need to install the QT4 libraries.  To do this type:
Please note that the fglrx-control package is not compulsory as it seems to be buggy (but wont affect your machine in anyway :) ).
+
<pre><nowiki>
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)
+
sudo apt-get install libqtgui4
Once the above packages are correctly installed, run these commands:
+
</nowiki></pre>
 +
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:
 +
<pre><nowiki>
 +
sudo sh ./ati-driver-installer-9-12-x86.x86_64.run --buildpkg Ubuntu/karmic
 +
</nowiki></pre>
 +
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:
 +
<pre><nowiki>
 +
sudo dpkg -i *.deb
 +
</nowiki></pre>
 +
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:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo aticonfig --initial
 
sudo aticonfig --initial
sudo aticonfig --overlay-type=Xv</nowiki></pre>
+
</nowiki></pre>
Then go back and edit xorg.conf with your favorite editor, perhaps:<pre><nowiki>
+
18. Close the Terminal and reboot the system.  
gksudo gedit /etc/X11/xorg.conf</nowiki></pre>
+
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.
or:<pre><nowiki>
+
20. To confirm the drivers are working open a Terminal and type:
kdesu kate /etc/X11/xorg.conf</nowiki></pre>
+
and make sure that
+
under the "Device" section, the Driver is set to
+
 
<pre><nowiki>
 
<pre><nowiki>
Driver "fglrx"</nowiki></pre>
+
fglrxinfo
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.
+
</nowiki></pre>
It appears that fglrx is often unstable, at least on AMD64.
+
You should get output similar to the following:
System may lock on 8.25 driver.
+
<pre><nowiki>
3D accell may not work on 8.28.
+
display: :0.0  screen: 0
The 8.26.18 driver may be your best bet, as of Sept2006.
+
OpenGL vendor string: ATI Technologies Inc.
Instructions for updating drivers are at:
+
OpenGL renderer string: ATI Radeon HD 4600 Series
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
+
OpenGL version string: 3.2.9232
But I recommend 8.26 at this time, not 8.28.
+
</nowiki></pre>
Reboot.
+
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:
 +
<pre><nowiki>
 +
sudo amdcccle
 +
</nowiki></pre>
 +
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:
 +
<pre><nowiki>
 +
sudo dpkg-reconfigure -phigh linux-restricted-modules-`uname -r`
 +
sudo insmod /lib/modules/`uname -r`/volatile/fglrx.ko</nowiki></pre>
 +
Log out and log in.
 
Confirm it worked, by issuing the "fglrxinfo" command:
 
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/glxinfo may not work properly for you via SSH and via the console when logged in as root.
第87行: 第122行:
 
OpenGL version string: 2.0.5755 (8.24.8)
 
OpenGL version string: 2.0.5755 (8.24.8)
 
</nowiki></pre>
 
</nowiki></pre>
Source:
+
=== Troubleshooting ===
http://wiki.cchtml.com/index.php/Ubuntu_Dapper_Installation_Guide
+
You may see a message  
===== Troubleshooting =====
+
<pre><nowiki>
You may see a message <pre><nowiki>
+
 
Xlib:  extension "XFree86-DRI" missing on display ":1.0</nowiki></pre>
 
Xlib:  extension "XFree86-DRI" missing on display ":1.0</nowiki></pre>
 
If the line  
 
If the line  
第107行: 第141行:
 
OpenGL version string: 1.2 (1.5 Mesa 6.4.1)</nowiki></pre>
 
OpenGL version string: 1.2 (1.5 Mesa 6.4.1)</nowiki></pre>
 
In this case, watch for these things:
 
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";
+
* 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";
 
* 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";
 
* 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.
 
* 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.  
+
* Check the /etc/X11/xorg.conf in Section "Module" to have this line: Load "dri" and it is not commented.
=== Install from ati.com (latest version of drivers) ===
+
=== Other Links ===
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=warning.png '''WARNING''': this method of installing the driver is '''not recommended and not supported''', and any problems that occur after using the following instructions should '''not''' be reported to the Launchpad bug area.
+
*[[http://www.amdsurveys.com/se.ashx?s=5A1E27D23CFE9B36|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...)
==== Instructions for Ubuntu 8.04 (Hardy) with ATi 8.443.1-1 and above binary drivers ====
+
*[[RadeonDriver| The ATI Radeon open-source driver HowTo @ubuntu]]
To begin first install the needed packages:
+
<pre><nowiki>
+
sudo apt-get install dpkg-dev debhelper libstdc++5 dkms build-essential cdbs fakeroot
+
</nowiki></pre>
+
You will then need to build the installation packages with the downloaded ATi drivers (ensure the ATi drivers have the execute flag set first):
+
<pre><nowiki>
+
./ati-driver-installer-8.443.1-x86.x86_64.run --buildpkg Ubuntu/<version>
+
</nowiki></pre>
+
You can replace <version> in the above with the codename for the version of Ubuntu you are running (gutsy, hardy, intrepid).
+
Then install the binary drivers:
+
<pre><nowiki>
+
sudo dpkg -i fglrx-kernel-source_<version>.deb
+
</nowiki></pre>
+
Run the following command to install the Xorg driver
+
<pre><nowiki>
+
sudo dpkg -i xorg-driver-fglrx_<version>.deb
+
</nowiki></pre>
+
Finally run aticonfig to build your new xorg.conf if you have not done so before:
+
<pre><nowiki>
+
sudo aticonfig --initial
+
</nowiki></pre>
+
Reboot and X.Org should start with the ATi binary drivers fully functional. To confirm the drivers are working from a terminal run:
+
<pre><nowiki>
+
fglrxinfo
+
</nowiki></pre>
+
You should get output similiar to the following:
+
<pre><nowiki>
+
display: :0.0  screen: 0
+
OpenGL vendor string: ATI Technologies Inc.
+
OpenGL renderer string: ATI Radeon HD 3870
+
OpenGL version string: 2.1.7170 Release
+
</nowiki></pre>
+
If you see any mention of the "MESA" in the output the drivers have not installed correctly. Look at instructions below for possible fixes.
+
==== Instructions for 6.06 (Dapper) ====
+
<ol><li>Download the apropiate drivers from [http://www.ati.com/support/driver.html ati.com]. You will need the ATI Driver Installer, not the seperate XFree86/X.org rpm packages. Save the installer into an empty directory (or at least one containing no *.deb files), since it will create several new files.
+
</li><li>Make sure the universe section of the Ubuntu repositories is enabled (See the [[UbuntuHelp:AddingRepositoriesHowto|AddingRepositoriesHowto]])
+
</li><li>Perform the following commands (where ''<version>'' is the version number of the installer): <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
+
You may need to wait a few mintues for this to complete.
+
</nowiki></pre></li></ol>
+
 
+
This will create a number of .deb files in the current directory.
+
note: If you run Dapper, replace "edgy" (above) 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
+
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>
+
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.
+
==== More Troubleshooting ====
+
* If after everything you still get indirect rendering when typing "fglrxinfo" run:
+
<pre><nowiki>
+
$ depmod -ae
+
</nowiki></pre>
+
Now reboot and hope for the best.
+
* 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/X11/xorg.conf
+
or
+
$ kdesu kate /etc/X11/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>
+
=== General Troubleshooting ===
+
==== Video-out ====
+
===== Black and White/Wrong Colours or Scrolling Picture =====
+
If you are having issues with S-Video out where the video is incorrectly displayed (such as black and white or scrolling), try adding the line
+
<pre><nowiki>
+
         
+
        Option      "TVFormat" "<type>"</nowiki></pre>
+
into the Device section that lists your monitor/TV, as the output to the TV might be set to PAL or another incompatible format for your region/TV. Replace the ''<type>'' with the region specific video type. The TVFormat choices are: NTSC-JPN, NTSC-M, NTSC-N, PAL-B, PAL-CN, PAL-D, PAL-G, PAL-H, PAL-I, PAL-K, PAL-K1, PAL-L, PAL-N, PAL-M, PAL-SCART.
+
Example:
+
<pre><nowiki>
+
Section "Device"
+
        Identifier  "ATI Radeon 9600/X1050 (Screen 1)"
+
        Driver      "fglrx"
+
        Option      "TVFormat" "NTSC-M" # NTSC-M is used in North America -- Canada/USA -- amoung other countries
+
        BusID      "PCI:2:0:0"
+
        Screen      1
+
EndSection</nowiki></pre>
+
Don't forget that most older TVs use a standard resolution of 640x480, so it may be wise to force that resolution:
+
<pre><nowiki>
+
Section "Screen"
+
        Identifier "TV"
+
        Device    "ATI Radeon 9600/X1050 (Screen 1)"
+
        Monitor    "Toshiba 32in (Screen 1)"
+
        DefaultDepth    24
+
        SubSection "Display"
+
                Viewport  0 0
+
                Depth    24
+
                Modes    "640x480" # Force this standard resolution
+
        EndSubSection
+
EndSection</nowiki></pre>
+
More information about this issue is listed in the [http://ubuntuforums.org/showthread.php?t=803724 Ubuntu Forums] and also through the [http://www.mythtv.org/wiki/index.php/ATI_Proprietary_Driver MythTV Wiki]. If you are unsure of your region, review this [http://www.tenlab.com/tv-systems/tvsystems.htm region list]. The [http://www.linux-man-pages.org/man4/fglrx/ fglrx man page] might be useful as well.
+
=== 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]]
+
 
<<Include(Tag/ContentCleanup)>>
 
<<Include(Tag/ContentCleanup)>>
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 16:52的版本


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)>>