Public bug reported:

Ubuntu 20.04

Attaching usb device Hama Remote MC, other devices might have the same
issue

Problem: Not enough Symlinks for this device in the folders /dev/input
/by-id and /dev/input/by-path, resulting loss of events for applications
using those links

Issue is reproducible, every time attaching the device

Suspect a problem with udev rules

When connecting this remote, not enough symlinks are created in the
folders by-id and by-path.

Reason might be that those event sources do not provide a unique
pathname for the symbolic link. Please compare the paths of event29 and
event30 in the below queries.

In addition the TAGS field for event30 should not be ":power-switch:"
but related to Multimedia keys (PLAY/PAUSE/VOLUME ...)

udevadm info -q all -n /dev/input/event29

P: 
/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input33/event29
N: input/event29
L: 0
S: input/by-id/usb-05a4_9881-event-if01
S: input/by-path/pci-0000:00:14.0-usb-0:2:1.1-event
E: 
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input33/event29
E: DEVNAME=/dev/input/event29
E: MAJOR=13
E: MINOR=93
...
E: TAGS=:power-switch:

udevadm info -q all -n /dev/input/event30

P: 
/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input34/event30
N: input/event30
L: 0
S: input/by-id/usb-05a4_9881-event-if01
S: input/by-path/pci-0000:00:14.0-usb-0:2:1.1-event
E: 
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input34/event30
E: DEVNAME=/dev/input/event30
E: MAJOR=13
E: MINOR=94
...
E: TAGS=:power-switch:


further information, more details:


dmesg

....
[32099.951670] usb 3-2: new low-speed USB device number 12 using xhci_hcd
[32100.110425] usb 3-2: New USB device found, idVendor=05a4, idProduct=9881, 
bcdDevice= 1.20
[32100.110431] usb 3-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[32100.121499] input: HID 05a4:9881 as 
/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/0003:05A4:9881.0008/input/input31
[32100.180217] hid-generic 0003:05A4:9881.0008: input,hidraw5: USB HID v1.10 
Keyboard [HID 05a4:9881] on usb-0000:00:14.0-2/input0
[32100.203523] input: HID 05a4:9881 Mouse as 
/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input32
[32100.203884] input: HID 05a4:9881 Consumer Control as 
/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input33
[32100.263821] input: HID 05a4:9881 System Control as 
/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input34
[32100.263941] hid-generic 0003:05A4:9881.0009: input,hidraw6: USB HID v1.10 
Mouse [HID 05a4:9881] on usb-0000:00:14.0-2/input1
....

ls -l /dev/input/by-id/ | grep usb-05a4_9881

lrwxrwxrwx 1 root root 10 Feb 12 09:58 usb-05a4_9881-event-if01 -> ../event30
lrwxrwxrwx 1 root root 10 Feb 12 09:58 usb-05a4_9881-event-kbd -> ../event27
lrwxrwxrwx 1 root root 10 Feb 12 09:58 usb-05a4_9881-if01-event-mouse -> 
../event28
lrwxrwxrwx 1 root root  9 Feb 12 09:58 usb-05a4_9881-if01-mouse -> ../mouse1

ISSUE: Symbolic link to ../event29 is missing


udevadm info -q all -n /dev/input/event27

P: 
/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/0003:05A4:9881.0008/input/input31/event27
N: input/event27
L: 0
S: input/by-path/pci-0000:00:14.0-usb-0:2:1.0-event-kbd
S: input/by-id/usb-05a4_9881-event-kbd
E: 
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/0003:05A4:9881.0008/input/input31/event27
E: DEVNAME=/dev/input/event27
E: MAJOR=13
E: MINOR=91
E: SUBSYSTEM=input
E: USEC_INITIALIZED=32100518356
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_VENDOR=05a4
E: ID_VENDOR_ENC=05a4
E: ID_VENDOR_ID=05a4
E: ID_MODEL=9881
E: ID_MODEL_ENC=9881
E: ID_MODEL_ID=9881
E: ID_REVISION=0120
E: ID_SERIAL=05a4_9881
E: ID_TYPE=hid
E: ID_BUS=usb
E: ID_USB_INTERFACES=:030101:030000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=usbhid
E: ID_PATH=pci-0000:00:14.0-usb-0:2:1.0
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_0
E: XKBMODEL=pc105
E: XKBLAYOUT=de
E: BACKSPACE=guess
E: LIBINPUT_DEVICE_GROUP=3/5a4/9881:usb-0000:00:14.0-2
E: DEVLINKS=/dev/input/by-path/pci-0000:00:14.0-usb-0:2:1.0-event-kbd 
/dev/input/by-id/usb-05a4_9881-event-kbd
E: TAGS=:power-switch:

udevadm info -q all -n /dev/input/event28

