Not sure if I follow you on that cable theory.
So how would cable matter depending on windowing system? Why would it work on X11 but not on Wayland?
That theory does not hold up, because if running 80Hz on 165Hz relates to the bandwidth being too small, it should be enough to keep 60Hz if I set such refresh rate, but then it drops to 30Hz.
Anyway, I completely agree - cable matters. But I don’t think that this is the case now, it’s not the cheapest cable I use.
I can also feel a significant lag in the input, like moving mouse cursor is a bit delayed, hard to maneuver. (again, only on Wayland)
I’m just reporting that cables sometimes can cause issues. There are differences in the standards and quality of cables. Not saying this has anything to do with your issue with any certainty only just to be aware as it can some times be an issue. Some cables that come with monitors are not very good quality and spec. DP is obviously better in my opinion but HDMI is okay also.
Do you have the Intel driver xf86-video-intel installed?
Edit: Also does this HP Omen have any GPU settings in the bios such as integrated, dedicated or hybrid?
Why would X11 render on Nvidia, and Wayland on Intel? Is there any switch?
I run envycontrol -q while logged in into Wayland Plasma and it returns nvidia, I would guess that it should use nvidia, right?
What else should I do?
Edit: yeah I can confirm that it uses Intel.
When I run glxinfo on Wayland it return Intel,
when I run glxinfo on X11 it returns NVIDIA Corporation
It seems from what info i can garner that you should be using prime render offload on this laptop since it has Nvidia Advanced Optimus built in. If you have anything else installed such as envy-control or optimus-manager i would remove that. I’m not an expert on these Hybrid laptops and they all seem to work a little differently. Also being that it’s on Wayland I’m not sure. I myself have no issues on my desktop running Wayland with Nvidia on a GTX 1060 with Kde.
I installed that supergfxctl but it was already set to “Hybrid” and there are only 2 options, Hybrid and Integrated, and I knew that Integrated is a bad idea anyway, but wanted to give a try.
After reboot screen was blinking and the greeter was not loading, so I set it back to Hybrid and uninstalled the app.
Anyway, after setting some environment variables I think that I was able to start NVIDIA driver for Wayland: https://0x0.st/XsKZ.txt
Ya it’s just so odd because i have my desktop running on Wayland with Nvidia GTX 1060 and have no issues. I don’t need all those environmental variables or some of the things in dracut either. The only thing i have installed extra for nvidia is one file or package but i’ll have to check what it is on that machine. Also i only have a 60 Hz monitor. lol
This is the third time I’ve been duped into buying a laptop with Optimus. I won’t make that mistake again… It’s the same every time, this hardware never works properly.
I have the same issue on my Lenovo Legion 5 Slim 2023 with Optimus (i7-13700h/nvidia 4060), also on wayland + plasma 6. When I connect the external monitor via HDMI with the system in hybrid mode, framerates of my display get almost halved.
Boring technical problem summary
Ironically, the issue here is the iGPU (or kwin_wayland usage of the iGPU), because it needs to copy the frame buffer twice, as the HDMI output is connected to the nvidia dGPU, and it’s not fast enough to do it.
This is a “well-known” issue and it’s really noticable on mixed frequency displays (my laptop screen is at 165 and monitor at 144hz).
There are some merge requests for KWin to support dynamic DMA-fence deadline (boost GPU clock speed to complete render on time, https://www.phoronix.com/news/KDE-KWin-DMA-Fence-Deadline), and support for triple buffering to prevent framerate issues. KDE 6.1 should be released with these improvements merged (hopefully we also get improved Optimus support in nvidia drivers by then).
You can try to set NVIDIA as the primary GPU for your KWin compositor on wayland, with this in your environment
KWIN_DRM_DEVICES=/dev/dri/card1:/dev/dri/card0
This works well for me and apps on both my displays run with their native 165/144 hz without any frame drops.
Thanks, does not really work for me.
Not sure if because I did all of the changes, or simply due to my laptop’s specification, and it uses Intel and still 40FPS in glxgears.
I removed other env variables but still no luck.
I don’t mind using X11, but there is still plenty of work to make Wayland work as expected.
Indeed, I am another user with the infamous optimus, reverse what-have-you setup
My challenge is that I need to run both cards in parallel so the Intel GPU powers external monitor 1, and nVidia external monitor 2.
After some troubleshooting and a bit of reading up, it looks likethat this setup requires some sort of “reverse” protocol which isn’t implemented on Wayland yet.
Good thing is that the recent fixes in Plasma 6.0.2 fixed an issue where the system would freeze when coming out of powersafe which means my X11 setup works as stable as pre Plasma 6x.
So all is good for me with X11.
It should work™. Check if the kwin_drm_devices environment variable is applied correctly in your kwin_wayland process, this oneliner should help you (run it inside your plasma wayland session)
To make sure your variable is appled correctly (before kwin_wayland starts), you can export it in the global profile. Create a file /etc/profile.d/kde.sh with just this content
Holy J!
I reinstalled my whole system ( again ) to check this out. But I anyway prefer KDE over Gnome which I installed after this wireplumber drama.
So, I was this close to run Wayland KDE over Nvidia card yesterday.
In my case the cards are in the opposite order.
KWIN_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1
And it generates 165 Hz output, I didn’t even have to log in again after saving /etc/environment.
I owe you! I can give you a coffee tip if you’re willing to take it.
It’s a desktop so the Intel Cpu has onboard graphics and i have an Nvidia Gpu. Glad to see someone was able to help you get it working. I don’t have any laptops with Hybrid graphics.