From 98cb650a83760c80dc7087cd6a919d577a6e4e88 Mon Sep 17 00:00:00 2001 From: SET Date: Mon, 17 Oct 2022 21:29:06 +0200 Subject: [PATCH] Update README. --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index a4496a2..fe8d5c9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +##POD7 + POD7 is a small utility that listens to HIDRAW USB foot pedals and forwards the events as session DBus signals. It can also list available HIDRAW USB devices. Using an udev rule to symlink the device is however recommended. @@ -7,3 +9,23 @@ The forwarded signal can then be remotely caught and reacted upon. The forwarded pedal events can be identified using the -v switch. Use at your own risks. Work done as a hobbyist, targeting GNU/Linux OS. + +####Device access setup + +Udev's facilities are used here. A group with read/write access to the +device must be created, with users added to that group. + +$ groupadd transcript + +$ usermod -a -G transcript user + +Create /etc/udev/rules.d/99-mypedal.rules with (one single line) : + +- *KERNEL=="hidraw[0-9]*", ATTRS{idVendor}=="abcd", ATTRS{idProduct}=="efgh", +MODE="0660", GROUP="transcript"* + +Get 'abcd' and 'efgh' with 'lsusb' command or 'dmesg |tail' commands +after plugging the foot pedal. + +Remove the pedal device and plug it again. On next login, users in group +'transcript' should have read access to the device. \ No newline at end of file