Ubuntu – How to only use the discrete nvidia graphics card (turn off integrated graphics)

14.04bumblebeedriversgraphicshybrid-graphics

How do I turn off the Intel integrated graphics and only use my discrete nvidia 960m card?

I know I can install bumblebee and then use optirun, but I want to use the nvidia card by default. I always use my laptop with the power cord plugged in so power savings I do not care about. I just want to maximize my computer.

For instance, I want unity to run with my nvidia card. I preferable do not want to fiddle around in the boot script and find where unity is launched, and then prepend with optirun.

Is there any way to do this?

Edit

Do I even need bumblebee? I read somewhere that the nvidia-settings have the option to change between the nvidia card and the integrated one. But it shows up empty for me. Is this because bumblebee blocks nvidia? So if I remove bumblebee, then nividia drivers will be launched and then I can change to use the card in nvidia-settings?

After some more investigation (link):

Anyway, basically the official NVIDIA proprietary driver for Linux does now include an option (as long as nvidia-prime and/or Xorg is setup correctly) to switch between the Intel GPU and the NVIDIA GPU in the NVIDIA Control Panel. However, this is not real-time switching. You do have to log out and log back in for the change to take effect, so in the end you can only choose to use one GPU or the other at any one time. There is no dynamic switching. On the other hand if you don't care about battery life or heat or they aren't really a factor for you, you could just choose to use the NVIDIA GPU all the time, which is probably what a lot of heavy gamers would choose to do.

So I guess I should be able to switch to the nvidia card in the nvidia-settings, but the bumbleebee/nvidia-prime/nouveau is blocking it. Stuff also gets installed automatically when I installed from scratch (both 14.04 and 15.04) so I guess I have to look what it is using, then purging bumbleebee/nvidia-prime/nouveau and installing the nvidia drivers from official repo, should make it come up in the nvidia-settings.

Best Answer

Use this command line to purge the integrated graphics driver:

sudo apt-get --purge remove xserver-xorg-video-nouveau

Warning: This will remove the Nouveau driver completely, if you only wish to switch between Nouveau and NVidia please read https://help.ubuntu.com/community/HybridGraphics