S
S
Shoolcs2018-12-28 13:48:58
USB
Shoolcs, 2018-12-28 13:48:58

Why is the link to the usb device becoming irrelevant?

Hello! There is ubuntu server 14.04, a usb barcode scanner is connected to the computer.
The udev rule is written:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d57", ATTRS{idProduct}=="001c", SYMLINK+="input/barcode"
In this case, the rule is executed and a link to the device is created /dev/ input/barcode -> event2 . But after a while the device changes ("name" in the system) and becomes not "event2" but "../usb/hiddev0" . And accordingly the link "/dev/input/barcode" becomes irrelevant. Why does this happen and how can it be treated?
PS Of course, you can create a task in cron to perform regularly "udevadm trigger". But this is not a solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shoolcs, 2019-01-11
@noob1

The solution was to replace the motherboard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question