GNOME Bugzilla – Bug 677031
gnome-rr: Add gnome_rr_output_get_ids_for_edid()
Last modified: 2012-06-14 15:26:06 UTC
.
Created attachment 215180 [details] [review] gnome-rr: Add gnome_rr_output_get_ids_for_edid() To get the vendor/product/serial triplet from an output. This is useful for output matching in gnome-settings-daemon.
Interesting. How do you plan to use this from g-s-d? (Is the vendor null-terminated, or should we allocate a 5-byte string and terminate it ourselves, for safety?)
(In reply to comment #2) > Interesting. How do you plan to use this from g-s-d? See the patch in bug 677032 > (Is the vendor null-terminated, or should we allocate a 5-byte string and > terminate it ourselves, for safety?) it's 3 letters, and it's null-terminated in decode_vendor_and_product_identification(): 63 info->manufacturer_code[3] = '\0';
Oh, I see, you want to look at the "WAC" vendor. Makes sense; go ahead with the change.
Created attachment 216422 [details] [review] gnome-rr: Add gnome_rr_output_get_ids_from_edid() To get the vendor/product/serial triplet from an output's EDID data. This is useful for output matching in gnome-settings-daemon.
Attachment 216422 [details] pushed as db122d9 - gnome-rr: Add gnome_rr_output_get_ids_from_edid()