Skip to content

Commit 03ab8a6

Browse files
committed
Add instructions for udev, to set USB permissions on Linux
Refs #110
1 parent c1e73fe commit 03ab8a6

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

contrib/60-libnxt.rules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Allow access to the NXT brick.
2+
SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0694", ATTR{idProduct}=="0002", \
3+
MODE="0660", GROUP="plugdev", TAG+="uaccess"

docs/installation.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ PyUSB requires libusb or OpenUSB running on your system.
3434
.. _libusb website: http://www.libusb.info
3535

3636

37+
USB access permissions for Linux
38+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39+
40+
You need to allow connection to the NXT brick for your user. If you install
41+
any package interacting with the NXT brick from your distribution, this is
42+
usually already done for you (for example, nbc, or libnxt).
43+
44+
In other cases, copy `contrib/60-libnxt.rules` from the NXT-Python source
45+
distribution to your `/etc/udev/rules.d` directory, then make sure that udev
46+
see the change: restart your computer or use the following commands::
47+
48+
sudo udevadm control --reload
49+
sudo udevadm trigger
50+
51+
3752
Bluetooth
3853
---------
3954

0 commit comments

Comments
 (0)