个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
第2行: 第2行:
 
{{Languages|UbuntuHelp:RadeonHD}}
 
{{Languages|UbuntuHelp:RadeonHD}}
 
== 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. At the time of this writing, the radeonhd driver offers accelerated 2D/3D for R5x0 (X1k cards & 690G IGP) and basic mode-setting support for R6x0/R7x0 (Radeon HD series). Acceleration for the later cards is forthcoming, pending AMD's lawyers clearing the documentation for public release. For details, see: http://www.phoronix.com/scan.php?page=news_item&px=Njg0Mw
+
This document details building the open-source "radeonhd" driver. 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
http://www.phoronix.com/forums/showpost.php?p=51176&postcount=5
+
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/SuSE for AMD, with the free documentation provided by AMD. At the time of this writing, the radeonhd driver offers accelerated 2D/3D/Xv for R5x0 (X1k cards & 690G IGP) and accelerated 2D/Xv support for R6x0/R7x0 (Radeon HD series). 3D acceleration for RadeonHD cards is under development at the time of this writing. You can keep track of when acceleration and other features are supported here: http://www.x.org/wiki/RadeonFeature
== Building radeonhd ==
+
== Preparation ==
=== Prerequisite Packages ===
+
Previous or current installations of ATI's proprietary Catalyst/fglrx drivers are known to interfere with the installation of the open-source drivers.
Using the following commands will get all the packages one should need:
+
If you've installed the proprietary drivers through Ubuntu:
==== Ubuntu 8.10 (Intrepid) ====
+
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install x11proto* xutils-dev autoconf debhelper diffstat libltdl7-dev libpci-dev quilt libdrm-dev configure-debian git-core gawk xorg-dev libmail-box-perl libgl1-mesa-dev
+
sudo apt-get purge xorg-driver-fglrx fglrx-amdcccle fglrx-kernel-source xorg-driver-fglrx-dev
 
</nowiki></pre>
 
</nowiki></pre>
==== Ubuntu 8.04 (Hardy) ====
+
If you've installed proprietary drivers downloaded from ATI/AMD's website:
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install x11proto* xutils-dev autoconf debhelper diffstat libltdl3-dev libpci-dev quilt libdrm-dev configure-debian git-core gawk xorg-dev libmail-box-perl pciutils-dev libgl1-mesa-dev
+
sudo sh /usr/share/ati/fglrx-uninstall.sh
 
</nowiki></pre>
 
</nowiki></pre>
Note that in general,
+
To make sure you have the correct version of libGL:
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get build-dep xserver-xorg-video-radeonhd
+
sudo apt-get --reinstall install libgl1-mesa-glx
 
</nowiki></pre>
 
</nowiki></pre>
should install all or most of what you need.
+
== Prerequisite Packages ==
=== Obtaining the Latest Source ===
+
Using the following commands will get all the packages you'll need:
You can put the source directory in another folder if you'd like, we will use your home directory here:
+
=== Ubuntu 9.04/Jaunty or 8.10/Intrepid ===
 
<pre><nowiki>
 
<pre><nowiki>
cd
+
sudo apt-get install x11proto* xutils-dev autoconf libltdl7-dev libpciaccess-dev libdrm-dev git-core gawk xorg-dev libgl1-mesa-dev pciutils-dev
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
+
cd xf86-video-radeonhd
+
 
</nowiki></pre>
 
</nowiki></pre>
=== Adding the m4 Macros ===
+
== Getting DRM Kernel Modules ==
The following command will open two files in gedit:
+
'''Notes: The commands in this section are unnecessary for people running Ubuntu 9.04 Jaunty or Radeon X1k/690G users. These commands assume you're running the kernel provided by Ubuntu.'''
 
<pre><nowiki>
 
<pre><nowiki>
gedit configure.ac Makefile.am
+
cd ~/
 +
git clone git://anongit.freedesktop.org/mesa/drm
 +
cd drm
 +
git checkout -b r6xx-r7xx-support origin/r6xx-r7xx-support
 +
./autogen.sh
 +
cd linux-core
 +