P: 
/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input32/event28
N: input/event28
L: 0
S: input/by-id/usb-05a4_9881-if01-event-mouse
S: input/by-path/pci-0000:00:14.0-usb-0:2:1.1-event-mouse
E: 
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input32/event28
E: DEVNAME=/dev/input/event28
E: MAJOR=13
E: MINOR=92
E: SUBSYSTEM=input
E: USEC_INITIALIZED=32100508880
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_VENDOR=05a4
E: ID_VENDOR_ENC=05a4
E: ID_VENDOR_ID=05a4
E: ID_MODEL=9881
E: ID_MODEL_ENC=9881
E: ID_MODEL_ID=9881
E: ID_REVISION=0120
E: ID_SERIAL=05a4_9881
E: ID_TYPE=hid
E: ID_BUS=usb
E: ID_USB_INTERFACES=:030101:030000:
E: ID_USB_INTERFACE_NUM=01
E: ID_USB_DRIVER=usbhid
E: ID_PATH=pci-0000:00:14.0-usb-0:2:1.1
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_1
E: LIBINPUT_DEVICE_GROUP=3/5a4/9881:usb-0000:00:14.0-2
E: DEVLINKS=/dev/input/by-id/usb-05a4_9881-if01-event-mouse 
/dev/input/by-path/pci-0000:00:14.0-usb-0:2:1.1-event-mouse

udevadm info -q all -n /dev/input/event29

P: 
/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input33/event29
N: input/event29
L: 0
S: input/by-id/usb-05a4_9881-event-if01
S: input/by-path/pci-0000:00:14.0-usb-0:2:1.1-event
E: 
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input33/event29
E: DEVNAME=/dev/input/event29
E: MAJOR=13
E: MINOR=93
E: SUBSYSTEM=input
E: USEC_INITIALIZED=32100509810
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_VENDOR=05a4
E: ID_VENDOR_ENC=05a4
E: ID_VENDOR_ID=05a4
E: ID_MODEL=9881
E: ID_MODEL_ENC=9881
E: ID_MODEL_ID=9881
E: ID_REVISION=0120
E: ID_SERIAL=05a4_9881
E: ID_TYPE=hid
E: ID_BUS=usb
E: ID_USB_INTERFACES=:030101:030000:
E: ID_USB_INTERFACE_NUM=01
E: ID_USB_DRIVER=usbhid
E: ID_PATH=pci-0000:00:14.0-usb-0:2:1.1
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_1
E: XKBMODEL=pc105
E: XKBLAYOUT=de
E: BACKSPACE=guess
E: LIBINPUT_DEVICE_GROUP=3/5a4/9881:usb-0000:00:14.0-2
E: DEVLINKS=/dev/input/by-id/usb-05a4_9881-event-if01 
/dev/input/by-path/pci-0000:00:14.0-usb-0:2:1.1-event
E: TAGS=:power-switch:


udevadm info -q all -n /dev/input/event30
P: 
/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input34/event30
N: input/event30
L: 0
S: input/by-id/usb-05a4_9881-event-if01
S: input/by-path/pci-0000:00:14.0-usb-0:2:1.1-event
E: 
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input34/event30
E: DEVNAME=/dev/input/event30
E: MAJOR=13
E: MINOR=94
E: SUBSYSTEM=input
E: USEC_INITIALIZED=32100511077
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_VENDOR=05a4
E: ID_VENDOR_ENC=05a4
E: ID_VENDOR_ID=05a4
E: ID_MODEL=9881
E: ID_MODEL_ENC=9881
E: ID_MODEL_ID=9881
E: ID_REVISION=0120
E: ID_SERIAL=05a4_9881
E: ID_TYPE=hid
E: ID_BUS=usb
E: ID_USB_INTERFACES=:030101:030000:
E: ID_USB_INTERFACE_NUM=01
E: ID_USB_DRIVER=usbhid
E: ID_PATH=pci-0000:00:14.0-usb-0:2:1.1
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_1
E: XKBMODEL=pc105
E: XKBLAYOUT=de
E: BACKSPACE=guess
E: LIBINPUT_DEVICE_GROUP=3/5a4/9881:usb-0000:00:14.0-2
E: DEVLINKS=/dev/input/by-id/usb-05a4_9881-event-if01 
/dev/input/by-path/pci-0000:00:14.0-usb-0:2:1.1-event
E: TAGS=:power-switch:


udevadm info -q all -n /dev/input/mouse1
P: 
/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input32/mouse1
N: input/mouse1
L: 0
S: input/by-id/usb-05a4_9881-if01-mouse
S: input/by-path/pci-0000:00:14.0-usb-0:2:1.1-mouse
E: 
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.1/0003:05A4:9881.0009/input/input32/mouse1
E: DEVNAME=/dev/input/mouse1
E: MAJOR=13
E: MINOR=33
E: SUBSYSTEM=input
E: USEC_INITIALIZED=32100471505
E: ID_INPUT=1
E: ID_INPUT_MOUSE=1
E: ID_VENDOR=05a4
E: ID_VENDOR_ENC=05a4
E: ID_VENDOR_ID=05a4
E: ID_MODEL=9881
E: ID_MODEL_ENC=9881
E: ID_MODEL_ID=9881
E: ID_REVISION=0120
E: ID_SERIAL=05a4_9881
E: ID_TYPE=hid
E: ID_BUS=usb
E: ID_USB_INTERFACES=:030101:030000:
E: ID_USB_INTERFACE_NUM=01
E: ID_USB_DRIVER=usbhid
E: ID_PATH=pci-0000:00:14.0-usb-0:2:1.1
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_1
E: DEVLINKS=/dev/input/by-id/usb-05a4_9881-if01-mouse 
/dev/input/by-path/pci-0000:00:14.0-usb-0:2:1.1-mouse

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1915510

Title:
  usb input udev rule does not create enough symbolic links in folder
  /dev/input/by-id

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1915510/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to