Locate the downloaded surface dock registry.reg file. Double-click it and select Yes when prompted to allow changes to your registry.
Restart your Surface device completely. Once it has rebooted, reconnect your Surface Dock and monitors. What This Registry Fix Actually Does
Click Yes again to confirm you want to add the information to the registry, then select OK to close the window. download surface dock registry file
Disconnect your Surface from the Surface Dock or unplug the external monitor cables.
Following these steps in order is critical for the fix to take effect: Locate the downloaded surface dock registry
If you are experiencing external monitor flickering, second-screen sleep issues, or resolution glitches while using a Microsoft Surface Dock, the most effective technical solution is often to to clear your display cache.
This process "resets" the way Windows remembers your monitor configurations, forcing it to redetect displays as if they were new. Where to Download the Surface Dock Registry File Once it has rebooted, reconnect your Surface Dock
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configuration
Technically, this registry file removes specific keys that store "topology" and "connectivity" information about previously connected monitors.
Microsoft provides a specific utility to automate this fix. You can find the official troubleshooting steps and the file link on the page.