diff options
| author | Pete Johanson <peter@peterjohanson.com> | 2020-06-07 04:06:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-07 09:06:55 +0100 |
| commit | b9a38487f390b593eafead0228beedfda375eb32 (patch) | |
| tree | e27b349bbd7516601dda01004ecb04c7866a6302 /docs/faq_build.md | |
| parent | 9f400794c021555e56f09542cf7e2afea5a68e8c (diff) | |
| download | qmk_firmware-b9a38487f390b593eafead0228beedfda375eb32.tar.gz qmk_firmware-b9a38487f390b593eafead0228beedfda375eb32.zip | |
[Docs] Update udev rules to use TAG+="uaccess". (#8750)
Diffstat (limited to 'docs/faq_build.md')
| -rw-r--r-- | docs/faq_build.md | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/docs/faq_build.md b/docs/faq_build.md index 2f1a4dd7f..7cfb0040d 100644 --- a/docs/faq_build.md +++ b/docs/faq_build.md | |||
| @@ -28,33 +28,30 @@ sudo udevadm trigger | |||
| 28 | **/etc/udev/rules.d/50-atmel-dfu.rules:** | 28 | **/etc/udev/rules.d/50-atmel-dfu.rules:** |
| 29 | ``` | 29 | ``` |
| 30 | # Atmel ATMega32U4 | 30 | # Atmel ATMega32U4 |
| 31 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff4", MODE:="0666" | 31 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff4", TAG+="uaccess", RUN{builtin}+="uaccess" |
| 32 | # Atmel USBKEY AT90USB1287 | 32 | # Atmel USBKEY AT90USB1287 |
| 33 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffb", MODE:="0666" | 33 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffb", TAG+="uaccess", RUN{builtin}+="uaccess" |
| 34 | # Atmel ATMega32U2 | 34 | # Atmel ATMega32U2 |
| 35 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff0", MODE:="0666" | 35 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff0", TAG+="uaccess", RUN{builtin}+="uaccess" |
| 36 | ``` | 36 | ``` |
| 37 | 37 | ||
| 38 | **/etc/udev/rules.d/52-tmk-keyboard.rules:** | ||
| 39 | ``` | ||
| 40 | # tmk keyboard products https://github.com/tmk/tmk_keyboard | ||
| 41 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="feed", MODE:="0666" | ||
| 42 | ``` | ||
| 43 | **/etc/udev/rules.d/54-input-club-keyboard.rules:** | 38 | **/etc/udev/rules.d/54-input-club-keyboard.rules:** |
| 44 | 39 | ||
| 45 | ``` | 40 | ``` |
| 46 | # Input Club keyboard bootloader | 41 | # Input Club keyboard bootloader |
| 47 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c11", MODE:="0666" | 42 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c11", ATTRS{idProduct}=="b007", TAG+="uaccess", RUN{builtin}+="uaccess" |
| 48 | ``` | 43 | ``` |
| 49 | 44 | ||
| 50 | **/etc/udev/rules.d/55-caterina.rules:** | 45 | **/etc/udev/rules.d/55-caterina.rules:** |
| 51 | ``` | 46 | ``` |
| 52 | # ModemManager should ignore the following devices | 47 | # ModemManager should ignore the following devices |
| 53 | ATTRS{idVendor}=="2a03", ENV{ID_MM_DEVICE_IGNORE}="1" | 48 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="2a03", ATTRS{idProduct}=="0036", TAG+="uaccess", RUN{builtin}+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" |
| 54 | ATTRS{idVendor}=="2341", ENV{ID_MM_DEVICE_IGNORE}="1" | 49 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0036", TAG+="uaccess", RUN{builtin}+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" |
| 50 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9205", TAG+="uaccess", RUN{builtin}+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
| 51 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9203", TAG+="uaccess", RUN{builtin}+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
| 55 | ``` | 52 | ``` |
| 56 | 53 | ||
| 57 | **Note:** ModemManager filtering only works when not in strict mode, the following commands can update that settings: | 54 | **Note:** With older (before 1.12) ModemManager, filtering only works when not in strict mode, the following commands can update that settings: |
| 58 | ```console | 55 | ```console |
| 59 | sudo sed -i 's/--filter-policy=strict/--filter-policy=default/' /lib/systemd/system/ModemManager.service | 56 | sudo sed -i 's/--filter-policy=strict/--filter-policy=default/' /lib/systemd/system/ModemManager.service |
| 60 | sudo systemctl daemon-reload | 57 | sudo systemctl daemon-reload |
| @@ -64,15 +61,15 @@ sudo systemctl restart ModemManager | |||
| 64 | **/etc/udev/rules.d/56-dfu-util.rules:** | 61 | **/etc/udev/rules.d/56-dfu-util.rules:** |
| 65 | ``` | 62 | ``` |
| 66 | # stm32duino | 63 | # stm32duino |
| 67 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="1eaf", ATTRS{idProduct}=="0003", MODE:="0666" | 64 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="1eaf", ATTRS{idProduct}=="0003", TAG+="uaccess", RUN{builtin}+="uaccess" |
| 68 | # Generic stm32 | 65 | # Generic stm32 |
| 69 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666" | 66 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", TAG+="uaccess", RUN{builtin}+="uaccess" |
| 70 | ``` | 67 | ``` |
| 71 | 68 | ||
| 72 | **/etc/udev/rules.d/57-bootloadhid.rules:** | 69 | **/etc/udev/rules.d/57-bootloadhid.rules:** |
| 73 | ``` | 70 | ``` |
| 74 | # bootloadHID | 71 | # bootloadHID |
| 75 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", MODE:="0666" | 72 | SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", TAG+="uaccess", RUN{builtin}+="uaccess" |
| 76 | ``` | 73 | ``` |
| 77 | 74 | ||
| 78 | ### Serial device is not detected in bootloader mode on Linux | 75 | ### Serial device is not detected in bootloader mode on Linux |
