NVIDIA 3070 + AMD Graphics Card?

Hello @Sarah :wink:

Something like that should work:

file: /etc/X11/xorg.conf.d/ 20-reverse-prime.conf

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "radeon"
    Inactive "nvidia"
    Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
    Identifier "radeon"
    Driver "modesetting"
    BusID "PCI:0:1:0"
EndSection

Section "Screen"
    Identifier "radeon"
    Device "radeon"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
EndSection

file: /etc/X11/xorg.conf.d/ 21-prime.conf

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "radeon"
EndSection

Section "Device"
	Identifier	"nvidia"
	driver		"nvidia"
	BusID		"PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "nvidia"
    Device         "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
	Identifier	"radeon"
	driver		"modesetting"
	BusID		"PCI:0:1:0"
EndSection

Section "Screen"
    Identifier     "radeon"
    Device         "radeon"
EndSection

These 2 configs switches the GPU (I just change the number to a lower one for higher priority). Both GPUs have the screen output active. At least it worked for me with the radeon driver, not tested with the amdgpu driver.

:warning: BusID needs to be checked and changed if necessary.