Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question