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.
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.