From 3b9b604eb1802c5f546bd444dae32e179bbb7d20 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 16 Jan 2000 23:08:46 +0000 Subject: no_comment --- perl-install/install_steps_gtk.pm | 41 ++++++++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 11 deletions(-) (limited to 'perl-install/install_steps_gtk.pm') diff --git a/perl-install/install_steps_gtk.pm b/perl-install/install_steps_gtk.pm index 41e17160f..5a852c444 100644 --- a/perl-install/install_steps_gtk.pm +++ b/perl-install/install_steps_gtk.pm @@ -17,6 +17,7 @@ use Gtk; use devices; use fsedit; use modules; +use pkgs; use install_steps; use install_steps_interactive; use interactive_gtk; @@ -189,25 +190,32 @@ sub new($$) { } 0; }; + my @servers = qw(FBDev VGA16); + @servers = qw(FBDev 3DLabs TGA) if arch() eq "alpha"; - if (!$o->{vga16} && listlength(cat_("/proc/fb"))) { - &$launchX("XF86_FBDev"); - $o->{allowFB} = 1; #- keep in mind FB is used. - } else { + foreach (@servers) { + log::l("Trying with server $_"); my $dir = "/usr/X11R6/bin"; - unless (-x "$dir/XF86_VGA16") { - unlink "$dir/XF86_FBDev"; - local *F; open F, ">$dir/XF86_VGA16" or die ''; + unless (-x "$dir/XF86_$_") { + unlink $_ foreach glob_("$dir/XF86_*"); + local *F; open F, ">$dir/XF86_$_" or die ''; local $/ = \ (16 * 1024); - my $f = install_any::getFile("$dir/XF86_VGA16") or die ''; + my $f = install_any::getFile("$dir/XF86_$_") or next; syswrite F, $_ foreach <$f>; - chmod 0755, "$dir/XF86_VGA16"; + chmod 0755, "$dir/XF86_$_"; + } + if (/FB/) { + !$o->{vga16} && listlength(cat_("/proc/fb")) or next; + + $o->{allowFB} = &$launchX("XF86_$_") #- keep in mind FB is used. + and last; + } else { + &$launchX("XF86_$_") and last; } - &$launchX("XF86_VGA16"); } } } - @themes = @themes_vga16 if $o->{simple_themes} || !$o->{display} && !($o->{allowFB} ||= $::testing); + @themes = @themes_vga16 if $o->{simple_themes} || $o->{vga16}; install_theme($o); create_logo_window($o); @@ -856,6 +864,17 @@ Section "Screen" EndSubsection EndSection +Section "Screen" + Driver "accel" + Device "Generic VGA" + Monitor "My Monitor" + Subsection "Display" + Depth 16 + Modes "640x480" + ViewPort 0 0 + EndSubsection +EndSection + Section "Screen" Driver "fbdev" Device "Generic VGA" -- cgit v1.2.1