make radeon.o drm.o
 +
sudo cp drm.ko /lib/modules/`uname -r`/kernel/drivers/gpu/drm/
 +
sudo cp radeon.ko /lib/modules/`uname -r`/kernel/drivers/gpu/drm/radeon/
 
</nowiki></pre>
 
</nowiki></pre>
In the configure.ac file, paste this into the file: AC_CONFIG_MACRO_DIR([m4]) after the line that reads: AC_CONFIG_AUX_DIR(.)
+
== Building radeonhd ==
In the Makefile.am file, paste this: ACLOCAL_AMFLAGS == -I m4 after the line that reads: SUBDIRS == src man utils/conntest
+
Note: Make sure you're connected to the internet when running the git command
=== Compiling ===
+
 
<pre><nowiki>
 
<pre><nowiki>
cd ~/xf86-video-radeonhd
+
cd ~/
libtoolize
+
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
 +
cd xf86-video-radeonhd
 
./autogen.sh --prefix=/usr
 
./autogen.sh --prefix=/usr
 
make
 
make
第50行: 第55行:
 
Now change/add the Driver line in the Device section. You can also add the option for Direct Rendering here.
 
Now change/add the Driver line in the Device section. You can also add the option for Direct Rendering here.
 
<pre><nowiki>
 
<pre><nowiki>
Section "Driver"
+
Section "Device"
 
...
 
...
 
Driver  "radeonhd"
 
Driver  "radeonhd"
Option  "DRI"   #Only works for X1k cards and RS690 IGP at this time
+
Option  "DRI"
EndSection
+
        Option  "AccelMethod"  "EXA"
</nowiki></pre>
+
If you're using DRI, you can explicitly load the dri module.
+
<pre><nowiki>
+
Section "Module"
+
...
+
Load "dri"
+
 
EndSection
 
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
第69行: 第68行:
 
EndSection
 
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
Save the file and quit. The changes will take place the next time you restart.
+
Save the file and quit. The changes will take place the next time you restart X.
 
=== Configuring Compiz ===
 
=== Configuring Compiz ===
Open the compiz script for editing:
+
Note: Compiz requires 3D acceleration, so it will only work for Radeon X1k and 690G-based graphics units at the time of this writing:
 
<pre><nowiki>
 
<pre><nowiki>
 
gksudo gedit /usr/bin/compiz
 
gksudo gedit /usr/bin/compiz
第79行: 第78行:
 
WHITELIST="nvidia intel ati radeon i810 fglrx radeonhd"
 
WHITELIST="nvidia intel ati radeon i810 fglrx radeonhd"
 
</nowiki></pre>
 
</nowiki></pre>
== Testing Direct Rendering (DRI) ==
+
== Diagnostic Commands ==
 +
=== Radeon X1k and RS6x0 ===
 
<pre><nowiki>
 
<pre><nowiki>
glxinfo | grep direct
+
glxinfo | grep "renderer string"
 
</nowiki></pre>
 
</nowiki></pre>
The above command should return "direct rendering: Yes"
+
This command should return a line that looks like "OpenGL renderer string: Mesa DRI R300..." 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.
 +
=== RadeonHD 2k-4k ===
 +
<pre><nowiki>
 +
cat /var/log/Xorg.0.log | grep "Direct rendering enabled"
 +
</nowiki></pre>
 +
This command should return "(II) RADEONHD(0): Direct rendering enabled" if the DRM module loaded properly.
 
== Updating The Driver/Source ==
 
== Updating The Driver/Source ==
 
Check the following link to see if the driver has been updated since you've installed it:
 
Check the following link to see if the driver has been updated since you've installed it:
http://gitweb.freedesktop.org/?p=xorg/driver/xf86-video-radeonhd;a=summary
+
http://cgit.freedesktop.org/xorg/driver/xf86-video-radeonhd/
 
If so, you can pull the updates and recompile the driver to update it:
 
If so, you can pull the updates and recompile the driver to update it:
 
<pre><nowiki>
 
<pre><nowiki>
 
cd ~/xf86-video-radeonhd
 
