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.'''
<console>
###i## emerge firefox thunderbird
</console>


{{kernelop|desc=
'''Install package. Ask for confirmation before performing any changes. Show verbose output.'''
[*] Enable loadable module support
<console>
}}
###i## emerge -av firefox
{{kernelop|desc=
###i## emerge --ask firefox
[*] MTRR (Memory Type Range Register) support
</console>
}}
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
}}


{{fancytip| An alternative is to [[uvesafb|uvesafb]] framebuffer, which can be installed in parallel with nvidia-drivers }}
=== Remove packages ===
 
'''Remove package.'''
== Installation ==
<console>
 
###i## emerge -C firefox
Upgrade and/or configure VIDEO_CARDS="nvidia" variable in /etc/make.conf ##bl##. This will serve to while you are installing the Server X, the correct version of nvidia-drivers to be provided for you.
###i## emerge --unmerge firefox
 
</console>
{{fancynote| 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 ===
'''Remove package. Ask for confirmation before performing any changes.'''
<console>
<console>
###i## emerge x11-drivers/nvidia-drives
###i## emerge -aC firefox
</console>
</console>


When the installation is complete run '''modprobe''' nvidia module to read kernel memory.
'''Remove orphaned packages. Ask for confirmation before performing any changes.'''
 
<console>
<console>
###i## lsmod | grep nvidia
###i## emerge -a --depclean
</console>
</console>
If an update before remove the old module
 
=== Update packages ===
'''Update all packages.'''
<console>
<console>
###i## rmmod nvidia
###i## emerge -uDN @world
###i## modprobe nvidia
</console>
</console>


=== Testing your Video Card ===
'''Update all packages. Ask for confirmation before performing any changes. Show verbose output.'''
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 -uavDN @world
$ ##i## direct rendering: yes
</console>
</console>


== Configuring ==
'''When upgrading to a new version of perl, it is necessary to also run <code>perl-cleaner</code> afterwards:'''
=== Loading at boot ===
To automate the loading of the module when you boot your system, add '''nvidia''' in /etc/conf.d/modules.
 
=== Integration with X Server ===
When your X server is installed, the existing logo /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.
{{file|name=/etc/X11/xorg.conf|body=
Section "Device"
    Identifier    "nvidia"
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
    BoardName      "[Nome] [Modelo]"
EndSection
}}
 
=== Enabling support nVidia ===
Include the use flag in '''nvidia''' /etc/portage/make.conf so due to applications that make use of this advantage may withdraw.
 
=== Enabling OpenGL/OpenCL ===
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.