Difference between revisions of "Nvidia drivers"

From Redcore Linux Project Wiki
Jump to navigationJump to search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
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:5''', '''x11-drivers/nvidia-drivers:4''', and '''x11-drivers/nvidia-drivers:3''' 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 the latest and greatest or tried and tested. 🖥️


=Driver support=
= Driver support 🎮 =


The <strong>x11-drivers/nvidia-drivers:525</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 :  
The '''x11-drivers/nvidia-drivers:5''' 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/213194/en-us/ https://www.nvidia.com/Download/driverResults.aspx/213194/en-us/] 📦
[https://www.nvidia.co.uk/download/driverResults.aspx/198295/en-uk https://www.nvidia.co.uk/download/driverResults.aspx/198295/en-uk]


The <strong>x11-drivers/nvidia-drivers:515</strong> package supports recent cards and some older, and you should use it if you have such a card. A list with the supported cards can be found at :  
The '''x11-drivers/nvidia-drivers:4''' 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.com/Download/driverResults.aspx/215840/en-us/ https://www.nvidia.com/Download/driverResults.aspx/215840/en-us/]. 📦
[https://www.nvidia.com/download/driverResults.aspx/191975/en-uk https://www.nvidia.com/download/driverResults.aspx/191975/en-uk]


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/195429/en-uk https://www.nvidia.co.uk/download/driverResults.aspx/195429/en-uk].
The '''x11-drivers/nvidia-drivers:3''' 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.com/Download/driverResults.aspx/196213/en-us/ https://www.nvidia.com/Download/driverResults.aspx/196213/en-us/] 📦


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==
Using [[Sisyphus|sisyphus]] (cli) - recommended:


Using [[Sisyphus|sisyphus]] (cli) - recommended:
user@hostname ~ # <strong>sisyphus install --ebuild nvidia-drivers:5</strong>


shakuras ~ # <strong>sisyphus install --ebuild nvidia-drivers:525</strong>
These are the binary packages that would be merged, in order:
   
   
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:
   
   
x11-libs/gdk-pixbuf-xlib-2.40.2
acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-525.78.01  gui-libs/egl-gbm-1.1.0  gui-libs/egl-wayland-1.1.11-r1  x11-drivers/nvidia-drivers-525.78.01  x11-misc/nvidia-settings-525.78.01
 
Total: 1 binary package(s)
Total: 6 source package(s)
 
These are the source packages that would be merged, in order:
Would you like to proceed? [y/N]
acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-525.78.01  gui-libs/egl-gbm-1.1.0  gui-libs/egl-wayland-1.1.11-r1  x11-drivers/nvidia-drivers-525.78.01  x11-misc/nvidia-settings-525.78.01
Total: 6 source package(s)
Would you like to proceed? [y/N]


or
or


  shakuras ~ # <strong>sisyphus install --ebuild nvidia-drivers:515</strong>
  user@hostname ~ # <strong>sisyphus install --ebuild nvidia-drivers:4</strong>
 
These are the binary packages that would be merged, in order:
   
   
These are the binary packages that would be merged, in order:
x11-libs/gdk-pixbuf-xlib-2.40.2
 
x11-libs/gdk-pixbuf-xlib-2.40.2
Total: 1 binary package(s)
 
Total: 1 binary package(s)
These are the source packages that would be merged, in order:
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]
gui-libs/eglexternalplatform-1.1  acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-470.141.03-r2  gui-libs/egl-wayland-1.1.7-r1  x11-drivers/nvidia-drivers-470.141.03 x11-misc/nvidia-settings-470.141.03-r2


or
Total: 4 source package(s)


shakuras ~ # <strong>sisyphus install --ebuild nvidia-drivers:470</strong>
Would you like to proceed? [y/N]
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:
gui-libs/eglexternalplatform-1.1  acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-470.141.03-r2  gui-libs/egl-wayland-1.1.7-r1  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]


or
or


  shakuras ~ # <strong>sisyphus install --ebuild nvidia-drivers:390</strong>
  user@hostname ~ # <strong>sisyphus install --ebuild nvidia-drivers:3</strong>
 
These are the binary packages that would be merged, in order:
   
   
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:
   
   
x11-libs/gdk-pixbuf-xlib-2.40.2
acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-390.154  x11-drivers/nvidia-drivers-390.154  x11-misc/nvidia-settings-390.154
 
Total: 1 binary package(s)
Total: 4 source 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]


Would you like to proceed? [y/N]


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.
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. 🔄


==Uninstallation==
== Uninstallation ⚙️ ==


If for some reason you decide the proprietary drivers are not for you and you want to revert to the open-source nouveau drivers, the uninstallation process is very simple.
If for some reason you decide the proprietary drivers are not for you and you want to revert to the open-source nouveau drivers, the uninstallation process is straightforward.


Using [[Sisyphus|sisyphus]] (cli) - recommended:
Using [[Sisyphus|sisyphus]] (cli) - recommended:


  shakuras ~ # <strong>sisyphus uninstall nvidia-drivers</strong>
  user@hostname ~ # <strong>sisyphus uninstall nvidia-drivers</strong>


  shakuras ~ # <strong>sisyphus autoremove</strong>
  user@hostname ~ # <strong>sisyphus autoremove</strong>


<strong>NOTE:</strong> Since multiple nvidia drivers packages cannot coexist on the same system, the package [https://devmanual.gentoo.org/general-concepts/slotting/index.html SLOT] doesn't need to be specified during removal. The removal process takes care of everything, so no further action is required, except rebooting the system so it goes back to using the open-source nouveau drivers.
<strong>NOTE:</strong> Since multiple NVIDIA drivers packages cannot coexist and cannot be installed at the same time on the same system, the package [https://devmanual.gentoo.org/general-concepts/slotting/index.html SLOT] doesn't need to be specified during removal. The removal process takes care of everything, so no further action is required, except rebooting the system so it goes back
to using the open-source nouveau drivers. 🔄


==Replacing drivers==
== Replacing drivers 🔄 ==


It is possible that your graphics card is supported by multiple driver packages. For example, the <strong>GeForce GTX 1080 Ti</strong> graphics card is supported by all 4 driver packages Redcore Linux provides. If, for some reason, one driver package is not working properly, you can try another one.
It is possible that your graphics card is supported by multiple driver packages. For example, the '''GeForce GTX 1080 Ti''' graphics card is supported by all three driver packages Redcore Linux provides. If, for some reason, one driver package is not working properly, you can try another one.


First, uninstall the current driver:
First, uninstall the current driver:
Line 110: Line 88:
Using [[Sisyphus|sisyphus]] (cli) - recommended:
Using [[Sisyphus|sisyphus]] (cli) - recommended:


  shakuras ~ # <strong>sisyphus uninstall nvidia-drivers</strong>
  user@hostname ~ # <strong>sisyphus uninstall nvidia-drivers</strong>


  shakuras ~ # <strong>sisyphus autoremove</strong>
  user@hostname ~ # <strong>sisyphus autoremove</strong>


Then, install another driver:
Then, install another driver:
Line 118: Line 96:
Using [[Sisyphus|sisyphus]] (cli) - recommended:
Using [[Sisyphus|sisyphus]] (cli) - recommended:


  shakuras ~ # <strong>sisyphus install --ebuild nvidia-drivers:525</strong>
  user@hostname ~ # <strong>sisyphus install --ebuild nvidia-drivers:5</strong>
 
These are the binary packages that would be merged, in order:
   
   
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:
   
   
x11-libs/gdk-pixbuf-xlib-2.40.2
acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-525.78.01  gui-libs/egl-gbm-1.1.0  gui-libs/egl-wayland-1.1.11-r1  x11-drivers/nvidia-drivers-525.78.01  x11-misc/nvidia-settings-525.78.01
 
Total: 1 binary package(s)
Total: 6 source package(s)
 
These are the source packages that would be merged, in order:
Would you like to proceed? [y/N]
acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-525.78.01  gui-libs/egl-gbm-1.1.0  gui-libs/egl-wayland-1.1.11-r1  x11-drivers/nvidia-drivers-525.78.01  x11-misc/nvidia-settings-525.78.01
Total: 6 source package(s)
Would you like to proceed? [y/N]


or
or


  shakuras ~ # <strong>sisyphus install --ebuild nvidia-drivers:515</strong>
  user@hostname ~ # <strong>sisyphus install --ebuild nvidia-drivers:4</strong>
 
These are the binary packages that would be merged, in order:
   
   
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:
   
   
x11-libs/gdk-pixbuf-xlib-2.40.2
gui-libs/eglexternalplatform-1.1  acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-470.141.03-r2 gui-libs/egl-wayland-1.1.7-r1  x11-drivers/nvidia-drivers-470.141.03 x11-misc/nvidia-settings-470.141.03-r2
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]


or
Total: 4 source package(s)


shakuras ~ # <strong>sisyphus install --ebuild nvidia-drivers:470</strong>
Would you like to proceed? [y/N]
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:
gui-libs/eglexternalplatform-1.1  acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-470.141.03-r2  gui-libs/egl-wayland-1.1.7-r1  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]


or
or


  shakuras ~ # <strong>sisyphus install --ebuild nvidia-drivers:390</strong>
  user@hostname ~ # <strong>sisyphus install --ebuild nvidia-drivers:3</strong>
 
These are the binary packages that would be merged, in order:
   
   
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:
   
   
x11-libs/gdk-pixbuf-xlib-2.40.2
acct-user/nvpd-0  sys-kernel/nvidia-drivers-dkms-390.154  x11-drivers/nvidia-drivers-390.154  x11-misc/nvidia-settings-390.154
 
Total: 1 binary package(s)
Total: 4 source package(s)
 
These are the source packages that would be merged, in order:
Would you like to proceed? [y/N]
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]


Once completed, reboot your system so it uses the new drivers.
Once completed, reboot your system so it uses the new drivers. 🔄


=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:470</strong>, <strong>x11-drivers/nvidia-drivers:515</strong> and <strong>x11-drivers/nvidia-drivers:525</strong> driver packages. At the time off this article, AMD Dynamic Switchable Graphics is not 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 '''x11-misc/nvidia-prime''' package, using proprietary '''x11-drivers/nvidia-drivers:4''' and '''x11-drivers/nvidia-drivers:5''' driver packages. At the time of this article, AMD Dynamic Switchable Graphics is not supported, due to a lack of hardware to implement and test. 🖥️


==Installation==
== Installation 🛠️ ==


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>, <strong>x11-drivers/nvidia-drivers:515</strong> or <strong>x11-drivers/nvidia-drivers:525</strong> as shown above. Then install <strong>x11-misc/nvidia-prime</strong>:
PRIME doesn't work with '''x11-drivers/nvidia-drivers:3''' driver package, so if you have an NVIDIA card only supported by that driver, you're out of luck. First, install '''x11-drivers/nvidia-drivers:4''' or '''x11-drivers/nvidia-drivers:5''' as shown above. Then install '''x11-misc/nvidia-prime''':


Using [[Sisyphus|sisyphus]] (cli) - recommended:
Using [[Sisyphus|sisyphus]] (cli) - recommended:
Line 202: Line 162:
  root # <strong>sisyphus install nvidia-prime</strong>
  root # <strong>sisyphus install nvidia-prime</strong>
   
   
These are the binary packages that would be merged, in order:
These are the binary packages that would be merged, in order:
   
   
x11-misc/nvidia-prime-314
x11-misc/nvidia-prime-314
   
   
Total: 1 binary package(s)
Total: 1 binary package(s)
 
Would you like to proceed? [y/N]
Would you like to proceed? [y/N]


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


  prime-run <application_name>
  prime-run <application_name>
Line 218: Line 178:
  prime-run steam
  prime-run steam


=Final thoughts=
= 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 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 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. 🐧

Latest revision as of 11:17, 23 November 2023

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:5, x11-drivers/nvidia-drivers:4, and x11-drivers/nvidia-drivers:3 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 the latest and greatest or tried and tested. 🖥️

Driver support 🎮

The x11-drivers/nvidia-drivers:5 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/213194/en-us/ 📦

The x11-drivers/nvidia-drivers:4 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.com/Download/driverResults.aspx/215840/en-us/. 📦

The x11-drivers/nvidia-drivers:3 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.com/Download/driverResults.aspx/196213/en-us/ 📦

Installation 🛠️

Using sisyphus (cli) - recommended:

user@hostname ~ # sisyphus install --ebuild nvidia-drivers:5

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-525.78.01 gui-libs/egl-gbm-1.1.0 gui-libs/egl-wayland-1.1.11-r1 x11-drivers/nvidia-drivers-525.78.01 x11-misc/nvidia-settings-525.78.01

Total: 6 source package(s)

Would you like to proceed? [y/N]

or

user@hostname ~ # sisyphus install --ebuild nvidia-drivers:4

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:

gui-libs/eglexternalplatform-1.1 acct-user/nvpd-0 sys-kernel/nvidia-drivers-dkms-470.141.03-r2 gui-libs/egl-wayland-1.1.7-r1 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]

or

user@hostname ~ # sisyphus install --ebuild nvidia-drivers:3

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. 🔄

Uninstallation ⚙️

If for some reason you decide the proprietary drivers are not for you and you want to revert to the open-source nouveau drivers, the uninstallation process is straightforward.

Using sisyphus (cli) - recommended:

user@hostname ~ # sisyphus uninstall nvidia-drivers
user@hostname ~ # sisyphus autoremove

NOTE: Since multiple NVIDIA drivers packages cannot coexist and cannot be installed at the same time on the same system, the package SLOT doesn't need to be specified during removal. The removal process takes care of everything, so no further action is required, except rebooting the system so it goes back to using the open-source nouveau drivers. 🔄

Replacing drivers 🔄

It is possible that your graphics card is supported by multiple driver packages. For example, the GeForce GTX 1080 Ti graphics card is supported by all three driver packages Redcore Linux provides. If, for some reason, one driver package is not working properly, you can try another one.

First, uninstall the current driver:

Using sisyphus (cli) - recommended:

user@hostname ~ # sisyphus uninstall nvidia-drivers
user@hostname ~ # sisyphus autoremove

Then, install another driver:

Using sisyphus (cli) - recommended:

user@hostname ~ # sisyphus install --ebuild nvidia-drivers:5

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-525.78.01 gui-libs/egl-gbm-1.1.0 gui-libs/egl-wayland-1.1.11-r1 x11-drivers/nvidia-drivers-525.78.01 x11-misc/nvidia-settings-525.78.01

Total: 6 source package(s)

Would you like to proceed? [y/N]

or

user@hostname ~ # sisyphus install --ebuild nvidia-drivers:4

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:

gui-libs/eglexternalplatform-1.1 acct-user/nvpd-0 sys-kernel/nvidia-drivers-dkms-470.141.03-r2 gui-libs/egl-wayland-1.1.7-r1 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]

or

user@hostname ~ # sisyphus install --ebuild nvidia-drivers:3

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]

Once completed, reboot your 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:4 and x11-drivers/nvidia-drivers:5 driver packages. At the time of this article, AMD Dynamic Switchable Graphics is not supported, due to a lack of hardware to implement and test. 🖥️

Installation 🛠️

PRIME doesn't work with x11-drivers/nvidia-drivers:3 driver package, so if you have an NVIDIA card only supported by that driver, you're out of luck. First, install x11-drivers/nvidia-drivers:4 or x11-drivers/nvidia-drivers:5 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 powerful 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 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. 🐧