Here is what you need to do:
Install NVIDIA drivers from ubuntu repos, with apt & ubuntu-drivers

sudo ubuntu-drivers auto-install

After installing, disable the “nvidia-fallback” service:

sudo systemctl disable nvidia-fallback.service

Blacklist nouveau driver using GRUB config. In /etc/default/grub look for a line GRUB_CMDLINE_LINUX . Add nouveau.blacklist=1 into that parameter. If the line is not present add this line GRUB_CMDLINE_LINUX="nouveau.blacklist=1"

The third optional step is bbswitch (only for laptop users interested for power savings, if your system supports it.) Install “bbswitch-dkms”

sudo apt install bbswitch-dkms

Configure the system to load it by appending bbswitch in /etc/modules

To switch to Intel graphics run

sudo prime-select intel

To use NVIDIA (for external display etc)

sudo prime-select nvidia

And reboot to take effect

To disable the card on boot run

echo "options bbswitch load_state=0" | sudo tee /etc/modprobe.d/bbswitch.conf

More info about bbswitch here:

Computer Whisperer. Open-source contributor. Find me at

Computer Whisperer. Open-source contributor. Find me at