diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-03-08 10:29:29 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-03-08 10:29:29 +0000 |
commit | 49f6b2d7ede8f4f373af735e8b0e68d527d1fcb0 (patch) | |
tree | f642b80cd83410d64c5f1bfd636dedff2b095a27 /monitor-parse-edid | |
parent | e5344d1edad8a6b840e22819abc347ad002b0892 (diff) | |
download | monitor-edid-49f6b2d7ede8f4f373af735e8b0e68d527d1fcb0.tar monitor-edid-49f6b2d7ede8f4f373af735e8b0e68d527d1fcb0.tar.gz monitor-edid-49f6b2d7ede8f4f373af735e8b0e68d527d1fcb0.tar.bz2 monitor-edid-49f6b2d7ede8f4f373af735e8b0e68d527d1fcb0.tar.xz monitor-edid-49f6b2d7ede8f4f373af735e8b0e68d527d1fcb0.zip |
- skip preferred resolution 640x350
(occuring on 2 edids, but really useless)
- pad with 0s EISA_ID (ie have QDS0014 instead of QDS14)
Diffstat (limited to 'monitor-parse-edid')
-rwxr-xr-x | monitor-parse-edid | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/monitor-parse-edid b/monitor-parse-edid index 7ec8960..eb154a0 100755 --- a/monitor-parse-edid +++ b/monitor-parse-edid @@ -228,8 +228,9 @@ sub parse_edid { $h->{$field} += $hi << $detailed_timing_field_size{$field}; } push @{$edid{detailed_timings}}, $h - if $h->{horizontal_active} > 0 - && $h->{vertical_active} > 0; + if ($h->{horizontal_active} > 0 && $h->{vertical_active} > 0) + && ($h->{horizontal_active} != 640 && $h->{horizontal_active} != 350); + ; } else { (my $flag, $vv) = unpack("n x a*", $vv); @@ -285,7 +286,7 @@ sub parse_edid { } $edid{max_size_precision} = 'cm'; - $edid{EISA_ID} = $edid{manufacturer_name} . sprintf('%x', $edid{product_code}); + $edid{EISA_ID} = $edid{manufacturer_name} . sprintf('%04x', $edid{product_code}); if ($edid{monitor_range}) { $edid{HorizSync} = $edid{monitor_range}{horizontal_min} . '-' . $edid{monitor_range}{horizontal_max}; |