Edit Info Other
Login

Optimus"

Differences between revisions 1 and 19 (spanning 18 versions)
Revision 1 as of 2016-10-26 09:48:14
Size: 1443
Comment:
Revision 19 as of 2017-01-17 17:55:09
Size: 2497
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Introduction ==
Line 3: Line 4:
This Howto is a subset of the main documentation, please read the [[Howto/nVidia|Howto NVIDIA]] first.

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.

This is only tested using the main driver (367.xx and later).

!!! BIG FAT WARNING - This is still experimental documentation, only experimented users should follow.
I highly recommends to have another PC for remote debug.

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

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.
Line 4: Line 21:
dnf copr enable kwizart/glvnd
dnf update
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
# dnf copr enable kwizart/glvnd
# dnf update
Line 13: Line 25:
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
Line 53: Line 27:
cat>/etc/X11/xinit/xinitrc.d/05-nvidia.sh<<EOF
#!/bin/bash
Line 56: Line 28:
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
== 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
}}}
Line 59: Line 36:
EOF
chmod +x /etc/X11/xinit/xinitrc.d/05-nvidia.sh
 * 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 62: Line 39:
}}} == 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 ==
 * https://devtalk.nvidia.com/default/topic/957814/linux/prime-and-prime-synchronization/
 * https://devtalk.nvidia.com/default/topic/925605/linux/nvidia-364-12-release-vulkan-glvnd-drm-kms-and-eglstreams/

Introduction

There are additional steps needed to integrate the package with optimus.

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

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.

This is only tested using the main driver (367.xx and later).

!!! BIG FAT WARNING - This is still experimental documentation, only experimented users should follow. I highly recommends to have another PC for remote debug.

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

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.

# dnf copr enable kwizart/glvnd
# dnf update

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

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)