GUI fails with nvidia legacy driver

I have an old nvidia riva TNT2 graphics card and am using 11.1

After installing the legacy drivers, I am left in the command prompt because X fails to start.

My xorg.conf file was automatically updated to reflect the nvidia driver being used rather than the nv driver.

I have several log files for xorg but this looks like the relevant info…

(II) Loading /usr/lib/xorg/modules//libfb.so
(II) Module fb: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 1.0.0
	ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(WW) NVIDIA(0): The NVIDIA RIVA TNT2 Model 64/Model 64 Pro GPU installed in
(WW) NVIDIA(0):     this system is supported through the NVIDIA Legacy
(WW) NVIDIA(0):     drivers. Please visit
(WW) NVIDIA(0):     http://www.nvidia.com/object/unix.html for more
(WW) NVIDIA(0):     information.  The 96.43.09 NVIDIA driver will ignore this
(WW) NVIDIA(0):     GPU.  Continuing probe... 
(EE) No devices detected.

Fatal server error:
no screens found

Any idea what is going on or what else I need to change? Let me know if you need anymore info.

Thanks,
Joe

From the nvidia web site I see this:

What’s a legacy driver?
Is that you?

I think this is your driver (AGP version)
http://us.download.nvidia.com/XFree86/Linux-x86/71.86.06/NVIDIA-Linux-x86-71.86.06-pkg1.run

Have you been doing it manually??

Double check the driver though: Drivers - Download NVIDIA Drivers
As I didn’t know if you were AGP or PCI.

Manual instructions (remove repo versions first if you have them and the repos)

Alright so here is how to install the nvidia driver manually, in case the one in the repo doesn't work or u just want to use the latest.
  Go to Yast>Software>Software Management
  Search for and install if you don't have these:
  make
 gcc
 kernel-source
  Now download the latest Nvidia driver:
  Place the file in your /home/username
  Now restart and at the boot screen, pause the boot by moving the down button, then move back up and clear any text in the boot arguments by holding backspace. Then just type the number: 3
 At the login
  Type "root" then enter and then your root password and press enter.
  now type
 cd /home/username
  *Now remember you can use the {TAB} key to auto complete
  so type:
 sh NVIDIA{TAB}
 and the whole file name should auto complete
  eg: sh NVIDIA-Linux-x86-173.14.09-pkg1.run
  Follow the installer and let it compile the kernel module for you.
 Say Yes to everything
 Use TAB to move around
 reboot

It failed. It’s unable to build the kernel module.

What’s a legacy driver?
Is that you?

Yeah, I have the RIVA TNT2 Model 64

I think this is your driver (AGP version)
http://us.download.nvidia.com/XFree8...86.06-pkg1.run

This appears to be the correct one.

Have you been doing it manually??

No, I had installed it with the one click install. Looks like that installs the wrong legacy driver though.

Here is a copy of the installer log. It was to long to fit in a single post, general pastebin - Anonymous - post number 1292754

Any idea on what happened and how to correct it? I installed the kernel-source package, make and gcc.

You need kernel headers too.

Thanks for the quick reply!

Yast shows package linux-kernel-headers is installed already.

  1. make -C /lib/modules/2.6.27.7-9-default/build \
  2.     KBUILD_SRC=/usr/src/linux-2.6.27.7-9 \
    
  3.     KBUILD_EXTMOD="/tmp/selfgz3050/NVIDIA-Linux-x86-71.86.06-pkg1/usr/src/nv" -
    
  4. f /usr/src/linux-2.6.27.7-9/Makefile \
  5.     modules
    
  6. test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
  7.     echo;                                                                \
    
  8.     echo "  ERROR: Kernel configuration is invalid.";        \
    
  9.     echo "         include/linux/autoconf.h or include/config/auto.conf are mis
    
  10. sing."; \
  11.     echo "         Run 'make oldconfig && make prepare' on kernel src to fix it
    
  12. ."; \
  13.     echo;                                                                \
    
  14.     /bin/false)
    

That is where the error is. I can’t pretend to fully understand it.

I would suggest you re-install the kernel-source, make, gcc
Make sure the kernel-source matches the kernel

Remember to re-boot and run from runlevel 3

Yeah, I agree, there may be a mismatch between the kernel source files and the kernel itself. It’s easy to check this in YAST, just search for kernel, and kernel source and confirm they are the same version.

If not, you may have to downgrade your kernel, since kernel source packages are not always available for the latest kernel version.

I just checked and you should be OK. There is only one choice of each available, so not much chance you have different ones.

Try the re-install as I suggest above - the kernel and kernel-source are both: 2.6.27.7-9.1

Some progress perhaps, but still not working…

kernel and kernel-source are both at 2.6.27.7-9.1

Uninstalled make, gcc and kernel-source and reinstalled each one at a time. Same result.

I did however, find a beta version of the driver on the nvidia website and did the same process and that completed…

It said to use Sax2 to complete. So I ran sax2 -r as root but when I test the configuration it fails.

I saved it anyway but when I reload X I am back in the console.

A copy of the error report it generated…

X.Org X Server 1.5.2
Release Date: 10 October 2008
X Protocol Version 11, Revision 0
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux linux-uf3x 2.6.27.7-9-default #1 SMP 2008-12-04 18:10:04 +0100 i686
Build Date: 03 December 2008  09:21:06AM
 
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.99.log", Time: Wed Dec 24 00:41:38 2008
(++) Using config file: "/var/lib/sax/xorg.conf"
(==) ServerLayout "Layout[all]"
(**) |-->Screen "Screen[0]" (0)
(**) |   |-->Monitor "Monitor[0]"
(**) |   |-->Device "Device[0]"
(**) |-->Input Device "Keyboard[0]"
(**) |-->Input Device "Mouse[1]"
(**) Option "ZapWarning" "on"
(**) Option "AllowMouseOpenFail" "on"
(**) Option "Xinerama" "off"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/local" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/100dpi" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/Type1" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/Speedo" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/PEX" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/cyrillic" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/latin2/misc" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/latin2/75dpi" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/latin2/100dpi" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/latin2/Type1" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/latin7/75dpi" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/baekmuk" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/japanese" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/kwintv" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/uni" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/CID" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/ucs/misc" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/ucs/75dpi" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/ucs/100dpi" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/hellas/misc" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/hellas/75dpi" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/hellas/100dpi" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/hellas/Type1" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/misc/sgi" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/share/fonts/xtest" does not exist.
	Entry deleted from font path.
(WW) The directory "/opt/kde3/share/fonts" does not exist.
	Entry deleted from font path.
(==) Including the default font path /usr/share/fonts/misc:unscaled,/usr/share/fonts/TTF/,/usr/share/fonts/OTF,/usr/share/fonts/Type1/,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled.
(**) FontPath set to:
	/usr/share/fonts/misc:unscaled,
	/usr/share/fonts/75dpi:unscaled,
	/usr/share/fonts/URW,
	/usr/share/fonts/truetype,
	/usr/share/fonts/misc:unscaled,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF,
	/usr/share/fonts/Type1/,
	/usr/share/fonts/100dpi:unscaled,
	/usr/share/fonts/75dpi:unscaled
(**) Input device list set to "/dev/gpmdata,/dev/input/mice"
(==) ModulePath set to "/usr/lib/xorg/modules/updates,/usr/lib/xorg/modules"
(**) Extension "Composite" is disabled
(II) Open ACPI successful (/var/run/acpid.socket)
(II) Loader magic: 0x81f45c0
(II) Module ABI versions:
	X.Org ANSI C Emulation: 0.4
	X.Org Video Driver: 4.1
	X.Org XInput driver : 2.1
	X.Org Server Extension : 1.1
	X.Org Font Renderer : 0.6
(II) Loader running on linux
(++) using VT number 8

(--) PCI:*(0@1:0:0) unknown vendor (0x10de) unknown chipset (0x002d) rev 21, Mem @ 0xf4000000/0, 0xf6000000/0, BIOS @ 0x????????/65536
(II) System resource ranges:
	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX**
	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX**
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX**
	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX**
	[4] -1	0	0x0000ffff - 0x0000ffff (0x1) IX**
	[5] -1	0	0x00000000 - 0x00000000 (0x1) IX**
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "freetype" will be loaded. This was enabled by default and also specified in the config file.
(II) "record" will be loaded by default.
(II) "dri" will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: "dri"

(II) Loading /usr/lib/xorg/modules//extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 1.0.0
	ABI class: X.Org Server Extension, version 1.1
(II) Loading extension XFree86-DRI
(II) LoadModule: "dbe"

(II) Loading /usr/lib/xorg/modules//extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 1.1
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "freetype"

(II) Loading /usr/lib/xorg/modules//fonts/libfreetype.so
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
	compiled for 1.5.2, module version = 2.1.0
	Module class: X.Org Font Renderer
	ABI class: X.Org Font Renderer, version 0.6
(II) Loading font FreeType
(II) LoadModule: "extmod"

(II) Loading /usr/lib/xorg/modules//extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 1.1
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "glx"

(II) Loading /usr/lib/xorg/modules//extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
	compiled for 4.0.2, module version = 1.0.0
	Module class: XFree86 Server Extension
	ABI class: XFree86 Server Extension, version 0.1
(II) NVIDIA GLX Module  71.86.07  Wed Oct 22 04:28:49 PDT 2008
(II) Loading extension GLX
(II) LoadModule: "record"

(II) Loading /usr/lib/xorg/modules//extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 1.13.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 1.1
(II) Loading extension RECORD
(II) LoadModule: "nvidia"

(II) Loading /usr/lib/xorg/modules//drivers/nvidia_drv.so
**dlopen: /usr/lib/xorg/modules//drivers/nvidia_drv.so: undefined symbol: AllocateScreenPrivateIndex************
(EE) Failed to load /usr/lib/xorg/modules//drivers/nvidia_drv.so
(II) UnloadModule: "nvidia"
(EE) Failed to load module "nvidia" (loader failed, 7)
(II) LoadModule: "kbd"

(II) Loading /usr/lib/xorg/modules//input/kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 1.3.1
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 2.1
(II) LoadModule: "mouse"

(II) Loading /usr/lib/xorg/modules//input/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 1.3.0
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 2.1
(EE) No drivers available.

Fatal server error:
no screens found

I am guessing that the bold part towards the bottom is what is causing the problem now but not sure. I checked that location and nvidia_drv.so is there.

Any more ideas on what is going on?

Thanks for the help so far!**

Go back to nvidia and double check you have the correct driver. I tried to point you in the right direction earlier but it’s worth checking.

If you want to get your desktop back (and you were needing to know how) run this command from text mode after logging in as root:

sax2 -r -m 0=nv

This will switch you back over to the open source driver.

(I apologize if you already knew this)

Well, Joe, for what it’s worth, I’m having the exact same problem with an Nvidia legacy driver on 11.1.

I’ve tried installing it from repository, via 1-click install, and manually.

From repository and 1-click install goes ok, but GUI doesn’t load on next boot.

When trying to install the driver manually, the process fails on trying to build the kernel module.

From my /var/log/nvidia-installer.log I see something identical to what you got:

→ Building kernel module:
executing: ‘cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.27.7-9-pae/
source SYSOUT=/lib/modules/2.6.27.7-9-pae/build’…
NVIDIA: calling KBUILD…
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.27.7-9-pae/build KBUILD_VERBOSE=1
-C /lib/modules/2.6.27.7-9-pae/source SUBDIRS=/tmp/selfgz4525/NVIDIA-Linux-x
86-173.14.12-pkg1/usr/src/nv modules
make -C /lib/modules/2.6.27.7-9-pae/build
KBUILD_SRC=/usr/src/linux-2.6.27.7-9
KBUILD_EXTMOD="/tmp/selfgz4525/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv"
-f /usr/src/linux-2.6.27.7-9/Makefile
modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (
echo;
echo " ERROR: Kernel configuration is invalid.";
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing.";
echo " Run ‘make oldconfig && make prepare’ on kernel src to fix it
.";
echo;
/bin/false)

I don’t know how to accomplish the task assigned in the line

Run ‘make oldconfig && make prepare’ on kernel src to fix it

Maybe if we could accomplish this we would both have a solution?

Sorry for the delay. Got a new Eee pc and have been playing with that the past couple of days!

Go back to nvidia and double check you have the correct driver. I tried to point you in the right direction earlier but it’s worth checking.

I believe that was the correct one but will try to build the other one and see if it works. It failed from the one click install but worth a shot…

If you want to get your desktop back (and you were needing to know how) run this command from text mode after logging in as root:
PHP Code:
sax2 -r -m 0=nv

This will switch you back over to the open source driver.

(I apologize if you already knew this)

Nope, didn’t know. Thanks for the tip. I was editing the xorg.conf file directly with nano but this should be a little quicker.

@ djmonkey1

Sorry to hear your having the same problem. I noticed that line too but I’m not sure exactly what to do with it.