If you have the Nvidia Graphics Card in your laptop, you can install the Nvidia driver from your distribution (in my case Ubuntu), using following command. Open a terminal window first:
sudo apt-get udpate <enter>
sudo apt-get install bumblebee bumblebee-nvidia primus <enter>
After that reboot, and you should have the Nvidia driver installed. Note that to use the Nvidia driver, you will need to run the following command for any programs that require use of the Nvidia graphics card:
optirun blender <enter>
where blender is the name of the program that is to be run using the Nvidia graphics card.