YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
2.82k stars 79 forks source link

Flickering/screen corruption on a dual GPU laptop on Nvidia screen #469

Closed dragonnn closed 1 week ago

dragonnn commented 1 week ago

Hi! I am trying Niri on my ASUS Zephyrus G14 GA401IU with has two GPUs: 04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [Radeon Vega Series / Radeon Vega Mobile Series] (rev c6) 01:00.0 VGA compatible controller: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] (rev a1) Where on of the laptop screen outputs is wired to the NVIDIA card (the USB-C port). It works on Niri but I get heavy flickering/screen corruption if anything happens on that screen (it doesn't happen only in vscode but in anything else too). [

https://github.com/YaLTeR/niri/assets/1771469/5efb94cc-c54e-46b2-9388-1a2d5d14ce90

](url) on stable

https://github.com/YaLTeR/niri/assets/1771469/ac0c2410-2734-4f89-842e-5137abc30b01

on git version that screen works fine on Hyprland without any flickering. Anything can be done about that?

System Information

YaLTeR commented 1 week ago

Hey, I'm guessing that's just NVIDIA being NVIDIA. Let's wait for explicit sync in Smithay and niri and then see if it still happens.

jeLee6gi commented 1 week ago

I'm on a desktop with a 4070 and 555.52.04 drivers and I see the same flickering

@dragonnn did you try turning on wait-for-frame-completion-before-queueing? It fixes the flickering for me for now

dragonnn commented 1 week ago

Hey, I'm guessing that's just NVIDIA being NVIDIA. Let's wait for explicit sync in Smithay and niri and then see if it still happens.

True, true but somehow Hyprland manages it so I hopped for maybe some workaround :D. @jeLee6gi not yet, thanks I will try it. I see they is a debug section with options I can play around, didn't find it before.

dragonnn commented 1 week ago

Setting wait-for-frame-completion-before-queueing does look like it works now fine! So I can try move my system to niri. Thanks!

YaLTeR commented 1 week ago

Huh, okay, interesting.

YaLTeR commented 1 week ago

I'll mention this on the getting started wiki page.