this post was submitted on 20 Dec 2024
20 points (91.7% liked)

Linux

48665 readers
995 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
 

I'm a long-time Linux user but for the past few years my main laptop - a Lenovo Legion 5 with both AMD iGPU and Nvidia dGPU - has been on Win10. I'd like to upgrade and am looking for suggestions for distros and configurations. I've mainly used Debian-based distros in the past but am not particular. Here are my main concerns:

  • I will likely still need to run Windows in a VM for a few corporate applications that won't run in Linux (according to some teammates who have tried).
  • I do a lot of work in Figma and haven't tried it at all in Linux, but I know for sure it needs GPU acceleration. It seems like I'd have to choose between the following:
    • just running in a browser window and (somehow) assigning the dGPU to that browser
    • the above, but using the unofficial Linux electron-based figma app
    • try running the Windows app in Linux
    • putting Linux on the iGPU and passing the dGPU through to a Windows VM for this
  • I also do a fair amount of local LLM work. I would prefer to do this in Linux with the dGPU, but again I could pass the dGPU through to a Windows VPN and then do it in WSL2 in Windows (which seems a little janky)
  • I don't want to dual-boot

Does anyone have any thoughts/suggestions on this? I haven't tried GPU-switching in Linux for a long time and had poor success in the past. Am I better off leaving both GPUs accessible in Linux, or passing one through for the Windows VM?

you are viewing a single comment's thread
view the rest of the comments
[–] schizo@forum.uncomfortable.business 2 points 1 day ago (1 children)

One thing you probably need to figure out first: how are the dgpu and igpu connected to each other, and then which ports are connected to which gpu.

Everyone does funky shit with this, and you'll sometimes have dgpus that require the igpu to do anything, or cases where the internal panel is only hooked up to the igpu (or only the dgpu), and the hdmi and display port and so on can be any damn thing.

So uh, before you get too deep in planning what gets which gpu, you probably need to see if the outputs you need support what you want to do.

[–] will_a113@lemmy.ml 1 points 1 day ago (2 children)

Yes, that's a good point, I think the thunderbolt out only works on the iGPU, so I'm assuming that to get dual external monitors (HDMI and usb-c) the bare metal OS (Linux) will have to be running at least the iGPU.

I guess that also begs the question: X or Wayland in this scenario?

I'll admit to having no opinion on windowing systems.

If the distro ships with X, I use X, and if it ships with Wayland, I use Wayland.

I'd honestly probably not be able tell you which systems I've been using use one or the other, and that's a good thing: if you can't tell, then it probably doesn't matter anymore.

[–] john89@lemmy.ca 1 points 21 hours ago* (last edited 21 hours ago)

He's referring to a hardware mux. Essentially, it's hardware that will bypass your iGPU and directly use your dGPU. It's more expensive to find laptops with hardware muxes, but they perform a bit better because output isn't being routed through the iGPU first.

The downside of a hardware mux is that you have to switch between the dGPU and iGPU in your UEFI. This means you need to restart the computer every time you want to change which GPU you're using. The dGPU will result in better performance at the cost of battery life.

Odds are your laptop does not have a hardware mux and you will need to go through the standard optimus setup for your distro. Some distros make this easy with their own tools, like Linux Mint and Manjaro.