aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-01-02 12:58:59 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-01-02 12:58:59 +0000
commit0aae3559a5717e36c34a80a90033bf054f8acc2f (patch)
tree97a89ed5c7b457c7333e9c24131de3a3ee1c76d3
parent8e9a4f1e49cf08dffecfab8a10176abd97c65452 (diff)
downloadmonitor-edid-0aae3559a5717e36c34a80a90033bf054f8acc2f.tar
monitor-edid-0aae3559a5717e36c34a80a90033bf054f8acc2f.tar.gz
monitor-edid-0aae3559a5717e36c34a80a90033bf054f8acc2f.tar.bz2
monitor-edid-0aae3559a5717e36c34a80a90033bf054f8acc2f.tar.xz
monitor-edid-0aae3559a5717e36c34a80a90033bf054f8acc2f.zip
Add a different comment for CEA modelines than for DTD modelines.
-rwxr-xr-xmonitor-parse-edid4
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor-parse-edid b/monitor-parse-edid
index d3586e9..9e36539 100755
--- a/monitor-parse-edid
+++ b/monitor-parse-edid
@@ -797,6 +797,7 @@ sub parse_edid {
foreach my $pixclock (@{$cea_mode->{pixel_clock}}) {
my %det_mode = %$cea_mode;
$det_mode{pixel_clock} = $pixclock;
+ $det_mode{source} = 'cea_vdb';
push @{$edid{detailed_timings}}, \%det_mode;
}
}
@@ -865,7 +866,8 @@ sub parse_edid {
my $horizontal_total = $h->{horizontal_active} + $h->{horizontal_blanking};
my $vertical_total = $h->{vertical_active} + $h->{vertical_blanking};
- $h->{ModeLine_comment} = sprintf qq(# Monitor preferred modeline (%.1f Hz vsync, %.1f kHz hsync, ratio %s%s)),
+ $h->{ModeLine_comment} = sprintf qq(# Monitor %s modeline (%.1f Hz vsync, %.1f kHz hsync, ratio %s%s)),
+ $h->{source} eq 'cea_vdb' ? "supported CEA" : "preferred",
$h->{pixel_clock} / $horizontal_total / $vertical_total * 1000 * 1000,
$h->{pixel_clock} / $horizontal_total * 1000,
nearest_ratio($h->{horizontal_active} / $h->{vertical_active}, 0.01) || sprintf("%.2f", $h->{horizontal_active} / $h->{vertical_active}),