HDMI connect-event, automatic action

Hi,

I want to plug in a HDMI-cable (connected to a display of course) into my computer and want FreeBSD to do something (i.e. running a script) after I've done it.

I thought of using devd (/etc/devd.conf), but I wasn't able to figure out the "HDMI-cable-plugin"-event. I don't know where to search for this event (it's not written to dmesg). I know that it might have something to do with devctl, but how can I see the output of this (kernel?-) process?

Thank in advance.
 
The driver would have to notify the system of a connection event. If there's any software that can determine whether that cable is attached (maybe xrandr(1)), a shell script loop could be wrapped around it to form a crude daemon.
 
Back
Top