Ubuntu – How to switch to Nvidia GPU in Ubuntu 18.04

18.04nvidia

I just dual booted my Win 10 laptop with Ubuntu 18.04.The laptop has both the integrated IntelĀ® HD Graphics 530 and a Nvidia GTX960. I was able to successfully install the Nvidia drivers but for some reason I can not seem to switch to the GPU from the Intel. Under Software&Updates > Additional Drivers it shows the nvidia-driver-415 as the driver being used. Is my display on the info page wrong and I am actually using the Nvidia GPU or am I still stuck with the Intel? If it is the Intel how do I switch to the GTX960?

Best Answer

You can check in System Settings -> Details which graphic card you are using.

And to switch between graphics use:

sudo prime-select intel

and for nvidia use

sudo prime-select nvidia
Related Question