LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-17-2005, 03:08 PM   #1
daedalus12
LQ Newbie
 
Registered: Feb 2005
Posts: 22

Rep: Reputation: 15
nvidia drivers riva tnt2


i have a riva tnt 2 agp card. i want to enable 3d acceleration. i downloaded the nvidia patch using yast. after that the boot up failed to go into graphical interface so i loaded the old xorg.conf. how do i enable 3d acceleration.

thanks
swen
 
Old 10-17-2005, 03:10 PM   #2
daedalus12
LQ Newbie
 
Registered: Feb 2005
Posts: 22

Original Poster
Rep: Reputation: 15
i also downloaded the file from nvidia.com and tried compiling it. but the compilation fails. /var/log/nvidia-installer-log contains this:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Oct 18 01:34:40 2005

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : (not specified)
installer install prefix: /usr
utility install prefix : /usr
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> There appears to already be a driver installed on your system (version: 1.0-
7676). As part of installing this driver (version: 1.0-6629), the existing
driver will be uninstalled. Are you sure you want to continue? ('no' will a
bort installation) (Answer: Yes)
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Kernel source path: '/lib/modules/2.6.13-15-default/source'
-> Performing CC test with CC="cc".
-> Performing rivafb check.
-> Performing rivafb module check.
WARNING: Your kernel was configured to include rivafb support as
a loadable kernel module.

The rivafb driver conflicts with the NVIDIA driver; the
NVIDIA kernel module will still be built and installed,
but be aware that the NVIDIA driver will not be able to
function properly if the rivafb module is loaded!
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.13-15-defau
lt/source SYSOUT=/lib/modules/2.6.13-15-default/build'...
Your kernel was configured to include rivafb support as
a loadable kernel module.

The rivafb driver conflicts with the NVIDIA driver; the
NVIDIA kernel module will still be built and installed,
but be aware that the NVIDIA driver will not be able to
function properly if the rivafb module is loaded!

*** Failed rivafb module sanity check, but continuing! ***


NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.13-15-default/build KBUILD_VERBOSE
=1 -C /lib/modules/2.6.13-15-default/source SUBDIRS=/tmp/selfgz12156/NVIDIA-
Linux-x86-1.0-6629-pkg1/usr/src/nv modules
make -C /lib/modules/2.6.13-15-default/build \
KBUILD_SRC=/usr/src/linux-2.6.13-15 KBUILD_VERBOSE=1 \
KBUILD_CHECK= KBUILD_EXTMOD="/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1
/usr/src/nv" \
-f /usr/src/linux-2.6.13-15/Makefile modules
mkdir -p /tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/.tmp_ver
sions
make -f /usr/src/linux-2.6.13-15/scripts/Makefile.build obj=/tmp/selfgz12156
/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz12156/NV
IDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/.nv.
o.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.0.2/include -D__KERNE
L__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.13-15/include -I/tmp/selfgz121
56/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv -Wall -Wundef -Wstrict-prototy
pes -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-aliasin
g -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mp
referred-stack-boundary=2 -fno-unit-at-a-time -march=i586 -mregparm=3 -Iincl
ude/asm-i386/mach-default -I/usr/src/linux-2.6.13-15/include/asm-i386/mach-d
efault -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/selfgz12156/NV
IDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wsw
itch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar
-Werror -O -fno-common -MD -Wno-cast-qual -
Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -
D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_V
ERSION=0 -DNV_PATCHLEVEL=6629 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86
-UDEBUG -U_DEBUG -DNDEBUG -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR
_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DMODULE
-DKBUILD_BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o /tmp/selfgz12156/NVIDIA-L
inux-x86-1.0-6629-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz12156/NVIDIA-Linux-x8
6-1.0-6629-pkg1/usr/src/nv/nv.c
In file included from /usr/src/linux-2.6.13-15/include/linux/list.h:7,
from /usr/src/linux-2.6.13-15/include/linux/wait.h:23,
from include2/asm/semaphore.h:41,
from /usr/src/linux-2.6.13-15/include/linux/sched.h:20,
from /usr/src/linux-2.6.13-15/include/linux/module.h:10,
from /tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/sr
c/nv/nv-linux.h:52,
from /tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/sr
c/nv/nv.c:14:
/usr/src/linux-2.6.13-15/include/linux/prefetch.h: In function ‘prefetch_r
ange’:
/usr/src/linux-2.6.13-15/include/linux/prefetch.h:62: warning: pointer of ty
pe ‘void *’ used in arithmetic
In file included from /usr/src/linux-2.6.13-15/include/linux/dmapool.h:14,
from /usr/src/linux-2.6.13-15/include/linux/pci.h:870,
from /tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/sr
c/nv/nv-linux.h:75,
from /tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/sr
c/nv/nv.c:14:
include2/asm/io.h: In function ‘check_signature’:
include2/asm/io.h:253: warning: wrong type argument to increment
In file included from /tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/sr
c/nv/nv.c:14:
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv-linux.h:203:5:
warning: "NV_ENABLE_MEM_TRACKING" is not defined
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv-linux.h:231:5:
warning: "NV_ENABLE_MEM_TRACKING" is not defined
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:223:5: warni
ng: "NV_ENABLE_MEM_TRACKING" is not defined
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
‘nvidia_init_module’:
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:930: warning
: ‘pm_register’ is deprecated (declared at /usr/src/linux-2.6.13-15/incl
ude/linux/pm.h:107)
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
‘nvidia_exit_module’:
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:1051: warnin
g: ‘pm_unregister’ is deprecated (declared at /usr/src/linux-2.6.13-15/i
nclude/linux/pm.h:112)
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:1097:5: warn
ing: "NV_ENABLE_MEM_TRACKING" is not defined
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
‘_get_phys_address’:
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2509: warnin
g: passing argument 1 of ‘pmd_offset’ from incompatible pointer type
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c: In function
‘nv_agp_init’:
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2991: error:
implicit declaration of function ‘inter_module_get’
/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.c:2992: warnin
g: ‘inter_module_put’ is deprecated (declared at /usr/src/linux-2.6.13-1
5/include/linux/module.h:573)
make[4]: *** [/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/nv.
o] Error 1
make[3]: *** [_module_/tmp/selfgz12156/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/sr
c/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.


any ideas???
 
Old 10-18-2005, 03:13 PM   #3
mac57
Member
 
Registered: Nov 2004
Location: Texas
Distribution: openSUSE 10.3, Yoper Linux 3.0 , Arch Linux 2007.08
Posts: 253

Rep: Reputation: 30
I can't solve your problem directly, but I can suggest to you that there is little point in going down the path you are following. I too have a Riva TNT card, an "STB nVidia TNT 16 MB" card that came with my older Dell XPS-R450 (in this case an AGP card, as AGP had just debutted at the time I bought the PC). After extensive trial and error, I found that the Linux nVidia drivers available directly from the nVidia site work just fine with it. Support for the RIVA TNT is included up to and including 71.67. They dropped the RIVA TNT support in all releases following that. So, you should be able to simply use the stock drivers available from nVidia, installing in the usual way, and all is well.

Or is it? Well, not really. You don't get a lot of 3D acceleration from the RIVA TNT. To give you an idea, after I spent hours trolling through the nVidia driver archive, and trying out each one in turn, the best I could do was with 44.96, where I got a pathetic glxgears score of 262! On top of that, none of the "real" 3D stuff (tuxracer, 3D screen savers, etc.) would run at any decent speed at all, and a lot of 2D stuff seemed unnaturally slow.

After much more trial and error, I eventually dropped back to the basic "nv" driver. The system was more responsive using this than it was with the supposedly "accelerated" driver. You get little gain, and no small amount of pain when you use the "accelerated" driver. In my experience, it wasn't worth the trouble.

My advice? Stick with the nv driver, or get yourself a new video card whose hardware is much more capable than the RIVA TNT. I eventually took this course, and purchased an excellent and inexpensive little card: a Chaintech GeForce 5200. You can one of these for either $49.99 for the analog RGB only version, or $79.99 for the RGB and DVI version. I bought the RGB/DVI version so I could use DVI with LCD displays.

With everything else the same, just replacing the RIVA TNT with the GeForce 5200 (and re-installing the accelerated driver of course) my glxgears score jumped up to 1212! The system runs perceptably faster now, and 3D performance is very good.

This mid performance, low cost GeForce card makes a real difference. You can get one from TigerDirect.com at the prices I have quoted - that is where I got mine (no, I have no affiliation with them - just a satisfied customer).
 
Old 10-19-2005, 06:32 AM   #4
daedalus12
LQ Newbie
 
Registered: Feb 2005
Posts: 22

Original Poster
Rep: Reputation: 15
thanx for the advice. anyways i did manage to compile the drivers and it works fine the first time i boot to init 5 from init 3. but then when i restart the system i get no graphical display? any ideas??
 
Old 10-19-2005, 07:22 PM   #5
mac57
Member
 
Registered: Nov 2004
Location: Texas
Distribution: openSUSE 10.3, Yoper Linux 3.0 , Arch Linux 2007.08
Posts: 253

Rep: Reputation: 30
Sorry, no wisdom to offer there. All I can do is wish you good luck I'm afraid!
 
Old 10-19-2005, 07:42 PM   #6
atlaika
Member
 
Registered: Oct 2005
Posts: 41

Rep: Reputation: 15
I had the same problem about a year ago with Riva TNT2 on SimplyMepis. I never found a solution and saw several people saying it could not be done. And that I shoud just leave it with the “nv” driver.
In the mean time I myself upgraded to GeForce 5200 which works with ease.
Sorry I know this is not really any help but for what it is worth I spent hours looking for a solution and did not find one.
But then that was a year ago so who knows.
 
Old 10-19-2005, 10:51 PM   #7
moronikos
LQ Newbie
 
Registered: May 2002
Location: Tulsa, Oklahoma, USA
Distribution: SUSE, ubuntu
Posts: 21

Rep: Reputation: 15
Quote:
Originally posted by daedalus12
thanx for the advice. anyways i did manage to compile the drivers and it works fine the first time i boot to init 5 from init 3. but then when i restart the system i get no graphical display? any ideas??
Yeah, SUSE directions are poor for installing manually. I have a GeForce2 which is relegated to "legacy" by nVidia. After installing the driver manually, do the usual "sax2 -m 0=nvidia". Then copy the following code into your /etc/rc.d/boot.local file:

Code:
error() {
  echo "$(basename $0): fatal error, $1 failed"
  exit 1
}

if [ ! -c /dev/.devfsd ]; then
  for i in 0 1 2 3 4 5 6 7; do
      node="/dev/nvidia$i"
      rm -f $node
      mknod $node c 195 $i || error "mknod \"$node\""
      chmod 0666 $node     || error "chmod \"$node\""
  done
  node="/dev/nvidiactl"
  rm -f $node        
  mknod $node c 195 255    || error "mknod \"$node\""
  chmod 0666 $node         || error "chmod \"$node\""
fi

if [ -d /etc/udev/devices ]; then
  for i in 0 1 2 3 4 5 6 7; do
      node="/etc/udev/devices/nvidia$i"
      rm -f $node
      mknod $node c 195 $i || error "mknod \"$node\""
      chmod 0666 $node     || error "chmod \"$node\""
  done
  node="/etc/udev/devices/nvidiactl"
  rm -f $node        
  mknod $node c 195 255    || error "mknod \"$node\""
  chmod 0666 $node         || error "chmod \"$node\""
fi
If you unpack the nVidia source code you will find that this script is in ./usr/src/nv/makedevices.sh

I used the 7174 version driver.
 
Old 10-20-2005, 03:17 AM   #8
daedalus12
LQ Newbie
 
Registered: Feb 2005
Posts: 22

Original Poster
Rep: Reputation: 15
yeah thanx for the help. i got it to work doing exactly that . found this script thingy in some other forum and now no probs. anyways thanx for ur help....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 9.3 Nvidia Riva Tnt2 andersh Linux - Software 1 10-17-2005 03:19 AM
nvidia 7167, Mandrake 10.1, Riva TNT2 conn-fused Linux - Hardware 9 03-19-2005 07:16 AM
NVIDIA Riva TNT2/ Pro XPediTioN Slackware 6 07-02-2004 09:14 AM
Weird...Riva TNT2 Black Screen Nvidia Drivers... Skorpyo Linux - Newbie 2 01-30-2004 06:53 AM
NVIDIA RIVA TNT2 Model 64 and X deesto Slackware 32 12-18-2002 08:46 PM


All times are GMT -5. The time now is 08:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration