NVIDIA driver doesn't recompile

I’m already using my computer this way a while, but want to change it now. The graphic driver isn’t easy to recompile… Some graphic effects work, so it’s confusing to me.

Some details
openSUSE 11.1
NVIDIA GeForce 9400 GT
Linux 2.6.27.25-0.1-pae i686
NVIDIA-Linux-x86-185.18.14-pkg1.run

Okay, I had the graphic driver installed though YaST but then did a new install of openSUSE on a new harddrive (nothing else changed). Strangely the installtion though YaST didn’t work anymore, so I installed it manually (after removing the files I tried to install before). But after a kernel-update I wasn’t able to recompile using

sh /...driver... -K

It complained /lib/modules/…/nvidia.ko would already exist.
After renaming that file it worked to recompile, but

sax2 -r -m 0=nvidia 

doesn’t manage to load.
I tried to rename both nvidia.ko and the nvidia folder in /lib/modules/…/kernel/drivers/video, but it had the same effect.

What else could I try? Help is appreciated.

Hi
Were you at runlevel 3 when running the commands to build etc? Normally
if you’ve done it the ‘hard way’ previously there is no need to re-run
the sax2 command, just init 5 && exit. Have a look in the prerelease
subforum as I posted over there my canned response to install nvidia
drivers yesterday.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.2 Milestone 5 (i586) Kernel 2.6.31-rc5-git3-2-desktop
up 22:55, 2 users, load average: 0.00, 0.03, 0.02
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

Hi, i were in runlevel 3. Sorry, forgot to write that. I read your post in the other thread, what I did is comparable (just got the source code via YaST).

Is there a way to uninstall the driver? Maybe I should simply try a fresh driver install.
I tried to read /var/log/SaX.log and found this

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.0.log", Time: Sun Aug 16 18:14:47 2009
	(++) Using config file: "/tmp/sax2-8768/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"
	(==) 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/PEX" 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/100dpi:unscaled,
	/usr/share/fonts/Type1,
	/usr/share/fonts/URW,
	/usr/share/fonts/Speedo,
	/usr/share/fonts/cyrillic,
	/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 enabled
	(WW) Open ACPI failed (/var/run/acpid.socket) (Connection refused)
	(II) No APM support in BIOS or kernel
	(II) Loader magic: 0x81f95c0
	(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 7

and it ends with

(II) Primary Device is: PCI 02@00:00:0
	(EE) No devices detected.
	
	Fatal server error:
	no screens found

I hope it’s readable, I didn’t want to post the complete log as it’s so long.
“no screens found” sounds pretty bad… It sounds like I hardly could use a GUI, but it looks nice, same eye-candy it had when the graphic driver worked. How can that be?

Hi
There should be an nvidia-installer log as well, have a peruse of
that :slight_smile:

Use somewhere like pastebin or nopaste to upload files like this and
just post the link :slight_smile:
For example here is my last one;


curl -F file=@/var/log/nvidia-installer.log www.nopaste.com/a
http://www.nopaste.com/p/asePnhM3k


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.2 Milestone 5 (i586) Kernel 2.6.31-rc5-git3-2-desktop
up 0:04, 2 users, load average: 0.38, 0.51, 0.24
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

Thank you :). There’s so much to learn…
So here’s the nvidia-installer log.

The reason the 1-click installer doesn’t work with the new kernel is because the morons at nVidia only offer packages for the .23 series of Kernel so the nvidia.ko (the driver) gets copied to the wrong directory and if you don’t upgrade from .23 to .25, the module doesn’t get moved properly.

So, the solution is to manually copy / move the nvidia.ko from the older location in /lib/modules/old_kernel_version/kernel/drivers/video/ to the new location in 2.6.27.25-0.1-xxxx/kernel/drivers/video/ and run depmod -a as root and reboot (rebooting is not necessary but for claritys sake a better solution).

This solution only applies to the 1-click installer.

Hi
So that log shows all is well with the install?

I would look at trying the nvidia-xconfig command to write a new xorg
file and then just get back to runlevel 5.

That’s of course unless you used Chrysantine’s suggestion :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.2 Milestone 5 (i586) Kernel 2.6.31-rc5-git3-2-desktop
up 3:41, 2 users, load average: 0.10, 0.21, 0.20
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

I didn’t use the 1-click installer. At least I don’t remember it… anyhow, some idea if the next non manual install doesn’t work.

Well, but this driver now I compiled myself, so it can’t be that problem. When I tried nvidia-xconfig I couldn’t go back to runlevel 5 :O. So as init 5 didn’t do anything init 6 rebootet nicely, but I ended up without a GUI. So I’m using my old config again. Should I have used a specific option?

I went to windows as I wondered if maybe the graphic card is broken or not conected well (but the monitor works which is conected to the card), and windows can see the card. But when booting into linux neither the nvidia screen appears nor is it listed in “My Computer”.

Hi
Drop back to runlevel 3 (init 3) and run the sax command to restore the
default nvidia driver to ensure everything is ok;


sax2 -r -m 0=nv


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 12 days 22:17, 2 users, load average: 0.20, 0.22, 0.14
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

After

nvidia-xconfig

? Or just so? I guess now the vesa driver is used.

Hi
No need to run nvidia-xconfig you just need to run the sax command the
default driver is nv (not vesa) in your xorg.conf file. Then init 5 to
get back to a GUI.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 12 days 23:37, 2 users, load average: 0.25, 0.13, 0.10
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Hi,

I did what you told but then the screen turnt black and there was a small text by the monitor telling something like “out of range” (I don’t know how the corret translation is).

With live CD’s I have to choose the option failsafe, I thought it was related to some ACPI things, but maybe it also has to do with some graphical issues? As with GParted I got the same warning (out of range).

Anyhow, thanks for your help :). Maybe I should simply wait for 11.2 and do a clean install. Don’t feel for it with 11.1 anymore.

Just wanted to tell: I found a new driver and now it worked :).
(next time I should do that maybe as one of the first things…)