Tumbleweed - Bumblebee - NVIDIA-319.23-1.1 - Overman:Laptop

Don’t know if this affects x86 too, but on x86_64 the NVIDIA driver does from the mentioned repo does not build. This can be fixed by changing the Makefile, and build it manually:
On Gnome


gnomsu gedit 

On KDE


kdesu kwrite

Now open


/usr/src/nvidia-319.23-1.1/Makefile

and from line 118 change


ifndef ARCH
 ARCH := $(shell uname -m | sed -e 's/i.86/i386/' -e 's/armv[0-9]\w\+/arm/')
endif

to


#ifndef ARCH
 ARCH := $(shell uname -m | sed -e 's/i.86/i386/' -e 's/armv[0-9]\w\+/arm/')
#endif

Next run this command from a terminal window, it will ask for the root password. Enter it and the NVIDIA driver will build.


su -c 'dkms build -m nvidia/319.23-1.1'

After the driver has been built, we need to restart bumblebee, so that it will find the driver:


su -c 'systemctl restart bumblebeed.service'

EDIT: this wasn’t enough to get it working. Bumblebee complains about KMS not being enabled !!!

So, I went

  • Yast - System - Sysconfig editor
  • Searched for “KMS”, changed the value of NO_KMS_IN_INITRD to “yes”
  • Rebooted
  • ran

knurpht@laptop:~> optirun glxinfo2 | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 610M/PCIe/SSE2
OpenGL version string: 4.3.0 NVIDIA 319.23
OpenGL shading language version string: 4.30 NVIDIA via Cg compiler
OpenGL extensions:
knurpht@laptop:~> primusrun glxinfo2 | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 610M/PCIe/SSE2
OpenGL version string: 4.3.0 NVIDIA 319.23
OpenGL shading language version string: 4.30 NVIDIA via Cg compiler
OpenGL extensions:

From this experience I get that NVIDIA has moved to KMS support. Can’t draw any other conclusion. Google Earth 7 runs with primusrun.