Follow the instructions below only if you know what you're doing and how to revert the changes in case LightDM fails to start, etc.!
Update: the instructions below should work under Ubuntu 14.04 Trusty Tahr too.
Note: the nvidia-prime package only supports the proprietary Nvidia drivers and won't work with Nouveau!
If you're using Ubuntu 13.10 Saucy Salamander or 14.04 Trusty Tahr and want to test the Optimus support in the Nvidia Graphics Drivers 319.12+, here's what you need to do:
If you're using Ubuntu 13.10 Saucy Salamander or 14.04 Trusty Tahr and want to test the Optimus support in the Nvidia Graphics Drivers 319.12+, here's what you need to do:
1. Firstly, purge Bumblebee if installed:
sudo apt-get purge bumblebee*
Also, make sure libvdpau-va-gl1 is not enabled system-wide because it causes Nvidia Settings to crash on start - if it is, either disable it or simply remove the package:
sudo apt-get purge libvdpau-va-gl1
2. Install the proprietary Nvidia drivers and the Nvidia Prime package:
sudo apt-get install nvidia-319 nvidia-settings-319 nvidia-prime
3. Reboot the system.