[b]Precondition:
[ul]
[li]Not any prop. Nvidia driver installed yet[/li][/ul]
Repositories:[/b]
[ul]
[li]Add the following repository:[/li][/ul]
http://download.opensuse.org/repositories/X11:/Bumblebee/openSUSE_Leap_42.2/
[ul]
[li]Download CUDA 8.0 package for OpenSUSE 13.2 from Nvidia website:[/li][/ul]
https://developer.nvidia.com/cuda-downloads
[ul]
[li]Install CUDA RPM via “sudo rpm -i cuda-repo-opensuse132-8-0-local-8.0.44-1.x86_64.rpm”[/li][LIST]
[li]results in local file repository with many RPMs, called CUDA REPO below[/li][/ul]
[li]Perform: sudo zypper refresh[/li][/LIST]
Install packages:
[ul]
[li]nvidia-bumblebee, bumblebee, bbswitch, cuda-8-0 (use exactly this meta-package, disable anything driver-related from CUDA REPO, accept broken dependencies!)[/li][/ul]
⇒ DON’T INSTALL ANY ADDITIONAL NVIDIA DRIVER STUFF FROM THE LOCAL CUDA REPOSITORY, ALL IS INCLUDED IN NVIDIA-BUMBLEBEE, BROKEN DEPENDENCIES ARE OK!
[ul]
[li]reboot[/li][/ul]
Manual configuration work:
[ul]
[li]add user to groups video and bumblebee[/li][li]Also ensure the nouveau module is blacklisted:[/li][LIST]
[li]As root: echo “blacklist nouveau” >> /etc/modprobe.d/50-blacklist.conf[/li][li]As root: mkinitrd[/li][/ul]
[li]Edit the file “/etc/bumblebee/bumblebee.conf” as root and set the driver manually in the already existing line:[/li][ul]
[li]Driver=nvidia[/li][/ul]
[li]Enable bumblebee service after install:[/li][ul]
[li]sudo systemctl enable bumblebeed.service[/li][li]sudo systemctl start bumblebeed.service[/li][/ul]
[li]reboot[/li][/LIST]
Checking:
[ul]
[li]“lsmod | grep bb” should show bbswitch[/li][li]“lsmod | grep nouveau” should show nothing[/li][li]“lsmod | grep nvidia” should show nothing directly after reboot[/li][li]“optirun glxgears” or “optirun glxinfo” should run properly (if package with glxinfo and glxgears is already installed)[/li][li]“cat [/proc/acpi/bbswitch”](file:///proc/acpi/bbswitch%22) should show OFF while no application is using the Nvidia GPU and ON otherwise[/li][/ul]
Start nvidia-settings (just as a test, no special settings required here):
[ul]
[li]optirun nvidia-settings -c :8[/li][/ul]
Build CUDA samples:
[ul]
[li]In /usr/lib64: sudo ln -s libnvcuvid.so.1 libnvcuvid.so[/li][li]cuda-install-samples-8.0.sh TARGET_DIR[/li][li]make as usual in TARGET_DIR[/li][/ul]
Have fun and success,
Wolfram