summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig/monitor.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-06-02 02:08:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-06-02 02:08:06 +0000
commitc7f7e91919ee72b885d5b3253c608393279945ae (patch)
treedf8b892cd5327a89000d39d33824c556e90aaf2a /perl-install/Xconfig/monitor.pm
parente5c9364696dd1de43b51b39cd9f3792c2a50a3cf (diff)
downloaddrakx-c7f7e91919ee72b885d5b3253c608393279945ae.tar
drakx-c7f7e91919ee72b885d5b3253c608393279945ae.tar.gz
drakx-c7f7e91919ee72b885d5b3253c608393279945ae.tar.bz2
drakx-c7f7e91919ee72b885d5b3253c608393279945ae.tar.xz
drakx-c7f7e91919ee72b885d5b3253c608393279945ae.zip
create detect_devices::probe_name() & detect_devices::probe_unique_name() and use them
Diffstat (limited to 'perl-install/Xconfig/monitor.pm')
-rw-r--r--perl-install/Xconfig/monitor.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/perl-install/Xconfig/monitor.pm b/perl-install/Xconfig/monitor.pm
index 251f384c8..eda0ff5ad 100644
--- a/perl-install/Xconfig/monitor.pm
+++ b/perl-install/Xconfig/monitor.pm
@@ -230,11 +230,8 @@ sub probe_using_X {
}
sub probe_DMI() {
- my ($res) = my @res = uniq(map { if_($_->{driver} =~ /^Resolution:(.*)/, $1) } detect_devices::probeall()) or return;
- if (@res > 1) {
- log::l("oops, more than one resolution from DMI and pci probe: ", join(' ', @res));
- }
- generic_flat_panel($res);
+ my $res = detect_devices::probe_unique_name('Resolution');
+ $res && generic_flat_panel($res);
}
sub generic_flat_panel {