From 816761acf9e589632e9c9e87fd6667b7927bf953 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 6 Feb 2004 20:04:30 +0000 Subject: - ensure ModelName comes from the ddc probe when choosing "Plug'n Play" - only "Plug'n Play" instead of "Plug'n Play ()" when current monitor is not plug'n play --- perl-install/Xconfig/monitor.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/Xconfig/monitor.pm') diff --git a/perl-install/Xconfig/monitor.pm b/perl-install/Xconfig/monitor.pm index 520b6f1e4..38fa8b3d9 100644 --- a/perl-install/Xconfig/monitor.pm +++ b/perl-install/Xconfig/monitor.pm @@ -104,18 +104,18 @@ sub choose { [ { val => \$merged_name, separator => '|', list => ['Custom', "Plug'n Play", sort keys %h_monitors], format => sub { $_[0] eq 'Custom' ? N("Custom") : - $_[0] eq "Plug'n Play" ? N("Plug'n Play") . " ($monitor->{ModelName})" : + $_[0] eq "Plug'n Play" ? N("Plug'n Play") . ($monitor->{VendorName} eq "Plug'n Play" ? " ($monitor->{ModelName})" : '') : $_[0] =~ /^Generic\|(.*)/ ? N("Generic") . "|$1" : N("Vendor") . "|$_[0]" }, sort => 0 } ]) or return; if ($merged_name eq "Plug'n Play") { local $::noauto = 0; #- hey, you asked for plug'n play, so i do probe! + delete @$monitor{'VendorName', 'ModelName', 'EISA_ID'}; put_in_hash($monitor, getinfoFromDDC()); if (configure_automatic($monitor, $monitors)) { $monitor->{VendorName} = "Plug'n Play"; } else { - delete $monitor->{VendorName}; $in->ask_warn('', N("Plug'n Play probing failed. Please select the correct monitor")); goto ask_monitor; } -- cgit v1.2.1