Hi!
It’s just an idea to make dualboot superfluous.
Is it possible to do that:
- Run Wayland on the integrated gpu (igpu).
- Run Wine/Proton on the discreet gpu (dgpu) and play games.
- If you don’t want to run wine, run (manually) a script that detaches the dgpu from the linux system and free it for vm pass-through usage.
- Run Windows in a vm with the dgpu and play games.
- Still have the option to switch on the fly to the linux system because it runs independently on the igpu. Both dgpu and igpu need to be connected separately to your monitor for that to work. Might need a KVM switch to well… switch mouse, keyboard and active display between linux and vm.
- If you shutdown the vm run (manually) a script to detach the dgpu from vm pass-through and reattach it to the linux system for wine use.
In theory it should work but I read about errors on some AMD gpus (RX 5000 series? can’t remember) that needed a system reboot every time you reattach them to the linux system again. I don’t know if that bug still exists on more modern AMD gpus (RX 6000 & 7000 series)
What do you think? Is it possible? Are there showstoppers I’m unaware of?
Sounds like you want Looking Glass. It’ll copy the frame buffer from one GPU to an application on the host, and deal with mouse input, keyboard input, and audio as well.
However, Windows virtual machines get detected by anticheat and you’ll get kicked out of some multiplayer games. For some multiplayer games you still need to boot a full copy of Windows. If you set everything up right, that copy can be the copy you also boot in your VM setup, though, so you’d only need to boot into Windows for a few specific games.