Difference between pages "Package:NVIDIA Linux Display Drivers" and "Emerge/pt-br"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
{{Ebuild
== Principiando com o emerge ==
|Summary=NVIDIA accelerated graphics driver
Emerge é o front-end para o gerenciador de Portage do funtoo. Com o emerge é fácil instalar, atualizar ou remover pacotes.
|CatPkg=x11-drivers/nvidia-drivers
|Maintainer=Ricardo Bastos
|Repository=Funtoo Overlay
|Overlay=Funtoo
}}
== Introduction ==
NVIDIA have proprietary graphics drivers for Linux under binary blob. The alternative open source driver is nouveau.


== Preparing to Install ==
=== Atualizar a Base de Dados de Pacote ===
=== Hardware compatibility and driver versions ===
'''Sync local package database. This will update your local Portage tree with the latest Funtoo ebuilds.'''
Currently there are five meta versions of 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 the link on this page of the official NVIDIA:
<console>
###i## emerge --sync
</console>


[http://www.nvidia.com/object/IO_32667.html www.nvidia.com/object/IO_32667.html]
=== Search packages ===
'''Search packages by name.'''
<console>
###i## emerge -s firefox
###i## emerge --search firefox
</console>


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.
'''Search packages by description.'''
<console>
###i## emerge -S web browser
###i## emerge --searchdesc web browser
</console>


=== Install packages ===
'''Install package.'''
<console>
<console>
###i## echo “>x11-drivers/nvidia-drivers-340” >> /etc/portage/package.mask
###i## emerge firefox
</console>
</console>


=== The required kernel options ===
'''Install multiple packages.'''
 
{{kernelop|desc=
[*] Enable loadable module support
}}
{{kernelop|desc=
[*] 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.
{{kernelop|desc=
Device Drivers --->
      Graphics support --->
            <*> Support for frame buffer devices --->
                  <> NVIDIA Framebuffer Support
                  <> NVIDIA Riva support
}}
 
{{tip|An alternative is to [[uvesafb|uvesafb]] framebuffer, which can be installed in parallel with nvidia-drivers }}
 
== Installation ==
 
Upgrade and/or configure <tt>VIDEO_CARDS</tt>  variable in <tt>/etc/make.conf</tt>. This will serve to while you are installing the Server X, the correct version of nvidia-drivers to be provided for you.
<console>
<console>
# ##i##nano /etc/make.conf
###i## emerge firefox thunderbird
VIDEO_CARDS="nvidia"
</console>
</console>


{{note|Installing to the driver with the option in '''gtk''' use flags will make it installed the <tt>media-video/nvidia-settings</tt> which is a graphical tool for monitoring and various settings for your video card}}
'''Install package. Ask for confirmation before performing any changes. Show verbose output.'''
 
=== Emerging the package ===
<console>
<console>
###i## emerge x11-drivers/nvidia-drives
###i## emerge -av firefox
###i## emerge --ask firefox
</console>
</console>


When the installation is complete run '''modprobe''' nvidia module to read kernel memory.
=== Remove packages ===
 
'''Remove package.'''
<console>
<console>
###i## lsmod | grep nvidia
###i## emerge -C firefox
###i## emerge --unmerge firefox
</console>
</console>
If an update before remove the old module
 
'''Remove package. Ask for confirmation before performing any changes.'''
<console>
<console>
###i## rmmod nvidia
###i## emerge -aC firefox
###i## modprobe nvidia
</console>
</console>


=== Testing your Video Card ===
'''Remove orphaned packages. Ask for confirmation before performing any changes.'''
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>
<console>
$ ##i##glxinfo | grep direct
###i## emerge -a --depclean
$ ##i## direct rendering: yes
</console>
</console>


== Configuring ==
=== Update packages ===
=== Loading at boot ===
'''Update all packages.'''
To automate the loading of the module when you boot your system, add '''nvidia''' in modules variable.
<console>
<console>
# ##i##nano /etc/conf.d/modules
###i## emerge -uDN @world
modules="nvidia"
</console>
</console>


=== Integration with X Server ===
'''Update all packages. Ask for confirmation before performing any changes. Show verbose output.'''
When your X server is installed find, and there's <tt>/etc/X11/xorg.conf</tt> you can run the nvidia-xconfig which will set in xorg.conf to identify the video card among other possible configurations.
{{file|name=/etc/X11/xorg.conf|body=
Section "Device"
    Identifier    "nvidia"
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
    BoardName      "[Name] [Model]"
EndSection
}}
 
=== Enabling NVIDIA Support ===
Include the use flag in '''nvidia''' in <tt>/etc/make.conf</tt> so due to applications that make use of this advantage may withdraw.
<console>
<console>
# ##i##nano /etc/make.conf
###i## emerge -uavDN @world
USE="nvidia"
</console>
</console>


=== Enabling OpenGL/OpenCL ===
'''When upgrading to a new version of perl, it is necessary to also run <code>perl-cleaner</code> afterwards:'''
As a requirement, make sure that the Xorg server is not in use during this change. To enable OpenGL and OpenCL.
<console>
<console>
###i## eselect opengl set nvidia
###i## emerge -auvDN @world
###i## eselect opencl set nvidia
###i## perl-cleaner --all
</console>
</console>


[[Category:Video Cards]]
{{Note|This requirement of running <code>perl-cleaner</code> will eventually go away, once all perl-related ebuilds are updated to EAPI 5. EAPI 5 is a version of the Ebuild specification that supports smart updating of perl-related bits.}}
[[Category:First Steps]]
{{EbuildFooter}}

Revision as of 16:43, February 7, 2015

Principiando com o emerge

Emerge é o front-end para o gerenciador de Portage do funtoo. Com o emerge é fácil instalar, atualizar ou remover pacotes.

Atualizar a Base de Dados de Pacote

Sync local package database. This will update your local Portage tree with the latest Funtoo ebuilds.

root # emerge --sync

Search packages

Search packages by name.

root # emerge -s firefox
root # emerge --search firefox

Search packages by description.

root # emerge -S web browser
root # emerge --searchdesc web browser

Install packages

Install package.

root # emerge firefox

Install multiple packages.

root # emerge firefox thunderbird

Install package. Ask for confirmation before performing any changes. Show verbose output.

root # emerge -av firefox
root # emerge --ask firefox

Remove packages

Remove package.

root # emerge -C firefox
root # emerge --unmerge firefox

Remove package. Ask for confirmation before performing any changes.

root # emerge -aC firefox

Remove orphaned packages. Ask for confirmation before performing any changes.

root # emerge -a --depclean

Update packages

Update all packages.

root # emerge -uDN @world

Update all packages. Ask for confirmation before performing any changes. Show verbose output.

root # emerge -uavDN @world

When upgrading to a new version of perl, it is necessary to also run perl-cleaner afterwards:

root # emerge -auvDN @world
root # perl-cleaner --all
   Note

This requirement of running perl-cleaner will eventually go away, once all perl-related ebuilds are updated to EAPI 5. EAPI 5 is a version of the Ebuild specification that supports smart updating of perl-related bits.