New instruction for Bumblebee

Hi susers :wink:

I’ve updated the bumblebee instruction at https://en.opensuse.org/SDB:NVIDIA_Bumblebee
The major change is in using official nvidia driver repository instead of X11:Bumblebee and dkms.

I’ve tested this on 42.2, but I think it should also work on 42.1.

I’d like to hear your comments, or if you have any problems with it.

Hi, not yet tried it, but when I read:

nstall the driver:
sudo zypper in nvidia-glG04 x11-video-nvidiaG04 nvidia-computeG04

I remember that older chips are NOT supported by the **-glG04 **driver, so a note or add-on might be in order?
Also, is the old version of the SDB still online somewhere or are we sending into panic all those that installed according to the old guide and don’t find a reference anymore?

Anyway, keep on the good work!

I am using these instructions
https://forums.opensuse.org/showthread.php/505270-ultimate-tutorial-installing-Bumblebee-driver-for-SUSE

But I use only nouveau driver.

Good point. I replaced that with a link to the wiki page describing driver installation.

For now I just added link to the old version of this article. It’s not perfect solution, but it works.

Thanks :slight_smile:

Thanks for updating the guide.
I have been able to follow the guide and optirun seems to be working, but not primusrun.
Apparently, primus will try to find libGL.so.1 in “/usr/$LIB/nvidia” (see line 16 from the executable in /usr/bin).
For now I have changed that line into:

export PRIMUS_libGLa=${PRIMUS_libGLa:-'/usr/X11R6/$LIB/libGL.so.1'}

and now primusrun seems to be working.
Although it might be better to link /usr/X11R6/lib into /usr/lib/nvidia and /usr/X11R6/lib64 into /usr/lib64/nvidia probably.

What do you think? Are you having this issue too?

Thanks

As I’ve written in “optirun vs primusrun” section, you shouldn’t use primusrun anymore. Optirun uses primus bridge by default.

My bad, didn´t read that part :X
thanks a lot

Don’t seems to work correctly on a fresh LEAP 42.2 with intel + nvidia.

steam works normally when calling ‘steam’ on terminal, games are playable normally.

‘optirun steam’ -> opens steam, but after arround 40 seconds steam crashes, always.

I can run glxspheres with optirun, it doesn’t crash.
Flighgear also works normally with optirun.

bedi@dell:~> rpm -qa |grep -i nvidia
nvidia-texture-tools-2.0.8-4.17.x86_64
nvidia-gfxG04-kmp-default-375.39_k4.4.27_2-21.1.x86_64
x11-video-nvidiaG04-375.39-21.1.x86_64
nvidia-computeG04-375.39-21.1.x86_64
nvidia-glG04-375.39-21.1.x86_64

bedi@dell:~> rpm -qa |grep -i bumble
bumblebee-3.2.1-11.3.x86_64

bedi@dell:~> rpm -qa |grep -i primus
primus-32bit-20131226-7.3.x86_64
primus-20131226-7.3.x86_64
bedi@dell:~>

Before I start tinkering with the wiki page, I thought I’d reply here first. I’m running a freshly installed Tumbleweed install on a laptop with a Geforce 710M card. I followed the Bumblebee instructions to the letter, but could not get it to work. With some adjustments (second attempt, yay snapper), it is now working rather nicely. Here is what I did different from the wiki page:

I installed bumblebee and bbswitch from the X11:Bumblebee repository (which I initialized in the “Install Bumblebee” step).

# sudo zypper in --from X11:Bumblebee bumblebee bbswitch 

I ran another mkinitrd after installing nvidia-bumblebee and nvidia-bumblebee-32bit, and enabling dkms. Only then was I able to run optirun without errors.

I also noticed this on the wiki page in the section “Problems with GT600M/GT700M series cards”:

Try changing value of 'load_state' in "/etc/modprobe.d/50-bbswitch.conf" from 0 to -1 {{Shell|echo "options bbswitch load_state=-1 unload_state=1" | sudo tee /etc/modprobe.d/50-bbswitch.conf

When I try to change (fix) it to

Try changing value of 'load_state' in "/etc/modprobe.d/50-bbswitch.conf" from 0 to -1
{{Shell|echo "options bbswitch load_state=-1 unload_state=1" | sudo tee /etc/modprobe.d/50-bbswitch.conf}}

the wiki only displays {{{1}}}. Not sure why its doing that.

In the article I left a message: “TODO: verify if any additional steps are needed.”, because I haven’t tested this on TW. Please do update the instruction :slight_smile:

Done. Left the “TODO” comment just in case.
I’m not 100% sure the bumblebee packages should be installed from the X11:Bumblebee repo, so I’ll leave that the way it is for now.

Still leaves the issue with that one codeblock not working properly.

What does Leap 42.3 mean for the bumblebee wiki page? Are there required changes? Feels outdated if 42.3 is not mentioned and older releases. This leaves me wondering what I should do and what not

Replace any ‘42.2’ by ‘42.3’ in the instructions, and you’ll be fine.

Great, thanks. But I’m confused about “Configure bumblebee” in

SDB:NVIDIA Bumblebee - openSUSE Wiki :
/etc/bumblebee/bumblebee.conf . The website tells me to put in
[driver-nvidia]
LibraryPath=/usr/X11R6/lib64:/usr/X11R6/lib
XorgModulePath=/usr/lib64/nvidia/xorg/modules,/usr/lib64/xorg/modules

But this is already there. They differ in LibraryPath and XorgModulePath.
Do I have to change this? Didn’t the bumblebee installer via YAST just create this?:

[driver-nvidia]

Module name to load, defaults to Driver if empty or unset

KernelDriver=nvidia
PMMethod=auto

colon-separated path to the nvidia libraries

LibraryPath=/usr/lib64/nvidia:/usr/lib/nvidia

comma-separated path of the directory containing nvidia_drv.so and the

default Xorg modules path

XorgModulePath=/usr/lib64/nvidia/xorg/,/usr/lib64/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

the tutorial worked for me when I installed 42.2 on my thinpad t460p

meanwhile I update to 42.3, and optimus does not work anymore

reinstalled and re configured everything as written in the instructions, no luck

 optirun glxgears
  653.900240] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

this is so frustrating.
where can I check what is wrong?

I can’t help directly - I don’t have experience with this hardware, but I note that the SDB:NVIDIA_Bumblebee#Tumbleweed guide mentions…

Problems with GT600M/GT700M series cards (Kepler)

If you cannot load GPU drivers - while bbswitch being loaded - and get an error like this on a Kepler card:
[INFO]Response: No - error: Could not load GPU driver
[ERROR]Cannot access secondary GPU - error: Could not load GPU driver

Try changing value of ‘load_state’ in “/etc/modprobe.d/50-bbswitch.conf” from 0 to -1 {{Shell|echo “options bbswitch load_state=-1 unload_state=1” | sudo tee /etc/modprobe.d/50-bbswitch.conf

found out the reason, problem are the installed/default booted kernel versions, continues here:

https://forums.opensuse.org/showthread.php/526525-grub-or-kernel-version-chaos-after-update-to-42-2-gt-42-3?p=2833929#post2833929