aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmonitor-parse-edid7
1 files changed, 4 insertions, 3 deletions
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};