From 23c22ae05ec5203dcaf93ec4194b8ec2a5408f28 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Thu, 25 May 2000 18:45:50 +0000 Subject: *** empty log message *** --- perl-install/Xconfigurator.pm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'perl-install/Xconfigurator.pm') diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm index bf055b91c..19094c3b4 100644 --- a/perl-install/Xconfigurator.pm +++ b/perl-install/Xconfigurator.pm @@ -293,7 +293,7 @@ sub testFinalConfig($;$$) { my $f = "/etc/X11/XF86Config.test"; write_XF86Config($o, $::testing ? $tmpconfig : "$prefix/$f"); - $skiptest || $o->{card}{server} eq 'FBDev' and return 1; #- avoid testing since untestable without reboot. + $skiptest || $o->{card}{server} =~ 'FBDev|Sun' and return 1; #- avoid testing with these. #- needed for bad cards not restoring cleanly framebuffer my $bad_card = $o->{card}{identifier} =~ /i740|ViRGE/; @@ -423,8 +423,11 @@ sub autoDefaultDepth($$) { return 24 if $card->{identifier} =~ /SiS/; - if ($card->{server} eq 'FBDev') { - return 16; #- this should work by default, FBDev is allowed only if install currently uses it at 16bpp. + for ($card->{server}) { + /FBDev/ and return 16; #- this should work by default, FBDev is allowed only if install currently uses it at 16bpp. + /Sun24/ and return 24; + /SunMono/ and return 2; + /Sun/ and return 8; } while (my ($d, $r) = each %{$card->{depth}}) { @@ -531,6 +534,11 @@ sub resolutionsConfiguration($%) { if (member($card->{server}, "Mono", "VGA16")) { $card->{depth}{8} = [[ 640, 480 ]]; return; + } elsif ($card->{server} =~ /Sun/) { + $card->{depth}{2} = [[ 1152, 864 ]] if $card->{server} eq "SunMono"; + $card->{depth}{8} = [[ 1152, 864 ]] if $card->{server} eq "Sun"; + $card->{depth}{24} = [[ 1152, 864 ]] if $card->{server} eq "Sun24"; + return; } #- some of these guys hate to be poked -- cgit v1.2.1