udev rules

This commit is contained in:
Peter Wu 2015-12-25 00:05:37 +01:00
parent 0871e23c06
commit eed04da13f
2 changed files with 7 additions and 0 deletions

View file

@ -12,6 +12,10 @@ LGLAF.py depends on:
sha256sum: 86e893b7f5da7f7d2656d9ce2563f082271983bb63903d0ed5cb279c560db459)
- (Linux) PyUSB: https://walac.github.io/pyusb/
On Linux, you must also install
[rules.d/42-usb-lglaf.rules](rules.d/42-usb-lglaf.rules) to `/etc/udev/rules.d/`
in order to give the regular user access to the USB device.
Tested with:
- LG G3 (D855) on 64-bit Arch Linux (Python 3.5.1, pyusb 1.0.0b2, libusb 1.0.20)

View file

@ -0,0 +1,3 @@
# /etc/udev/rules.d/42-usb-lglaf.rules
# LG G3 in download mode
SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", ATTRS{idProduct}=="633e", TAG+="uaccess"