Nvidia prime-run returns error

It gives the same error? What’s the output of nvidia-smi? It seems the problem is still the same. What happens if you modify the configuration like this:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "iGPU"
EndSection

Section "Device"
    Identifier "iGPU"
    Driver "modesetting"
    BusID "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "iGPU"
    Device "iGPU"
EndSection

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