Open suse 13.1 x64, Nvidia driver install fails

Hi all,

I have two systems that I am trying to install the Nvidia driver on, both are opensuse 13.1 x64.

I have installed the nvidia repository with:

zypper ar -f ftp://download.nvidia.com/opensuse/13.1/ nvidia

I used lspci to determine the driver to use :

lspci | grep VGA
42:00.0 VGA compatible controller: NVIDIA Corporation NV43 [Quadro NVS 440] (rev a2)
43:00.0 VGA compatible controller: NVIDIA Corporation NV43 [Quadro NVS 440] (rev a2)

And then attempted to install the graphics drivers with :

zypper install x11-video-nvidiaG02

This downloads the drivers, and after a couple of minutes spits out a whole load of errors and stops (2800 lines worth of errors :frowning: ). When I re-boot and start x nvidia-config tells me that the nvidia drivers are not being used, I guess due to the errors :frowning:

Does anyone know what is wrong here and how I can go about resolving it ?

Cheers.

Phill.

Well, hard to say without the error messages.

But which kernel are you using?

uname -a

Those packages only work with the standard kernel included in openSUSE, i.e. 3.11.x for openSUSE 13.1.

What kernel packages do you have installed?

rpm -qa | grep kernel

Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 3 NEW packages are going to be installed:
  nvidia-computeG02 nvidia-gfxG02-kmp-pae x11-video-nvidiaG02 

The following recommended package was automatically selected:
  x11-video-nvidiaG02 

3 new packages to install.
Overall download size: 45.3 MiB. After the operation, additional 207.2 MiB will be used.
Continue? [y/n/? shows all options] (y): Retrieving package nvidia-gfxG02-kmp-pae-304.117_k3.11.6_4-28.1.i586 (1/3),   3.2 MiB ( 25.3 MiB unpacked)
Retrieving: nvidia-gfxG02-kmp-pae-304.117_k3.11.6_4-28.1.i586.rpm ..done (915.5 KiB/s)]
Retrieving package nvidia-computeG02-304.117-29.1.x86_64 (2/3),   9.0 MiB ( 28.2 MiB unpacked)
Retrieving: nvidia-computeG02-304.117-29.1.x86_64.rpm ..done (1.9 MiB/s)]
Retrieving package x11-video-nvidiaG02-304.117-29.1.x86_64 (3/3),  33.1 MiB (153.7 MiB unpacked)
Retrieving: x11-video-nvidiaG02-304.117-29.1.x86_64.rpm .......done (4.1 MiB/s)]
(1/3) Installing: nvidia-gfxG02-kmp-pae-304.117_k3.11.6_4-28.1 ........done]
Additional rpm output:
make: Entering directory `/usr/src/linux-3.11.10-7-obj/i386/pae'
  CC [M]  /usr/src/kernel-modules/nvidia-304.117-pae/nv.o
In file included from /usr/src/linux-3.11.10-7/arch/x86/include/asm/bitops.h:514:0,
                 from /usr/src/linux-3.11.10-7/include/linux/bitops.h:22,
                 from /usr/src/linux-3.11.10-7/include/linux/kernel.h:10,
                 from /usr/src/linux-3.11.10-7/include/linux/sched.h:15,
                 from /usr/src/linux-3.11.10-7/include/linux/utsname.h:5,
                 from /usr/src/kernel-modules/nvidia-304.117-pae/nv-linux.h:40,
                 from /usr/src/kernel-modules/nvidia-304.117-pae/nv.c:13:
/usr/src/linux-3.11.10-7/include/linux/bitops.h: In function ‘hweight_long’:
/usr/src/linux-3.11.10-7/include/asm-generic/bitops/const_hweight.h:26:70: warning: signed and unsigned type in conditional expression -Wsign-compare]
 #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w))
                                                                   ^
There are a whole bunch more warnings but had to snip them as post was too lng and I can't post attachments !

In file included from /usr/src/linux-3.11.10-7/arch/x86/include/asm/mmzone.h:2:0,
                 from /usr/src/linux-3.11.10-7/include/linux/mmzone.h:917,
                 from /usr/src/linux-3.11.10-7/include/linux/gfp.h:4,
                 from /usr/src/linux-3.11.10-7/include/linux/kmod.h:22,
                 from /usr/src/linux-3.11.10-7/include/linux/module.h:13,
                 from /usr/src/kernel-modules/nvidia-304.117-pae/nvidia.mod.c:1:
/usr/src/linux-3.11.10-7/arch/x86/include/asm/mmzone_32.h: In function ‘pfn_valid’:
/usr/src/linux-3.11.10-7/arch/x86/include/asm/mmzone_32.h:50:15: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
   return (pfn < node_end_pfn(nid));
               ^
  ld -r -m elf_i386 -T /usr/src/linux-3.11.10-7/scripts/module-common.lds --build-id  -o /usr/src/kernel-modules/nvidia-304.117-pae/nvidia.ko /usr/src/kernel-modules/nvidia-304.117-pae/nvidia.o /usr/src/kernel-modules/nvidia-304.117-pae/nvidia.mod.o
make[1]: Leaving directory `/usr/src/linux-3.11.10-7'
NVIDIA: left KBUILD.
ld: Relocatable linking with relocations from format elf32-i386 (nv.o) to format elf64-x86-64 (nv-linux.o) is not supported
make: *** [nv-linux.o] Error 1
/


