From: | Andrew Udvare <audvare@×××××.com> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] semi OT: Displayport | ||
Date: | Wed, 30 May 2018 02:23:50 | ||
Message-Id: | E745E02E-B995-448D-A106-C1E501D24510@gmail.com | ||
In Reply to: | [gentoo-user] semi OT: Displayport by Bill Kenworthy |
1 | > On 2018-05-29, at 22:03, Bill Kenworthy <billk@×××××××××.au> wrote: |
2 | > |
3 | > Can anyone suggest a way to detect when the displayport adapter is |
4 | > plugged in? |
5 | > |
6 | |
7 | 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. |
8 | |
9 | This post says there might be something in /proc to track: |
10 | |
11 | https://unix.stackexchange.com/questions/13746/how-can-i-detect-when-a-monitor-is-plugged-in-or-unplugged |
12 | |
13 | Andrew |
Subject | Author |
---|---|
Re: [gentoo-user] semi OT: Displayport | Bill Kenworthy <billk@×××××××××.au> |