The hardware information that you had provided in your earlier question says that you are using Ubuntu 12.04 on a machine that has a NVIDIA GEFORCE GT 520MX graphics adapter.
Install the NVIDIA drivers in an alternative way, but first remove all NVIDIA related software you have had installed ... this includes bumblebee ... it will be replaced with nvidia-prime.
Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.
On login screen press Ctrl+Alt+F1 - enter user name and password - execute :
sudo apt-get purge nvidia* bumblebee
sudo reboot
Install the stable NVIDIA drivers for GEFORCE GT 520MX from the official Ubuntu repositories :
Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.
On login screen press Ctrl+Alt+F1 - enter user name and password - execute :
sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo reboot
Update addressing the comment under your question that you are using Ubuntu 15.04 now :
Generally you should use the drivers from the official Ubuntu repositories. But when you have problems with these drivers ... you can install the drivers from the GPU Drivers PPA.
Uninstall the currently installed NVIDIA drivers 352 :
Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.
On login screen press Ctrl+Alt+F1 - enter user name and password - execute :
sudo apt-get purge nvidia*
sudo reboot
Install the latest official stable NVIDIA drivers 358 :
Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.
On login screen press Ctrl+Alt+F1 - enter user name and password - execute :
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358 nvidia-prime
sudo reboot