usb input udev rule does not create enough symbolic links in folder /dev/input/by-id
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/
N: input/event29
L: 0
S: input/by-
S: input/by-
E: DEVPATH=
E: DEVNAME=
E: MAJOR=13
E: MINOR=93
...
E: TAGS=:power-switch:
udevadm info -q all -n /dev/input/event30
P: /devices/
N: input/event30
L: 0
S: input/by-
S: input/by-
E: DEVPATH=
E: DEVNAME=
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/
[32100.180217] hid-generic 0003:05A4:
[32100.203523] input: HID 05a4:9881 Mouse as /devices/
[32100.203884] input: HID 05a4:9881 Consumer Control as /devices/
[32100.263821] input: HID 05a4:9881 System Control as /devices/
[32100.263941] hid-generic 0003:05A4:
....
ls -l /dev/input/by-id/ | grep usb-05a4_9881
lrwxrwxrwx 1 root root 10 Feb 12 09:58 usb-05a4_
lrwxrwxrwx 1 root root 10 Feb 12 09:58 usb-05a4_
lrwxrwxrwx 1 root root 10 Feb 12 09:58 usb-05a4_
lrwxrwxrwx 1 root root 9 Feb 12 09:58 usb-05a4_
ISSUE: Symbolic link to ../event29 is missing
udevadm info -q all -n /dev/input/event27
P: /devices/
N: input/event27
L: 0
S: input/by-
S: input/by-
E: DEVPATH=
E: DEVNAME=
E: MAJOR=13
E: MINOR=91
E: SUBSYSTEM=input
E: USEC_INITIALIZE
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_
E: ID_USB_
E: ID_USB_
E: ID_PATH=
E: ID_PATH_
E: XKBMODEL=pc105
E: XKBLAYOUT=de
E: BACKSPACE=guess
E: LIBINPUT_
E: DEVLINKS=
E: TAGS=:power-switch:
udevadm info -q all -n /dev/input/event28
P: /devices/
N: input/event28
L: 0
S: input/by-
S: input/by-
E: DEVPATH=
E: DEVNAME=
E: MAJOR=13
E: MINOR=92
E: SUBSYSTEM=input
E: USEC_INITIALIZE
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_
E: ID_USB_
E: ID_USB_
E: ID_PATH=
E: ID_PATH_
E: LIBINPUT_
E: DEVLINKS=
udevadm info -q all -n /dev/input/event29
P: /devices/
N: input/event29
L: 0
S: input/by-
S: input/by-
E: DEVPATH=
E: DEVNAME=
E: MAJOR=13
E: MINOR=93
E: SUBSYSTEM=input
E: USEC_INITIALIZE
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_
E: ID_USB_
E: ID_USB_
E: ID_PATH=
E: ID_PATH_
E: XKBMODEL=pc105
E: XKBLAYOUT=de
E: BACKSPACE=guess
E: LIBINPUT_
E: DEVLINKS=
E: TAGS=:power-switch:
udevadm info -q all -n /dev/input/event30
P: /devices/
N: input/event30
L: 0
S: input/by-
S: input/by-
E: DEVPATH=
E: DEVNAME=
E: MAJOR=13
E: MINOR=94
E: SUBSYSTEM=input
E: USEC_INITIALIZE
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_
E: ID_USB_
E: ID_USB_
E: ID_PATH=
E: ID_PATH_
E: XKBMODEL=pc105
E: XKBLAYOUT=de
E: BACKSPACE=guess
E: LIBINPUT_
E: DEVLINKS=
E: TAGS=:power-switch:
udevadm info -q all -n /dev/input/mouse1
P: /devices/
N: input/mouse1
L: 0
S: input/by-
S: input/by-
E: DEVPATH=
E: DEVNAME=
E: MAJOR=13
E: MINOR=33
E: SUBSYSTEM=input
E: USEC_INITIALIZE
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_
E: ID_USB_
E: ID_USB_
E: ID_PATH=
E: ID_PATH_
E: DEVLINKS=
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/ FindRightPackag e. 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.]