Skip to content

Commit

Permalink
Add udev rule section
Browse files Browse the repository at this point in the history
  • Loading branch information
seanavery committed Apr 28, 2024
1 parent 83a4d82 commit 180ef17
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,15 @@ Run test script with vendor and prouct:
```
./build/tests/test_ch340 1a86 7523
```

### remove sudo requirement
Replace vendor and product id from `lsusb` query.

```
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", MODE="0666"' | \
sudo tee /etc/udev/rules.d/99-usb-serial.rules > /dev/null && \
sudo udevadm control --reload-rules && sudo udevadm trigger
```

Reconnect the device to trigger rule.

0 comments on commit 180ef17

Please sign in to comment.