Created
January 16, 2023 05:24
-
-
Save tsibley/0b3b0849d83cd0e5f6f6b74f9f6285a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Symlink the raw HID device (not the baked HID device) of a Thing blink(1), | |
# aka USB vendor:product id 27b8:01ed (cute product id!), using its reported | |
# serial number as /dev/blink/$serial. Also set the mode and group to allow | |
# access. | |
# | |
# This rule matches properties of two udev devices in the device tree: | |
# | |
# 1. the raw HID device with the SUBSYSTEM condition, and | |
# 2. the USB parent device (but *not* the baked HID device in between) with | |
# all the other conditions. | |
# | |
# udev rules support matching up to two devices: the device you're targeting | |
# and up to *one* of its parents. See more properties you can match with, e.g. | |
# `udevadm info --attribute-walk /dev/hidraw1`. | |
# | |
# For lots of other details on how rules work, see udev(7). | |
# | |
# Hope this helps! | |
# -trs, 14 Jan 2023 | |
# | |
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", ATTRS{serial}=="?*", SYMLINK+="blink/$attrs{serial}", MODE:="0666", GROUP="plugdev" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment