Crates.io | sispm |
lib.rs | sispm |
version | 1.0.0 |
source | src |
created_at | 2022-10-18 15:46:04.255067 |
updated_at | 2022-10-18 15:46:04.255067 |
description | control Gembird SIS-PM USB outlet devices |
homepage | |
repository | https://github.com/User65k/sispm |
max_upload_size | |
id | 691029 |
size | 9,110 |
Allows to control Gembird SIS-PM USB outlet devices via USB.
Rust port of python-sispm. See also sispmctl (C deamon)
Per default, only root is allowed to use devices directly, therefore the SiS-PM also only works as root.
To allow group sispmctl access create file /lib/udev/rules.d/60-sispmctl.rules
with the following content
SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd10", GROUP="sispmctl", MODE="660"
SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd11", GROUP="sispmctl", MODE="660"
SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd12", GROUP="sispmctl", MODE="660"
SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd13", GROUP="sispmctl", MODE="660"
SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd15", GROUP="sispmctl", MODE="660"
Then reload the udev rules with
udevadm control --reload-rules