The ability to auto-detect the HDMI attached device when coming out of sleep and correct for it's possibly changed state (you turned it on or off while it was asleep) is 100% entirely the problem of the video
driver. I've had this work in one version then fail in another, then work again later.
I have a computer hooked permanently to a monitor which is primary and an HD TV through HDMI as a secondary, and the existence or absence of the HDMI connected "monitor" when coming out of sleep or even booting and switching the TV on and off (when computer is off, asleep or awake) has been somewhat of a crapshoot, but again, it's up to the
driver to do things right in that situation. My current setup finally handles all cases I commonly throw at it fine so I guess I'm never updating the video
driver again
I would just try updating to the latest driver for your card and hope they fixed it :/
(PS, I actually have the HDMI cable going to a switch splitter that allows me to direct it to an TV or a projector which are running at two different resolutions! and even that works finally

)