README, add udev rule

This commit is contained in:
Sebastian Mangelsen (sebman) 2021-11-10 17:20:13 +01:00
parent 322e569711
commit 2dfbf3500d
1 changed files with 16 additions and 0 deletions

View File

@ -10,6 +10,22 @@ cd pyluxafor
python3 setup.py install
```
## Ensure that USB device gets proper permissions
Create UDEV rule in /etc/udev/rules.d/60-luxafor.rules with the following content
```
# add Luxafor LED flag
SUBSYSTEMS=="usb", ATTR{idVendor}=="04d8", ATTR{idProduct}=="f372", MODE:="0666"
```
Reload udev configuration files
```shell
sudo udevadm control --reload && sudo udevadm trigger
```
Reinsert the Luxafor LED light.
## Using the CLI
Pyluxafor provides the `luxa` command to interact with the USB led in the same way as the library