summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-19 13:16:46 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-19 13:16:46 +0000
commit3eca2928c6ac931e88934f32fc3b8d6f4160e206 (patch)
tree7176e26e5aca4402fdc15635fb6a703d48be0e47 /perl-install
parent2e3f0212c97fa28ed9fa4837ef532da2db5312ed (diff)
downloaddrakx-3eca2928c6ac931e88934f32fc3b8d6f4160e206.tar
drakx-3eca2928c6ac931e88934f32fc3b8d6f4160e206.tar.gz
drakx-3eca2928c6ac931e88934f32fc3b8d6f4160e206.tar.bz2
drakx-3eca2928c6ac931e88934f32fc3b8d6f4160e206.tar.xz
drakx-3eca2928c6ac931e88934f32fc3b8d6f4160e206.zip
- don't write XF86Config when no {card}{server}
- don't write XF86Config-4 when no {card}{driver} - workaround mixing values from existing config and cardConfigurationAuto() - fix asking VideoRam - fix device0 in XF86Config
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/Xconfigurator.pm20
1 files changed, 11 insertions, 9 deletions
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm
index 7c5705afa..613357a78 100644
--- a/perl-install/Xconfigurator.pm
+++ b/perl-install/Xconfigurator.pm
@@ -346,7 +346,8 @@ sub cardConfiguration {
if (!$card->{server} && !$card->{driver} && !$noauto) {
my @cards = cardConfigurationAuto();
- $card = multi_head_config($noauto, @cards);
+ my $card_ = multi_head_config($noauto, @cards);
+ put_in_hash($card, $card_);
$card->{server} = 'FBDev' if $cardOptions->{allowFB} && !$card->{server} && !$card->{driver};
}
@@ -430,7 +431,8 @@ sub cardConfiguration {
$in->ask_from('', _("Select the memory size of your graphics card"),
- [ { list => [ sort keys %Xconfigurator_consts::VideoRams ],
+ [ { val => \$card->{VideoRam},
+ list => [ sort keys %Xconfigurator_consts::VideoRams ],
format => sub { translate($Xconfigurator_consts::VideoRams{$_[0]}) },
not_edit => !$::expert } ]) || return
if $card->{needVideoRam} && !$card->{VideoRam};
@@ -989,8 +991,8 @@ Section "InputDevice"
print F ($id > 1 && " ") . qq( Emulate3Timeout 50\n\n);
print G qq( Option "Emulate3Timeout" "50"\n\n);
$id > 1 and print F qq( EndSubSection\n);
- print F "EndSection\n\n\n";
- print G "EndSection\n\n\n";
+ print F "EndSection\n\n";
+ print G "EndSection\n\n";
};
$pointer->($X->{mouse}, 1);
$pointer->($X->{mouse}{auxmouse}, 2) if $X->{mouse}{auxmouse};
@@ -1254,13 +1256,13 @@ Section "Screen"
$subscreen->(*F, $server, $defdepth, $depths);
};
- &$screen("svga", $X->{default_depth}, 'device0', $O->{depth})
+ &$screen("svga", $X->{default_depth}, 'device1', $O->{depth})
if $O->{server} eq 'SVGA';
- &$screen("accel", $X->{default_depth}, 'device0', $O->{depth})
+ &$screen("accel", $X->{default_depth}, 'device1', $O->{depth})
if $Xconfigurator_consts::serversdriver{$O->{server}} eq 'accel';
- &$screen("fbdev", $X->{default_depth}, 'device0', $O->{depth});
+ &$screen("fbdev", $X->{default_depth}, 'device1', $O->{depth});
&$screen("vga16", '', "Generic VGA", { '' => [[ 640, 480 ], [ 800, 600 ]]});
@@ -1371,8 +1373,8 @@ The current configuration is:
if (-e "$f.test") {
rename $f, "$f.old" or die "unable to make a backup of XF86Config";
rename "$f-4", "$f-4.old";
- rename "$f.test", $f;
- rename "$f.test-4", "$f-4";
+ rename "$f.test", $f if $X->{card}{server};
+ rename "$f.test-4", "$f-4" if $X->{card}{driver};
symlinkf "../..$X->{card}{prog}", "$::prefix/etc/X11/X" if $X->{card}{server} !~ /Xpmac/;
}
}