Edit Info Other
Login

Optimus"

Differences between revisions 2 and 30 (spanning 28 versions)
Revision 2 as of 2016-10-26 12:49:29
Size: 2016
Comment:
Revision 30 as of 2019-07-15 09:53:28
Size: 2514
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 with GDM/Gnome.
Line 4: Line 6:
Also note that NVIDIA currently only support "outputsource" and not "offloadsink". It means that you cannot disable the dGPU (nvidia) This Howto is a subset of the main documentation, please read the [[Howto/NVIDIA|NVIDIA]] Howto first.
Line 6: Line 8:
== GLVND enabled mesa and KMS for nvidia ==
== 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:
Line 8: Line 20:
dnf copr enable kwizart/glvnd
dnf update
grubby --update-kernel=$(uname -r) --args="nvidia-drm.modeset=1" --remove-args="video=vesa:off"
sudo grubby --update-kernel=ALL --args="nvidia-drm.modeset=1"
}}}
Line 12: Line 23:
 [ -f /boot/grub2/grub.cfg ] && grub2-mkconfig -o /boot/grub2/grub.cfg 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
}}}
Line 14: Line 29:
 [ -f /boot/efi/EFI/fedora/grub.cfg ] && grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg 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"
Line 18: Line 36:
== Additional Configuration ==
=== Fedora 25 ===
Not yet supported because xorg-server ABI but it should be simpler.
Line 22: Line 37:
=== Fedora 24 ===
For Fedora 24, you still need a (complicated) xorg.conf:
{{{
cat>/etc/X11/xorg.conf<<EOF
# RPM Fusion - nvidia-xorg.conf
#

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    # Change BusID if necessary. Tips: (lspci | grep VGA) (Change 00:02.0 to 0:2:0)
    BusID "PCI:0:2:0"
    Option "AccelMethod" "none"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    # Change BusID if necessary. Tips: (lspci | grep 3D) (Change 01:00.0 to 1:0:0)
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
EndSection
EOF
== 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 63: Line 42:
cat>/etc/X11/xinit/xinitrc.d/05-nvidia.sh<<EOF
#!/bin/bash

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

EOF
chmod +x /etc/X11/xinit/xinitrc.d/05-nvidia.sh

}}}
== 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.

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