From f2f95e45da4e754fc7a2807f9cbeb63665342620 Mon Sep 17 00:00:00 2001 From: Anssi Hannula Date: Sun, 3 Jan 2010 11:10:30 +0000 Subject: monitor-probe-using-X: accept EDID data that contains extension blocks --- monitor-probe-using-X | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'monitor-probe-using-X') diff --git a/monitor-probe-using-X b/monitor-probe-using-X index 07ccd59..3af8eb4 100755 --- a/monitor-probe-using-X +++ b/monitor-probe-using-X @@ -119,7 +119,7 @@ sub parse_X_log_edids { while ($log =~ /: EDID \(in hex\):\n((.*\n){8})/g) { my @lines = split '\n', $1; my $edid = join('', map { /:\s+([0-9a-f]{32})$/ && $1 } @lines); - if (length $edid == 256) { + if (length($edid) % 256 == 0) { @edids = uniq(@edids, $edid); } else { warn "bad EDID found\n"; -- cgit v1.2.1