NOTE: This guide assumes that your bios version is 211 or higher. If you haven’t already done it, download the update from here.
If you’re on Ubuntu 12.04 / 12.10, see here.
1) Install bumblebee. If you previously installed nVidia drivers… remove ‘em completely before performing this step!
$ sudo add-apt-repository ppa:bumblebee/stable
$ sudo apt-get purge nvidia-current
$ sudo apt-get update
$ sudo apt-get install bumblebee bumblebee-nvidia
2) Open (as superuser) the “/etc/bumblebee/bumblebee.conf” file. I suggest the “nano” editor, but for the less experienced users I’ll use gedit:
$ gksu gedit /etc/bumblebee/bumblebee.conf
5) In the [driver-nvidia] section, at the line “KernelDriver=” set the value to “nvidia-current” (without quotation marks). Make sure that, in the [bumblebeed] section, the line “Driver=” is without a value.
6) Save, close and reboot.
7) At this point you should have a working Bumblebee (that is Optimus). To start your applications with the nVidia card, run them with “optirun softwarename“. For example, “optirun firefox”. If you want to do another test, run the “glxspheres” command for about 30 seconds, with and without optirun, then compare the output values on the terminal (they’ll be higher for the nVidia card, of course).