From b04a8d6152a4006def1bf27ff995824ca0f58494 Mon Sep 17 00:00:00 2001 From: June Tate-Gans Date: Sun, 25 Apr 2021 12:18:07 -0500 Subject: [PATCH] udev: Match attributes correctly and trigger systemd unit This starts to make g13d more automatic. Instead of requiring manual intervention or automatic starts on system start, this will allow udevd to automatically trigger g13d when a g13 is plugged in. There's still a bug in g13d where if the device falls off the USB chain g13d won't exit, though, but this is a good start. --- etc/91-g13.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/91-g13.rules b/etc/91-g13.rules index 8a2a88b..912c15a 100644 --- a/etc/91-g13.rules +++ b/etc/91-g13.rules @@ -1 +1 @@ -SUBSYSTEM=="usb", ATTR{idVendor}=="046d", ATTR{idProduct}=="c21c", GROUP="input", MODE="0660" +SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c21c", MODE="0660", TAG+="systemd", ENV{SYSTEMD_WANTS}="g13d.service"