> On 2018-05-29, at 22:03, Bill Kenworthy <bi...@iinet.net.au> wrote:
> 
> Can anyone suggest a way to detect when the displayport adapter is
> plugged in?
> 

The event is provided by the driver(s) and if there is no event at all then you 
have to use a script that loops forever querying to see if something has 
changed. You could try grep'ing `xquery -q` every few seconds.

This post says there might be something in /proc to track:

https://unix.stackexchange.com/questions/13746/how-can-i-detect-when-a-monitor-is-plugged-in-or-unplugged

Andrew

Reply via email to