Difference between pages "Video" and "Package:NVIDIA Linux Display Drivers"

(Difference between pages)
m (clean up a bit to drobbins's specifications, alphabetize a bit, left some xorg config stuff as its not in other pages, add framebuffer specific to other.)
 
m (note use of vesa is also acceptable, add console for nvidia-xconfig so the command can be pulled out of Video)
 
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=NVIDIA accelerated graphics driver
 +
|CatPkg=x11-drivers/nvidia-drivers
 +
|Repository=Funtoo Overlay
 +
|Overlay=Funtoo
 +
}}
 +
== Introduction ==
 +
NVIDIA have proprietary graphics drivers for Linux under binary blob. The alternative open source driver is {{Package|x11-drivers/xf86-video-nouveau}}.
  
{{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 <code>eselect opengl</code> 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.}}
+
== Preparing to Install ==
 +
=== Hardware compatibility and driver versions ===
 +
Currently, there are five versions of meta NVIDIA Linux drivers, each of which supports a specific group of GPUs. To check the type of driver that is related to your video card, check out the official page of the NVIDIA [http://www.nvidia.com/object/IO_32667.html complete list of supported GPUs].
  
== Video Drivers ==
+
If you have identified as your driver version 337.25, for example, you need the mask(s) driver(s) latest(s) to which you want to install.
  
First determine which video card you have and which driver it requires.
+
<console>
 +
###i## echo “>x11-drivers/nvidia-drivers-340” >> /etc/portage/package.mask
 +
</console>
  
<console>###i## lspci -nn | grep -i vga</console>
+
=== The required kernel options ===
  
to see what your system is using:
+
{{kernelop|desc=
<console>###i## lspci -k</console>
+
[*] Enable loadable module support
 
+
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>.  For more granular details including kernel configurations, frame buffer settings, and xorg configurations: see specific package page links.
+
 
+
=== 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.
+
 
+
==== Cards ====
+
* '''NEED TABLE''': available drivers, hardware gen, required VIDEO_CARDS variable
+
 
+
==== {{package|x11-drivers/xf86-video-ati}} ====
+
Open source drivers:
+
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
VIDEO_CARDS="radeon"
+
 
}}
 
}}
 
+
{{kernelop|desc=
==== {{Package|x11-drivers/ati-drivers}} ====
+
[*] MTRR (Memory Type Range Register) support
Closed source drivers:
+
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
VIDEO_CARDS="fglrx"
+
 
}}
 
}}
 
+
To we made a successful compilation of the legacy NVIDIA driver, we set before the removal of the native framebuffer drivers into the kernel in order to avoid conflicts for x86 and AMD64 processors, in this case.
=== Intel ===
+
{{kernelop|desc=
==== Cards ====
+
Device Drivers --->
* '''NEED TABLE''': available drivers, hardware gen, VIDEO_CARDS variable
+
      Graphics support --->
 
+
            <*> Support for frame buffer devices --->
==== gen 1&2 ====
+
                  <> NVIDIA Framebuffer Support
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
                  <> NVIDIA Riva support
VIDEO_CARDS="intel"
+
 
}}
 
}}
  
==== gen 3 ====
+
{{tip|An alternative is to [[uvesafb|uvesafb]] framebuffer, or vesa framebuffer which can be installed in parallel with nvidia-drivers }}
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
VIDEO_CARDS="intel i915"
+
}}
+
  
==== gen 4+ ====
+
== Installation ==
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
VIDEO_CARDS="intel i965"
+
}}
+
  
 
+
Upgrade and/or configure <code>VIDEO_CARDS</code> variable to <code>nvidia</code> in <code>/etc/[[make.conf]]</code>. This will serve to while you are installing the Server X, the correct version of nvidia-drivers to be provided for you.
=== Nvidia ===
+
<console>
Users can choose between Open (nouveau) and Closed-Source {{package|x11-drivers/nvidia-drivers}} video drivers. Open nouveau drivers are preferred as many kernels conflict with closed-source drivers.
+
# ##i##nano /etc/make.conf
 
+
==== Cards ====
+
* '''NEED TABLE''': nouveau + nvidia-drivers versions, hardware gen, required VIDEO_CARDS variable
+
 
+
==== Nouveau ====
+
Open source drivers:
+
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
VIDEO_CARDS="nouveau"
+
}}
+
 
+
==== {{Package|x11-drivers/nvidia-drivers}}====
+
Closed source drivers:
+
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
 
VIDEO_CARDS="nvidia"
 
VIDEO_CARDS="nvidia"
}}
+
</console>
  
see [[Uvesafb]] for framebuffering.
+
{{note|Installing to the driver with the option in '''gtk''' use flags will make it installed the <code>media-video/nvidia-settings</code> which is a graphical tool for monitoring and various settings for your video card}}
  
=== Other ===
+
=== Emerging the package ===
==== Multiple Cards (Hybrid Graphics) ====
+
<console>
recommended [[make.conf]] VIDEO_CARDS
+
###i## emerge x11-drivers/nvidia-drives
Hybrid intel/ati:
+
</console>
{{file|name=/etc/portage/make.conf|lang=|desc=set video global variable|body=
+
VIDEO_CARDS="fglrx intel"
+
}}
+
  
==== Virtual Machine Guests ====
+
When the installation is complete run '''modprobe''' nvidia module to read kernel memory.
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"
+
}}
+
  
==== Framebuffer Specific ====
+
<console>
=====[[Uvesafb]]=====
+
###i## lsmod | grep nvidia
 +
</console>
 +
If an update before remove the old module
 +
<console>
 +
###i## rmmod nvidia
 +
###i## modprobe nvidia
 +
</console>
  
====={{package|x11-drivers/xf86-video-vesa}}=====
+
=== Testing your Video Card ===
 +
