event filters for Linux
-
Hi all -
Awhile back, I posted here about trapping serial port events on Windows. Now I need to implement this for Linux. According to the docs:
On X11, eventType is set to "xcb_generic_event_t", and the message can be casted to a xcb_generic_event_t pointer.
Can anyone tell me what the relevant contents of xcb_generic_event_t will be when a serial device is plugged or unplugged? I don't have a Linux machine to test on right now, so I'm throwing this over the fence to someone.
Thanks...
-
X11 in linux knows nothing about serial ports, unless you are using some weird mouse that is connected via a comm port, so you cannot trap anything serial using the X11 protocol. The linux device hotplug facility is called udev.
-
@mzimmers said in event filters for Linux:
a new device isn't created when something is plugged in?
It is, and already answered by @Kent-Dorfman :
The linux device hotplug facility is called udev.
-
@mzimmers
In Linux X11 is just an app, so it doesn't manage the system like in windoze...of course the script kiddies of the 21st century have done everything possible to obfuscate that distinction so that the windoze crowd feels more comfortable in Linux by only ever seeing the GUI.