That was a mistake to install nvidia drivers on a optimus enabled system.It won't work.
First you need to uninstall existing nvidia driver.
Uninstall nvidia, run following in terminal
sudo nvidia-uninstall
Reinstall the Mesa package for GL:
sudo apt-get --reinstall install libgl1-mesa-glx
When done, reboot with:
sudo reboot
To turnoff nvidia graphics card and use it only when required install The Bumblebee:
Add the Stable Bumblebee Releases PPA and install Bumblebee using the proprietary NVIDIA driver:
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia
If you have 32-bit applications like Wine, and run 11.10 Oneiric or later, you will need extra libraries:
sudo apt-get install virtualgl-libs:i386
Allow yourself to use Bumblebee by adding yourself to the 'bumblebee' group. (replace $USER
by your username)
sudo usermod -a -G bumblebee $USER
Reboot or re-login to apply the group changes
If you'd like to run a program on the nvidia card now, use the optirun program:
optirun firefox &
To test whether it is working, install mesa-utilities by executing sudo apt-get install mesa-utils
Run glxgears
, wait for sometimes, you will get frame rate every 5 second and it will be like 50-60 fps. It means it is using intel card.
run optirun glxgears
and see the framerates. It will be much higher indicating nvidia card is working.
Also you can run webgl tests with browsers.
Read more from bumblebee wiki
Linked Question:
Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?
How well will Nvidia Optimus cards be supported in 12.04?