From 49f6b2d7ede8f4f373af735e8b0e68d527d1fcb0 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 8 Mar 2005 10:29:29 +0000 Subject: - skip preferred resolution 640x350 (occuring on 2 edids, but really useless) - pad with 0s EISA_ID (ie have QDS0014 instead of QDS14) --- monitor-parse-edid | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'monitor-parse-edid') diff --git a/monitor-parse-edid b/monitor-parse-edid index 7ec8960..eb154a0 100755 --- a/monitor-parse-edid +++ b/monitor-parse-edid @@ -228,8 +228,9 @@ sub parse_edid { $h->{$field} += $hi << $detailed_timing_field_size{$field}; } push @{$edid{detailed_timings}}, $h - if $h->{horizontal_active} > 0 - && $h->{vertical_active} > 0; + if ($h->{horizontal_active} > 0 && $h->{vertical_active} > 0) + && ($h->{horizontal_active} != 640 && $h->{horizontal_active} != 350); + ; } else { (my $flag, $vv) = unpack("n x a*", $vv); @@ -285,7 +286,7 @@ sub parse_edid { } $edid{max_size_precision} = 'cm'; - $edid{EISA_ID} = $edid{manufacturer_name} . sprintf('%x', $edid{product_code}); + $edid{EISA_ID} = $edid{manufacturer_name} . sprintf('%04x', $edid{product_code}); if ($edid{monitor_range}) { $edid{HorizSync} = $edid{monitor_range}{horizontal_min} . '-' . $edid{monitor_range}{horizontal_max}; -- cgit v1.2.1