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

Whenever I try to run some programs under bumblebee with optirun they crash before displaying any window. I particularly try to run supermeatboy because it doesn't support intel cards, but with bumblebee it doesn't get even to displaying a window unlike the intel one and crashes prematurely. I've attached the xorg log.

Thanks in advance, Nikita.

share|improve this question
Bumblebee 3.0 does not use Xorg.8.log or bumblebee.log anymore. Please attach /var/log/syslog instead. – Lekensteyn Jan 25 '12 at 15:59
added the syslog – vitiv Jan 25 '12 at 16:09
up vote 1 down vote accepted

Your setup looks fine. I guess that you are affected by issue 42: [VGL] ERROR: Could not open display :8 if a program forks and exits optirun.

This bug occurs when running an application with optirun which detaches. Workaround: open a shell and then run the program:

optirun bash
share|improve this answer
Tried it. Now I get a "Segementation Fault" in console. This is the log: – vitiv Jan 25 '12 at 16:22
What program are you trying to run? Do you get other errors in the console? If it's a 32-bit program, install the virtualgl-libs:i386 package. – Lekensteyn Jan 25 '12 at 16:35
As mentioned in the question it's supermeatboy. Apart from the segmentation fault nothing and virtualgl appear to be at the latest version – vitiv Jan 25 '12 at 16:45
Is there an entry in dmesg when the program segfaults? – Lekensteyn Jan 25 '12 at 17:01
This – vitiv Jan 25 '12 at 17:10


optirun bash
sudo ./SuperMeatBoy

Using sudo helped me to avoid Segmentation fault

share|improve this answer
This is wrong, sudo just makes optirun useless and omitting optirun has the same effect. – Lekensteyn Jul 6 '12 at 21:57

Using primusrun instead of optirun solves this problem.

Primus is a different bumblebee backend with better performance (less overhead) and less power usage (second GPU only used for OpenGL parts of the program).

You install primus with sudo aptitude install primus and run it with:

primusrun your_cool_program

This is far easier to use in scripts than the optirun workarounds.

share|improve this answer

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.