3 ms·
Single GPU passthrough my solution to any game that requires kernel level anticheat (lmao, no, you're not getting it on my Linux box, silly malware game devs) o
by DrillShopper 1y ago
Single GPU passthrough my solution to any game that requires kernel level anticheat (lmao, no, you're not getting it on my Linux box, silly malware game devs) or does not run under Proton.
Run Linux on the host system all the time, run Windows in a VM only when necessary, and give Windows a GPU only when necessary.
- atmanactive 1y agoSounds great! Which VM can do that?
- DrillShopper 1y agoLinux KVM. I recommend the following guide if you want an opinionated (positive) take on it: https://github.com/martinopiaggi/Single-GPU-Passthrough-for-Dummies https://github.com/martinopiaggi/Single-GPU-Passthrough-for-...
- watermelon0 1y agoSo I assume you have two GPUs, one less powerful for the Linux desktop, and a more powerful one for gaming? Can you switch more powerful GPU between passthrough and playing native Linux games without a wayland/x11 restart?
- DrillShopper 1y agoI actually do have two GPUs in my machine, but that wasn't my initial plan when I built this machine. I use the iGPU in my CPU to display my desktop and use my dGPU for Steam under Linux. When I want to run Windows I can unhook the dGPU from Linux, pass it through to Windows, and then both my Linux graphical session and Windows run at the same time. If you have a single GPU then the act of unbinding from Linux it to pass it through to a VM terminates your Linux graphical session (everything not under that graphical session keeps running) until you exit the VM and rebind the GPU to Linux. As for the second part - yes. Typically you want to export the environment variable DRI_PRIME and set it to the index of the card you want to use to render and it will be displayed on the currently active display card. The steps might be slightly different if you're using an nVidia card - both of my GPUs are AMD.