rr: Distinguish interlaced from normal modes
Submitted by Hristo Venev
Assigned to Desktop Maintainers
Link to original bug (#772157)
Description
THIS IS NOT A DUPLICATE OF #763833
GnomeRROutputInfo does not support setting normal/interlaced mode. If there are two modes with equivalent resolutions and refresh rates but different DRM_MODE_FLAG_INTERLACE, they will be indistinguishable and the first in the modes list will be selected (real_assign_crtcs).
My monitor has both 1920x1080i 60Hz and 1920x1080 60Hz, in this order. However the interlaced mode is blurry and has some sort of flickering that is probably very bad for my eyes. I don't want to go blind!
I can confirm that calling org.gnome.Mutter.DisplayConfig.ApplyConfiguration with the right configuration does fix the flickering issue, but it seems to be impossible with the libgnome-desktop API.
Idea:
- Add is_interlaced property to GnomeRROutputInfo, taking unspecified/true/false.
- Use its value in gnome-desktop libgnome-desktop/gnome-rr-config.c real_assign_crtcs.
- Use its value in gnome-desktop libgnome-desktop/gnome-rr-config.c output_equal.
- Set its value in gnome-control-center panels/display/cc-display-panel.c res_combo_changed.
Version: 3.21.x