(2/3) Installing: nvidia-computeG02-304.117-29.1 ........done]
(3/3) Installing: x11-video-nvidiaG02-304.117-29.1 ....................done]
Additional rpm output:
grep: etc/X11/xorg.conf: No such file or directory
Using MD5DIR="/var/adm/SuSEconfig/md5"...
No changes for /etc/X11/xdm/Xservers
No changes for /etc/X11/xdm/xdm-config

I had to trim the above but the full text can be found at : http://penguin.stats.warwick.ac.uk/~stsxab/nv/nv_err.txt

But which kernel are you using?

uname -a

 uname -a
Linux c64 3.11.10-7-desktop #1 SMP PREEMPT Mon Feb 3 09:41:24 UTC 2014 (750023e) x86_64 x86_64 x86_64 GNU/Linux

Those packages only work with the standard kernel included in openSUSE, i.e. 3.11.x for openSUSE 13.1.

What kernel packages do you have installed?

rpm -qa | grep kernel

rpm -qa | grep kernel
kernel-devel-3.11.6-4.1.noarch
texlive-l3kernel-2013.72.svn_4469svn29409-10.2.1.noarch
kernel-source-3.11.10-7.1.noarch
kernel-xen-3.11.10-7.1.x86_64
kernel-desktop-devel-3.11.10-7.1.x86_64
kernel-pae-devel-3.11.10-7.1.i686
kernel-xen-devel-3.11.10-7.1.x86_64
texlive-l3kernel-doc-2013.72.svn_4469svn29409-10.2.1.noarch
kernel-xen-devel-3.11.6-4.1.x86_64
kernel-syms-3.11.10-7.1.x86_64
kernel-devel-3.11.10-7.1.noarch
kernel-desktop-devel-3.11.6-4.1.x86_64
kernel-desktop-3.11.6-4.1.x86_64
kernel-default-devel-3.11.10-7.1.x86_64
nfs-kernel-server-1.2.8-4.9.1.x86_64
kernel-source-3.11.6-4.1.noarch
patterns-openSUSE-devel_kernel-13.1-13.6.1.x86_64
kernel-desktop-3.11.10-7.1.x86_64
kernel-default-devel-3.11.6-4.1.x86_64
kernel-xen-3.11.6-4.1.x86_64
kernel-syms-3.11.6-4.1.x86_64


Cheers.

Phill.