cd ~/xf86-video-radeonhd
 
git pull
 
git pull
 +
./autogen.sh --prefix=/usr
 +
make
 +
sudo make install
 
</nowiki></pre>
 
</nowiki></pre>
Now follow the directions in the Compiling Section again.
+
== Pre-built .deb packages ==
== Pre-built packages ==
+
 
Unofficial test packages updated from git can also be found at https://launchpad.net/~tormodvolden/+archive
 
Unofficial test packages updated from git can also be found at https://launchpad.net/~tormodvolden/+archive
 +
== 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:CategoryCleanup]] [[category:CategoryHardware]]
 
[[category:CategoryCleanup]] [[category:CategoryHardware]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年5月12日 (二) 18:33的版本

Introduction

This document details building the open-source "radeonhd" driver. 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 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/SuSE for AMD, with the free documentation provided by AMD. At the time of this writing, the radeonhd driver offers accelerated 2D/3D/Xv for R5x0 (X1k cards & 690G IGP) and accelerated 2D/Xv support for R6x0/R7x0 (Radeon HD series). 3D acceleration for RadeonHD cards is under development at the time of this writing. You can keep track of when acceleration and other features are supported here: http://www.x.org/wiki/RadeonFeature

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've installed the proprietary drivers through Ubuntu:

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

If you've installed proprietary drivers downloaded from ATI/AMD's website:

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

To make sure you have the correct version of libGL:

sudo apt-get --reinstall install libgl1-mesa-glx

Prerequisite Packages

Using the following commands will get all the packages you'll need:

Ubuntu 9.04/Jaunty or 8.10/Intrepid

sudo apt-get install x11proto* xutils-dev autoconf libltdl7-dev libpciaccess-dev libdrm-dev git-core gawk xorg-dev libgl1-mesa-dev pciutils-dev

Getting DRM Kernel Modules

Notes: The commands in this section are unnecessary for people running Ubuntu 9.04 Jaunty or Radeon X1k/690G users. These commands assume you're running the kernel provided by Ubuntu.

cd ~/
git clone git://anongit.freedesktop.org/mesa/drm
cd drm
git checkout -b r6xx-r7xx-support origin/r6xx-r7xx-support
./autogen.sh
cd linux-core
make radeon.o drm.o
sudo cp drm.ko /lib/modules/`uname -r`/kernel/drivers/gpu/drm/
sudo cp radeon.ko /lib/modules/`uname -r`/kernel/drivers/gpu/drm/radeon/

Building radeonhd

Note: Make sure you're connected to the internet when running the git command

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

Configuration

Configuring xorg.conf for radeonhd

Open your xorg.conf for editing:

gksudo gedit /etc/X11/xorg.conf

Now change/add the Driver line in the Device section. You can also add the option for Direct Rendering here.

Section "Device"
	...	
	Driver   "radeonhd"
	Option   "DRI"
        Option   "AccelMethod"  "EXA"
EndSection

Also, add this section to give non-root applications access to DRI services

Section "DRI"
	Mode         0666
EndSection

Save the file and quit. The changes will take place the next time you restart X.

Configuring Compiz

Note: Compiz requires 3D acceleration, so it will only work for Radeon X1k and 690G-based graphics units at the time of this writing:

gksudo gedit /usr/bin/compiz

Now find the WHITELIST= line and add radeonhd so it looks like:

WHITELIST="nvidia intel ati radeon i810 fglrx radeonhd"

Diagnostic Commands

Radeon X1k and RS6x0

glxinfo | grep "renderer string"

This command should return a line that looks like "OpenGL renderer string: Mesa DRI R300..." 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.

RadeonHD 2k-4k

cat /var/log/Xorg.0.log | grep "Direct rendering enabled"

This command should return "(II) RADEONHD(0): Direct rendering enabled" if the DRM module loaded properly.

Updating The Driver/Source

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
./autogen.sh --prefix=/usr
make
sudo make install

Pre-built .deb packages

Unofficial test packages updated from git can also be found at https://launchpad.net/~tormodvolden/+archive

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