Hello,
I recently installed a new monitor with a refresh rate of 120 Hz (technically 144Hz, but Sway only allows 120 Hz for it, so let's keep it at that).
Anticipating that sway (or guile-swayer) wouldn't auto-detect it, I set it explicitly in my guile-swayer init.scm.
I included the following lines:
(sway-output "HDMI-A-1"
#:refresh-rate 120)
However, after checking swaymsg -t get_outputs, it turns out it didn't change the refresh rate.
I tried setting the position and then setting the resolution and it turns out that setting the resolution fixed it.
To summarize, the refresh-rate option of sway-output will ONLY apply if BOTH the refresh-rate AND resolution options are (manually) set. This definitely tripped me up and seems like unintended behaviour.
Thanks in advance.
Hello,
I recently installed a new monitor with a refresh rate of 120 Hz (technically 144Hz, but Sway only allows 120 Hz for it, so let's keep it at that).
Anticipating that sway (or guile-swayer) wouldn't auto-detect it, I set it explicitly in my guile-swayer init.scm.
I included the following lines:
However, after checking
swaymsg -t get_outputs, it turns out it didn't change the refresh rate.I tried setting the position and then setting the resolution and it turns out that setting the resolution fixed it.
To summarize, the
refresh-rateoption ofsway-outputwill ONLY apply if BOTH therefresh-rateANDresolutionoptions are (manually) set. This definitely tripped me up and seems like unintended behaviour.Thanks in advance.