Atlas - 69-hid.rules

Home / ext / SDL / src / hidapi / udev Lines: 1 | Size: 1639 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1# This is a sample udev file for HIDAPI devices which lets unprivileged 2# users who are physically present at the system (not remote users) access 3# HID devices. 4 5# If you are using the libusb implementation of hidapi (libusb/hid.c), then 6# use something like the following line, substituting the VID and PID with 7# those of your device. 8 9# HIDAPI/libusb 10SUBSYSTEMS=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="003f", TAG+="uaccess" 11 12# If you are using the hidraw implementation (linux/hid.c), then do something 13# like the following, substituting the VID and PID with your device. 14 15# HIDAPI/hidraw 16KERNEL=="hidraw*", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="003f", TAG+="uaccess" 17 18# Once done, optionally rename this file for your application, and drop it into 19# /etc/udev/rules.d/. 20# NOTE: these rules must have priority before 73-seat-late.rules. 21# (Small discussion/explanation in systemd repo: 22# https://github.com/systemd/systemd/issues/4288#issuecomment-348166161) 23# for example, name the file /etc/udev/rules.d/70-my-application-hid.rules. 24# Then, replug your device or run: 25# sudo udevadm control --reload-rules && sudo udevadm trigger 26 27# Note that the hexadecimal values for VID and PID are case sensitive and 28# must be lower case. 29 30# TAG+="uaccess" only gives permission to physically present users, which 31# is appropriate in most scenarios. If you require access to the device 32# from a remote session (e.g. over SSH), add 33# GROUP="plugdev", MODE="660" 34# to the end of the udev rule lines, add your user to the plugdev group with: 35# usermod -aG plugdev USERNAME 36# then log out and log back in (or restart the system). 37
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.