summaryrefslogtreecommitdiff
path: root/configs/os/udev/v4mini-hdmi-rpi4.rules
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-11-23 21:27:34 +0300
committerMaxim Devaev <[email protected]>2022-11-23 21:27:34 +0300
commit0c25e89f466f5ddfb1263b793cc193382954dcb4 (patch)
tree8326a8ff90ebbfadb0af7f2197ac969fbf72ad88 /configs/os/udev/v4mini-hdmi-rpi4.rules
parent41c8c41e4d6eb52a92b8aaf66245c410e5fb9618 (diff)
nextgen
Diffstat (limited to 'configs/os/udev/v4mini-hdmi-rpi4.rules')
-rw-r--r--configs/os/udev/v4mini-hdmi-rpi4.rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/configs/os/udev/v4mini-hdmi-rpi4.rules b/configs/os/udev/v4mini-hdmi-rpi4.rules
new file mode 100644
index 00000000..88ba66b1
--- /dev/null
+++ b/configs/os/udev/v4mini-hdmi-rpi4.rules
@@ -0,0 +1,6 @@
+# https://unix.stackexchange.com/questions/66901/how-to-bind-usb-device-under-a-static-name
+# https://wiki.archlinux.org/index.php/Udev#Setting_static_device_names
+KERNEL=="video[0-9]*", SUBSYSTEM=="video4linux", KERNELS=="fe801000.csi|fe801000.csi1", ATTR{name}=="unicam-image", GROUP="kvmd", SYMLINK+="kvmd-video", TAG+="systemd"
+KERNEL=="hidg0", GROUP="kvmd", SYMLINK+="kvmd-hid-keyboard"
+KERNEL=="hidg1", GROUP="kvmd", SYMLINK+="kvmd-hid-mouse"
+KERNEL=="hidg2", GROUP="kvmd", SYMLINK+="kvmd-hid-mouse-alt"