Many prior posts implicate a drained battery, particularly among the older Surface Pros. I have a Surface 5, i7 7660U/Iris 640. So the current fix appropriate for the Surface 7 won't/doesn't work for me. I've purchased a new battery and am waiting for
the appropriate moment to install it. Will let you know whether that cures my problem.
Incidentally, the only thing which appears to resolve the issue immediately for me is detaching/reattaching the type cover, which has the effect of resetting the USB bus over which the type cover communicates. In the older models, there is likely a problem
with the USB bus driver which causes the graphics card to believe (wrongly) that the user is attempting to switch from using the trackpad to the touch screen. I note that, while the trackpad is not working, the touch screen/pen work fine. Getting back to
using the trackpad, however, mostly requires the detach/reattach trick. But often, before this becomes "mandatory", I can relieve the issue momentarily (depending on the active application), by hitting the ESC and right-click keys, or the ESC and DEL keys,
in rapid succession. Why? It's a mystery. Probably all a USB bus driver issue between the type cover and the system, at least in the older models.