Monitor refresh rates get selected in the wrong order
On my setup (Thinkpad laptop, only one native mode from EDID) on Gnome 41, the monitor configuration selects the refresh rate in the opposite order, by default selecting the lowest instead of the likely preferred highest one. This happens both on Wayland and Xorg. I checked Mutter and reversing the order of modes there does correct the behavior in GCC. Mutter internally assumes the modes to be in descending order of preference, while GCC currently chooses the refresh rate in ascending order. Note: if a "preferred" mode in available, that is correctly chosen.
I assume this is a trivial logic bug in GCC, but I haven't digged deeper into it yet.
Steps to reproduce:
- Open GNOME Settings -> Display settings
- Change the resolution to a non-native one, i.e. 1680x1050 instead of the default 1980x1080[^1]
- Check which refresh rate was selected
Note: it is more likely on Xorg that the refresh rate field is actually exposed - on Wayland, on setups like mine one only gets one refresh rate (60Hz) per "fallback mode".