Bumblebee configuration in opensuse 13.2

I am trying to configure Bumblebeed in opensuse 13.2. As reference, I followed the steps given
here. However, it does not work in my case. I get the following error :

purnendu@photon:~> optirun -vvv debug-bash
 3794.084373] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
 3794.084653] [DEBUG]optirun version 3.2.1 starting...
 3794.084661] [DEBUG]Active configuration:
 3794.084664] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
 3794.084667] [DEBUG] X display: :8
 3794.084670] [DEBUG] LD_LIBRARY_PATH: /usr/lib64/nvidia:/usr/lib/nvidia
 3794.084673] [DEBUG] Socket path: /var/run/bumblebee.socket
 3794.084676] [DEBUG] Accel/display bridge: auto
 3794.084678] [DEBUG] VGL Compression: proxy
 3794.084680] [DEBUG] VGLrun extra options: 
 3794.084682] [DEBUG] Primus LD Path: /usr/lib64/primus:/usr/lib/primus
 3794.084738] [DEBUG]Using auto-detected bridge virtualgl
 3794.087248] [INFO]Response: No - error: [XORG] (EE) 


 3794.087269] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) 


 3794.087272] [DEBUG]Socket closed.
 3794.087293] [ERROR]Aborting because fallback start is disabled.
 3794.087296] [DEBUG]Killing all remaining processes.

Everything seems to be in place.


photon:~ # dmesg | grep NVIDIA 
    3.115230] nvidia: module license 'NVIDIA' taints kernel.
    4.340444] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  343.22  Thu Sep 11 16:27:43 PDT 2014
 3095.002911] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  343.22  Thu Sep 11 16:27:43 PDT 2014

photon:~ # dmesg | grep bb
    3.026113] bbswitch: version 0.8
    3.026119] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
    3.026125] bbswitch: Found discrete VGA device 0000:0a:00.0: \_SB_.PCI0.RP05.PXSX
    3.026237] bbswitch: detected an Optimus _DSM function
    3.026323] bbswitch: Succesfully loaded. Discrete card 0000:0a:00.0 is on
   32.315577] bbswitch: disabling discrete graphics
 3094.947669] bbswitch: enabling discrete graphics

I have also changed BusID in /etc/bumblebee/xorg.conf.nvidia as the following output suggest

photon:~ # lspci |grep NVIDIA
0a:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 850M] (rev a2)

I have also cheked that changing load state option in /etc/modprobe.d/50-bbswitch.conf to -1, 1 or 0 does not have any effect.

Any idea, what is wrong here?

Did you actually install the NVIDIA-bumblebee package??? DO NOT install the regular NVIDA driver you must have the special bumblebee package. If you did remove it.

That Web page seem to not be 100% right maybe

I suggest

https://en.opensuse.org/SDB:NVIDIA_Bumblebee

Did you convert “0a:00.0” to decimal, “10:00.0”, lspci reports in hex but xorg use decimal.

Your link http://tinyurl.com/kxmt84r is quite outdated as is the Nvidia driver mentioned there (343.22).
The present one is 346.47.

Try the following tutorial, but if you change /etc/modprobe.d/50-bbswitch.conf as mentioned in issue 1) then run mkinitrd before rebooting.

https://forums.opensuse.org/showthread.php/505270-ultimate-tutorial-installing-Bumblebee-driver-for-SUSE

The problem in #2 of that thread has been solved by updated packages in the repository.

Yes, I have installed nvidia-bumblebeed package. I tried this link first without luck.

Yes. I did so.

I did a fresh re-install with v.346 drivers but no luck.

Are you sure this is an Optimus machine?? You have not mentioned the Intel GPU at all.

Finally it is almost fixed. My experience is almost similar as here :
https://github.com/Bumblebee-Project/Bumblebee/issues/573

Here is the fix from this post


sudo cp /usr/sbin/bumblebeed{,.orig}

sudo sed -i 's/PCI:%02x:%02x:%o/PCI:%02d:%02d:%d/' /usr/sbin/bumblebeed

The only problem now is that the applications do not always close cleanly.