Bumblebee: Cannot access secondary GPU - error: [XORG] (EE) No devices detected

After upgrading to 13.04, I get this error and other answers (Optirun glxgears: Cannot access secondary GPU - error: [XORG] (EE) No devices detected, 'Cannot access secondary GPU' error with Bumblebee) didn't help.

dpkg -l | grep nvidia

ii  bumblebee-nvidia                              3.2.1-1~raringppa2                          amd64        NVIDIA Optimus support using the proprietary NVIDIA driver
ii  nvidia-310                                    310.44-0ubuntu2                             amd64        NVIDIA binary Xorg driver, kernel module and VDPAU library
ii  nvidia-settings-310                           310.44-0ubuntu1                             amd64        Tool for configuring the NVIDIA graphics driver

This is my /etc/bumblebee/bumblebee.conf: http://pastebin.com/G9R55VMr

This is /etc/bumblebee/xorg.conf.nvidia: http://pastebin.com/9xNUPp6b

This is /etc/modprobe.d/blacklist.conf: http://pastebin.com/tCnSCz0B

This is /etc/modprobe.d/bumblebee.conf: http://pastebin.com/WtX1LR9d

This is /etc/modprobe.d/nvidia-310_hybrid.conf: http://pastebin.com/CbVg2FN1

My /etc/bumblebee/xorg.conf.d folder contains only 10-dummy.conf file, that is empty.

This is /var/log/Xorg.8.log: http://pastebin.com/iSMXT7aE

This is optirun -vvv glxspheres output: http://pastebin.com/rbyUhRNr

Ask for further details, if needed!


Solution 1:

The following AskUbuntu answer fixed it for me: https://askubuntu.com/a/285638/47280

Basically, you need to edit /etc/bumblebee/xorg.conf.nvidia and uncomment the following line:

BusID "PCI:01:00:0"

In the config, it states that this is necessary for Ubuntu 13.04. This number refers to the BusID of your GPU, so if it's different then go to the other answer for full instructions.

Solution 2:

I found the following file:

/usr/share/X11/xorg.conf.d/10-nvidia-current-latitude-e6530.conf

I deleted it and optirun worked!

Solution 3:

In /etc/bumblebee/xorg.conf.nvidia , uncomment

BusID "PCI:01:00:0"

and replace with

BusID "PCI:0x:00.0"

where x is the number that you see in 'lspci' list next to 3D controller, which should be your nvidia card