aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-01-03 04:16:58 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-01-03 04:16:58 +0000
commitae7368b46b8ba0d70c6039c5c88a2b60e1ac0ffb (patch)
tree3c15c7e3765e4186e6e2eda41205ed802c721765
parenta3e9aad555c8df59b42cbd630e5a7abd6ed17ec2 (diff)
downloadmonitor-edid-ae7368b46b8ba0d70c6039c5c88a2b60e1ac0ffb.tar
monitor-edid-ae7368b46b8ba0d70c6039c5c88a2b60e1ac0ffb.tar.gz
monitor-edid-ae7368b46b8ba0d70c6039c5c88a2b60e1ac0ffb.tar.bz2
monitor-edid-ae7368b46b8ba0d70c6039c5c88a2b60e1ac0ffb.tar.xz
monitor-edid-ae7368b46b8ba0d70c6039c5c88a2b60e1ac0ffb.zip
monitor-parse-edid: ignore 1x1 modes
-rw-r--r--NEWS1
-rwxr-xr-xmonitor-parse-edid4
2 files changed, 3 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index d6e07e9..96db8fe 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,7 @@
o correctly parse some interlaced video timings if the Detailed Timing
Descriptor specifies field vertical parameters instead of the frame
parameters
+ o ignore 1x1 modes (at least Nokia Valuegraph 447w)
Version 2.5 - 18 October 2009, by Anssi Hannula
diff --git a/monitor-parse-edid b/monitor-parse-edid
index a702cc6..73fc264 100755
--- a/monitor-parse-edid
+++ b/monitor-parse-edid
@@ -712,7 +712,7 @@ sub parse_edid {
# detailed timing
my $h = build_detailed_timing($pixel_clock, $vv);
push @{$edid{detailed_timings}}, $h
- if $h->{horizontal_active} > 0 && $h->{vertical_active} > 0;
+ if $h->{horizontal_active} > 1 && $h->{vertical_active} > 1;
} else {
(my $flag, $vv) = unpack("n x a*", $vv);
@@ -812,7 +812,7 @@ sub parse_edid {
last if !$pixel_clock;
my $h = build_detailed_timing($pixel_clock, $vv);
push @{$edid{detailed_timings}}, $h
- if $h->{horizontal_active} > 0 && $h->{vertical_active} > 0;
+ if $h->{horizontal_active} > 1 && $h->{vertical_active} > 1;
}
} else {
$verbose && warn "parse_edid: unknown tag $tag\n";