Auto detect hdmi source for sleep mode

I wonder how can be possible to auto sleep vim 1 when hdmi source power is off
I am about to add the vim 1 as car radio and i am thinking that could be “the easy way” without any hardware parts , for sleep mode when car is off

Thank you