HDMI does some weird stuff.
Try a different brand of HDMI cable. The proper operation of HDMI depends on the interaction of the source-cable-TV. A cable can work for one combination and not another.
When you switch to another input and back the TV starts looking to handshake with the source. Try turning the source on after you change inputs.