个人工具

UbuntuHelp:RadeonHD

来自Ubuntu中文

Wikibot讨论 | 贡献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