Closed Jaharmi closed 3 years ago
I'm trouble shooting on my RPi 3b+ with a Luxafor flag. I think it might be a small bug in the generated udev rules file.
Yup. It's a bug in how the udev rules are generated. A USB vendor identifier is a 16-bit quantity, which is generally expressed as a four digit hexadecimal string. The Luxafor vendor identifier is 0x04d8 and when I generate the udev rules, the left-most zero is being truncated from the output.
The udev subsystem must perform a string-wise comparison when it is deciding when to apply a rule, so "04d8" != "4d8" while an integer comparison would succeed.
I'll push a new release in a couple of minutes with the fix included, but you can just edit /etc/udev/rules.d/99-busylight.rules
to add a zero in front of the "4d8" entries in the file.
Incidentally, when you update the rules it is not necessary to reboot the machine.
$ sudo vi /etc/udev/rules.d/99-busylight.rules
$ sudo udevadm control -R
$ # unplug/plug USB device
$ busylight list
...
This works, if you reboot — and probably without the reboot if you follow all of the instructions and actually unplug/plug the USB device. :)
Thanks!
Thanks for letting me know!
I cannot get a Luxafor Flag to be recognized or controlled — at least not as a non-root user.
Steps I took:
busylight
.apt-get
:busylight
withpipenv
.I'm confused about this outcome. The vendor_id for the Luxafor Flag is in the udev-rules. It seems I should be able to identify and control it with a non-root user in the same manner as the BlyncLight. I can only identify and control the Flag device as root.