Can't force PRIME Synchronization - screen tearing

This answer is provided by @doug in the comments on the question above.

I tested this solution on a Dell XPS 9570 with a GTX 1050 Ti running Ubuntu 18.04 and it worked.

  • sudo update-initramfs -u
  • Modify /etc/default/grub by running sudo nano /etc/default/grub
    • Change the GRUB_CMDLINE_LINUX_DEFAULT= line to include the setting nvidia-drm.modeset=1
    • If the line was GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" then you would change it to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia-drm.modeset=1"
  • sudo update-grub
  • Reboot

If you want to try this first before modifying grub, you can edit the boot options from the grub menu when you boot the machine.