Elena Graverini

Install Bumblebee

sudo apt-get purge nvidia-current
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee nvidia-319 nvidia-settings-319 linux-headers-generic bumblebee-nvidia bbswitch-dkms

Blacklist nouveau driver module.

To run nvidia-settings:
optirun nvidia-settings -c :8

References:
http://askubuntu.com/questions/202644/how-to-install-nvidia-optimus-driver-on-ubuntu-12-10
https://wiki.ubuntu.com/Bumblebee#Installation
http://www.pimp-my-rig.com/2012/01/unload-nouveau-install-nvidia-driver.html