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?
As @Ali Rasooli said it, the tool you want to use is the
prime-select command. Unfortunately on 18.04 you have to reboot to put into effect the change.
You can benchmark your GPU by installing glmark2 (
sudo apt-get install glmark2) and see if after reboot it actually switched between your dedicated and integrated graphics. I did not find another reliable way to see which card is active.
You can look into this repo on github if you want to switch without having to reboot.