Difference between revisions of "Nvidia drivers"

From Redcore Linux Project Wiki
Jump to navigationJump to search
Line 1: Line 1:
While Redcore Linux defaults to the open source <strong>x11-drivers/nouveau</strong>, it does provide support for two versions of the proprietary graphics driver for NVIDIA graphic cards : <strong>x11-drivers/nvidia-drivers</strong> && <strong>x11-drivers/nvidia-drivers-legacy</strong>. Depending on the age of your card, you can install one or the other, as they cannot coexist on the same system.
While Redcore Linux Hardened defaults to the open source <strong>x11-drivers/nouveau</strong>, it does provide three versions of the proprietary graphics driver for NVIDIA graphic cards : <strong>x11-drivers/nvidia-drivers:515</strong>, <strong>x11-drivers/nvidia-drivers:470</strong> and <strong>x11-drivers/nvidia-drivers:390</strong> in its git repositories. Depending on the age of your card, you can install either of them, but only one at a time, as they cannot coexist on the same system. Some cards are supported by multiple drivers, so it is up to you if you want latest and greatest, or tried and tested.


=x11-drivers/nvidia-drivers=
=Driver support=


The <strong>x11-drivers/nvidia-drivers</strong> package supports the most recent cards, and it should be your first choice if you have such a card. A list with the supported cards can be found at [https://www.nvidia.co.uk/Download/driverResults.aspx/175958/en-uk https://www.nvidia.co.uk/Download/driverResults.aspx/175958/en-uk].
The <strong>x11-drivers/nvidia-drivers:515</strong> package supports the most recent cards, and you should use it if you have such a card. A list with the supported cards can be found at :
[https://www.nvidia.com/download/driverResults.aspx/191975 https://www.nvidia.com/download/driverResults.aspx/191975]
 
The <strong>x11-drivers/nvidia-drivers:470</strong> package supports recent cards and some older cards, and you should use it if you have such a card. A list with the supported cards can be found at : [https://www.nvidia.co.uk/Download/driverResults.aspx/175958/en-uk https://www.nvidia.co.uk/Download/driverResults.aspx/175958/en-uk].
 
The <strong>x11-drivers/nvidia-drivers:390</strong> package supports older cards, and you should use it if you have such a card. A list with the supported cards can be found at : [https://www.nvidia.co.uk/Download/driverResults.aspx/173291/en-uk https://www.nvidia.co.uk/Download/driverResults.aspx/173291/en-uk]


==Installation==
==Installation==
Line 9: Line 14:
Using [[Sisyphus|sisyphus]] (cli) - recommended:
Using [[Sisyphus|sisyphus]] (cli) - recommended:


  root # <strong>sisyphus install --ebuild nvidia-drivers</strong>
  shakuras ~ # <strong>sisyphus install --ebuild nvidia-drivers:515</strong>
   
   
  These are the binary packages that would be merged, in order:
  These are the binary packages that would be merged, in order:
Line 19: Line 24:
  These are the source packages that would be merged, in order:
  These are the source packages that would be merged, in order:
   
   
  acct-group/video-0-r1 sys-kernel/nvidia-drivers-dkms-460.67 x11-misc/nvidia-settings-460.67 x11-drivers/nvidia-drivers-460.67
  acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-515.65.01  gui-libs/egl-gbm-1.1.0  gui-libs/egl-wayland-1.1.11-r1 x11-drivers/nvidia-drivers-515.65.01 x11-misc/nvidia-settings-515.65.01
   
   
  Total: 4 source package(s)
  Total: 6 source package(s)
   
   
  Would you like to proceed? [y/N]
  Would you like to proceed? [y/N]  


Using [[Portage|portage]]:
  shakuras ~ # <strong>sisyphus install --ebuild nvidia-drivers:470</strong>
 
  root # <strong>emerge -av nvidia-drivers</strong>
These are the binary packages that would be merged, in order:
x11-libs/gdk-pixbuf-xlib-2.40.2
Total: 1 binary package(s)
   
   
  These are the packages that would be merged, in order:
  These are the source packages that would be merged, in order:
   
   
  Calculating dependencies            ... done! 
  acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-470.141.03-r2 x11-drivers/nvidia-drivers-470.141.03 x11-misc/nvidia-settings-470.141.03-r2
[ebuild  N    ] acct-group/video-0-r1::gentoo 0 KiB
[ebuild  N    ] sys-kernel/nvidia-drivers-dkms-460.67::redcore 173,528 KiB
[ebuild  N    ] x11-libs/gdk-pixbuf-xlib-2.40.2::gentoo USE="-gtk-doc" ABI_X86="32 (64) (-x32)" 53 KiB
[ebuild  N    ] x11-misc/nvidia-settings-460.67::redcore  1,205 KiB
[ebuild  N    ] x11-drivers/nvidia-drivers-460.67::redcore  USE="X acpi dkms (libglvnd) multilib tools wayland -compat" ABI_X86="32 (64) (-x32)" 0 KiB
   
   
  Total: 5 packages (5 new), Size of downloads: 174,784 KiB
  Total: 4 source package(s)
   
   
  Would you like to merge these packages? [Yes/No]
  Would you like to proceed? [y/N]
 
The installation process takes care of everything, so no further action is required, except rebooting the system so it uses the new drivers.
 
=x11-drivers/nvidia-drivers-legacy=
 
The <strong>x11-drivers/nvidia-drivers-legacy</strong> package supports older cards, and you should use it if you have such a card. A list with the supported cards can be found at [https://www.nvidia.co.uk/Download/driverResults.aspx/173291/en-uk https://www.nvidia.co.uk/Download/driverResults.aspx/173291/en-uk]
 
==Installation==


Using [[Sisyphus|sisyphus]] (cli) - recommended:
  shakuras ~ # <strong>sisyphus install --ebuild nvidia-drivers:390</strong>
 
  root # <strong>sisyphus install --ebuild nvidia-drivers-legacy</strong>
   
   
  These are the binary packages that would be merged, in order:
  These are the binary packages that would be merged, in order:
Line 62: Line 56:
  These are the source packages that would be merged, in order:
  These are the source packages that would be merged, in order:
   
   
  sys-kernel/nvidia-drivers-legacy-dkms-390.141-r1 x11-drivers/nvidia-drivers-legacy-390.141-r1 x11-misc/nvidia-settings-legacy-390.141
acct-user/nvpd-0 sys-kernel/nvidia-drivers-dkms-390.154 x11-drivers/nvidia-drivers-390.154 x11-misc/nvidia-settings-390.154
   
   
  Total: 3 source package(s)
  Total: 4 source package(s)
   
   
  Would you like to proceed? [y/N]
  Would you like to proceed? [y/N]  


Using [[Portage|portage]]:


root # <strong>emerge -av nvidia-drivers-legacy</strong>
As you can see, different versions of the driver can be installed by specifying the package [https://devmanual.gentoo.org/general-concepts/slotting/index.html SLOT]. The installation process takes care of everything, so no further action is required, except rebooting the system so it uses the new drivers.
These are the packages that would be merged, in order:
Calculating dependencies                ... done!
[ebuild  N    ] sys-kernel/nvidia-drivers-legacy-dkms-390.141-r1::redcore  83,331 KiB
[ebuild  N    ] x11-libs/gdk-pixbuf-xlib-2.40.2::gentoo  USE="-gtk-doc" ABI_X86="32 (64) (-x32)" 53 KiB
[ebuild  N    ] x11-drivers/nvidia-drivers-legacy-390.141-r1::redcore  USE="X acpi dkms (libglvnd) multilib tools wayland -compat" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild  N    ] x11-misc/nvidia-settings-legacy-390.141::redcore  1,267 KiB
Total: 4 packages (4 new), Size of downloads: 84,651 KiB
Would you like to merge these packages? [Yes/No]
 
The installation process takes care of everything, so no further action is required, except rebooting the system so it uses the new drivers.


=x11-misc/nvidia-prime=
=Nvidia Prime=


PRIME is a technology used to manage hybrid graphics found on recent desktops and laptops (Optimus for NVIDIA, AMD Dynamic Switchable Graphics for Radeon). PRIME GPU offloading is an attempt to support muxless hybrid graphics in the Linux kernel. Redcore Linux supports PRIME for NVIDIA Optimus through <strong>x11-misc/nvidia-prime</strong> package, using proprietary <strong>x11-drivers/nvidia-drivers</strong> driver package. At the time off this article, AMD Dynamic Switchable Graphics is not easily supported, due to lack of hardware to implement and test.
PRIME is a technology used to manage hybrid graphics found on recent desktops and laptops (Optimus for NVIDIA, AMD Dynamic Switchable Graphics for Radeon). PRIME GPU offloading is an attempt to support muxless hybrid graphics in the Linux kernel. Redcore Linux supports PRIME for NVIDIA Optimus through <strong>x11-misc/nvidia-prime</strong> package, using proprietary <strong>x11-drivers/nvidia-drivers:470</strong> and <strong>x11-drivers/nvidia-drivers:515</strong> driver packages. At the time off this article, AMD Dynamic Switchable Graphics is not easily supported, due to lack of hardware to implement and test.


==Installation==
==Installation==


PRIME doesn't work with <strong>x11-drivers/nvidia-drivers-legacy</strong> driver package, so if you have a NVIDIA card only supported by that driver, you're out of luck. First, install <strong>x11-drivers/nvidia-drivers</strong> as shown above. Then install <strong>x11-misc/nvidia-prime</strong>:
PRIME doesn't work with <strong>x11-drivers/nvidia-drivers:390</strong> driver package, so if you have a NVIDIA card only supported by that driver, you're out of luck. First, install <strong>x11-drivers/nvidia-drivers:470</strong> or <strong>x11-drivers/nvidia-drivers:515</strong> as shown above. Then install <strong>x11-misc/nvidia-prime</strong>:


Using [[Sisyphus|sisyphus]] (cli) - recommended:
Using [[Sisyphus|sisyphus]] (cli) - recommended:
Line 105: Line 84:
   
   
  Would you like to proceed? [y/N]
  Would you like to proceed? [y/N]
Using [[Portage|portage]]:
root # <strong>emerge -av nvidia-prime</strong>
These are the packages that would be merged, in order:
Calculating dependencies                                  ... done! 
[ebuild  N    ] x11-misc/nvidia-prime-314::redcore  0 KiB
Total: 1 package (1 new), Size of downloads: 0 KiB
Would you like to merge these packages? [Yes/No]


Once installed, you can launch applications on the more powerfull NVIDIA card using:
Once installed, you can launch applications on the more powerfull NVIDIA card using:
Line 129: Line 95:
=Final thoughts=
=Final thoughts=


NVIDIA driver support is slightly different in Redcore Linux compared to its parent Gentoo Linux. Our packages, although based on Gentoo's packages, have been modified to support DKMS and split into independent packages (nvidia-drivers include nvidia-settings in Gentoo Linux, but those are separate packages in Redcore Linux). Gentoo Linux provides a great documentation at [https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers] if you want to read more. Though, keep in mind, all those steps are not needed in Redcore Linux.
NVIDIA driver support is slightly different in Redcore Linux compared to its parent Gentoo Linux. Gentoo Linux provides a great documentation at [https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers] if you want to read more. Though, keep in mind, all those steps are not needed in Redcore Linux.

Revision as of 21:37, 16 October 2022

While Redcore Linux Hardened defaults to the open source x11-drivers/nouveau, it does provide three versions of the proprietary graphics driver for NVIDIA graphic cards : x11-drivers/nvidia-drivers:515, x11-drivers/nvidia-drivers:470 and x11-drivers/nvidia-drivers:390 in its git repositories. Depending on the age of your card, you can install either of them, but only one at a time, as they cannot coexist on the same system. Some cards are supported by multiple drivers, so it is up to you if you want latest and greatest, or tried and tested.

Driver support

The x11-drivers/nvidia-drivers:515 package supports the most recent cards, and you should use it if you have such a card. A list with the supported cards can be found at : https://www.nvidia.com/download/driverResults.aspx/191975

The x11-drivers/nvidia-drivers:470 package supports recent cards and some older cards, and you should use it if you have such a card. A list with the supported cards can be found at : https://www.nvidia.co.uk/Download/driverResults.aspx/175958/en-uk.

The x11-drivers/nvidia-drivers:390 package supports older cards, and you should use it if you have such a card. A list with the supported cards can be found at : https://www.nvidia.co.uk/Download/driverResults.aspx/173291/en-uk

Installation

Using sisyphus (cli) - recommended:

shakuras ~ # sisyphus install --ebuild nvidia-drivers:515

These are the binary packages that would be merged, in order:

x11-libs/gdk-pixbuf-xlib-2.40.2

Total: 1 binary package(s)

These are the source packages that would be merged, in order:

acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-515.65.01  gui-libs/egl-gbm-1.1.0  gui-libs/egl-wayland-1.1.11-r1  x11-drivers/nvidia-drivers-515.65.01  x11-misc/nvidia-settings-515.65.01

Total: 6 source package(s)

Would you like to proceed? [y/N] 
shakuras ~ # sisyphus install --ebuild nvidia-drivers:470

These are the binary packages that would be merged, in order:

x11-libs/gdk-pixbuf-xlib-2.40.2

Total: 1 binary package(s)

These are the source packages that would be merged, in order:

acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-470.141.03-r2  x11-drivers/nvidia-drivers-470.141.03  x11-misc/nvidia-settings-470.141.03-r2

Total: 4 source package(s)

Would you like to proceed? [y/N]
shakuras ~ # sisyphus install --ebuild nvidia-drivers:390

These are the binary packages that would be merged, in order:

x11-libs/gdk-pixbuf-xlib-2.40.2

Total: 1 binary package(s)

These are the source packages that would be merged, in order:

acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-390.154  x11-drivers/nvidia-drivers-390.154  x11-misc/nvidia-settings-390.154

Total: 4 source package(s)

Would you like to proceed? [y/N] 


As you can see, different versions of the driver can be installed by specifying the package SLOT. The installation process takes care of everything, so no further action is required, except rebooting the system so it uses the new drivers.

Nvidia Prime

PRIME is a technology used to manage hybrid graphics found on recent desktops and laptops (Optimus for NVIDIA, AMD Dynamic Switchable Graphics for Radeon). PRIME GPU offloading is an attempt to support muxless hybrid graphics in the Linux kernel. Redcore Linux supports PRIME for NVIDIA Optimus through x11-misc/nvidia-prime package, using proprietary x11-drivers/nvidia-drivers:470 and x11-drivers/nvidia-drivers:515 driver packages. At the time off this article, AMD Dynamic Switchable Graphics is not easily supported, due to lack of hardware to implement and test.

Installation

PRIME doesn't work with x11-drivers/nvidia-drivers:390 driver package, so if you have a NVIDIA card only supported by that driver, you're out of luck. First, install x11-drivers/nvidia-drivers:470 or x11-drivers/nvidia-drivers:515 as shown above. Then install x11-misc/nvidia-prime:

Using sisyphus (cli) - recommended:

root # sisyphus install nvidia-prime

These are the binary packages that would be merged, in order:

x11-misc/nvidia-prime-314

Total: 1 binary package(s)

Would you like to proceed? [y/N]

Once installed, you can launch applications on the more powerfull NVIDIA card using:

prime-run <application_name>

Examples:

prime-run steam

Final thoughts

NVIDIA driver support is slightly different in Redcore Linux compared to its parent Gentoo Linux. Gentoo Linux provides a great documentation at https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers if you want to read more. Though, keep in mind, all those steps are not needed in Redcore Linux.