drmmode_output_get_modes: Replace existing EDID property blob with new one
This synchronizes the X EDID data with the kernel EDID data each time the kernel data may have changed. Otherwise, X ends up stuck with the first EDID data it sees, failing to accomodate to different monitors. Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
840a787a19
commit
6f3fc6b20f
|
|
@ -641,8 +641,7 @@ drmmode_output_get_modes(xf86OutputPtr output)
|
|||
if (!props || !(props->flags & DRM_MODE_PROP_BLOB))
|
||||
continue;
|
||||
|
||||
if (!strcmp(props->name, "EDID") &&
|
||||
drmmode_output->edid_blob == NULL) {
|
||||
if (!strcmp(props->name, "EDID")) {
|
||||
drmModeFreePropertyBlob(drmmode_output->edid_blob);
|
||||
drmmode_output->edid_blob =
|
||||
drmModeGetPropertyBlob(drmmode->fd,
|
||||
|
|
|
|||
Loading…
Reference in New Issue