Size: 2694
Comment:
|
Size: 3308
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
Also note that NVIDIA currently only support "outputsource" and not "offloadsink". It means that you cannot disable the dGPU (nvidia) | 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 7: | Line 8: |
I hightly recommands to have another PC | |
Line 9: | Line 11: |
This will enable a version glvnd enabled mesa that will replace the fedora version. | This is optional for optimus, and will enable 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 fedora mesa build by default (see rhbz#1388810 ), probably by f26. |
Line 11: | Line 15: |
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. | 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 29: | Line 33: |
=== Fedora 25 === Not yet supported because xorg-server ABI but it should be simpler. === Fedora 24 === For Fedora 24, you still need a (complicated) xorg.conf: |
For Fedora 24 and later, you still need a xorg.conf: |
Line 90: | Line 90: |
== 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. |
Introduction
There are additional steps needed to integrate the package with optimus.
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. I hightly recommands to have another PC
GLVND enabled mesa
This is optional for optimus, and will enable 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 fedora mesa build by default (see rhbz#1388810 ), probably by f26.
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
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
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 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
Others Display Manager tweaks, needed for GDM, KDM, LightDM, etc:
https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Display_Managers
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.