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

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
 
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
{{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 ===
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.
 
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.
* '''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"
}}
}}
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.


Closed source drivers:
== Preparation ==
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
=== Check to see if your card is an AMD card ===
VIDEO_CARDS="fglrx"
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>


* custom kernel menuconfig settings
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.


=== Nvidia ===
=== Preparing the kernel ===
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.
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.:
* '''NEED TABLE''': nouveau + nvidia-drivers versions, hardware gen, required VIDEO_CARDS variable
{{kernelop|title= |desc=
Open source drivers:
Processor type and features --->
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
    [*] MTRR (Memory Type Range Register) support
VIDEO_CARDS="nouveau"
}}
Closed source [[Package:NVIDIA_Linux_Display_Drivers | drivers]]:
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
VIDEO_CARDS="nvidia"
}}
* custom kernel menuconfig settings
different settings for nouveau and nvidia


=== Other ===
Device Drivers --->
==== Multiple Cards (Hybrid Graphics) ====
    Graphics support --->
recommended make.conf VIDEO_CARDS
        (If you have an AGP-based graphics card, enable these options)
Hybrid intel/ati:
        <*> /dev/agpgart (AGP Support) --->
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
            <*> AMD Opteron/Athlon64 on-CPU GART support
VIDEO_CARDS="fglrx intel"
        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:
==== Virtual Machine Guests ====
{{kernelop|title= |desc=
(details?)
Device Drivers --->
These settings are used by Parallels VM's and presumably others
    <*> Sound card support --->
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
        <*> Advanced Linux Sound Architecture --->
VIDEO_CARDS="vesa vga"
            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
}}
}}


==== Raspberry Pi ====
=== Getting the required firmware ===
(details?)
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:
 
<console>
== Install ==
###i## emerge radeon-ucode
once your video cards variable is set in make.conf merge changes into your system
</console>
 
<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==
What to put in boot.conf etc. Assumes that the kernel is correctly configured.
===Intel===
?
===Nvidia===
* 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

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

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.