summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-31 06:53:33 +0300
committerDevaev Maxim <[email protected]>2020-07-31 06:53:33 +0300
commitd22333f7d17ec66407b81e0c9593da50e71ad823 (patch)
tree1db93f04539c6988478242d95fbdb1ad058e944c
parent5953604b6b4293a70f6fbb4682b2e81f8ec84cc4 (diff)
partially fixed hdmiusb enumeration
-rw-r--r--configs/os/udev/v0-hdmiusb-rpi2.rules2
-rw-r--r--configs/os/udev/v0-hdmiusb-rpi3.rules2
-rw-r--r--configs/os/udev/v2-hdmiusb-rpi4.rules2
3 files changed, 3 insertions, 3 deletions
diff --git a/configs/os/udev/v0-hdmiusb-rpi2.rules b/configs/os/udev/v0-hdmiusb-rpi2.rules
index dcbae9b8..ce6d1b3c 100644
--- a/configs/os/udev/v0-hdmiusb-rpi2.rules
+++ b/configs/os/udev/v0-hdmiusb-rpi2.rules
@@ -1,4 +1,4 @@
# 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=="1-1.5:1.0", GROUP="kvmd", SYMLINK+="kvmd-video"
+KERNEL=="video[0-9]*", SUBSYSTEM=="video4linux", KERNELS=="1-1.5:1.0", ATTR{index}=="0", GROUP="kvmd", SYMLINK+="kvmd-video"
KERNEL=="ttyAMA0", SYMLINK+="kvmd-hid"
diff --git a/configs/os/udev/v0-hdmiusb-rpi3.rules b/configs/os/udev/v0-hdmiusb-rpi3.rules
index dee441ff..cf0dd48d 100644
--- a/configs/os/udev/v0-hdmiusb-rpi3.rules
+++ b/configs/os/udev/v0-hdmiusb-rpi3.rules
@@ -1,4 +1,4 @@
# 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=="1-1.2:1.0", GROUP="kvmd", SYMLINK+="kvmd-video"
+KERNEL=="video[0-9]*", SUBSYSTEM=="video4linux", KERNELS=="1-1.2:1.0", ATTR{index}=="0", GROUP="kvmd", SYMLINK+="kvmd-video"
KERNEL=="ttyAMA0", SYMLINK+="kvmd-hid"
diff --git a/configs/os/udev/v2-hdmiusb-rpi4.rules b/configs/os/udev/v2-hdmiusb-rpi4.rules
index f6710ea8..1cdb3ca7 100644
--- a/configs/os/udev/v2-hdmiusb-rpi4.rules
+++ b/configs/os/udev/v2-hdmiusb-rpi4.rules
@@ -1,5 +1,5 @@
# 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=="1-1.4:1.0", GROUP="kvmd", SYMLINK+="kvmd-video"
+KERNEL=="video[0-9]*", SUBSYSTEM=="video4linux", KERNELS=="1-1.4:1.0", ATTR{index}=="0", GROUP="kvmd", SYMLINK+="kvmd-video"
KERNEL=="hidg0", GROUP="kvmd", SYMLINK+="kvmd-hid-keyboard"
KERNEL=="hidg1", GROUP="kvmd", SYMLINK+="kvmd-hid-mouse"