aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-01-03 11:10:30 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-01-03 11:10:30 +0000
commitf2f95e45da4e754fc7a2807f9cbeb63665342620 (patch)
treefccacdb0347ca7874007702d3420302712e40a32
parentb2259d6682dcc9324300ee088cb448d14a42b7ab (diff)
downloadmonitor-edid-f2f95e45da4e754fc7a2807f9cbeb63665342620.tar
monitor-edid-f2f95e45da4e754fc7a2807f9cbeb63665342620.tar.gz
monitor-edid-f2f95e45da4e754fc7a2807f9cbeb63665342620.tar.bz2
monitor-edid-f2f95e45da4e754fc7a2807f9cbeb63665342620.tar.xz
monitor-edid-f2f95e45da4e754fc7a2807f9cbeb63665342620.zip
monitor-probe-using-X:
accept EDID data that contains extension blocks
-rw-r--r--NEWS3
-rwxr-xr-xmonitor-probe-using-X2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 95e50ca..505c945 100644
--- a/NEWS
+++ b/NEWS
@@ -41,6 +41,9 @@
o add --first support for stopping processing after one EDID has been
found
+- monitor-probe-using-X:
+ o accept EDID data that contains extension blocks
+
Version 2.5 - 18 October 2009, by Anssi Hannula
- 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";