Difference between revisions of "Package:Radeon Video Drivers"

From Funtoo
Jump to navigation Jump to search
(added source for missing information (Installing firmware) until someone with more knowlage than i have may fix this document)
(Removed kernel option for 'Enable userspace modesetting' as it is deprecated now. Added information about eliminating screen tearing.)
Line 30: Line 30:
             <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ----
             <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ----
             <*> ATI Radeon
             <*> ATI Radeon
                [*] Enable userspace modesetting on radeon
         Frame buffer Devices --->
         Frame buffer Devices --->
             < > ATI Radon display support
             < > ATI Radon display support
Line 62: Line 61:
{{SectionNeedsUpdates}}
{{SectionNeedsUpdates}}
Until this section has been fixed, you'll find help at http://wiki.gentoo.org/wiki/Radeon#Firmware
Until this section has been fixed, you'll find help at http://wiki.gentoo.org/wiki/Radeon#Firmware
=== Eliminating screen tearing ===
==== With a compositor ====
Some machines will suffer from screen tearing with the open source <code>xf86-video-ati</code> driver. It is possible to solve this by running a compositor. Many desktop environments provide their own compositor but if you still have tearing or don't use a desktop environment then screen tearing can be solved by running [[Package:Compton|Compton]] with an option such as <code>--opengl</code>.
In order to have this started automatically every time you log in you can append the following:
{{file|name=~/.xinitrc|desc=|body=
compton --opengl &
}}
==== Without a compositor ====
Screen tearing can be eliminated natively without the need to a compositor but currently this can only be achieved with the git version of [[Package:X11-drivers/xf86-video-ati|xf86-video-ati]]. There was recently was a [http://cgit.freedesktop.org/xorg/driver/xf86-video-ati/commit/?id=43159ef400c3b18b9f4d3e6fa1c4aef2d60d38fe commit] which, when the appropriate option has been enabled in your xorg configuration, enables tear free video playback natively.
You need to install <code>x11-drivers/xf86-video-ati-9999</code> which can be obtained from the [http://gpo.zugaina.org/AJAX/Ebuild/2914115 x11 overlay].
Then add the tearfree option to the xorg conf file:
{{file|name=/etc/X11/xorg.conf.d/radeon.conf|desc=An example conf file for the radeon driver|body=
Section "Device"
  Identifier  "radeon"
  Driver      "radeon"
  Option      "TearFree" "true"
EndSection
}}
{{EbuildFooter}}
{{EbuildFooter}}

Revision as of 23:09, June 5, 2015

Radeon Video Drivers

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

If you have become frustrated by the somewhat poorly maintained ati-drivers (the closed source video drivers for AMD cards) or if you would rather use open source video drivers, this is the package for you. This page outlines how to install and configure the open source xf86-video-ati drivers.

Preparation

Check to see if your card is an AMD card

If you do not know if you have an AMD graphics card or not, you can run the following command:

root # lspci | grep VGA

If the output produces information that contains something like "01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Pitcairn PRO [Radeon HD 7850]," then you have an AMD graphics card and continue to the next step in the install process. If lspci does not provide you with something like this, and instead contains Intel or NVIDIA, consult the main Video page for information.

Preparing the kernel

Now that you know you have an AMD graphics card, you can prepare the kernel for xf86-video-ati. Begin by ensuring that MTRR is enabled, then enable support for AGP graphics cards (only necessary if your card sits in an AGP slot -- not a PCIe one). After enabling AGP (if you needed it), you should enable support for the DRM and modesetting on radeon.:

Processor type and features --->
    [*] MTRR (Memory Type Range Register) support

Device Drivers --->
    Graphics support --->
        (If you have an AGP-based graphics card, enable these options)
        <*> /dev/agpgart (AGP Support) --->
            <*> AMD Opteron/Athlon64 on-CPU GART support
        Direct Rendering Manager --->
            <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ----
            <*> ATI Radeon
        Frame buffer Devices --->
            < > ATI Radon display support

If you have a graphics cards with HDMI ports that you wish to use for audio, some additional configuration of the kernel is required:

Device Drivers --->
    <*> Sound card support --->
        <*> Advanced Linux Sound Architecture --->
            HD Audio --->
                <*>HD Audio PCI
                    (64) Pre-allocated buffer size for HD-audio drivers
                    <*> Build HDMI/DisplayPort HD-audio codec support
        [*] Dynamic device file minor numbers
        (32) Max number of sound cards

Getting the required firmware

Many newer AMD GPU's require that you install firmware for them to function. Install the package radeon-ucode (Radeon microcode) for this function:

root # emerge radeon-ucode

It is also possible to install Radeon microcode via the linux-firmware package, which contains the Radeon microcode plus a much larger selection of firmware for other types of devices:

root # emerge linux-firmware

Installing the firmware into the kernel

   Important

This section is in need of updates.

Until this section has been fixed, you'll find help at http://wiki.gentoo.org/wiki/Radeon#Firmware

Eliminating screen tearing

With a compositor

Some machines will suffer from screen tearing with the open source xf86-video-ati driver. It is possible to solve this by running a compositor. Many desktop environments provide their own compositor but if you still have tearing or don't use a desktop environment then screen tearing can be solved by running Compton with an option such as --opengl.

In order to have this started automatically every time you log in you can append the following:

   ~/.xinitrc
compton --opengl &

Without a compositor

Screen tearing can be eliminated natively without the need to a compositor but currently this can only be achieved with the git version of xf86-video-ati. There was recently was a commit which, when the appropriate option has been enabled in your xorg configuration, enables tear free video playback natively.

You need to install x11-drivers/xf86-video-ati-9999 which can be obtained from the x11 overlay.

Then add the tearfree option to the xorg conf file:

   /etc/X11/xorg.conf.d/radeon.conf - An example conf file for the radeon driver
Section "Device"
   Identifier  "radeon"
   Driver      "radeon"
   Option      "TearFree" "true"
EndSection