[Feature] G-Sync/Freesync under Wayland Session

According to the Nvidia employee who is doing the merge request, there likely won’t be much of a difference until Nvidia actually releases a driver to support the new protocol.

Might be wrong though. We might still have a little bit of waiting to do even after the merge so that everything can get wrapped up on both ends.

1 Like

@amrits , is GSync expected to not work in dual monitor wayland setups? For me, Gsync only works if I have one of my monitors off. That monitor does not have gsync.

@amrits Heya, sorry to bother, just a quick question - can we expect for the upcoming 550 driver update to fix VRR only working when 1 monitor is active ?

1 Like

550.54.14 did not fix multi monitor vrr.

5 Likes

is there any hope?

1 Like

Nvidia bros… it’s so hecking over.

RDNA 4 👀

Edit: Editing to unhide. Moderators, this is in fact on topic. AMD has had working VRR with multiple monitors on Wayland for quite some time.

2 Likes

Any ETA regarding 555? Explicit sync is coming so Pascal VRR will be the only major blocker left for wayland adoption.

4 Likes

Trying plasma 6 and nvidia 550.54.14 with wayland. The power state is stuck at 80W on my 3080 and not idling down in P0.

I tried playing star dew valley on steam with 1 monitor active, gsync appears to work but I am getting major lag in the game where the monitor miss matches with the frame generation, no issues on x11

The FreeSync/G-Sync does indeed work only if you have 1 monitor active under wayland(note I have a prime setup where it’s amd+nvidia and it has no issues for multi monitor VRR, as nvidia only does the heavy lifting).
Now I am more interested as to why the power state gets stuck at 80W, mine drops to 40W the same as xorg again Plasma 6, only difference it’s an RTX 3090. Do you have any specific widget on that could be causing it or any other setting/effect on, so that I can try and repro the same setup ?
For instance I have - CPU usage, SSD/HDD activity monitor and digital clock widgets on my 2nd monitor(2 x 1440p monitors) only and this way is the same as xorg. Perhaps the major lag comes from the lack of explicit sync - I’ve seen stuff go forward/backward and seem very choppy.

hi completely stock plasma-meta, i was running xmonad before hand. But yea seems to be stuck in P0 81W, idles down to 20ish W on xorg xmonad.

Here is nvidia-smi
nvidia-smi
Sat Mar 9 11:58:14 2024
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.14 Driver Version: 550.54.14 CUDA Version: 12.4 |
|-----------------------------------------±-----------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 3080 Off | 00000000:2D:00.0 On | N/A |
| 36% 35C P0 81W / 380W | 533MiB / 10240MiB | 1% Default |
| | | N/A |
±----------------------------------------±-----------------------±---------------------+

±----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 963 G /usr/bin/kwin_wayland 100MiB |
| 0 N/A N/A 1086 G /usr/bin/Xwayland 4MiB |
| 0 N/A N/A 1117 G /usr/bin/ksmserver 3MiB |
| 0 N/A N/A 1119 G /usr/bin/kded6 3MiB |
| 0 N/A N/A 1132 G /usr/lib/kactivitymanagerd 3MiB |
| 0 N/A N/A 1156 G /usr/bin/plasmashell 107MiB |
| 0 N/A N/A 1196 G …b/polkit-kde-authentication-agent-1 3MiB |
| 0 N/A N/A 1197 G /usr/lib/org_kde_powerdevil 3MiB |
| 0 N/A N/A 1198 G /usr/lib/xdg-desktop-portal-kde 3MiB |
| 0 N/A N/A 1369 G /usr/bin/kaccess 3MiB |
| 0 N/A N/A 1370 G /usr/lib/DiscoverNotifier 3MiB |
| 0 N/A N/A 2048 G /usr/lib/baloorunner 3MiB |
| 0 N/A N/A 3626 G /usr/bin/krunner 9MiB |
| 0 N/A N/A 5359 G /usr/bin/alacritty 35MiB |
| 0 N/A N/A 6269 G /usr/lib/firefox/firefox 159MiB |
±----------------------------------------------------------------------------------------+

Here is the same on X11 with xmonad:
nvidia-smi
Sat Mar 9 12:17:38 2024
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.14 Driver Version: 550.54.14 CUDA Version: 12.4 |
|-----------------------------------------±-----------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 3080 Off | 00000000:2D:00.0 On | N/A |
| 36% 31C P8 21W / 380W | 395MiB / 10240MiB | 0% Default |
| | | N/A |
±----------------------------------------±-----------------------±---------------------+

±----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 2890 G /usr/lib/Xorg 136MiB |
| 0 N/A N/A 2966 G picom 71MiB |
| 0 N/A N/A 3223 G alacritty 10MiB |
| 0 N/A N/A 3301 G /usr/lib/firefox/firefox 160MiB |
±----------------------------------------------------------------------------------------+

ill try installing the explicit sync patches from aur.

Edit: no change with the patches

That doesn’t look normal and a lot like a bug, can you please post the results here: [BUG Report] Idle Power Draw is ASTRONOMICAL with RTX 3090 - #81 by b19h65

For me it was resolved in a driver update, but recently I saw people still experience issues on the thread.

I need to keep an eye out, update yesterday on arch, and I am in p8 idling sub 20W with firefox open. Dont remember what updated

I see frames rendered out of order with explicit sync patch and skipping with both 1 and 2 monitors

Good to see improvements in G-Sync / FreeSync functionality under Wayland. However we need those explicit sync changes otherwise these improved drivers with this support will just be completely unusable. nvidia driver updates always improve one thing but ruin something else. Once we can get out of this hole the wayland / nvidia relationship is in, I think nvidia might finally be a really good option.

P.S Multi Monitor G-Sync still not working. Also hardware cursors.

Soon…

For me, Gsync doesn’t work on Linux, neither under X11 nor Wayland. Gsync screen of the Alienware M18 R2 is not detected

Hi @kodatarule
I tried repro on AMD based notebook by running an application on both displays but not able to create issue.
Asus ROG Strix G713PV_G713PV_000986449 + AMD Eng Sample: 100-000000870-32_Y + Endeavor OS with kernel 6.8.8-arch1-1 + NVIDIA GeForce RTX 4060 Laptop GPU + Driver 550.78 + KDE Plasma Version 6.0.4 + Wayland

Could you please help to confirm which application or game you have tried and how did you confirm that VRR is not working with dual monitor setup.
Also it would be good to share repro video and nvidia bug report from repro state.

Hi @amrits
I have a desktop(nvidia only) and a laptop which uses amd+nvidia. On the desktop where only rtx 3090 drives, any game I tried(for example serious sam fusion 2017, but you can pick any as everything I tried behaves the same) results in the following:
On the laptop where amd drives displays, nvidia only prime offloads = vrr multi monitor without issues, I turn on my monitor’s framerate graph it syncs correctly.
On my desktop - if I turn off my 2nd monitor and leave only my main, then the counter does react(for example an emulated game which has 60fps cap, my monitor is 165hz with VRR it goes down to 60 correctly), the moment I have 2 active monitors the graph doesn’t change from 165 and no VRR kicked in.

There is a reliable test which you can use over at github: GitHub - Nixola/VRRTest: A small utility I wrote to test variable refresh rate on Linux. Should work on all major OSes.

You can use that to change different frame rates and see if the monitor’s graph changes.

P.S. I will update tomorrow on driver 555(and already have waylandprotocols/xorgproto/xwayland with the patches for explicit sync) and make an update whether I see change or not.

1 Like

Seriously hoping 555 does indeed fix multi monitor VRR…

1 Like