I got my HTPC/Server connected to my Denon receiver. I was wondering if it's possible to get a signal from the receiver when the HDMI channel is active so I can run XBMC when I change the source input? I'm running Ubuntu 14.04 Server edition.
Asked
Active
Viewed 636 times
1 Answers
0
Rather than recreate the wheel, a user asked a very similar question to your own here:
Possible to run a script when something plugged in / disconnected from Mini DisplayPort?
This seems to be what you are looking for. Then you just set the script referred to here to run XMBC when the HDMI is plugged in. Please pay special attention to whether or not your card records when the HDMI is disconnected. You could then design a script to:
1) Verify that XMBC is running
2) Verify that the HDMI port is still connected using the same UDEV script in the link
3) Kill XMBC gracefully should the HDMI port be unplugged
This assumes that you want the XMBC daemon killed when the HDMI gets unplugged, of course.

Geary Shull
- 317
SUBSYSTEM=="drm", ACTION=="change", ENV{HOTPLUG}=="1", RUN+="/usr/local/bin/hdmi_change"
In the run file I echo some text to another file. But it does not run the file. (I've tried running it myself, works fine)
– phmsk Nov 10 '14 at 20:52cat /sys/class/drm/card0-HDMI-A-1/status
it is always connected no matter the channel I change to. – phmsk Nov 10 '14 at 22:17