If you reflashed the firmware then you may have installed the wrong one. Another possibility is that the HDMI cable that you are using is damaged and plugging in to other devices is causing damage to the HDMI ports, i.e. breaking the contacts. Check with a magnifying glass or something and see...