Prime Indicator is a small, helpful Ubuntu AppIndicator for Nvidia Optimus users running Ubuntu 14.04 which allows users to quickly switch between Intel and Nvidia graphics cards.
As we pointed out a while back, it's possible to switch between Nvidia and Intel graphics in Ubuntu 14.04 and to do this, you must open Nvidia Settings, change the graphics card, enter your password, then log out and log back in. Using Prime Indicator you can do this easier: a single click will automatically switch the graphics card and log out.
This is useful if you often need to switch between Nvidia and Intel graphics cards (to play games under Nvidia grapics for instance). Or at leat it will be useful, since Ubuntu 14.04 hasn't been released yet.
Since this is an "indicator", it also indicates the running graphics chip as an icon (it displays the Nvidia or Intel logo on the panel).
Prime Indicator probably also works in Ubuntu 12.04 with the newest hardware enablement stack, but I didn't test it so the PPA provides packages for Ubuntu 14.04 only however, you can manually install the deb under Ubuntu 12.04 if you want to give it a try (there's a deb download link under the PPA installation instructions below).
Install Prime Indicator in Ubuntu
Prime Indicator is available for Ubuntu 14.04 (update: the package is now also available for Ubuntu 12.04, 14.10 and 15.04) users in the main WebUpd8 PPA. To add the PPA and install it, use the commands below:
sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install prime-indicator
If you don't want to add the PPA or you're using Ubuntu 12.04 and want to give this a try, you can manually download the deb from HERE.
Prime Indicator should start automatically when you log in so to start it for the first time, log out and log back in.
For source code, bug reports and so on, see Prime Indicator @ GitHub.
Thanks to Alfred for the tip!