aboutsummaryrefslogtreecommitdiffstats
path: root/monitor-parse-edid
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-03-08 11:33:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-03-08 11:33:56 +0000
commit2b1235ebc7eeae15aa088596ba2364531e4b06df (patch)
treed3cb041dbdebbfd2636d862f29344d431136d1d1 /monitor-parse-edid
parent49f6b2d7ede8f4f373af735e8b0e68d527d1fcb0 (diff)
downloadmonitor-edid-2b1235ebc7eeae15aa088596ba2364531e4b06df.tar
monitor-edid-2b1235ebc7eeae15aa088596ba2364531e4b06df.tar.gz
monitor-edid-2b1235ebc7eeae15aa088596ba2364531e4b06df.tar.bz2
monitor-edid-2b1235ebc7eeae15aa088596ba2364531e4b06df.tar.xz
monitor-edid-2b1235ebc7eeae15aa088596ba2364531e4b06df.zip
- remove the check on product_code != 0, otherwise edid.lcd.hp-nx-7010 which is quite correct is rejected
- don't have a EISA_ID if product_code == 0 - don't display the monitor_name if missing
Diffstat (limited to 'monitor-parse-edid')
-rwxr-xr-xmonitor-parse-edid7
1 files changed, 3 insertions, 4 deletions
diff --git a/monitor-parse-edid b/monitor-parse-edid
index eb154a0..e45e2df 100755
--- a/monitor-parse-edid
+++ b/monitor-parse-edid
@@ -156,7 +156,6 @@ sub check_parsed_edid {
my ($edid) = @_;
$edid->{manufacturer_name} ne '@@@' or return 'bad manufacturer_name';
- $edid->{product_code} != 0 or return 'bad product_code';
$edid->{edid_version} != 0xff && $edid->{edid_revision} != 0xff or return 'bad edid_version';
if ($edid->{monitor_range}) {
@@ -286,7 +285,7 @@ sub parse_edid {
}
$edid{max_size_precision} = 'cm';
- $edid{EISA_ID} = $edid{manufacturer_name} . sprintf('%04x', $edid{product_code});
+ $edid{EISA_ID} = $edid{manufacturer_name} . sprintf('%04x', $edid{product_code}) if $edid{product_code};
if ($edid{monitor_range}) {
$edid{HorizSync} = $edid{monitor_range}{horizontal_min} . '-' . $edid{monitor_range}{horizontal_max};
@@ -381,8 +380,8 @@ sub ratio_name {
sub print_edid {
my ($edid, $verbose) = @_;
- print "Name: $edid->{monitor_name}\n";
- print "EISA ID: $edid->{EISA_ID}\n";
+ print "Name: $edid->{monitor_name}\n" if $edid->{monitor_name};
+ print "EISA ID: $edid->{EISA_ID}\n" if $edid->{EISA_ID};
printf "Screen size: %.1f cm x %.1f cm (%3.2f inches%s)\n",
$edid->{max_size_horizontal},
$edid->{max_size_vertical},