Hi Trevor,
Thank you for bringing this up. Some of the possible reasons why your Surface Book 2 keyboard randomly disconnects may be due to software or hardware components of the device.
You mentioned that there’s no dust or anything in the data port between the screen and keyboard. However, there are some tiny objects or particles that may lodge in the connectors which may not be visible, but can cause problem with attaching and detaching the display, hangs or crashes, or other errors. In that case, we recommend that you clean the connectors as per instructions below:
- Detach the Clipboard from the Keyboard.
- Use a fresh swab to clean. (Use 95% isopropyl alcohol or higher if possible.) Clean the silver pins on both faces of the three connectors located on the top middle surface of the keyboard hinge. Rub the cotton swab back and forth vigorously to clean the pins. Use a fresh swab surface to clean each of the connector faces (six in total).
- After you're done, make sure the pins are dry and that there are no cotton fibers on the connector. Reattach the Clipboard to the Keyboard.
Also, we recommend that you run the Surface Diagnostic Toolkit. This toolkit will install all the available updates for your device and check for any errors and fix it. You may refer to the article for more information and step-by-step guide on how to run the Surface Diagnostic Toolkit.
Kindly make sure that the Clipboard and Keyboard are securely attached. The Detach key flashes a green light if the Clipboard and Keyboard aren’t connected properly. Push the Clipboard down onto the Keyboard with moderate pressure to attach the Keyboard more securely.
For your reference, you can visit Fix problems detaching, attaching, or typing with your Surface Book keyboard.
Please respond to this thread to let us know how the issue progresses. Similarly, if you have more questions, please inform us by replying to this post.
Many thanks.