Bumblebee allows you to run specific programs on the discrete graphic card, inside of an X session using the integrated graphic card.
It's written by Martin Juhl and published under GPL v3.
Actually only Ubuntu (maybe Debian and Mint but not tested) is supported by this script, but Martin is working on to porting on other distros and make his script more distro-indipendent. For info about state of work in distro porting or to help in porting please see https://github.com/MrMEEE/bumblebee/issues/7
git clone https://github.com/MrMEEE/bumblebee cd bumblebee ./install.sh
TODO : import infos from http://www.martin-juhl.dk/ and from the README