I've just started using Linux on my laptop, and I am facing some difficulties working with an external monitor. At first, I tried connecting with HDMI, but then the resolution was limited. Also the mouse pointer leaves a kind of trail when moving it, which then disappears within a few seconds after stopping movement of the mouse. I tried connecting with a DP cable, and then I get the full resolution of my external monitor, but the mouse pointer is still an issue.
Strangely, if I open display settings (and even minimize it), it is no longer an issue and the mouse pointer works fine. If I close it (or go into some other settings), the problem reappears.
What could cause this?
I'm using Ubuntu 16.04 and my graphics card is Nvidia GM107GLM [Quadro M2000M].