Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

This is /etc/bumblebee/xorg.conf.nvidia:

This is /etc/modprobe.d/blacklist.conf:

This is /etc/modprobe.d/bumblebee.conf:

This is /etc/modprobe.d/nvidia-310_hybrid.conf:

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

This is /var/log/Xorg.8.log:

This is optirun -vvv glxspheres output:

Ask for further details, if needed!

share|improve this question
output of optirun -vvv glxspheres ?? – Qasim May 4 '13 at 7:53
DO you have a /etc/bumblebee/xorg.conf.d/ directory? Please post the contents of the files in that directory as well as /var/log/Xorg.8.log. – Lekensteyn May 4 '13 at 8:28
Edited with both requests! Thank you for your help! – jasmines May 4 '13 at 13:24
how did you install bumblebee ? – Qasim May 4 '13 at 13:36
sudo apt-get install bumblebee virtualgl linux-headers-generic – Qasim May 4 '13 at 13:37

The following AskUbuntu answer fixed it for me:

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.

share|improve this answer
Thank you, it worked for me! – Kostanos Aug 25 '13 at 1:59
Anyone using a Lenovo ThinkPad T420 will need this answer! – Peaches491 Sep 17 '13 at 3:25
up vote 3 down vote accepted

I found the following file:


I deleted it and optirun worked!

share|improve this answer

Well I had same problem after upgrade and nothing I found helped. I had newest version (3.2.1) installed, because I re-added ppa after upgrade and updated bumblebee.

I did one stupid thing though: I removed ppa with ppa-purge and removed bumblebee. Then I added ppa and installed bumblebee again. And magically it started working (at least after reboot). I can't really tell you why though...

share|improve this answer

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

share|improve this answer
... and this worked? – pix Mar 22 '14 at 7:23
yes and no - it fixed problem with non existed secondary GPU, but did not make a solution (work is unstable and has issues with sleep mode) – Maxim Sinev Mar 31 '14 at 15:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.