Weston and input devices hotplug
I have a problem with weston and hotplugging devices
When device is connected before weston startup I can see logs for input devices e.g.:
[13:35:12.893] event2 - eGalax Inc. eGalaxTouch P81X84 0121 vA1_NQZY k4.18.204: is tagged by udev as: Touchscreen
[13:35:12.893] event2 - eGalax Inc. eGalaxTouch P81X84 0121 vA1_NQZY k4.18.204: device is a touch device
[13:35:12.894] event2 - eGalax Inc. eGalaxTouch P81X84 0121 vA1_NQZY k4.18.204: applying calibration: 0.967213 0.000801 0.015837 0.007515 0.982051 0.008767
[13:35:12.899] event3 - eGalax Inc. eGalaxTouch P81X84 0121 vA1_NQZY k4.18.204 Mouse: not tagged as supported input device
[13:35:12.899] event3 - not using input device '/dev/input/event3'
[13:35:12.901] event1 - gpio-keys: is tagged by udev as: Keyboard
[13:35:12.901] event1 - gpio-keys: device is a keyboard
[13:35:12.903] event0 - sc-powerkey: is tagged by udev as: Keyboard
[13:35:12.903] event0 - sc-powerkey: device is a keyboard
[13:35:12.903] Touchscreen - eGalax Inc. eGalaxTouch P81X84 0121 vA1_NQZY k4.18.204 - /sys/devices/platform/bus@5b000000/5b0e0000.usb/ci_hdrc.1/usb3/3-1/3-1.1/3-1.1.3/3-1.1.3:1.0/0003:0EEF:C002.0001/input/input5/event2
[13:35:12.903] libinput: configuring device "eGalax Inc. eGalaxTouch P81X84 0121 vA1_NQZY k4.18.204".
After that everything works fine. Same for other devices like mouse etc.
But problem occurs when I want to plug in device while weston is already set up. In dmesg it seems ok:
[ 229.295137] usb 3-1.1.3: USB disconnect, device number 4
[ 232.897628] usb 3-1.1.3: new full-speed USB device number 5 using ci_hdrc
[ 233.059769] input: eGalax Inc. eGalaxTouch P81X84 0121 vA1_NQZY k4.18.204 as /devices/platform/bus@5b000000/5b0e0000.usb/ci_hdrc.1/usb3/3-1/3-1.1/3-1.1.3/3-1.1.3:1.0/0003:0EEF:C002.0002/input/input8
[ 233.060302] input: eGalax Inc. eGalaxTouch P81X84 0121 vA1_NQZY k4.18.204 Mouse as /devices/platform/bus@5b000000/5b0e0000.usb/ci_hdrc.1/usb3/3-1/3-1.1/3-1.1.3/3-1.1.3:1.0/0003:0EEF:C002.0002/input/input10
[ 233.060975] hid-multitouch 0003:0EEF:C002.0002: input,hiddev96,hidraw0: USB HID v1.11 Mouse [eGalax Inc. eGalaxTouch P81X84 0121 vA1_NQZY k4.18.204] on usb-ci_hdrc.1-1.1.3/input0
Also, for example for touch panel I can see it's working in evtest. But in weston logs there is no info about disconnecting/connecting devices. Only after restart devices start to work.
Is there any way to some kind enable hotplugging devices inside weston without having to restart?