Tumbleweed, Nvidia and tearing

Hello Malcolm,

This is with the AMD GPU selected, the one with which I can only use the built-monitor:

xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x49; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 4; outputs: 7; associated providers: 0; name: modesetting
    output eDP-1
    output DP-1
    output DP-2
    output DP-3
    output DP-4
    output DP-5
    output DP-6
[User: jan] @ [Server: openSUSE] - [Directory: ~]
$ xrandr --listmonitors
Monitors: 1
 0: +*eDP-1 2560/344x1600/215+0+0  eDP-1

Then I did this:

sudo prime-select boot nvidia
[sudo] password for root: 
Default at system boot: nvidia

After reboot with Nvidia in use:

xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x1b7; cap: 0x1 (Source Output); crtcs: 4; outputs: 6; associated providers: 1; name: NVIDIA-0
    output DP-0
    output DP-1
    output DP-2
    output DP-3
    output HDMI-0
    output DP-4
Provider 1: id: 0x1fc; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 4; outputs: 7; associated providers: 1; name: modesetting
    output eDP-1-1
    output DP-1-1
    output DP-1-2
    output DP-1-3
    output DP-1-4
    output DP-1-5
    output DP-1-6
[User: jan] @ [Server: openSUSE] - [Directory: ~]
$ xrandr --listmonitors
Monitors: 2
 0: +*eDP-1-1 2560/344x1600/215+1920+0  eDP-1-1
 1: +HDMI-0 1920/510x1080/290+0+520  HDMI-0

I then uninstalled the programs you mentioned:

Removed Packages: 4
bbswitch-kmp-default, plasma5-applet-suse-prime, suse-prime, suseprime-appindicator

After reboot it certainly changed: Now I once more have 1 monitor but this time it is the external (HDMI) one.

Question: with Suse-prime uninstalled, how do I switch between GPU’s? I like the picture quality of the AMD GPU better (no tearing) but I also would like to have 2 monitors.

Once again thank you so very much for all the help you give me. It is amazing what you know about this subject. I just wonder where and how did you learn all this?

@JanMussche So what does the output from those two commands without suse-prime etc installed?

Also if you boot without the external monitor connected, then after booting plug it in, what happens? Have you checked the Desktop display settings to ensure both monitors are on?

Sorry, forgot to add those as well:

xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x1b7; cap: 0x1 (Source Output); crtcs: 4; outputs: 6; associated providers: 0; name: NVIDIA-0
    output DP-0
    output DP-1
    output DP-2
    output DP-3
    output HDMI-0
    output DP-4
[User: jan] @ [Server: openSUSE] - [Directory: ~]
$ xrandr --listmonitors
Monitors: 1
 0: +*HDMI-0 1920/510x1080/290+0+0  HDMI-0

@JanMussche also make sure the BIOS setting is set to switchable graphics…

With the external monitor not connected I do see the start-up texts on both monitors but as soon as the high resolution graphics start both monitors are black. Plugging the HDMI connector back in after boot still gives me 2 black screens.

The BIOS setting is still set to Switchable.

I do have to end now, tomorrow at 5 the alarm clock will wake me up and I like to have some sleep until then.

Hi all, I have now switched back to what it was in the beginning:
I use my Nvidia card, I have 2 monitors available but I still have tearing.

I keep having a few questions:
how can I eliminate the tearing so I can keep using the Nvidia card?
how can I make the built-in AMD GPU connect to 2 monitors so I can use that one?

I find it hard to believe I am the only one with those 2 problems, I would say it is as old as Linux itself.

Who has some great ideas to solve (if possible) both problems, but for now I would settle for one as well, no matter which one it is.
Thanks.

p.s.
Does using Leap make any difference or is it just the same?

@JanMussche it’s rather a weird setup… normally you see the AMD gpu as the default and Nvidia the secondary. In the BIOS is it possible to set the Primary graphics?

What is the output from xrandr --props | grep Tear?

Does it have a Display Port connector, if so have you tried that instead of HDMI (this maybe connected to the amd gpu)

Hello again,

Believe it or not but just 2 minutes ago I switched to Wayland and I see no tearing now. Furthermore I am using the AMD GPU on 2 monitors. Something I could not do when using X11.

List when using X11:
xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x1b7; cap: 0x1 (Source Output); crtcs: 4; outputs: 6; associated providers: 1; name: NVIDIA-0
    output DP-0
    output DP-1
    output DP-2
    output DP-3
    output HDMI-0
    output DP-4
Provider 1: id: 0x1fc; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 4; outputs: 7; associated providers: 1; name: modesetting
    output eDP-1-1
    output DP-1-1
    output DP-1-2
    output DP-1-3
    output DP-1-4
    output DP-1-5
    output DP-1-6

For the time being I guess I will keep using Wayland and hope I don’t come across any other issue.
I want to thank you, malcolmlewis, for all the time and effort you have put into my problem. It is amazing what people are willing to do for others. Thank you very much.

@JanMussche Install arandr and run arandr

Well, things are different than what I wrote yesterday. I was so happy things were working, based on info I got.
I used the command:
echo $XDG_SESSION_TYPE
and the answer was Wayland.
I also used:
glxinfo|egrep "OpenGL vendor|OpenGL renderer"
and here the answer was AMD.
But I should have known better, the AMD GPU is not capable of running the monitor which is attached to the computer through HDMI. Still I wrote I have 2 monitors active, which I had.
But after a reboot I could not log in anymore because of black screens and all hell broke loose.

Finally I booted from a USB disk into Leap live, installed Timeshift and managed to restore the very first backup I made. The first backup to make sure there is as little as possible of all the trial and errors inside of it . This meant of course I was back in X11.
I took a nice cold beer and started searching the internet to find a way to get rid of the terrible tearing I saw in X11. Apart from the obvious: using nvidia-settings, select Force (Full) CompositionPipeLine I didn’t find anything. Thing is I can create a .conf file and place it in /etc/X11 and/or /etc/X11/xorg.conf.d but at next boot the file which is used is overwritten with different content. Ergo: tearing is back.
I then found a website on a forum where somebody wrote I just needed to place one line in a file which is used during boot and it would be all over. The line is:

nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"

Yes, ForceFullCompositionPipeline again. This time however not in the xorg.conf file(which will be overwritten) but in a boot script which is used for sure.
Now I use X11, with the Nvidia GPU on 2 monitors and without tearing. At least for the time being, I have become a bit cautious in thinking I found The Solution. Time will tell.

Thank you, I did that but it is a very simple way of showing how the 2 monitors are placed next to each other. If I’m honest, I like the way KDE shows it in the Display and Monitor settings better.