If I have headphones/speakers plugged in, and unplug them (usually to swap from headphones to speakers, or vice-versa), often after I unplug, it won't recognise that I plug something back in.
I used to think this happened when some perhaps-not-so-diligent audio using apps were open (I'm looking at you Skype) but it seems to happen more and more. Then again I'm already on my 3rd logic board for this MBP (both times replaced because of dedicated GPU failure), which is the 2nd MBP I've had that's had that same problem fixed twice.
Though, given the particular devices you list, the problem might actually be support vs. lack thereof for 802.1q (media QoS). Apple hardware supports it at all price levels; every other vendor seems to see it as an enterprise feature (for e.g. VoIP softphone VLANs) and doesn't bother including support for it in their consumer chipsets.
My mac really doesn't like being slept with a nas file share mounted; stuff regularly gets corrupted. Or if the wifi glitches.
Thanks!
Also the combination of screensharing to a headless MacMini and then AirPlaying to an Apple TV produces some fairly loathsome results.