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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store