I think I have found the answer. Reading the contents of /sys/devices/virtual/switch/hdmi/state appears to output “1” when connected and “0” when disconnected.
Can anybody verify this?
I think I have found the answer. Reading the contents of /sys/devices/virtual/switch/hdmi/state appears to output “1” when connected and “0” when disconnected.
Can anybody verify this?