Elementary OS Nvidia Screen Tearing Need Help

I am using elementary OS Freya 64 bit which is installed on a MSI GS60 2QE laptop. The screen is 1080p as well with 8GB of RAM and a i7.

Everything runs great, I even managed to install the WiFi drivers.

However, my laptop has Intel HD 5500 graphics as well as a 970m. I want to use the 970m but when I change the drivers over to Nvidia I get screen tearing and it is driving me nuts. The Intel GPU works fine, no tearing at all but I really want to just use my 970m instead.

I have tried so much over the last 2 days to get the screen tearing issue fixed but no luck.
Here is what I have tried:

  • Changing the nivida pipe line

  • Changing the Xorg config and moving it to the Nvidia area

  • Tried to use Compiz to alter the refresh rate but no luck

  • Changing the environmental variables

And much more...

Any ideas to where I can look?

Thanks.

Its a known issue for years: https://devtalk.nvidia.com/default/topic/775691/vsync-issue-nvidia-prime-ux32vd-with-gt620-m-/

Its close to being fixed though, check page 3 or 4 for the current status of the issue, there is a patch already in 4.5 kernel but more things need to be done in order to the issue to be fixed (xorg and nvidia driver patch).

Try compton, it got a lot of options and "vsync" methods