Edit Info Other
Login

Optimus"

Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2016-10-26 09:48:14
Size: 1443
Comment:
Revision 3 as of 2016-10-26 16:48:03
Size: 2103
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Introduction ==
Line 3: Line 4:
Also note that NVIDIA currently only support "outputsource" and not "offloadsink". It means that you cannot disable the dGPU (nvidia)

== GLVND enabled mesa and KMS for nvidia ==
Line 13: Line 17:

== Additional Configuration ==
=== Fedora 25 ===
Not yet supported because xorg-server ABI but it should be simpler.

=== Fedora 24 ===
Line 14: Line 24:

'''Please verify to Update the BusID earch GPU, specially for the nvidia device.'''
Line 63: Line 75:

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

Also note that NVIDIA currently only support "outputsource" and not "offloadsink". It means that you cannot disable the dGPU (nvidia)

GLVND enabled mesa and KMS for nvidia

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

Additional Configuration

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:

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

References

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