why don’t you simply do search for opensuse 13.1 nvidia drivers
and use “/sbin/OCICLI <One Click Install Link>” when found the page

here the one link “https://en.opensuse.org/SDB:NVIDIA_drivers

I had recently had to install this on my laptop and just used the button on the page
since I was not sure what actual GPU I had the lspci did not give me all the info I needed
I had to try 2 installs before I had found the one that worked.

but it worked and no CLI :slight_smile:

zypper wants to install the (32bit) pae flavour, although you only have (64bit) kernel-desktop.
This is a flaw in zypper, apparently you uninstalled the driver manually already and now it doesn’t want to install nvidia-gfxG02-kmp-desktop (and nvidiaautomatically again.
The 1-click install would have the same problem btw.

You can remove the file /var/lib/zypp/SoftLocks and try again, then zypper should install the right packages.

Or explicitely specify all packages:

sudo zypper in nvidia-computeG02 nvidia-gfxG02-kmp-desktop x11-video-nvidiaG02

Both methods should work.

But you also have kernel-pae-devel-3.11.10-7.1.i686 installed, you should first uninstall that, as this probably also will cause you problems:

sudo zypper rm kernel-pae-devel

Bingo!

Removing the /var/lib/zypp/SoftLocks file and re-installing the drivers has helped for both machines.

Thanks for the prompt help all.

Cheers.

Phill.

I do not know if one-click would have issue or not
on my system it did not, although it was a fresh install with all updates.
never again I use the LiveCd to install this on my laptop.
not withstanding the fact that it took over an hour to get and install all the updates, grunted the unreadable display is of no help ,but it also does not give any option of desktop to choose and installs the full KDE with all bells and whistles that is very slow on my 6 yo lapy.

Yes, it should work fine on a fresh install, but if you ever uninstalled the driver before, the wrong kernel module will be installed as in the OP’s case.
Btw, this behaviour in libzypp has been removed in Factory recently, so this should not happen anymore with 13.2.

never again I use the LiveCd to install this on my laptop.
not withstanding the fact that it took over an hour to get and install all the updates, grunted the unreadable display is of no help ,but it also does not give any option of desktop to choose and installs the full KDE with all bells and whistles that is very slow on my 6 yo lapy.

Well, the KDE LiveCD only contains KDE of course, the GNOME LiveCD would install GNOME f.i.
Actually the LiveCDs don’t do a real install, they just copy over their content to the hard disk.

The reason for having to install that many updates afterwards is that the LiveCDs space is limited, so it doesn’t include many recommended (but not required) packages. You could prevent this by enabling “Ignore recommended packages for already installed packages” in YaST’s options f.e.
But this is really off-topic here I guess… :wink:

yeah, I know what livecd install does :slight_smile:
I just did not have burned DVD at hand and really want to try the distro on my laptop.
I need to rebuild it since I had the win XP 64 bit on it for the last 5 years
now it getting e bit sluggish thus time to refresh.
if I like the opensuse on it I might do the dual boot (still need the windows) or just dedicate this pc to small stuff running OpenSuse. so far I do like it but will redo the install from the DVD using LSDX instead of KDE, maybe :slight_smile:

But at least IceWM and twm should be available when installing from the LiveCD as well. Just log out of KDE and select it at the login screen.

And you can just add further desktop environments with YaST or zypper, no need to do a complete reinstall for that.

it maybe because i upgraded from 13.1, but this seemed to be an issue on my upgraded 13.2 box.

What exactly is the issue on your upgraded 13.2 box?
That you had to install many updates afterwards, or that you couldn’t install the nvidia driver?

Have you added the nvidia repo for 13.2 and updated the driver? The 13.1 version will not work.

The problem with zypper wanting to install the wrong kernel modules when you uninstalled the driver manually should not happen in 13.2 any more.

Anyway, you should better create a new thread about your problem, it’s most likely not related to the original problem discussed here (which was on 13.1).