diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-06-23 02:16:17 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-06-23 02:16:17 +0000 |
commit | 815f5aa43dfb687031b7f40f08f497007887c81d (patch) | |
tree | f1d37855c87f3447e144e1663ba7fa35f47580af /perl-install/Xconfig | |
parent | 1978e4e6ea2dcfdd6ce9ec5164ac4da4118bd9b0 (diff) | |
download | drakx-backup-do-not-use-815f5aa43dfb687031b7f40f08f497007887c81d.tar drakx-backup-do-not-use-815f5aa43dfb687031b7f40f08f497007887c81d.tar.gz drakx-backup-do-not-use-815f5aa43dfb687031b7f40f08f497007887c81d.tar.bz2 drakx-backup-do-not-use-815f5aa43dfb687031b7f40f08f497007887c81d.tar.xz drakx-backup-do-not-use-815f5aa43dfb687031b7f40f08f497007887c81d.zip |
good_default_monitor() should work *nearly* everywhere, so use it for the auto_install fallback
(this is used by mandrakemove)
Diffstat (limited to 'perl-install/Xconfig')
-rw-r--r-- | perl-install/Xconfig/monitor.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/Xconfig/monitor.pm b/perl-install/Xconfig/monitor.pm index af19aa70f..fc07484b4 100644 --- a/perl-install/Xconfig/monitor.pm +++ b/perl-install/Xconfig/monitor.pm @@ -69,7 +69,11 @@ sub configure_auto_install { my $monitors_db = monitors_db(); foreach my $monitor (@$monitors) { - configure_automatic($monitor, $monitors_db) or put_in_hash($monitor, { HorizSync => '31.5-35.1', VertRefresh => '50-61' }); + if (!configure_automatic($monitor, $monitors_db)) { + good_default_monitor() =~ /(.*)\|(.*)/ or internal_error("bad good_default_monitor"); + put_in_hash($monitor, { VendorName => $1, ModelName => $2 }); + configure_automatic($monitor, $monitors_db) or internal_error("good_default_monitor (" . good_default_monitor() . ") is unknown in MonitorDB"); + } } $raw_X->set_monitors(@$monitors); $monitors; |