To test your video card run the glxinfo program, which is part of the mesa-progs package. This will check if direct rendering is enabled.
 +
<console>
 +
$ ##i##glxinfo | grep direct
 +
$ ##i##  direct rendering: yes
 +
</console>
  
==== Raspberry Pi ====
+
== Configuring ==
{{SectionNeedsUpdates}}
+
=== Loading at boot ===
 +
To automate the loading of the module when you boot your system, add '''nvidia''' in modules variable.
 +
<console>
 +
# ##i##nano /etc/conf.d/modules
 +
modules="nvidia"
 +
</console>
  
== Install ==
+
=== Integration with X Server ===
Once your video cards variables are set in [[make.conf]], and kernel configurations are arranged merge changes into your system:
+
When your X server is installed find, and there's <code>/etc/X11/xorg.conf</code> you can run the nvidia-xconfig which will set in xorg.conf to identify the video card among other possible configurations.
  
<console>###i## emerge -avuND world</console>
+
<console>###i## nvidia-xconfig</console>
  
{{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}}
+
{{file|name=/etc/X11/xorg.conf|body=
 
+
Section "Device"
==Configure X.org==
+
    Identifier    "nvidia"
===Nvidia===
+
    Driver        "nvidia"
nvidia-xconfig, etc.
+
    VendorName    "NVIDIA Corporation"
 
+
    BoardName      "[Name] [Model]"
===AMD/ATI===
+
EndSection
aticonfig, etc.
+
}}
<console># ##i##aticonfig --initial --input=/etc/X11/xorg.conf</console>
+
 
+
==Finalize and test==
+
==== 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 ====
+
=== Enabling NVIDIA Support ===
{{note|some setups can make use of opencl}}
+
Include the use flag in '''nvidia''' in <code>/etc/[[make.conf]]</code> so due to applications that make use of this advantage may withdraw.
<console>###i##eselect opencl list
+
<console>
###i##eselect opencl set 1</console>
+
# ##i##nano /etc/make.conf
* reboot/test process
+
USE="nvidia"
 +
</console>
  
==Troubleshooting==
+
=== Enabling OpenGL/OpenCL ===
* what to do if only a blank screen
+
As a requirement, make sure that the Xorg server is not in use during this change. To enable OpenGL and OpenCL.
 +
<console>
 +
###i## eselect opengl set nvidia
 +
###i## eselect opencl set nvidia
 +
</console>
  
Category:Video Cards wrap me with braces when im snazzy
+
[[Category:Video Cards]]
Category:First Steps wrap me with braces when im snazzy
+
[[Category:First Steps]]
 +
{{EbuildFooter}}

Latest revision as of 08:53, November 25, 2014

x11-drivers/nvidia-drivers


Source Repository:Gentoo Portage Tree

Summary: NVIDIA accelerated graphics driver

NVIDIA Linux Display Drivers

Introduction

NVIDIA have proprietary graphics drivers for Linux under binary blob. The alternative open source driver is Nouveau Video Drivers (Open Source).

Preparing to Install

Hardware compatibility and driver versions

Currently, there are five versions of meta NVIDIA Linux drivers, each of which supports a specific group of GPUs. To check the type of driver that is related to your video card, check out the official page of the NVIDIA complete list of supported GPUs.

If you have identified as your driver version 337.25, for example, you need the mask(s) driver(s) latest(s) to which you want to install.

# echo “>x11-drivers/nvidia-drivers-340” >> /etc/portage/package.mask

The required kernel options

[*] Enable loadable module support
[*] MTRR (Memory Type Range Register) support

To we made a successful compilation of the legacy NVIDIA driver, we set before the removal of the native framebuffer drivers into the kernel in order to avoid conflicts for x86 and AMD64 processors, in this case.

Device Drivers --->
      Graphics support ---> 
            <*> Support for frame buffer devices --->
                  <> NVIDIA Framebuffer Support
                  <> NVIDIA Riva support

Tip

An alternative is to uvesafb framebuffer, or vesa framebuffer which can be installed in parallel with nvidia-drivers

Installation

Upgrade and/or configure VIDEO_CARDS variable to nvidia in /etc/make.conf. This will serve to while you are installing the Server X, the correct version of nvidia-drivers to be provided for you.

# nano /etc/make.conf
VIDEO_CARDS="nvidia"

Note

Installing to the driver with the option in gtk use flags will make it installed the media-video/nvidia-settings which is a graphical tool for monitoring and various settings for your video card

Emerging the package

# emerge x11-drivers/nvidia-drives

When the installation is complete run modprobe nvidia module to read kernel memory.

# lsmod | grep nvidia

If an update before remove the old module

# rmmod nvidia
# modprobe nvidia

Testing your Video Card

To test your video card run the glxinfo program, which is part of the mesa-progs package. This will check if direct rendering is enabled.

$ glxinfo | grep direct
$   direct rendering: yes

Configuring

Loading at boot

To automate the loading of the module when you boot your system, add nvidia in modules variable.

# nano /etc/conf.d/modules
modules="nvidia"

Integration with X Server

When your X server is installed find, and there's /etc/X11/xorg.conf you can run the nvidia-xconfig which will set in xorg.conf to identify the video card among other possible configurations.

# nvidia-xconfig
/etc/X11/xorg.conf
Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "[Name] [Model]"
EndSection

Enabling NVIDIA Support

Include the use flag in nvidia in /etc/make.conf so due to applications that make use of this advantage may withdraw.

# nano /etc/make.conf
USE="nvidia"

Enabling OpenGL/OpenCL

As a requirement, make sure that the Xorg server is not in use during this change. To enable OpenGL and OpenCL.

# eselect opengl set nvidia
# eselect opencl set nvidia