fabled / bmd-tools

Tools to connect and manage Blackmagic Design video equipment with built-in H.264 encoder
MIT License
37 stars 14 forks source link

USB device accessible only with sudo privileges #22

Open ghost opened 7 years ago

ghost commented 7 years ago

If I run bmd-streamer as normal user, I get the following error: [1/11 1edb:bd43]: unable to open device: LIBUSB_ERROR_ACCESS

With sudo (or as root user) everyhting is fine. Do you have any advice how to overcome this issue? Thank you!

fabled commented 7 years ago

Depends a little bit on your system, but if using udev or similar, add a rule to grant access for that device to regular user, e.g. something like

/etc/udev/rules.d/50-bmd.rules

SUBSYSTEMS=="usb", ATTRS{idVendor}=="1edb", GROUP="video", MODE="0660"

Use proper group, or even specfic user via USER. For more information, see https://wiki.archlinux.org/index.php/udev or google for "write udev rules". Perhaps we should include an example rule that adds the devices to be owned by 'video' group.

ghost commented 7 years ago

Thank you for your fast response. I tried this yesterday, I probably made some mistake. It would be good if you could include some instructions on this.

ghost commented 7 years ago

I confirm that this works perfectly.