this post was submitted on 11 Sep 2023
14 points (100.0% liked)

Linux

45501 readers
1564 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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?

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 8 points 9 months ago

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.

[–] [email protected] 6 points 9 months ago (1 children)

I've thought about trying that with my 7900xt, but never bothered actually doing it since everything I play runs on Linux. However I saw some posts about a project called something along the lines of pcie-passthrough-manager, that would be my starting point when trying that

[–] [email protected] 2 points 9 months ago (1 children)

If you mean this manager it's a tool to create the initial vfio configuration for the passthrough. You can do it by hand.

[–] [email protected] 3 points 9 months ago

Yup that's probably what I meant. In that case idk. It's prbly still possible, but you might have to live reload the kernel, which is possible, but I guess there's a reason why basically no distro uses this feature