Perhaps a mechanical problem with a partially seated connector somewhere. Carrying the machine to the repair shop may have shifted the contacts just enough to reestablish connections.

Could be a cable connector, a chip socket connector or even a cracked solder joint on a chip somewhere. Intermittent problems can be annoying and time consuming to troubleshoot. Sometimes the actual original cause is never fully determined.

Hopefully it stays 'fixed' and requires no further attention.