As I mentioned it, not all scenarios are working. The proprietary driver of nvidia is not able to run at the same time as an opensource driver do.
2 possible scenarios:
- The proprietary driver as standalone (as main) and offload applications with
DRI_PRIME=1
- The amdgpu driver as main and offload applications with
prime-run
.
Not possible with the proprietary driver :
- Having both GPUs with active outputs for screens. As mentioned above: If the amd gpu is the
output source
(main output), then the nvida gpu (when using the nvidia driver) cannot be used asoutput sink
(second output). Having 2 screens on each gpu works only with open source drivers due the lack of support by nvidia. - Also the reverse method does not work.
- Offloading to the amdgpu does not work as well if nvidia is main. Only offloading to nvidia gpu could work.
What you could try:
Option “AllowPRIMEDisplayOffloadSink” “boolean”
RandR PRIME Display Offload Sink support, also known as “Reverse PRIME”, is disabled by default for NVIDIA RandR providers on X.Org X servers prior to version 1.20.7 due to latent bugs that can result in crashes when used with the NVIDIA driver. X server version 1.20.6 contains fixes for the crashing, but cannot be detected automatically.
This option overrides the default behavior, allowing PRIME Display Offload Sink to be used regardless of X server version.
Default: PRIME Display Offload Sink will be allowed only for X server 1.20.7 or newer.
But it seems very new and not well tested. With this option you should be able to use the amd gpu as second output sink. But no idea how this works. Never tried it.