Edit Info Other
Create account
Login

Optimus"

Differences between revisions 29 and 31 (spanning 2 versions)
Revision 29 as of 2018-09-01 19:16:37
Size: 2499
Comment:
Revision 31 as of 2019-07-15 09:54:20
Size: 2535
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
With Fedora 25 and later, NVIDIA Optimus devices are automatically detected. With Fedora 25 and later, NVIDIA Optimus devices are automatically detected with GDM/Gnome.
Line 38: Line 38:
At this time, this can be done by manually removing "rd.driver.blacklist=nouveau modprobe.blacklist=nouveau" from the grub2 cmdline. At this time, this can be done by manually removing "rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1" from the grub2 cmdline.

Introduction

With Fedora 25 and later, NVIDIA Optimus devices are automatically detected with GDM/Gnome.

This Howto is a subset of the main documentation, please read the NVIDIA Howto first.

Known limitation

Please note that NVIDIA currently only support "outputsource" and not "offloadsink". It means that you cannot disable the dGPU (nvidia). The current workaround is to reboot onto the free Software version using an alternative boot option menu.

PRIME Synchronization

With Xorg server 1.19 (Fedora 25 and later), this feature allows buffer sharing between the Intel and the NVIDIA card when using Xorg (not relevant for Wayland).

Verify to have nvidia-drm-modeset=1 enabled looking in /proc/cmdline. If not enabled, you can run:

sudo grubby --update-kernel=ALL --args="nvidia-drm.modeset=1"

You need to reboot to enable nvidia-drm modesetting. Then you can enable Prime Synchronisation for your session:

xrandr --output <output> --set "PRIME Synchronization" 1

If everything works as appropriate, you should consider to edit /etc/default/grub and add the nvidia-drm.modeset=1 option to the GRUB_CMDLINE_LINUX_DEFAULT variable. If something didn't get right. You can recover using e from the grub2 edit menu at boot time and manually remove that option. Then on the next boot, use:

sudo grubby --update-kernel=ALL --remove-args="nvidia-drm.modeset=1"

Proprietary/FLOSS switch

At this time, this can be done by manually removing "rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1" from the grub2 cmdline. The plan is to have a grub2 menu to have the choice. Please see Bugzilla [RFE] Switcher for Xorg nvidia/FOSS config

FAQ

  • Q: Why there is no nvidia-prime package ?
  • A: nvidia-prime is not something from NVIDIA despite the name. It's a collection of integration scripts made by canonical for Ubuntu. Better to avoid using custom scripts and to have the driver to setup appropriately if on Optimus hardware or single GPU setup. With Fedora 25 and later, everything is automatically setup.

References

Howto/Optimus (last edited 2019-11-11 08:52:28 by NicolasChauvet)