Edit Info Other
Login

Optimus"

Differences between revisions 6 and 21 (spanning 15 versions)
Revision 6 as of 2016-12-02 15:53:07
Size: 3019
Comment:
Revision 21 as of 2017-05-19 11:45:45
Size: 1420
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from Howto/nVidia_Optimus
Line 2: Line 3:
There are additional steps needed to integrate the package with optimus. With Fedora 25 and later, Optimus devices are automatically detected.
Line 4: Line 5:
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.

!!! BIG FAT WARNING - This is still experimental documentation, only experimented users should follow.

== GLVND enabled mesa ==
This will enable a version glvnd enabled mesa that will replace the fedora version.

Note: Copr is not multilib compliant, you need to copy the x86_64 repo as a new file and replace "arch" to i386, if using 32bit programs.
{{{
dnf copr enable kwizart/glvnd
dnf update
}}}

== KMS for nvidia ==
Enable Kernel Mode Setting for nvidia-drm, this is needed for buffer sharing with the intel adapter:
{{{
grubby --update-kernel=$(uname -r) --args="nvidia-drm.modeset=1" --remove-args="video=vesa:off"

 [ -f /boot/grub2/grub.cfg ] && grub2-mkconfig -o /boot/grub2/grub.cfg

 [ -f /boot/efi/EFI/fedora/grub.cfg ] && grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
}}}
This Howto is a subset of the main documentation, please read the [[Howto/nVidia|Howto NVIDIA]] first.
Line 29: Line 8:
== Additional Configuration ==
For Fedora 24 and later, you still need a xorg.conf:

'''Please verify to Update the BusID earch GPU, specially for the nvidia device.'''
{{{
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
== 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 72: Line 13:
cat>/etc/X11/xinit/xinitrc.d/05-nvidia.sh<<EOF
#!/bin/bash
== 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 75: Line 17:
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

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

}}}

Others Display Manager tweaks, needed for GDM, KDM, LightDM, etc:

https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Display_Managers
Line 89: Line 20:
 *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. Best would be to avoid using custom scripts and to have the driver to setup appropriately if on Optimus hardware or single GPU setup.

Introduction

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

This Howto is a subset of the main documentation, please read the Howto NVIDIA 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.

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. Best would be to avoid using custom scripts and to have the driver to setup appropriately if on Optimus hardware or single GPU setup.

References

Howto/Optimus (last edited 2023-11-14 09:37:58 by anonymous)