Edit Info Other
Login

Optimus"

Differences between revisions 19 and 25 (spanning 6 versions)
Revision 19 as of 2017-01-17 17:55:09
Size: 2497
Comment:
Revision 25 as of 2017-06-15 11:06:39
Size: 2340
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from Howto/NVIDIA_Optimus
## page was renamed from Howto/nVidia_Optimus
Line 2: Line 4:
There are additional steps needed to integrate the package with optimus. With Fedora 25 and later, NVIDIA Optimus devices are automatically detected.
Line 4: Line 6:
This Howto is a subset of the main documentation, please read the [[Howto/nVidia|Howto NVIDIA]] first. This Howto is a subset of the main documentation, please read the [[Howto/NVIDIA|NVIDIA]] Howto first.
Line 6: Line 8:
Also 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 grub2 boot menu.
Line 9: Line 9:
This is only tested using the main driver (367.xx and later). == PRIME Synchronization ==
With Xorg server 1.19 (Fedora 25 and later), this feature allows buffer sharing between the Intel and the NVIDIA card. This is not enabled by default. Please verify
Line 11: Line 12:
!!! BIG FAT WARNING - This is still experimental documentation, only experimented users should follow.
I highly recommends to have another PC for remote debug.
{{{
sudo grubby --update-kernel=ALL --args="nvidia-drm.modeset=1"
}}}
Line 14: Line 16:
== GLVND enabled mesa ==
This is optional for optimus, and will provide a glvnd enabled mesa that will replace the fedora version.
Once installed, it will be easier to switch between FOSS stack (nouveau) and the binary driver (nvidia).
The long term plan is to have the switch enabled in the fedora mesa package (see rhbz#1388810 ).
Then you need to reboot with nvidia-drm modeset enabled
{{{
randr --output <output> --set "PRIME Synchronization" 1
}}}
Line 19: Line 21:
Note: Copr is not multilibs compliant, you need to copy the x86_64 repo as a new file and replace "arch" to i386, if using 32bit programs. 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:
Line 21: Line 24:
# dnf copr enable kwizart/glvnd
# dnf update
sudo grubby --update-kernel=ALL --remove-args="nvidia-drm.modeset=1"
Line 26: Line 28:
== 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.
Line 28: Line 33:
== Additional Configuration ==
 * For Fedora 25 and later. Please verify to have the modified xorg-x11-server package currently in updates-testing repository. It contains some not yet upstream [[https://lists.x.org/archives/xorg-devel/2016-December/052066.html|patches]] by Hans De Goede (Fedora/RPM Fusion contributor).
{{{
# dnf update xorg-x11-server\* --enablerepo=updates-testing
# rpm -q xorg-x11-server-Xorg
  xorg-x11-server-Xorg-1.19.1-1.fc25
}}}
== Proprietary/FLOSS switch ==
At this time, this can be done by manually removing "rd.driver.blacklist=nouveau modprobe.blacklist=nouveau" from the grub2 cmdline.
The plan is to have a grub2 menu to have the choice. Please see [[https://bugzilla.rpmfusion.org/show_bug.cgi?id=4315|Bugzilla [RFE] Switcher for Xorg nvidia/FOSS config]]
Line 36: Line 37:
 * Up to Fedora 24 , you still need a xorg.conf and adapted display manager configuration (GDM, KDM, LightDM, etc).
  Best is to upgrade to Fedora 25. In case you previously had a working f24 setup. You need to remove the previous configuration files.
Line 41: Line 40:
 *A: nvidia-prime is not something from NVIDIA despite the name. It's a collection of integration scripts made by canonical for Ubuntu. Best would be to avoid using custom scripts and to have the driver to setup appropriately if on Optimus hardware or single GPU setup.  *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.

Introduction

With Fedora 25 and later, NVIDIA Optimus devices are automatically detected.

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

PRIME Synchronization

With Xorg server 1.19 (Fedora 25 and later), this feature allows buffer sharing between the Intel and the NVIDIA card. This is not enabled by default. Please verify

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

Then you need to reboot with nvidia-drm modeset enabled

randr --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"

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.

Proprietary/FLOSS switch

At this time, this can be done by manually removing "rd.driver.blacklist=nouveau modprobe.blacklist=nouveau" 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 2023-11-14 09:37:58 by anonymous)