Difference between pages "Video" and "Package:Radeon Video Drivers"

(Difference between pages)
(AMD/ATI)
 
 
Line 1: Line 1:
The purpose of this page is to give you streamlined steps for setting up your video hardware for X, and desktop environments such as GNOME.
+
{{Ebuild
 
+
|Summary=Open source drivers for AMD video cards.
{{Note|Editors: Keep this page relatively simple, and link to dedicated pages for more exhaustive coverage of a particular video driver. These instructions are intended to get users set up as quickly and simply as possible, without having to wade through lots of minute details.}}
+
|CatPkg=x11-drivers/xf86-video-ati
 
+
|Maintainer=
== Video Drivers ==
+
|Homepage=http://cgit.freedesktop.org/xorg/driver/xf86-video-ati/
 
+
first determine which video card you have and which driver it requires.
+
 
+
<console>###i## lspci -k</console>
+
 
+
=== Intel ===
+
Add or Edit the <code>VIDEO_CARDS</code> global variable in <code>/etc/make.conf</code> to the value in the following table appropriate for the Intel graphics hardware.
+
* '''NEED TABLE''': available drivers, hardware gen, VIDEO_CARDS variable
+
gen 1&2:
+
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
VIDEO_CARDS="intel"
+
 
}}
 
}}
gen 3
+
If you have become frustrated by the somewhat poorly maintained <code>ati-drivers</code> (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 <code>xf86-video-ati</code> drivers.  
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
VIDEO_CARDS="intel i915"
+
}}
+
gen 4+
+
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
VIDEO_CARDS="intel i965"
+
}}
+
* custom kernel menuconfig settings
+
  
=== AMD/ATI ===
+
== Preparation ==
Users can choose between free ({{Package|x11-drivers/xf86-video-ati}}) and proprietary ({{Package|x11-drivers/ati-drivers}}) video drivers. The free drivers are recommended as the proprietary drivers are not currently maintained very well by AMD.
+
=== 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:
 +
<console>
 +
###i## lspci | grep VGA
 +
</console>
  
Add or Edit the VIDEO_CARDS global variable in <code>/etc/make.conf</code> to the value in the following table appropriate for the AMD/ATI graphics hardware.
+
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 <code>lspci</code> does not provide you with something like this, and instead contains intel or nvidia, read about installing drivers for those elsewhere on the wiki.
* '''NEED TABLE''': available drivers, hardware gen, required VIDEO_CARDS variable
+
Open source drivers:
+
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
VIDEO_CARDS="radeon"
+
}}
+
  
Closed source drivers:
+
=== Preparing the kernel ===
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
Now that you know you have an AMD graphics card, you can prepare the kernel for <code>xf86-video-ati</code>. 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.:
VIDEO_CARDS="fglrx"
+
{{kernelop|title= |desc=
}}
+
Processor type and features --->
 +
    [*] MTRR (Memory Type Range Register) support
  
* custom kernel menuconfig settings
+
Device Drivers --->
 
+
    Graphics support --->
=== Nvidia ===
+
        (If you have an AGP-based graphics card, enable these options)
Users can choose between Open (nouveau) and Closed-Source (nvidia) video drivers. Add or Edit the VIDEO_CARDS global variable in /etc/portage/make.conf to the value in the following table appropriate for the Nvidia graphics hardware.
+
        <*> /dev/agpgart (AGP Support) --->
* '''NEED TABLE''': nouveau + nvidia-drivers versions, hardware gen, required VIDEO_CARDS variable
+
            <*> AMD Opteron/Athlon64 on-CPU GART support
Open source drivers:
+
        Direct Rendering Manager --->
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
            <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ----
VIDEO_CARDS="nouveau"
+
            <*> ATI Radeon
 +
                [*] Enable userspace modesetting on radeon
 +
        Frame buffer Devices --->
 +
            < > ATI Radon display support
 
}}
 
}}
Closed source [[Package:NVIDIA_Linux_Display_Drivers | drivers]]:
+
If you have a graphics cards with HDMI ports that you wish to use for audio, some additional configuration of the kernel is required:
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
{{kernelop|title= |desc=
VIDEO_CARDS="nvidia"
+
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
 
}}
 
}}
* custom kernel menuconfig settings
 
different settings for nouveau and nvidia
 
 
=== Other ===
 
==== Multiple Cards (Hybrid Graphics) ====
 
recommended make.conf VIDEO_CARDS
 
Hybrid intel/ati:
 
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
 
VIDEO_CARDS="fglrx intel"
 
}}
 
 
==== Virtual Machine Guests ====
 
(details?)
 
These settings are used by Parallels VM's and presumably others
 
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
 
VIDEO_CARDS="vesa vga"
 
}}
 
 
==== Raspberry Pi ====
 
(details?)
 
 
== Install ==
 
once your video cards variable is set in make.conf merge changes into your system
 
 
<console>###i## emerge -avuND world</console>
 
 
eselect profile?
 
 
==Configure X.org==
 
===Intel===
 
?
 
===Nvidia===
 
nvidia-xconfig, etc.
 
 
===AMD/ATI===
 
aticonfig, etc.
 
<console># ##i##aticonfig --initial --input=/etc/X11/xorg.conf</console>
 
  
==Configure framebuffer==
+
=== Getting the required firmware ===
What to put in boot.conf etc. Assumes that the kernel is correctly configured.
+
Many newer AMD GPU's require that you install firmware for them to function. Install the package <code>radeon-ucode</code> (Radeon microcode) for this function:
===Intel===
+
<console>
?
+
###i## emerge radeon-ucode
===Nvidia===
+
</console>
* settings for nouveau
+
* settings for nvidia-drivers
+
* How to use sys-apps/v86d
+
+
===AMD/ATI===
+
* settings for fglxr
+
* settings for radeon, etc.
+
  
==Finalise and test==
+
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:
* eselect opengl
+
{{note|change the number of card eselected to match the card of your system}}
+
<console>###i## eselect opengl list
+
###i## eselect opengl set 1</console>
+
* eselect opencl
+
{{note|some setups can make use of opencl}}
+
<console>###i##eselect opencl list
+
###i##eselect opencl set 1</console>
+
* reboot/test process
+
  
==Tips and Tricks==
+
<console>
 +
# ##i##emerge linux-firmware
 +
</console>
  
===compressed video playback===
 
  
* VDPAU, VA-API
 
* how to set up mplayer, etc.
 
  
==Troubleshooting==
+
=== Installing the firmware into the kernel ===
* what to do if only a blank screen
+
{{SectionNeedsUpdates}}
* nvidia-drivers users updating media-libs/mesa
+
{{EbuildFooter}}

Revision as of 05:47, November 25, 2014

x11-drivers/xf86-video-ati


Source Repository:Gentoo Portage Tree
Homepage

Summary: Open source drivers for AMD video cards.

Use Flags

glamor
Enable Glamor OpenGL 2D acceleration

Radeon Video Drivers

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:

# 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, read about installing drivers for those elsewhere on the wiki.

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
                [*] Enable userspace modesetting on 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:

# 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:

# emerge linux-firmware


Installing the firmware into the kernel

Important

This section is in need of updates.