If the registry fix doesn't solve the problem, the issue may lie with your firmware or hardware: Troubleshoot connecting Surface to an external display
Download the .zip file from the link above and open it to find surface dock registry.reg . surface dock registry file download
The display cuts in and out frequently.