个人工具

“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...)
 
第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.  
+
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
 +
http://www.phoronix.com/forums/showpost.php?p=51176&postcount=5
 
== Building radeonhd ==
 
== Building radeonhd ==
 
=== Prerequisite Packages ===
 
=== Prerequisite Packages ===
 +
Using the following commands will get all the packages one should need:
 
==== Ubuntu 8.10 (Intrepid) ====
 
==== Ubuntu 8.10 (Intrepid) ====
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 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 install libdrm-dev configure-debian git-core gawk x11proto*
+
 
</nowiki></pre>
 
</nowiki></pre>
 
==== Ubuntu 8.04 (Hardy) ====
 
==== Ubuntu 8.04 (Hardy) ====
 
<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
+
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
 
</nowiki></pre>
 
</nowiki></pre>
 +
Note that in general,
 +
<pre><nowiki>
 +
sudo apt-get build-dep xserver-xorg-video-radeonhd
 +
</nowiki></pre>
 +
should install all or most of what you need.
 
=== Obtaining the Latest Source ===
 
=== Obtaining the Latest Source ===
You can put the source directory in another folder if you'd like. By convention, we use /usr/src
+
You can put the source directory in another folder if you'd like, we will use your home directory here:
 
<pre><nowiki>
 
<pre><nowiki>
cd /usr/src
+
cd
sudo git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
+
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
 
cd xf86-video-radeonhd
 
cd xf86-video-radeonhd
 
</nowiki></pre>
 
</nowiki></pre>
 
=== Adding the m4 Macros ===
 
=== Adding the m4 Macros ===
Open configure.ac for editing with:
+
The following command will open two files in gedit:
 +
<pre><nowiki>
 +
gedit configure.ac Makefile.am
 +
</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(.)
 +
In the Makefile.am file, paste this: ACLOCAL_AMFLAGS == -I m4 after the line that reads: SUBDIRS == src man utils/conntest
 +
=== Compiling ===
 +
<pre><nowiki>
 +
cd ~/xf86-video-radeonhd
 +
libtoolize
 +
./autogen.sh --prefix=/usr
 +
make
 +
sudo make install
 +
</nowiki></pre>
 +
== Configuration ==
 +
=== Configuring xorg.conf for radeonhd ===
 +
Open your xorg.conf for editing:
 +
<pre><nowiki>
 +
gksudo gedit /etc/X11/xorg.conf
 +
</nowiki></pre>
 +
Now change/add the Driver line in the Device section. You can also add the option for Direct Rendering here.
 +
<pre><nowiki>
 +
Section "Driver"
 +
...
 +
Driver  "radeonhd"
 +
Option  "DRI"    #Only works for X1k cards and RS690 IGP at this time
 +
EndSection
 +
</nowiki></pre>
 +
If you're using DRI, you can explicitly load the dri module.
 +
<pre><nowiki>
 +
Section "Module"
 +
...
 +
Load  "dri"
 +
EndSection
 +
</nowiki></pre>
 +
Also, add this section to give non-root applications access to DRI services
 +
<pre><nowiki>
 +
Section "DRI"
 +
Mode        0666
 +
EndSection
 +
</nowiki></pre>
 +
Save the file and quit. The changes will take place the next time you restart.
 +
=== Configuring Compiz ===
 +
Open the compiz script for editing:
 +
<pre><nowiki>
 +
gksudo gedit /usr/bin/compiz
 +
</nowiki></pre>
 +
Now find the WHITELIST= line and add radeonhd so it looks like:
 +
<pre><nowiki>
 +
WHITELIST="nvidia intel ati radeon i810 fglrx radeonhd"
 +
</nowiki></pre>
 +
== Testing Direct Rendering (DRI) ==
 +
<pre><nowiki>
 +
glxinfo | grep direct
 +
</nowiki></pre>
 +
The above command should return "direct rendering: Yes"
 +
== Updating The Driver/Source ==
 +
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
 +
If so, you can pull the updates and recompile the driver to update it:
 
<pre><nowiki>
 
<pre><nowiki>
gksudo gedit configure.ac
+
cd ~/xf86-video-radeonhd
 +
git pull
 
</nowiki></pre>
 
</nowiki></pre>
 +
Now follow the directions in the Compiling Section again.
 +
== Pre-built packages ==
 +
Unofficial test packages updated from git can also be found at https://launchpad.net/~tormodvolden/+archive
 
----
 
----
[[category:CategoryNew]] [[category:CategoryCleanup]] <- The categories section helps organise pages. A full list of page categories can be found at [[category:CategoryCategory.]]
+
[[category:CategoryCleanup]] [[category:CategoryHardware]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年12月16日 (二) 19:56的版本

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 http://www.phoronix.com/forums/showpost.php?p=51176&postcount=5

Building radeonhd

Prerequisite Packages

Using the following commands will get all the packages one should need:

Ubuntu 8.10 (Intrepid)

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

Ubuntu 8.04 (Hardy)

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

Note that in general,

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

should install all or most of what you need.

Obtaining the Latest Source

You can put the source directory in another folder if you'd like, we will use your home directory here:

cd
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
cd xf86-video-radeonhd

Adding the m4 Macros

The following command will open two files in gedit:

gedit configure.ac Makefile.am

In the configure.ac file, paste this into the file: AC_CONFIG_MACRO_DIR([m4]) after the line that reads: AC_CONFIG_AUX_DIR(.) In the Makefile.am file, paste this: ACLOCAL_AMFLAGS == -I m4 after the line that reads: SUBDIRS == src man utils/conntest

Compiling

cd ~/xf86-video-radeonhd
libtoolize
./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 "Driver"
	...	
	Driver   "radeonhd"
	Option   "DRI"    #Only works for X1k cards and RS690 IGP at this time
EndSection

If you're using DRI, you can explicitly load the dri module.

Section "Module"
	...
	Load  "dri"
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.

Configuring Compiz

Open the compiz script for editing:

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"

Testing Direct Rendering (DRI)

glxinfo | grep direct

The above command should return "direct rendering: Yes"

Updating The Driver/Source

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 If so, you can pull the updates and recompile the driver to update it:

cd ~/xf86-video-radeonhd
git pull

Now follow the directions in the Compiling Section again.

Pre-built packages

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