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

Bug #1915510 reported by Sebastian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-hwe-5.8 (Ubuntu)
New
Undecided
Unassigned

Bug Description

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

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1915510/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Sebastian (wastis) wrote :

I think this is the package for the hid-generic driver.

affects: ubuntu → linux-hwe-5.8 (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.