Re: [gentoo-user] semi OT: Displayport
Thanks for the link, looks like its going to be "fun" :) - I think using an inotify file watcher might be the best/low resource way to detect the event. BillK On 05/30/18 10:23, Andrew Udvare wrote: > >> On 2018-05-29, at 22:03, Bill Kenworthy 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
Re: [gentoo-user] semi OT: Displayport
> On 2018-05-29, at 22:03, Bill Kenworthy 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
[gentoo-user] semi OT: Displayport
Hi all, I have a surface4 pro and use a vga adapter on the displayport connection. This works when manually (Xorg, XFCE4 and xrandr) configured to various external monitors and data projectors. I am trying to automate the process but plugging in the display port adapter does not generate any messages via logging or dmesg (kernel is gentoo-sources-4.16.12 patched to work with the ipts touchscreen) to hook a udev rule into. Can anyone suggest a way to detect when the displayport adapter is plugged in? BillK