个人工具

“UbuntuHelp:RadeonHD”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/RadeonHD}} {{Languages|UbuntuHelp:RadeonHD}} PAGE UNDER CONSTRUCTION == Introduction == The radeonhd driver, or xf86-video-radeonhd is an X.org vi...)
 
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/RadeonHD}}
 
{{From|https://help.ubuntu.com/community/RadeonHD}}
 
{{Languages|UbuntuHelp:RadeonHD}}
 
{{Languages|UbuntuHelp:RadeonHD}}
PAGE UNDER CONSTRUCTION
 
 
== Introduction ==
 
== Introduction ==
The radeonhd driver, or xf86-video-radeonhd is an X.org video driver for R500 and newer ATI graphics devices. It is being developed by Novell for AMD, with the free documentation provided by AMD.  
+
This document explains how to install and use the open-source radeonhd drivers on Ubuntu. '''This shouldn't be necessary... unless''' you're having problems with the open-source "ati/radeon" driver that comes pre-installed with Ubuntu. If you were looking for instructions on installing the proprietary ATI Catalyst/fglrx Linux drivers, see: http://wiki.cchtml.com/index.php/Ubuntu_Jaunty_Installation_Guide
== Building radeonhd ==
+
== Cards Supported ==
 +
Look at the following list to determine if your card is supported: http://cgit.freedesktop.org/xorg/driver/xf86-video-radeonhd/plain/README
 +
* Group 1: (DirectX9 generation) non-RadeonHD cards, including RS600/RS690/RS740 IGP's and M52-M68 Mobility chips. The Radeon X2300 HD also belongs in this group because it is based on an RV5x0 chip
 +
* Group 2: (DX 10.x generation) RadeonHD cards, including RS78x/RS880 IGP's and >= M71 Mobility parts.
 +
* Group 3: (DX 11 generation) RadeonHD 5x00 cards (RV8x0)
 +
For reference, here is a [http://www.x.org/wiki/radeonhd%3Afeature matrix of radeonhd features]
 +
=== Ubuntu 9.10/Karmic ===
 +
Cards in Group 1 have accelerated 2D/3D/Xv. Cards in Group 2 have accelerated 2D/Xv support. 3D acceleration for Group2 cards can be enabled by installing a recent kernel >= 2.6.32 and using packages from the xorg-edgers PPA (see that section).
 +
=== Ubuntu 10.04/Lucid ===
 +
Cards in Group 1 and Group 2 should have accelerated 2D/3D/Xv out of the box. Using packages from the xorg-edgers PPA may enable additional 3D functionality. Cards in Group 3 have only very basic mode-setting support at this time: http://www.phoronix.com/scan.php?page=news_item&px=Nzk0Ng
 +
== Preparation ==
 +
Previous or current installations of ATI's proprietary Catalyst/fglrx drivers are known to interfere with the installation of the open-source drivers.
 +
If you have installed proprietary drivers downloaded from ATI/AMD's website:
 +
<pre><nowiki>
 +
sudo sh /usr/share/ati/fglrx-uninstall.sh
 +
</nowiki></pre>
 +
If you've installed the proprietary drivers through Ubuntu (i.e. Synaptic or Jockey/Restricted Hardware Drivers):
 +
<pre><nowiki>
 +
sudo apt-get purge xorg-driver-fglrx fglrx-amdcccle fglrx-kernel-source xorg-driver-fglrx-dev
 +
</nowiki></pre>
 +
To make sure you have the correct version of libGL.so and libglx.so:
 +
<pre><nowiki>
 +
sudo apt-get --reinstall install libgl1-mesa-glx xserver-xorg-core
 +
</nowiki></pre>
 +
For more information on this topic, see: https://wiki.ubuntu.com/X/Troubleshooting/FglrxInteferesWithRadeonDriver
 +
== Pre-built .deb Packages ==
 +
Recommended method
 +
=== For Group 1 Cards ===
 +
Unofficial test packages updated from git can be found in the PPA at https://launchpad.net/~xorg-edgers/+archive/drivers-only
 +
Owners of these cards may also wish to try the xorg-edgers PPA to obtain a more recent mesa 3D driver, which could fix bugs or improve performance (it could also introduce bugs though): https://launchpad.net/~xorg-edgers/+archive/ppa
 +
=== For Group 2 Cards ===
 +
2D/3D/Xv should work on 10.04/Lucid without any modification (just make sure you have firmware-linux package installed if you're doing a minimal/custom install). You can also choose to run more current 3D drivers from xorg-edgers (see instructions below).
 +
==== Using 9.10/Karmic ====
 +
For 3D support, obtain packages for the latest kernel (2.6.33 is the latest stable released kernel at the time of this writing) here: http://kernel.ubuntu.com/~kernel-ppa/mainline/ . You will need the image and headers package corresponding to your architecture (amd64 for x86-64 machines and i386 for 32-bit) as well as the headers 'all' package. The full kernel source is not needed, unless you plan to do something with it. For installing the .deb's, I recommend making a directory in your home folder and putting the packages there. I use 64-bit in this example:
 +
<pre><nowiki>
 +
cd ~/
 +
mkdir kerneldebs
 +
cd kerneldebs/
 +
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.33/linux-headers-2.6.33-020633-generic_2.6.33-020633_amd64.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.33/linux-headers-2.6.33-020633_2.6.33-020633_all.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.33/linux-image-2.6.33-020633-generic_2.6.33-020633_amd64.deb
 +
sudo dpkg -i linux*
 +
sudo mkdir /lib/firmware/radeon
 +
cd ~/
 +
wget http://people.freedesktop.org/~agd5f/radeon_ucode/R600_rlc.bin http://people.freedesktop.org/~agd5f/radeon_ucode/R700_rlc.bin
 +
sudo mv R?00_rlc.bin /lib/firmware/radeon/
 +
</nowiki></pre>
 +
Now boot into the new kernel and verify that the rest of your hardware is working.
 +
==== Add the xorg-edgers PPA ====
 +
Follow the directions on this page to add the PPA to your sources: https://launchpad.net/~xorg-edgers/+archive/ppa . Once you've done that, update the package information and upgrade the mesa and X packages offered. If you had Ubuntu's radeonhd installed, you can upgrade that too, or install it if not. Now you should configure your xorg.conf (hints are provided in this document) and restart your system.
 +
== Building radeonhd from git Source ==
 +
It is highly recommended to use pre-built packages from one of the PPA's above, especially for Ubuntu 9.10/Karmic. However, if you want to build the radeonhd driver directly from source, here is the procedure:
 
=== Prerequisite Packages ===
 
=== Prerequisite Packages ===
==== Ubuntu 8.10 (Intrepid) ====
+
The following command will install all the packages needed:
Using the following commands will get all the libraries one should need:
+
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get build-dep xserver-xorg-video-radeonhd
 
sudo apt-get build-dep xserver-xorg-video-radeonhd
sudo apt-get install libdrm-dev configure-debian git-core gawk x11proto*
 
 
</nowiki></pre>
 
</nowiki></pre>
==== Ubuntu 8.04 (Hardy) ====
+
=== Initial Build ===
 +
Note: Make sure you are connected to the internet when running git commands
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install x11proto* libxau-dev xutils-dev m4 autoconf autotools-dev automake patch dpkg-dev html2text gettext intltool-debian po-debconf debhelper diffstat libdigest-sha1-perl libdigest-hmac-perl libfile-remove-perl libio-stringy-perl libltdl3-dev libmime-types-perl libobject-realize-later-perl libuser-identity-perl libmail-box-perl libsys-hostname-long-perl libmail-sendmail-perl zlib1g-dev libpci-dev libpixman-1-dev libtool quilt libpciaccess-dev xserver-xorg-dev libstdc++6-4.2-dev g++ build-essential libdrm-dev configure-debian git-core gawk
+
cd ~/
 +
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
 +
cd xf86-video-radeonhd
 +
./autogen.sh --prefix=/usr
 +
make
 +
sudo make install
 
</nowiki></pre>
 
</nowiki></pre>
=== Obtaining the Latest Source ===
+
=== Updating radeonhd ===
You can put the source directory in another folder if you'd like. By convention, we use /usr/src
+
Check the following link to see if the driver has been updated since you've installed it:
 +
http://cgit.freedesktop.org/xorg/driver/xf86-video-radeonhd/
 +
If so, you can pull the updates and recompile the driver to update it:
 
<pre><nowiki>
 
<pre><nowiki>
cd /usr/src
+
cd ~/xf86-video-radeonhd
sudo git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
+
git pull
cd xf86-video-radeonhd
+
make clean
 +
./autogen.sh --prefix=/usr
 +
make
 +
sudo make install
 +
</nowiki></pre>
 +
== Configuration ==
 +
=== xorg.conf Basics ===
 +
Open your xorg.conf for editing in any text editor (gedit is used in this example):
 +
<pre><nowiki>
 +
gksu gedit /etc/X11/xorg.conf
 +
</nowiki></pre>
 +
Now change/add the Driver line in the Device section.
 +
<pre><nowiki>
 +
Section "Device"
 +
... #Other directives here
 +
Driver  "radeonhd"
 +
Option  "DRI" "on"  #this is the default in recent radeonhd versions
 +
        Option  "AccelMethod" "EXA" #this is the default in recent radeonhd versions
 +
EndSection
 +
</nowiki></pre>
 +
=== Compiz ===
 +
Note: This step is unnecessary in Ubuntu 9.10 and later (https://bugs.launchpad.net/bugs/399577)
 +
Note2: Compiz requires 3D hardware acceleration.
 +
Add radeonhd to the driver whitelist for your user:
 +
<pre><nowiki>
 +
mkdir -p $HOME/.config/compiz
 +
echo 'WHITELIST="$WHITELIST radeonhd"' >> $HOME/.config/compiz/compiz-manager
 +
</nowiki></pre>
 +
=== HDMI Audio ===
 +
By default, HDMI audio is disabled. In the Device section of your xorg.conf, you'll need to add the following lines:
 +
<pre><nowiki>
 +
Option "Audio" "true"
 +
Option "HDMI" "all"
 +
</nowiki></pre>
 +
To test this, figure out the card and device number of your HDMI device and send a sound there:
 +
<pre><nowiki>
 +
aplay -l
 +
aplay -D plughw:<CARD NUMBER>,<DEVICE NUMBER> <PATH TO SOME SOUND FILE>
 +
</nowiki></pre>
 +
For example, if aplay -l returns "card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]", then:
 +
<pre><nowiki>
 +
aplay -D plughw:1,3 /usr/share/gnome-power-manager/gpm-critical-power.wav
 +
</nowiki></pre>
 +
Further configuration of ALSA and Pulse``Audio may be required, but that's outside the scope of this document.
 +
=== Power Management ===
 +
The GPU should automatically drop to low-power mode when the video signal is disabled (i.e. when the monitor turns itself off using DPMS after a specified amount of idle time). You can check/change your DPMS settings on-the-fly with the xset command and you can statically set the appropriate options in xorg.conf. Please read the appropriate man pages (xset and xorg.conf) for more information on that topic. At this time, full dynamic control of clocks and voltages (i.e. ATI Power``Play) is not implemented in the open-source drivers. However, one can force the GPU to low-power mode at all times by adding the following line in the Device section of xorg.conf:
 +
<pre><nowiki>
 +
Option "ForceLowPowerMode" "true"
 +
</nowiki></pre>
 +
Note that this may decrease performance under GPU load.
 +
== Diagnostic Commands ==
 +
<pre><nowiki>
 +
glxinfo | grep "renderer string"
 
</nowiki></pre>
 
</nowiki></pre>
=== Adding the m4 Macros ===
+
If 3D hardware acceleration is enabled, this command should return a line that looks like "OpenGL renderer string: '''Mesa DRI''' R300 (or R600)..." If it returns "software rasterizing" then it would be a good idea to have an expert look through your /var/log/Xorg.0.log file to see what's wrong, or maybe you can a better idea of what's wrong with:
Open configure.ac for editing with:
+
 
<pre><nowiki>
 
<pre><nowiki>
gksudo gedit configure.ac
+
LIBGL_DEBUG=verbose glxinfo
 
</nowiki></pre>
 
</nowiki></pre>
 +
== Additional Help ==
 +
The developers of this driver often respond to technical support requests at: http://www.phoronix.com/forums/forumdisplay.php?f=43
 +
For IRC, the developers can be found at #radeonhd on freenode.net
 
----
 
----
[[category:CategoryNew]] [[category:CategoryCleanup]] <- The categories section helps organise pages. A full list of page categories can be found at [[category:CategoryCategory.]]
+
[[category:CategoryHardware]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月20日 (四) 00:00的最新版本

Introduction

This document explains how to install and use the open-source radeonhd drivers on Ubuntu. This shouldn't be necessary... unless you're having problems with the open-source "ati/radeon" driver that comes pre-installed with Ubuntu. If you were looking for instructions on installing the proprietary ATI Catalyst/fglrx Linux drivers, see: http://wiki.cchtml.com/index.php/Ubuntu_Jaunty_Installation_Guide

Cards Supported

Look at the following list to determine if your card is supported: http://cgit.freedesktop.org/xorg/driver/xf86-video-radeonhd/plain/README

  • Group 1: (DirectX9 generation) non-RadeonHD cards, including RS600/RS690/RS740 IGP's and M52-M68 Mobility chips. The Radeon X2300 HD also belongs in this group because it is based on an RV5x0 chip
  • Group 2: (DX 10.x generation) RadeonHD cards, including RS78x/RS880 IGP's and >= M71 Mobility parts.
  • Group 3: (DX 11 generation) RadeonHD 5x00 cards (RV8x0)

For reference, here is a matrix of radeonhd features

Ubuntu 9.10/Karmic

Cards in Group 1 have accelerated 2D/3D/Xv. Cards in Group 2 have accelerated 2D/Xv support. 3D acceleration for Group2 cards can be enabled by installing a recent kernel >= 2.6.32 and using packages from the xorg-edgers PPA (see that section).

Ubuntu 10.04/Lucid

Cards in Group 1 and Group 2 should have accelerated 2D/3D/Xv out of the box. Using packages from the xorg-edgers PPA may enable additional 3D functionality. Cards in Group 3 have only very basic mode-setting support at this time: http://www.phoronix.com/scan.php?page=news_item&px=Nzk0Ng

Preparation

Previous or current installations of ATI's proprietary Catalyst/fglrx drivers are known to interfere with the installation of the open-source drivers. If you have installed proprietary drivers downloaded from ATI/AMD's website:

sudo sh /usr/share/ati/fglrx-uninstall.sh

If you've installed the proprietary drivers through Ubuntu (i.e. Synaptic or Jockey/Restricted Hardware Drivers):

sudo apt-get purge xorg-driver-fglrx fglrx-amdcccle fglrx-kernel-source xorg-driver-fglrx-dev

To make sure you have the correct version of libGL.so and libglx.so:

sudo apt-get --reinstall install libgl1-mesa-glx xserver-xorg-core

For more information on this topic, see: https://wiki.ubuntu.com/X/Troubleshooting/FglrxInteferesWithRadeonDriver

Pre-built .deb Packages

Recommended method

For Group 1 Cards

Unofficial test packages updated from git can be found in the PPA at https://launchpad.net/~xorg-edgers/+archive/drivers-only Owners of these cards may also wish to try the xorg-edgers PPA to obtain a more recent mesa 3D driver, which could fix bugs or improve performance (it could also introduce bugs though): https://launchpad.net/~xorg-edgers/+archive/ppa

For Group 2 Cards

2D/3D/Xv should work on 10.04/Lucid without any modification (just make sure you have firmware-linux package installed if you're doing a minimal/custom install). You can also choose to run more current 3D drivers from xorg-edgers (see instructions below).

Using 9.10/Karmic

For 3D support, obtain packages for the latest kernel (2.6.33 is the latest stable released kernel at the time of this writing) here: http://kernel.ubuntu.com/~kernel-ppa/mainline/ . You will need the image and headers package corresponding to your architecture (amd64 for x86-64 machines and i386 for 32-bit) as well as the headers 'all' package. The full kernel source is not needed, unless you plan to do something with it. For installing the .deb's, I recommend making a directory in your home folder and putting the packages there. I use 64-bit in this example:

cd ~/
mkdir kerneldebs
cd kerneldebs/
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.33/linux-headers-2.6.33-020633-generic_2.6.33-020633_amd64.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.33/linux-headers-2.6.33-020633_2.6.33-020633_all.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.33/linux-image-2.6.33-020633-generic_2.6.33-020633_amd64.deb
sudo dpkg -i linux*
sudo mkdir /lib/firmware/radeon
cd ~/
wget http://people.freedesktop.org/~agd5f/radeon_ucode/R600_rlc.bin http://people.freedesktop.org/~agd5f/radeon_ucode/R700_rlc.bin
sudo mv R?00_rlc.bin /lib/firmware/radeon/

Now boot into the new kernel and verify that the rest of your hardware is working.

Add the xorg-edgers PPA

Follow the directions on this page to add the PPA to your sources: https://launchpad.net/~xorg-edgers/+archive/ppa . Once you've done that, update the package information and upgrade the mesa and X packages offered. If you had Ubuntu's radeonhd installed, you can upgrade that too, or install it if not. Now you should configure your xorg.conf (hints are provided in this document) and restart your system.

Building radeonhd from git Source

It is highly recommended to use pre-built packages from one of the PPA's above, especially for Ubuntu 9.10/Karmic. However, if you want to build the radeonhd driver directly from source, here is the procedure:

Prerequisite Packages

The following command will install all the packages needed:

sudo apt-get build-dep xserver-xorg-video-radeonhd

Initial Build

Note: Make sure you are connected to the internet when running git commands

cd ~/
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
cd xf86-video-radeonhd
./autogen.sh --prefix=/usr
make
sudo make install

Updating radeonhd

Check the following link to see if the driver has been updated since you've installed it: http://cgit.freedesktop.org/xorg/driver/xf86-video-radeonhd/ If so, you can pull the updates and recompile the driver to update it:

cd ~/xf86-video-radeonhd
git pull
make clean
./autogen.sh --prefix=/usr
make
sudo make install

Configuration

xorg.conf Basics

Open your xorg.conf for editing in any text editor (gedit is used in this example):

gksu gedit /etc/X11/xorg.conf

Now change/add the Driver line in the Device section.

Section "Device"
	...	#Other directives here
	Driver   "radeonhd"
	Option   "DRI" "on"   #this is the default in recent radeonhd versions
        Option   "AccelMethod" "EXA" #this is the default in recent radeonhd versions
EndSection

Compiz

Note: This step is unnecessary in Ubuntu 9.10 and later (https://bugs.launchpad.net/bugs/399577) Note2: Compiz requires 3D hardware acceleration. Add radeonhd to the driver whitelist for your user:

mkdir -p $HOME/.config/compiz
echo 'WHITELIST="$WHITELIST radeonhd"' >> $HOME/.config/compiz/compiz-manager

HDMI Audio

By default, HDMI audio is disabled. In the Device section of your xorg.conf, you'll need to add the following lines:

	Option "Audio" "true"
	Option "HDMI" "all"

To test this, figure out the card and device number of your HDMI device and send a sound there:

aplay -l
aplay -D plughw:<CARD NUMBER>,<DEVICE NUMBER> <PATH TO SOME SOUND FILE>

For example, if aplay -l returns "card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]", then:

aplay -D plughw:1,3 /usr/share/gnome-power-manager/gpm-critical-power.wav

Further configuration of ALSA and Pulse``Audio may be required, but that's outside the scope of this document.

Power Management

The GPU should automatically drop to low-power mode when the video signal is disabled (i.e. when the monitor turns itself off using DPMS after a specified amount of idle time). You can check/change your DPMS settings on-the-fly with the xset command and you can statically set the appropriate options in xorg.conf. Please read the appropriate man pages (xset and xorg.conf) for more information on that topic. At this time, full dynamic control of clocks and voltages (i.e. ATI Power``Play) is not implemented in the open-source drivers. However, one can force the GPU to low-power mode at all times by adding the following line in the Device section of xorg.conf:

	Option "ForceLowPowerMode" "true"

Note that this may decrease performance under GPU load.

Diagnostic Commands

glxinfo | grep "renderer string"

If 3D hardware acceleration is enabled, this command should return a line that looks like "OpenGL renderer string: Mesa DRI R300 (or R600)..." If it returns "software rasterizing" then it would be a good idea to have an expert look through your /var/log/Xorg.0.log file to see what's wrong, or maybe you can a better idea of what's wrong with:

LIBGL_DEBUG=verbose glxinfo

Additional Help

The developers of this driver often respond to technical support requests at: http://www.phoronix.com/forums/forumdisplay.php?f=43 For IRC, the developers can be found at #radeonhd on freenode.net