udev 루프 추가/제거를 방지하는 방법

udev 루프 추가/제거를 방지하는 방법

udoo(일종의 라즈베리 보드)에서 미디 키보드(eagletonetinykey)를 사용하고 싶습니다. 장치를 연결하면 올바르게 설정되지 않습니다.

어떤 것을 만들어

udevadm monitor

추가/제거 루프를 표시합니다.

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)
...

데스크탑 시스템 우분투에서 몇 달 전에 동일한 문제가 관찰되었으며 이제는 해결되었으며(아마도 업데이트를 통해) 2초 이내에 장치 설정이 완료되었습니다.

lsusb 

내 데스크탑에서 추출됨:

Bus 003 Device 004: ID 0218:0401 Hangzhou Worlde 

이런 종류의 문제를 해결하기 위한 제안이 있습니까? 대답은 일부 udev 규칙을 수정하는 것인지, 커널에서 더 많은 규칙을 수정하는 것인지, 아니면 일부 init 스크립트를 수정하는 것인지 궁금합니다.

관련 정보