Based on what you have said in earlier communications on the Question. Nvidia 349 Seems to be working with your Card. You also intend to use Nvidia GPU only when needed.
So I have a Solution for you. I have posted this to my blog a well and got a very positive response from people who used it. So I have compiled a little how to document like below
The official Repository of Ubuntu has only old and dated drivers. I don't use that myself and would suggest you do the same if you want the latest Nvidia Driver without any problems.
1) First step after installing Ubuntu is to install all updates. You may use the software updater or simply run sudo apt-get update && sudo apt-get upgrade
2) Add the Xorg-edgers ppa using
sudo apt-add-repository ppa:xorg-edgers/ppa and then sudo apt-get update
3) Run sudo apt-get upgrade && sudo apt-get dist-upgrade
This is the most Important step. If you miss this you will see a black screen after reboot. Please do this as we are using the xorg-edgers ppa. We need to ensure all packags required for bumblebee and nvidia are taken from the ppa.
4) Now Install bumblebee and Nvidia drivers using
sudo apt-get install bumblebee bumblebee-nvidia primus nvidia-349
5) Add the current user to the bumblebee security group.
sudo gpasswd -a $USER bumblebee
for Ubuntu 15.04 only you need to manually enable to bumblebee daemon using
sudo systemctl enable bumblebeed
6) This will take care of the Installing the required software on your system. We need to configure it.
I can assure you if you followed these steps so far then configuring should be a breeze.
We start by enabling bbswitch and intel i915 Driver.
7) sudo gedit /etc/modules
Ubuntu 15.04 the file is /etc/modules-load.d/modules.conf
add these two lines to it
8) Edit the bumblebee configuration file.
sudo gedit /etc/bumblebee/bumblebee.conf
- line 22:
- line 55:
- line 58:
- line 61:
In addition to this there is another file that needs to edited.
9) sudo gedit /etc/modprobe.d/bumblebee.conf
Add the below line to end.
Now you may reboot. After reboot.
sudo apt-get install mesa-utils if mesa-utils is not already installed.
primusrun glxinfo | grep OpenGL
This should tell you that nvidia-349.16 driver in use.
Please note that nvidia-349 is the latest driver at the time of writng this. Please check the launchpad page for xorg-edgers ppa an accordingly replace nvidia-349 with the latest version if any.
Let me know if this works for you.