aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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