From: Dylan Lloyd Date: Mon, 12 Mar 2012 23:28:23 +0000 (-0400) Subject: Added udev rule for device access X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=86d37eb6d13abcaa358e51556876afa0d44fbede;p=powermate.git Added udev rule for device access I originally wanted to match only the PowerMate device. Unfortunately, due to the way the the PowerMate library searches for the device, any /dev/input/event* without proper permissions generates an fatal error. Therefore, the following does NOT work: ENV{ID_MODEL}=="Griffin_PowerMate", MODE="660", GROUP="input" This forces us to use the vaguer committed rule to match all /dev/input/event* to group input and perm 660. :-/ --- diff --git a/99-powermate.rules b/99-powermate.rules new file mode 100644 index 0000000..dbf3665 --- /dev/null +++ b/99-powermate.rules @@ -0,0 +1 @@ +KERNEL=="event*", MODE="660", GROUP="input"