From 90253b3edec917fb8be9327dbe413e3ed0f6bf75 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 28 Feb 2005 21:46:40 +0000 Subject: add the sync polarity --- monitor-parse-edid | 7 +++++-- 1 file 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 -- cgit v1.2.1