Skip to content

[43] output/kms: Use meta_kms_connector_get_preferred_mode in init_output_modes

Jonas Ådahl requested to merge cherry-pick-4d664fd7-2 into gnome-43

I have a monitor which can report two preferred modes: 5120x1440@240 and 3840x1080@60. Since they are enumerated in this order by KMS, init_output_modes would end up using 3840x1080@60 (and it was impossible to select any 5120x1440 mode in the GNOME display settings).

Fix this by using meta_kms_connector_get_preferred_mode, which returns the first KMS mode with DRM_MODE_TYPE_PREFERRED.

v2:

  • Use meta_kms_connector_get_preferred_mode. (Jonas Ådahl)

Signed-off-by: Michel Dänzer mdaenzer@redhat.com Part-of: !3055 (merged)

(cherry picked from commit 4d664fd7)

Merge request reports