aboutsummaryrefslogtreecommitdiffstats
path: root/monitor-parse-edid
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-01-03 14:45:56 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-01-03 14:45:56 +0000
commitaf58f3016b791559909e2037287adde13b71d5dc (patch)
treea095061ce54ef2eb6c78e41c64508e74b40b348d /monitor-parse-edid
parent66d7228d3bdba031331ef4d2852ff49c533456b4 (diff)
downloadmonitor-edid-af58f3016b791559909e2037287adde13b71d5dc.tar
monitor-edid-af58f3016b791559909e2037287adde13b71d5dc.tar.gz
monitor-edid-af58f3016b791559909e2037287adde13b71d5dc.tar.bz2
monitor-edid-af58f3016b791559909e2037287adde13b71d5dc.tar.xz
monitor-edid-af58f3016b791559909e2037287adde13b71d5dc.zip
monitor-parse-edid:
o output an error message when --monitorsdb fails (see Mandriva bugs #28857 and #40609)
Diffstat (limited to 'monitor-parse-edid')
-rwxr-xr-xmonitor-parse-edid9
1 files changed, 8 insertions, 1 deletions
diff --git a/monitor-parse-edid b/monitor-parse-edid
index 5a6f4f0..389658a 100755
--- a/monitor-parse-edid
+++ b/monitor-parse-edid
@@ -588,7 +588,14 @@ sub ratio_name {
sub to_MonitorsDB {
my ($edid) = @_;
- $edid->{monitor_range} && $edid->{EISA_ID} or return;
+ if (!$edid->{monitor_range}) {
+ print STDERR "No monitor range data in EDID.\n";
+ return;
+ }
+ if (!$edid->{EISA_ID}) {
+ print STDERR "No monitor EISA_ID in EDID.\n";
+ return;
+ }
my $detailed_timings = $edid->{detailed_timings} || [];
my @preferred_resolutions = map {