I am currently turning on a TV during boot using an IR Led connected to the GPIO. Currently I send the IR tv power code everytime I boot up and shutdown.
However if the Raspberry Pi is hard reset whilst the tv is on, then on the next boot the PI will turn off the tv when it boots up and turn it on when it shuts down (on/off ir code is the same), so i need a way of determining if the TV is ON or OFF.
The HDMI output does not work when the TV is off (I have had to set hdmi_drive=2). What i am wondering is there any command that will allow me to read the HDMI hotplug status? (Hotplug is low when TV is off)
Hope that makes sense!