Nvidia2nvidia PRIME output

Hi,

Hi, where can I find any info about configuration of nvidia2nvidia PRIME output? I have two quadro T1000 and I want to create 2x4 mosaic with PRIME. I have one problem, the prime sync works only for the T1000 which is set to be a a sink:

xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x217 cap: 0x1, Source Output crtcs: 4 outputs: 8 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x419 cap: 0x2, Sink Output crtcs: 4 outputs: 8 associated providers: 1 name:NVIDIA-G0

When I type xrandr --prop only NVIDIA-G0 show PRIME Synchronization and there is no such options at all for NVIDIA-0.

My xorg.conf:

Section “ServerLayout”

Identifier     "Layout0"
Screen      0  "Screen0" 0 0
InputDevice    "Keyboard0" "CoreKeyboard"
InputDevice    "Mouse0" "CorePointer"
Option         "Xinerama" "0"

EndSection

Section “Files”
EndSection

Section “InputDevice”

Identifier     "Mouse0"
Driver         "mouse"
Option         "Protocol" "auto"
Option         "Device" "/dev/psaux"
Option         "Emulate3Buttons" "no"
Option         "ZAxisMapping" "4 5"

EndSection

Section “InputDevice”

Identifier     "Keyboard0"
Driver         "kbd"

EndSection

Section “Monitor”

Identifier     "Monitor0"
VendorName     "Unknown"
ModelName      "NEC UN552V"
HorizSync       15.0 - 92.0
VertRefresh     23.0 - 85.0
Option         "DPMS"

EndSection

Section “Device”

Identifier     "Device0"
Driver         "nvidia"
VendorName     "NVIDIA Corporation"
BoardName      "NVIDIA T1000"
BusID          "PCI:1:0:0"
Option         "ConnectedMonitor" "DP-1;DP-3;DP-5;DP-7"
Option         "CustomEDID" "DP-1:/home/administrator/x11/edid0-1.bin;DP-3:/home/administrator/x11/edid0-3.bin;DP-5:/home/administrator/x11/edid0-5.bin;DP-7:/home/administrator/x11/edid0-7.bin"

EndSection

Section “Device”

Identifier     "Device1"
Driver         "nvidia"
VendorName     "NVIDIA Corporation"
BoardName      "NVIDIA T1000"
BusID          "PCI:2:0:0"
Option         "ConnectedMonitor" "DP-1-1;DP-1-3;DP-1-5;DP-1-7"
Option         "CustomEDID" "DP-1-1:/home/administrator/x11/edid1-1.bin;DP-1-3:/home/administrator/x11/edid1-3.bin;DP-1-5:/home/administrator/x11/edid1-5.bin;DP-1-7:/home/administrator/x11/edid1-7.bin"

EndSection

Section “Screen”

Identifier     "Screen0"
Device         "Device0"
Monitor        "Monitor0"
DefaultDepth    24
Option         "Stereo" "0"
Option         "nvidiaXineramaInfo" "false"
Option         "ForceFullCompositionPipeline" "off"
Option         "AllowIndirectGLXProtocol" "on"
Option         "TripleBuffer" "off"
Option         "UBB" "off"
Option         "SLI" "Off"
Option         "MultiGPU" "Off"
Option         "BaseMosaic" "off"
SubSection     "Display"
    Depth       24
EndSubSection

EndSection

This is expected, nvidia-g0 is sync’d to nvidia-0. The monitors on nvidia-0 are direct attached, so don’t need prime.

Yas, but why nvidia-0 is described as a source and not a sink? The problem is that the screens connected to nvidia-0 have no vsync (what give me a thearing on them). Nvidia-G0 with PRIME are perfectly in sync, in theory, to screens that are not in sync at all… I seem to have missed something.

Why are you using the “ConnectedMonitor” option?
Tearing also depends on the compositor used, if any.
Otherwise, try enabling “ForceCompositionPipeline”

I’m using KDE 5.24 with compositor off. Ubuntu server 22.04 or 22.10 (because in 520 driver is mentioned about pros from xorg server 21.1.4). ConnectedMonitor is a crucial option. Manage an eight screens with kscreen will be nightmare. So I just turn off a kscreen, create randr setup with 4x2 mosaic and put it in /etc/X11/Xsession.d/. I have also x11vnc for remote mgmt. It’s a part of big project, if success i will create videowall for 10% of a market price ;) ForceCompositionPipeline/ForceFullCompositionPipeline, TripleBuffer is not working good for my configuration. Too slow and lagy. It’s sad, but all what I know about nvidia2nvidia PRIME is thanks for your posts. Totally zero information. For now, I’m start thinking that the PRIME isn’t the source of the problem. If my xorg.conf is OK the problem isn’t with PRIME.