aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-02-28 21:46:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-02-28 21:46:40 +0000
commit90253b3edec917fb8be9327dbe413e3ed0f6bf75 (patch)
tree397851533a1574e65a3e08f59167c2f758123a47
parentf76562cdf5a01375f8534a915aa638d050337afe (diff)
downloadmonitor-edid-90253b3edec917fb8be9327dbe413e3ed0f6bf75.tar
monitor-edid-90253b3edec917fb8be9327dbe413e3ed0f6bf75.tar.gz
monitor-edid-90253b3edec917fb8be9327dbe413e3ed0f6bf75.tar.bz2
monitor-edid-90253b3edec917fb8be9327dbe413e3ed0f6bf75.tar.xz
monitor-edid-90253b3edec917fb8be9327dbe413e3ed0f6bf75.zip
add the sync polarity
-rwxr-xr-xmonitor-parse-edid7
1 files changed, 5 insertions, 2 deletions
diff --git a/monitor-parse-edid b/monitor-parse-edid
index 60f5894..94c5480 100755
--- a/monitor-parse-edid
+++ b/monitor-parse-edid
@@ -275,7 +275,7 @@ sub parse_edid {
$h->{pixel_clock} / $horizontal_total / $vertical_total * 1000 * 1000,
$h->{pixel_clock} / $horizontal_total * 1000;
- $h->{ModeLine} = sprintf qq("%dx%d" $h->{pixel_clock} %d %d %d %d %d %d %d %d),
+ $h->{ModeLine} = sprintf qq("%dx%d" $h->{pixel_clock} %d %d %d %d %d %d %d %d %shsync %svsync),
$h->{horizontal_active}, $h->{vertical_active},
$h->{horizontal_active},
@@ -286,7 +286,10 @@ sub parse_edid {
$h->{vertical_active},
$h->{vertical_active} + $h->{vertical_sync_offset},
$h->{vertical_active} + $h->{vertical_sync_offset} + $h->{vertical_sync_pulse_width},
- $vertical_total;
+ $vertical_total,
+
+ $h->{horizontal_sync_positive} ? '+' : '-',
+ $h->{vertical_sync_positive} ? '+' : '-';
# if the mm size given in the detailed_timing is not far from the cm size
# put it as a more precise cm size