Differences between revisions 2 and 40 (spanning 38 versions)
Revision 2 as of 2005-10-13 21:26:36
Size: 306
Comment: Add Links to Flavios site.
Revision 40 as of 2011-03-22 22:59:07
Size: 4598
Editor: JesseTaylor
Comment: Refactor for clarity (this confused me during install). Correct me if I've added something that's not correct.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Describe AtiHowTo here. ~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[it/AtiHowTo|Italiano]] - [[ru/AtiHowTo|Русский]] -~
Line 3: Line 3:
For the moment: Flavio Stanchina provides an installer-package for the proprietary ATI graphics drivers. You find the package and a how-to at http://www.stanchina.net/~flavio/debian/fglrx-installer.html or http://xoomer.virgilio.it/flavio.stanchina/debian/fglrx-installer.html. This article discusses how to install and use the open-source Radeon and RadeonHD display drivers for X11.

<<TableOfContents(2)>>

== Determining your hardware ==

Run this command to determine what kind of video card you have:

{{{
lspci -v | grep VGA
}}}

== Supported Cards ==

The radeon driver supports R100/R200 (Radeon 7000 – Radeon 9250) and R300/R400/R500 (Radeon 9500 – Radeon X1950) class chips. See [[http://www.x.org/wiki/radeon|the radeon page]] on the X wiki for more information. The radeonhd driver is for R500 and newer cards. See the [[http://www.x.org/wiki/radeonhd|the radeonhd page]] on the X wiki for more info.

First try free drivers radeon and radeonhd, installing following packages : DebianPkg:xserver-xorg-video-radeon, DebianPkg:xserver-xorg-video-radeonhd and DebianPkg:xserver-xorg-video-ati

== Installing proprietary firmware ==

Proprietary, binary-only firmware was removed from the Debian kernel's radeon DRM drivers in [[DebianPkg:src:linux-2.6|linux-2.6]] 2.6.29-1, to resolve Debian bug DebianBug:494009. It can now be installed via the DebianPkg:firmware-linux-nonfree package

Some cards need this proprietary firmware in addition to the drivers (whether you are using the free or non-free drivers). Without this firmware, you might not even be able to run the X Window System.

For Debian [[DebianSqueeze|Squeeze]] and later releases, you will need to install proprietary firmware if you have one of the following Radeon-based cards:

 * Radeon R100-family
 * Radeon R200-family
 * Radeon R300-family
 * Radeon R400-family
 * Radeon R500-family
 * Radeon R600
 * Radeon RS600
 * Radeon RS690
 * Radeon RS780
 * Radeon RV610
 * Radeon RV620
 * Radeon RV630
 * Radeon RV635
 * Radeon RV670
 * Radeon RV710
 * Radeon RV730
 * Radeon RV770

The firmware in question, id est the CP/PFP microcode, can be installed by first enabling the '''non-free''' repository for your Debian release and issuing the following command:

{{{
aptitude install firmware-linux-nonfree
}}}

== Configuring the kernel ==

You will need '''D'''irect '''R'''endering '''M'''anager as well as '''A'''ccelerated '''G'''raphics '''P'''ort support in your kernel, preferably as modules. If you are using the stock Debian kernel, you should already have these. To check for DRM support, issue this command:
{{{
grep DRM_RADEON /boot/config-$(uname -r)
}}}
The output should be:
{{{
CONFIG_DRM_RADEON=m
}}}
If this value is ''n'', then you will have to rebuild your kernel.

To check for AGP support, run:
{{{
grep AGP /boot/config-$(uname -r)
}}}
The output should be:
{{{
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_AGP_INTEL=m
CONFIG_AGP_SIS=m
CONFIG_AGP_VIA=m
}}}
Note that you will only need support for your specific chipset.

If you do need to rebuild your kernel, you can find AGP under:
 * Device Drivers --->
  * Graphics Support --->
   * /dev/agpgart (AGP Support) --->
    * (Your chipset)

and DRM under:
 * Device Drivers --->
  * Graphics Support --->
   * Direct Rendering Manager --->
    * ATI Radeon

== Editing /etc/X11/xorg.conf ==

('''''xorg.conf does not exist in Squeeze and Sid''''')
Essentially, you need to set your device's driver to either "radeon" or "radeonhd" as such:

{{{
Section "Device"
    Identifier "Device0"
    Driver "radeon"
EndSection
}}}

There are also plenty of options for the driver too. You can find out about them in radeon's man page:

{{{
man 4 radeon
}}}

== Enabling 3D acceleration ==

It is necessary to install driver libraries in order to utilize the card's 3D capabilities:
{{{
aptitude install libgl1-mesa-dri
}}}

These will automatically be installed as a dependency of the xserver-xorg-core package, so if you've installed that, you don't need to worry about this.

== Troubleshooting ==
=== Radeon Xpress 200M (R300) on laptop ===
During a long time, on laptops with Radeon Xpress 200M (R300) you may get some random colored stripes (especially after suspending display power). This is problably due to a bug into free driver. A solution may be to switch off, then switch on the backlight with ''radeontool'' (eponymic package).
{{{
#!/bin/sh
sudo radeontool light off
sleep 1
sudo radeontool light on
}}}

== See Also ==

 * [[ATIProprietary]] - Installing the closed source proprietary driver
 * [[Mesa#Testingperformance|Testing performance]]

Translation(s): English - Italiano - Русский

This article discusses how to install and use the open-source Radeon and RadeonHD display drivers for X11.

Determining your hardware

Run this command to determine what kind of video card you have:

lspci -v | grep VGA

Supported Cards

The radeon driver supports R100/R200 (Radeon 7000 – Radeon 9250) and R300/R400/R500 (Radeon 9500 – Radeon X1950) class chips. See the radeon page on the X wiki for more information. The radeonhd driver is for R500 and newer cards. See the the radeonhd page on the X wiki for more info.

First try free drivers radeon and radeonhd, installing following packages : xserver-xorg-video-radeon, xserver-xorg-video-radeonhd and xserver-xorg-video-ati

Installing proprietary firmware

Proprietary, binary-only firmware was removed from the Debian kernel's radeon DRM drivers in linux-2.6 2.6.29-1, to resolve Debian bug 494009. It can now be installed via the firmware-linux-nonfree package

Some cards need this proprietary firmware in addition to the drivers (whether you are using the free or non-free drivers). Without this firmware, you might not even be able to run the X Window System.

For Debian Squeeze and later releases, you will need to install proprietary firmware if you have one of the following Radeon-based cards:

  • Radeon R100-family
  • Radeon R200-family
  • Radeon R300-family
  • Radeon R400-family
  • Radeon R500-family
  • Radeon R600
  • Radeon RS600
  • Radeon RS690
  • Radeon RS780
  • Radeon RV610
  • Radeon RV620
  • Radeon RV630
  • Radeon RV635
  • Radeon RV670
  • Radeon RV710
  • Radeon RV730
  • Radeon RV770

The firmware in question, id est the CP/PFP microcode, can be installed by first enabling the non-free repository for your Debian release and issuing the following command:

aptitude install firmware-linux-nonfree

Configuring the kernel

You will need Direct Rendering Manager as well as Accelerated Graphics Port support in your kernel, preferably as modules. If you are using the stock Debian kernel, you should already have these. To check for DRM support, issue this command:

grep DRM_RADEON /boot/config-$(uname -r) 

The output should be:

CONFIG_DRM_RADEON=m

If this value is n, then you will have to rebuild your kernel.

To check for AGP support, run:

grep AGP /boot/config-$(uname -r)

The output should be:

CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_AGP_INTEL=m
CONFIG_AGP_SIS=m
CONFIG_AGP_VIA=m

Note that you will only need support for your specific chipset.

If you do need to rebuild your kernel, you can find AGP under:

  • Device Drivers --->

    • Graphics Support --->

      • /dev/agpgart (AGP Support) --->

        • (Your chipset)

and DRM under:

  • Device Drivers --->

    • Graphics Support --->

      • Direct Rendering Manager --->

        • ATI Radeon

Editing /etc/X11/xorg.conf

(xorg.conf does not exist in Squeeze and Sid) Essentially, you need to set your device's driver to either "radeon" or "radeonhd" as such:

Section "Device"
    Identifier     "Device0"
    Driver         "radeon"
EndSection

There are also plenty of options for the driver too. You can find out about them in radeon's man page:

man 4 radeon

Enabling 3D acceleration

It is necessary to install driver libraries in order to utilize the card's 3D capabilities:

aptitude install libgl1-mesa-dri

These will automatically be installed as a dependency of the xserver-xorg-core package, so if you've installed that, you don't need to worry about this.

Troubleshooting

Radeon Xpress 200M (R300) on laptop

During a long time, on laptops with Radeon Xpress 200M (R300) you may get some random colored stripes (especially after suspending display power). This is problably due to a bug into free driver. A solution may be to switch off, then switch on the backlight with radeontool (eponymic package).

sudo radeontool light off
sleep 1
sudo radeontool light on

See Also