Skip to content

output/kms: Add back common modes on non-single mode outputs

But this time, filter out modes that exceed a roughly calculated maximum bandwidth. This should avoid e.g. setting a 60 Hz 4K mode, when 4K is limited to 30 Hz, but lower resolutions supporting 60 Hz.

Closes: gnome-shell#4155 (closed)


I suspect the linked issue is a regression from !1824 (merged), so this adds back the common modes again, but using the "max bandwidth" filter (Cc: @mupuf).

Merge request reports