Note

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Video"

From Funtoo
Jump to navigation Jump to search
m (purdy it up)
Line 5: Line 5:
== Video Drivers ==
== Video Drivers ==


first determine which video card you have and which driver it requires.
First determine which video card you have and which driver it requires.


<console>###i## lspci -k</console>
<console>###i## lspci -k</console>
Once hardware is determined use the following sections to add or edit the <code>VIDEO_CARDS</code> global variable in <code>/etc/portage/make.conf</code>.


=== Intel ===
=== 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 KERNEL CONFIGS'''
 
==== Cards ====
* '''NEED TABLE''': available drivers, hardware gen, VIDEO_CARDS variable
* '''NEED TABLE''': available drivers, hardware gen, VIDEO_CARDS variable
gen 1&2:
 
==== gen 1&2 ====
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
VIDEO_CARDS="intel"
VIDEO_CARDS="intel"
}}
}}
gen 3
 
==== gen 3 ====
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
VIDEO_CARDS="intel i915"
VIDEO_CARDS="intel i915"
}}
}}
gen 4+
 
==== gen 4+ ====
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
VIDEO_CARDS="intel i965"
VIDEO_CARDS="intel i965"
}}
}}
* custom kernel menuconfig settings


=== AMD/ATI ===
=== 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.
Users can choose between free (radeon) 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.
* '''NEED KERNEL CONFIGS'''


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.
==== Cards ====
* '''NEED TABLE''': available drivers, hardware gen, required VIDEO_CARDS variable
* '''NEED TABLE''': available drivers, hardware gen, required VIDEO_CARDS variable
==== {{package|x11-drivers/xf86-video-ati}} ====
Open source drivers:
Open source drivers:
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
Line 36: Line 45:
}}
}}


==== {{Package|x11-drivers/ati-drivers}} ====
Closed source drivers:
Closed source drivers:
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
VIDEO_CARDS="fglrx"
VIDEO_CARDS="fglrx"
}}
}}
* custom kernel menuconfig settings


=== Nvidia ===
=== Nvidia ===
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.
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.
* '''NEED KERNEL CONFIGS'''
==== Cards ====
* '''NEED TABLE''': nouveau + nvidia-drivers versions, hardware gen, required VIDEO_CARDS variable
* '''NEED TABLE''': nouveau + nvidia-drivers versions, hardware gen, required VIDEO_CARDS variable
==== Nouveau ====
Open source drivers:
Open source drivers:
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
VIDEO_CARDS="nouveau"
VIDEO_CARDS="nouveau"
}}
}}
Closed source [[Package:NVIDIA_Linux_Display_Drivers | drivers]]:
 
==== {{Package|x11-drivers/nvidia-drivers}}====
Closed source drivers:
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
VIDEO_CARDS="nvidia"
VIDEO_CARDS="nvidia"
}}
}}
* custom kernel menuconfig settings
different settings for nouveau and nvidia


=== Other ===
=== Other ===
==== Multiple Cards (Hybrid Graphics) ====
==== Multiple Cards (Hybrid Graphics) ====
recommended make.conf VIDEO_CARDS
recommended [[make.conf]] VIDEO_CARDS
Hybrid intel/ati:
Hybrid intel/ati:
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
Line 66: Line 79:


==== Virtual Machine Guests ====
==== Virtual Machine Guests ====
(details?)
These settings are used by Parallels VM's and presumably others
These settings are used by Parallels VM's and presumably others
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
Line 73: Line 85:


==== Raspberry Pi ====
==== Raspberry Pi ====
(details?)
{{SectionNeedsUpdates}}


== Install ==
== Install ==
once your video cards variable is set in make.conf merge changes into your system
once your video cards variable is set in [[make.conf]] merge changes into your system


<console>###i## emerge -avuND world</console>
<console>###i## emerge -avuND world</console>


eselect profile?
{{note|we should change world to the specific package that pulls in all the other video stuff so if this page is ran on an old stale system it doesn't pull in 50 bazillion packages}}
 


==Configure X.org==
==Configure X.org==
===Intel===
===Intel===
?
?
===Nvidia===
===Nvidia===
nvidia-xconfig, etc.
nvidia-xconfig, etc.
Line 106: Line 121:


==Finalize and test==
==Finalize and test==
* eselect opengl
 
==== eselect opengl ====
{{note|change the number of card eselected to match the card of your system}}
{{note|change the number of card eselected to match the card of your system}}
<console>###i## eselect opengl list
<console>###i## eselect opengl list
###i## eselect opengl set 1</console>
###i## eselect opengl set 1</console>
* eselect opencl
 
==== eselect opencl ====
{{note|some setups can make use of opencl}}
{{note|some setups can make use of opencl}}
<console>###i##eselect opencl list
<console>###i##eselect opencl list
###i##eselect opencl set 1</console>
###i##eselect opencl set 1</console>
* test
* reboot/test process
 
==Tips and Tricks==
 
===compressed video playback===
 
* VDPAU, VA-API
* how to set up mplayer, etc.


==Troubleshooting==
==Troubleshooting==
* e.g. what to do if only a blank screen
* what to do if only a blank screen
* nvidia-drivers users updating media-libs/mesa
 
Category:Video Cards wrap me with braces when im snazzy
Category:First Steps wrap me with braces when im snazzy

Revision as of 06:13, November 25, 2014

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.

   Important

Editors: OK, I've decided to change the plans for this page. This is going to be a page similar to Subarches. The idea is to help people to identify their hardware and guide them toward the correct driver for their chipset. The focus will be primarily on defining the types of hardware that are supported, what products they appear in, and how to know if you have this hardware, and also give people good general overview of options available to them (free vs. proprietary, etc.) Other important topics that apply to all drivers, like eselect opengl should be covered as well. This will then serve as the meta-page for Video support, with individual ebuild pages holding the details for each driver.

Video Drivers

First determine which video card you have and which driver it requires.

root # lspci -k

Once hardware is determined use the following sections to add or edit the VIDEO_CARDS global variable in /etc/portage/make.conf.

Intel

  • NEED KERNEL CONFIGS

Cards

  • NEED TABLE: available drivers, hardware gen, VIDEO_CARDS variable

gen 1&2

   /etc/portage/make.conf - set video global variable
VIDEO_CARDS="intel"

gen 3

   /etc/portage/make.conf - set video global variable
VIDEO_CARDS="intel i915"

gen 4+

   /etc/portage/make.conf - set video global variable
VIDEO_CARDS="intel i965"

AMD/ATI

Users can choose between free (radeon) and proprietary (x11-drivers/ati-drivers) video drivers. The free drivers are recommended as the proprietary drivers are not currently maintained very well by AMD.

  • NEED KERNEL CONFIGS

Cards

  • NEED TABLE: available drivers, hardware gen, required VIDEO_CARDS variable

x11-drivers/xf86-video-ati

Open source drivers:

   /etc/portage/make.conf - set video global variable
VIDEO_CARDS="radeon"

x11-drivers/ati-drivers

Closed source drivers:

   /etc/portage/make.conf - set video global variable
VIDEO_CARDS="fglrx"

Nvidia

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.

  • NEED KERNEL CONFIGS

Cards

  • NEED TABLE: nouveau + nvidia-drivers versions, hardware gen, required VIDEO_CARDS variable

Nouveau

Open source drivers:

   /etc/portage/make.conf - set video global variable
VIDEO_CARDS="nouveau"

x11-drivers/nvidia-drivers

Closed source drivers:

   /etc/portage/make.conf - set video global variable
VIDEO_CARDS="nvidia"

Other

Multiple Cards (Hybrid Graphics)

recommended make.conf VIDEO_CARDS Hybrid intel/ati:

   /etc/portage/make.conf - set video global variable
VIDEO_CARDS="fglrx intel"

Virtual Machine Guests

These settings are used by Parallels VM's and presumably others

   /etc/portage/make.conf - set video global variable
VIDEO_CARDS="vesa vga"

Raspberry Pi

   Important

This section is in need of updates.


Install

once your video cards variable is set in make.conf merge changes into your system

root # emerge -avuND world
   Note

we should change world to the specific package that pulls in all the other video stuff so if this page is ran on an old stale system it doesn't pull in 50 bazillion packages


Configure X.org

Intel

?

Nvidia

nvidia-xconfig, etc.

AMD/ATI

aticonfig, etc.

root # aticonfig --initial --input=/etc/X11/xorg.conf

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.

Finalize and test

eselect opengl

   Note

change the number of card eselected to match the card of your system

root # eselect opengl list
root # eselect opengl set 1

eselect opencl

   Note

some setups can make use of opencl

root #eselect opencl list
root #eselect opencl set 1
  • reboot/test process

Tips and Tricks

compressed video playback

  • VDPAU, VA-API
  • how to set up mplayer, etc.

Troubleshooting

  • what to do if only a blank screen
  • nvidia-drivers users updating media-libs/mesa

Category:Video Cards wrap me with braces when im snazzy Category:First Steps wrap me with braces when im snazzy