Input devices no longer work after unplug and plug in again
Always if I unplug the keyboard or mouse, i can no longer connect it because it is not recognized again. If I unplug in sway for example the mouse and plug it in again it not works, but if i change then from sway to console with alt+F2 and then back to sway the mouse works again (i can see in dmesg that always if i do this, a new device file is created in /sys/devices/platform/ff580000.usb/usb1/1-1/1-1:1.0/).
According to "sudo libinput debug-events", it doesn't seem like libinput detects that devices are removed and re-added. (see https://github.com/swaywm/sway/issues/5252)
I use a ROCK64 single-board computer (RK3328 Quad-Core ARM Cortex A53 64-Bit Processor) with Armbian and Alpine Linux.
I can only use sway with mouse if i set WLR_NO_HARDWARE_CURSORS=1. If i add "seat seat1 attach *" to sway config, sway works with mouse without WLR_NO_HARDWARE_CURSORS=1, but i can see then two mouse cursors. I had to create the device file /dev/input/mice with mknod mice c 13 63 because it wasn't there, but it doesn't change anything.