Added kvmd-udev-restart pass and udev rule to restart kvmd-pass on plugging HDMI-A-1

https://forums.raspberrypi.com/viewtopic.php?p=2202017
This commit is contained in:
Maxim Devaev
2024-03-11 17:11:55 +02:00
parent 5274673ab6
commit 9e96772533
3 changed files with 53 additions and 0 deletions

View File

@@ -4,3 +4,4 @@ KERNEL=="video[0-9]*", SUBSYSTEM=="video4linux", KERNELS=="fe801000.csi|fe801000
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"
SUBSYSTEM=="drm", ACTION=="change", ENV{DEVLINKS}=="/dev/dri/by-path/platform-gpu-card", RUN+="/usr/bin/kvmd-udev-restart-pass %k %E{CONNECTOR}"