summaryrefslogtreecommitdiff
path: root/configs/os
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-03-11 17:11:55 +0200
committerMaxim Devaev <[email protected]>2024-03-11 17:11:57 +0200
commit9e96772533a92ecd2a0f82825215acd5c5f50394 (patch)
treee63cb0a60586357aa6d62eb8e415efb508cf8e19 /configs/os
parent5274673ab6d61968b4927abaa52a9ed48428938c (diff)
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
Diffstat (limited to 'configs/os')
-rw-r--r--configs/os/udev/v4plus-hdmi-rpi4.rules1
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/os/udev/v4plus-hdmi-rpi4.rules b/configs/os/udev/v4plus-hdmi-rpi4.rules
index 88ba66b1..87cfc700 100644
--- a/configs/os/udev/v4plus-hdmi-rpi4.rules
+++ b/configs/os/udev/v4plus-hdmi-rpi4.rules
@@ -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}"