So verhindern Sie eine Udev-Schleife beim Hinzufügen/Entfernen

So verhindern Sie eine Udev-Schleife beim Hinzufügen/Entfernen

ich möchte ein MIDI-Keyboard (Eagletone Tinykey) auf einem Udoo (eine Art Raspberry-Board) verwenden. Beim Anschließen des Geräts wird es nicht richtig eingerichtet.

Eine

udevadm monitor

zeigt eine Art Add/Remove-Schleife:

KERNEL[1174.215632] add      /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1 (usb)
KERNEL[1174.218337] add      /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0 (usb)
KERNEL[1174.222021] add      /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/sound/card2 (sound)
KERNEL[1174.222417] add      /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/sound/card2/midiC2D0 (sound)
KERNEL[1174.222708] add      /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/sound/card2/midi2 (sound)
KERNEL[1174.223329] add      /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/sound/card2/dmmidi2 (sound)
KERNEL[1174.223700] add      /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/sound/card2/controlC2 (sound)
KERNEL[1174.224050] add      /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1 (usb)
KERNEL[1174.225644] remove   /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/sound/card2/midi2 (sound)
KERNEL[1174.226290] remove   /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/sound/card2/dmmidi2 (sound)
KERNEL[1174.226739] remove   /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/sound/card2/midiC2D0 (sound)
KERNEL[1174.227161] remove   /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/sound/card2/controlC2 (sound)
KERNEL[1174.227637] remove   /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/sound/card2 (sound)
KERNEL[1174.227889] remove   /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0 (usb)
KERNEL[1174.228311] remove   /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1 (usb)
KERNEL[1174.229425] remove   /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1 (usb)
UDEV  [1174.232087] add      /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1 (usb)
UDEV  [1174.238406] add      /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0 (usb)
UDEV  [1174.242659] add      /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1 (usb)
UDEV  [1174.243523] add      /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/sound/card2 (sound)
UDEV  [1174.244195] remove   /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.1 (usb)
UDEV  [1174.253150] add      /devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.1/1-1.1:1.0/sound/card2/midi2 (sound)
...

Auf einem Ubuntu-Desktopsystem ist mir vor einigen Monaten dasselbe Problem aufgefallen, das nun (wahrscheinlich durch ein Update) behoben ist und das Gerät in weniger als 2 Sekunden gut eingerichtet ist.

lsusb 

Auszug auf meinem Desktop:

Bus 003 Device 004: ID 0218:0401 Hangzhou Worlde 

Gibt es Vorschläge, wie man diese Art von Problem beheben kann? Ich frage mich, ob die Antwort darin liegt, eine Udev-Regel zu ändern, oder mehr im Kernel oder sogar in einem Initialisierungsskript?

verwandte Informationen