Video

Revision as of 19:58, November 3, 2014 by Jpenguin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Video is set up by setting global variables in make.conf & portage takes care of the rest.

Determine Hardware

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

# lspci -k

Intel

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"

Ati

Open source drivers:

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

Closed source drivers:

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

Hybrid

Hybrid intel/ati:

/etc/portage/make.conf: set video global variable
VIDEO_CARDS="fglrx intel"
# aticonfig --initial --input=/etc/X11/xorg.conf

Nvidia

Open source drivers:

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

Closed source drivers:

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


Other

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

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

Install

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

# emerge -avuND world

Select Driver

Note

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

# eselect opengl list
# eselect opengl set 1

Note

some setups can make use of opencl

#eselect opencl list
#eselect opencl set 1