I want to switch over to Linux as my primary OS but I’m having trouble getting my test setup working.
I’m running an AMD Ryzen 3700X with 2 GPUs, 1 GTX 780 and 1 GTX 980. Monitors hooked up to the GTX 780 only.
So far in my initial testing, it seems like I’m able to use Nvidia Prime/Optimus so that I get the better performance of the 980. Though on games that detect and allow you to select the GPU it refuses to work (at least when I tested with Proton).
I then moved on to trying to set up a Windows VM with GPU passthrough. Unfortunately, it always hangs on unbinding the GTX 980 before I can give it to the VM.
Looking at Nvidia-smi and dmesg when it happens seems to suggest that Xorg is running on the 980 and refuses to let the driver eject it.
I’m not sure of how I can get Xorg to leave the 980 alone and doubly unsure of if Prime/Optimus will work afterwards.
My goal here is to have a setup where I can use the 980 for any applications/games that work on Linux, then on VM launch the VM gets the 980 for Windows exclusive games and when I shut it down Linux gets the 980 back.