Ubuntu: How to run a program using the Nvidia card with bbswitch?


I have a Nvidia graphics card running with Nouveau drivers which I keep disabled (at boot) using bbswitch in Ubuntu 12.04.

Bumblebee always kept the card on, so I uninstalled it, and installed the bbswitch module by downloading the source code and compiling, according to these instructions here


How can I make sure that a program like a game is run using the Nvidia card? I don't have problems with switching the card ON or OFF using the terminal.


I found out by trial that the bbswitch daemon alone can only turn the power on for the card. The driver is not loaded and card is not functional. Installing bumblebee is the solution. If uninstalling bbswitch manually doesn't work (using purge bbswitch-dkms) bumblebee will uninstall it automatically.

Other things I found out by experience: sometimes bumblebee may not install itself properly or fails to automatically keep the dedicated card switched off, in which case purge bumblebee and reinstall.

Running bumblebee with primus is supposed to give better performance than the default virtualgl. Primus is included with bumblebee 3.1 onwards at the time of writing so there's no need to install primus manually.

If the command

primusrun <<APPLICATION NAME>>  

doesn't work, use

optirun -b primus <<APPLICATION NAME>>  

Useful links:



Do your research before installing and using if you are a newbie :)

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »