All of lore.kernel.org
 help / color / mirror / Atom feed
* 4096x2160 monitor has EDID reporting 3840x2160
@ 2018-09-22 21:29 Brian Vincent
  2018-09-24  6:49 ` Jani Nikula
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Vincent @ 2018-09-22 21:29 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1505 bytes --]

I have a LG 31MU97-B monitor.  My understanding is that EDID does not have
a way to report itself as a 4096x2160 monitor, so it reports itself as a
3840x2160 monitor.  The mode that it actually supports for it's native
resolution that I've been using looks like this:

xrandr --newmode "4096x2160_60" 556.730  4096 4104 4136 4176  2160 2208
2216 2222 +hsync +vsync

I can use this mode with X and it works fine, but I've been unable to get
it to work with KMS and Wayland, since it uses the EDID.  EDID has CEA
extensions that can support some 4096x2160 video modes, but I've tried
them, and they don't work since they're not exactly the modeline that it
needs.

I've found these DMT modes in drm_edid.c that seems like they would
probably work:

/* 0x57 - 4096x2160@60Hz RB */
{ DRM_MODE("4096x2160", DRM_MODE_TYPE_DRIVER, 556744, 4096, 4104,
   4136, 4176, 0, 2160, 2208, 2216, 2222, 0,
   DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC) },
/* 0x58 - 4096x2160@59.94Hz RB */
{ DRM_MODE("4096x2160", DRM_MODE_TYPE_DRIVER, 556188, 4096, 4104,
   4136, 4176, 0, 2160, 2208, 2216, 2222, 0,
   DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC) },

But... even if I manage to get the code to infer modes on my monitor, it'll
reject them since the horizontal resolution is 4096 which is higher than
the 3840 that my monitor's EDID reports.

If I wanted to fix this for everyone, what would the proper fix even look
like?  Should this be added as a quirk for this monitor to force add the
modes?

Thanks,
Brian Vincent

[-- Attachment #1.2: Type: text/html, Size: 2187 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-09-26 12:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-22 21:29 4096x2160 monitor has EDID reporting 3840x2160 Brian Vincent
2018-09-24  6:49 ` Jani Nikula
2018-09-24 22:32   ` Brian Vincent
2018-09-26 11:27     ` Jani Nikula
2018-09-26 12:09       ` Ville Syrjälä

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.