I have an app that leverages a USB Barcode scanner for reading UPC codes. Because it is an HID device, any keyboard / mouse aware app accepts input from it. The udev rule (below) allows me to exclude it from libinput apps.
ACTION!="remove", KERNEL=="event[0-9]*", \
ENV{ID_VENDOR_ID}=="067e", \
ENV{ID_MODEL_ID}=="0100", \
ENV{LIBINPUT_IGNORE_DEVICE}="1"
However, this does not disable it for the PI console. Fortunately barcodes don't typically correspond to command names, but spurious input to the console is not desirable. Anybody know how to block a specific HID device from being processed as console input (without requiring a kernel rebuild)?
Thanks for any pointers.
ACTION!="remove", KERNEL=="event[0-9]*", \
ENV{ID_VENDOR_ID}=="067e", \
ENV{ID_MODEL_ID}=="0100", \
ENV{LIBINPUT_IGNORE_DEVICE}="1"
However, this does not disable it for the PI console. Fortunately barcodes don't typically correspond to command names, but spurious input to the console is not desirable. Anybody know how to block a specific HID device from being processed as console input (without requiring a kernel rebuild)?
Thanks for any pointers.
Statistics: Posted by Vraz — Wed Apr 10, 2024 3:08 pm