From f488dbc42559953213d8214eff35c48704ec6f77 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 14 Sep 2005 19:40:41 +0000 Subject: use nvidia legacy drivers for TNT2/GeForce/GeForce2 --- perl-install/Xconfig/card.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'perl-install/Xconfig') diff --git a/perl-install/Xconfig/card.pm b/perl-install/Xconfig/card.pm index 4a16e04fb..486ec13d3 100644 --- a/perl-install/Xconfig/card.pm +++ b/perl-install/Xconfig/card.pm @@ -298,7 +298,13 @@ sub install_server { } my %proprietary_Driver2 = ( - nvidia => [ 'nvidia-kernel', 'nvidia' ], #- using NVIDIA driver (TNT, TN2 and GeForce cards only). + nvidia => [ + $card->{NVIDIA_LEGACY} ? + #- using NVIDIA Legacy driver for old NVIDIA cards (TNT, TNT2, Vanta, Quadro, Quadro2, GeForce and GeForce2) + ('nvidia_legacy-kernel', 'nvidia_legacy') : + #- using current NVIDIA driver for recent NVIDIA cards (Geforce/Quadro 3/4/FX/6x00/NVS) + ('nvidia-kernel', 'nvidia') + ], fglrx => [ 'ati-kernel', 'ati' ], #- using ATI fglrx driver (Radeon, Fire GL cards only). ); if (my $rpms_needed = $proprietary_Driver2{$card->{Driver2}}) { @@ -525,6 +531,7 @@ sub readCardsDB { BAD_FB_RESTORE => sub { $card->{BAD_FB_RESTORE} = 1 }, FB_TVOUT => sub { $card->{FB_TVOUT} = 1 }, UNSUPPORTED => sub { delete $card->{Driver} }, + NVIDIA_LEGACY => sub { $card->{NVIDIA_LEGACY} = 1 }, COMMENT => sub {}, }; -- cgit v1.2.1