GeForce GTX 1660 Ti not working in Ubuntu 20.04

I finally managed to solve the issue:

  1. Disable security boot in the BIOS

  2. Update kernel

  3. Uninstall all drivers related to the GPU and install them again

4)Add this to /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf:

Option "PrimaryGPU" "yes"

And YES Nvidia customer service is CRAP, they never tried to help and claimed THEY DON’T GIVE SUPPORT IN LINUX XDDDDD