I used to use PRIME output mode for dedicated GPU graphics with NVIDIA, but with the latest updates in Tumbleweed with the following versions below I am now unable to get it working. Maybe there is something different in X 1.20 or xrandr 1.5. Maybe someone can shed some light on this so I can get it right with the new software. TIA
Note: PRIME offload works just fine, I just want the dedicated GPU ability since it gives better performance.
openSUSE TW
# cat /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20181012"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20181012"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20181012"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
# uname -r
4.18.12-1-default
# xrandr -v
xrandr program version 1.5.0
Server reports RandR version 1.6
# X -version
X.Org X Server 1.20.1
X Protocol Version 11, Revision 0
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux flisk.seader.us 4.18.12-1-default #1 SMP PREEMPT Thu Oct 4 06:37:48 UTC 2018 (a880bd8) x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.18.12-1-default root=UUID=d45fff98-5d51-45bb-94b1-c1a345a9808a resume=/dev/disk/by-uuid/4e45cb71-630f-45d7-92c0-e14e7eef93da splash=silent quiet showopts elevator=cfq nospec nospectre_v2 nopti l1tf=off
Build Date: 07 August 2018 12:00:00PM
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
KDE Desktop with SDDM configured with this script.
/usr/share/sddm/scripts> cat Xsetup
#!/bin/sh
# Xsetup - run as root before the login dialog appears
xrandr --setprovideroutputsource 0 1
xrandr --auto
xorg.conf
/etc/X11> cat xorg.conf
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
Option "AccelMethod" "sna"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
EndSection
This is all that was required before the xorg and xrandr version changes.