Wayland set custom refresh rate / timings

My center monitor needs to have a custom refresh rate set to stop it from flickering like crazy.
It is one of the worst monitors I know of, but it is the only FullHD monitor I own, so I am stuck with it for now.

On XOrg I can create a new mode for that refresh rate using this xrandr command:
xrandr --newmode "lg-custom-rate" 138.50 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync
On sway I was able to stop it from flickering using this config string:
output "Goldstar Company Ltd 24MB56 410NDPH91976" mode --custom 1920x1080@59.963Hz

I found this stackexchange issue: https://unix.stackexchange.com/q/275327
But no matter what refresh rate I try it always tells me Invalid mode '1920x1080@foobar' specified
I have tried every refresh rate output by the previous command with no success. For now I think that the correct refresh rate is not in the list of valid modes.

How do I set this custom refresh rate on gnome for wayland?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.