Closed gits00 closed 1 year ago
If you are using Ubuntu or debian substitute the group plugdev for usbrelay.
Darryl
On Wed, 15 Mar 2023, 9:05 pm Gitesh Kulkarni, @.***> wrote:
Tried -
$ sudo cp 50-usbrelay.rules /etc/udev/rules.d $ sudo udevadm control -R The command after that - sudo usermod -a -G usbrelay didn't work. Gives error - usermod: group 'usbrelay' does not exist How to add the usbrelay group?
Output -
python3 usbrelay_test.py
/dev/hidraw4: Permission denied Unable to open any device - Use root, sudo or set the device permissions via udev Count: 1 Boards: (('', 8, 0),) Board: ('', 8, 0) operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1
usbrelay /dev/hidraw4: Permission denied Unable to open any device - Use root, sudo or set the device permissions via udev
I am using Ubuntu 18.04.5 LTS
— Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/101, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVLJGRNB7VACYUPDLODW4GPBDANCNFSM6AAAAAAV3UVCXU . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Note I've updated the README to show this.
Thanks! This worked.
Tried -
$ sudo cp 50-usbrelay.rules /etc/udev/rules.d $ sudo udevadm control -R The command after that - sudo usermod -a -G usbrelay
didn't work.
Gives error - usermod: group 'usbrelay' does not exist
How to add the usbrelay group?
Output -
python3 usbrelay_test.py
/dev/hidraw4: Permission denied Unable to open any device - Use root, sudo or set the device permissions via udev Count: 1 Boards: (('', 8, 0),) Board: ('', 8, 0) operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1 operate_relay() Unable to write or unknown relay Error: (null) Result: -1
usbrelay /dev/hidraw4: Permission denied Unable to open any device - Use root, sudo or set the device permissions via udev
I am using Ubuntu 18.04.5 LTS