Not sure if this is a good place to ask for help, but I have scoured the internet and no one has a solution, so hopefully this question helps me as well as others.
I’m trying to get my computer to run at its best when on Hyprland. I have an MSI Raider GE76 which has an Nvidia GTX 3080 Mobile and an Intel Tiger Lake CPU with integrated graphics.
I typically have an external display over display port, an Ultrawide 3440x1440@60Hz, and the internal laptop display is on eDP at 1920x1080@360Hz. Note tho that while I often have the dual screen setup, I do need to be able to go to just the Intel display. The Nvidia GPU drives all outputs (DP, HDMI, Thunderbolt) EXCEPT for the eDP which is connected to the Intel card.
On X11, I could use reverse prime sync to use the Nvidia card for everything and just have the Intel card draw whatever the Nvidia card renders. This worked well. Unfortunately there isn’t anything like that for Wayland, and I don’t have a hardware switch to put the eDP on the nvidia side of things.
This means that I have to use the default prime modes to run stuff on the nvidia card which makes the second screen incredibly laggy. Now, I can disable the i915 module and the external display becomes buttery smooth, but I can’t use my built-in display (which means I also can’t use the display when I’m not connected to the external monitor).
How can I get both to work well on Wayland?
Can I run the external display exclusively on Nvidia and the internal on Intel with Prime? That could work, but idk if that’s possible.
What’s the optimal way to set up an external display on Wayland with and Nvidia hybrid-graphics laptop? Bc right now I’m thinking of just going back to X11 and praying it gets enough support to live until I can get a decent Wayland config.
I don’t have such a laptop, so I can’t really speak for experience, but I can tell you what I know.
You definitely can use prime to render a program on the dgpu and display it on the igpu, this requires basically no configuration at all on wayland, I even did it on my desktop computer when Wayland didn’t run on Nvidia. But I don’t know if you can or why you would use the dgpu for everything instead of only selected programs (games).
What you really need is a compositor that properly uses both GPUs and can use the ports of both at the same time, hyperlaneld might just be bad at that. Gnome should be in a better position so you can start from here and see if gnome behaves better.
Also, are you sure you want to use a tiling compositor on a gaming laptop? Wouldn’t it be a better experiment to just go with gnome? It’s visually polished and goes well with trackpads.
I can’t go back to moving windows around by hand. It’s so tedious. I can’t stand it anymore. Even on Windows which I use for work I always install FancyWM to achieve some sense of tiling. It’s just imo a superior way to use a computer.
That said, GNOME has the fantastic Pop Shell 2 which functions similar to Hyprland or i3, so that’s fine on GNOME. Honestly, I’m hopeful for COSMIC and plan to try it out once it gets out of Alpha.
The problem I have with GNOME is I always end up breaking it in a way that I can’t restore it. Some extension or GTK theme tweak or something, even when uninstalled, always seems to get it stuck in a bad state. It doesn’t like customization. KDE does, but it doesn’t have as good tiling support (there’s Polonium, which is… okay).
Perhaps I’ll try it again tho. I’ve used GNOME for several months at a time before, but I had problems when switching to Wayland a couple years ago initially (which I’m sure are fixed now).
A couple years ago it could never have worked properly, Nvidia drivers didn’t support Wayland. Because Nvidia refused to implement drivers that followed the Linux semantic (which admittedly was outdated). About a year ago, after many years of work, they published a new semantic that Nvidia was willing to implement. Alongside that, a new Wayland protocol was added so that compositors could opt-in the new semantic when the driver supports it. So, to use Wayland with Nvidia you need both a recent enough Nvidia driver (I think anything after last July) and a compositor that implement the linux_drm_syncobj_v1 protocol. I’m not even sure hyperland supports it, so you should also look into that before continuing.
P.s.: gnome’s mutter, and kde’s kwin (which are the name of their compositors) both supported that protocol since the very day after it was released, so those are guaranteed to work if they are recent enough, unless if you are on Ubuntu lts which stripped it out for a pet peeve about adding features to lts releases.
Yeah, I may just go back to Gnome/KDE.
I recently switched OS from NixOS to Arch which is why I wanted to give Hyprland a second try while I was messing with stuff.
I was on KDE before with not a ton of issue, but well, the tiling options on KDE are few and limited, so I wanted to go back and retry a dedicated tiler. I was on i3 and happy for a long time before switching to Wayland (which happened once I could get decent game performance), then I was on Hyprland for a while, then switched around a bit, and then settled on KDE once I discovered Polonium which I could live with.
I’m gonna give GNOME a shot for now, and just try not to tweak it too much (other than Pop Shell)
Yes most tiling solutions on KDE are half-baked even the new built-in (at least the last time I tried) but Krohnkite is really solid. It was forked to Bismuth, then that one got defunct after a major kwin update. But it’s back again as Krohnkite (infinite thanks to the maintainers). It’s rock solid and even has a B-Tree Layout now. I’m on X11 but the last time I tried it also worked nice with Wayland.