After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 742882 - Export exactly the same EDID information on both X11/wayland backends
Export exactly the same EDID information on both X11/wayland backends
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: wayland
git master
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2015-01-13 20:36 UTC by Carlos Garnacho
Modified: 2015-01-14 13:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
backends: Make KMS EDID information equal to X11's (1.80 KB, patch)
2015-01-13 20:37 UTC, Carlos Garnacho
reviewed Details | Review
backends: Make KMS EDID information equal to X11's (7.02 KB, patch)
2015-01-14 00:00 UTC, Carlos Garnacho
committed Details | Review

Description Carlos Garnacho 2015-01-13 20:36:45 UTC
On X11, if no product/serial strings could be parsed from the EDID blob, it falls back to the hexadecimal representations of product_code/serial_number, which still helps somewhat when matching an specific output.

I'm attaching a patch to replicate that same behavior on wayland (currently NULLs are returned in these), this way touchscreen/tablet mapping in bug #739397 doesn't need any updating when switching between environments.
Comment 1 Carlos Garnacho 2015-01-13 20:37:31 UTC
Created attachment 294459 [details] [review]
backends: Make KMS EDID information equal to X11's

If no product name/serial number are found, resort to the raw values. This
makes EDID information the same on KMS and and X11, so it can be used
consistently on eg. settings keys.
Comment 2 Jasper St. Pierre (not reading bugmail) 2015-01-13 20:40:22 UTC
Review of attachment 294459 [details] [review]:

Would it be possible to put this in a shared utility function, perhaps in edid-parse.c?
Comment 3 Carlos Garnacho 2015-01-14 00:00:45 UTC
Created attachment 294478 [details] [review]
backends: Make KMS EDID information equal to X11's

EDID parsing has been refactored to a common meta_output_parse_edid()
function, which ensures the extracted information is the same on both KMS
and X11 backend, so it can be used consistently on eg. settings values.
Comment 4 Carlos Garnacho 2015-01-14 00:03:59 UTC
(In reply to comment #2)
> Review of attachment 294459 [details] [review]:
> 
> Would it be possible to put this in a shared utility function, perhaps in
> edid-parse.c?

edid-parse is code also copied across g-s-d and others, I felt it was safer to leave it untouched for possible future fixes/merges
Comment 5 Jasper St. Pierre (not reading bugmail) 2015-01-14 00:10:40 UTC
Review of attachment 294478 [details] [review]:

Looks good.
Comment 6 Carlos Garnacho 2015-01-14 11:17:20 UTC
Attachment 294478 [details] pushed as 625d3de - backends: Make KMS EDID information equal to X11's
Comment 7 Rui Matos 2015-01-14 12:25:16 UTC
(In reply to comment #4)
> edid-parse is code also copied across g-s-d and others, I felt it was safer to
> leave it untouched for possible future fixes/merges

We should probably move it to gnome-desktop in that case.
Comment 8 Carlos Garnacho 2015-01-14 13:37:20 UTC
(In reply to comment #7)
> (In reply to comment #4)
> > edid-parse is code also copied across g-s-d and others, I felt it was safer to
> > leave it untouched for possible future fixes/merges
> 
> We should probably move it to gnome-desktop in that case.

Ugh, I actually had the gnome-desktop copy in mind there :), g-s-d has none.