2

When I connect or disconnect the USB device, udev shows/monitors that event. But udev is not enough smart to detect the plug-out or plug-in of the monitor. Is there any way/tool/utility from which I will get real-time information about the plug-out or plug-in of a monitor?

(I know how to get EDID information at some point in time, but not how to react when a monitor is plugged in.)

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
SHW
  • 14,454
  • 14
  • 63
  • 101

1 Answers1

2

I think there is no daemon for that. You could however write a script to periodically parse xorg.log or you may be able to use xrandr, but I am not at my Linux box right now, so I can't tell exactly.

Patkos Csaba
  • 2,500
  • 1
  • 20
  • 15