File debug-edid.patch of Package enlightenment
commit 97ba9911b1e4cfea9fff554640bb690a48707310
Author: Simon Lees <sflees@suse.de>
Date: Tue Aug 31 16:07:08 2021 +0930
randr: print edid for debugging
diff --git a/src/bin/e_comp_x_randr.c b/src/bin/e_comp_x_randr.c
index 5cbf91245..551c9007a 100644
--- a/src/bin/e_comp_x_randr.c
+++ b/src/bin/e_comp_x_randr.c
@@ -759,9 +759,19 @@ e_comp_x_randr_create(void)
s->info.screen = _output_screen_get(root, outputs[i]);
s->info.edid = _edid_string_get(root, outputs[i]);
if (s->info.edid)
- s->id = malloc(strlen(s->info.name) + 1 + strlen(s->info.edid) + 1);
+ {
+ s->id = malloc(strlen(s->info.name) + 1 + strlen(s->info.edid) + 1);
+ printf("RRR: ...... edid %.16s\n", s->info.edid);
+ for (j = 16; j < strlen(s->info.edid)-1; j+=16)
+ {
+ printf("RRR: %.16s\n", (char *)s->info.edid+j);
+ }
+ }
else
- s->id = malloc(strlen(s->info.name) + 1 + 1);
+ {
+ s->id = malloc(strlen(s->info.name) + 1 + 1);
+ printf("RRR: ...... edid :NULL:\n");
+ }
if (!s->id)
{
free(s->info.screen);