@@ -225,23 +225,23 @@ To fix USB permissions, first run `sudo uhubctl` and note all `vid:pid` for hubs
225
225
Then, add udev rules like below to file ` /etc/udev/rules.d/52-usb.rules `
226
226
(replace ` 2001 ` with your hub vendor id, or completely remove ` ATTR{idVendor} ` filter to allow any USB hub access):
227
227
228
- SUBSYSTEM=="usb", DRIVER=="hub ", MODE="0666", ATTR{idVendor}=="2001"
228
+ SUBSYSTEM=="usb", DRIVER=="usb ", MODE="0666", ATTR{idVendor}=="2001"
229
229
# Linux 6.0 or later (its ok to have this block present for older Linux kernels):
230
- SUBSYSTEM=="usb", DRIVER=="hub ", \
230
+ SUBSYSTEM=="usb", DRIVER=="usb ", \
231
231
RUN="/bin/sh -c \"chmod -f 666 $sys$devpath/*-port*/disable || true\""
232
232
233
233
Note that for USB3 hubs, some hubs use different vendor ID for USB2 vs USB3 components of the same chip,
234
234
and both need permissions to make uhubctl work properly.
235
235
E.g. for Raspberry Pi 4B, you need to add these 2 lines (or remove idVendor filter):
236
236
237
- SUBSYSTEM=="usb", DRIVER=="hub ", MODE="0666", ATTR{idVendor}=="2109"
238
- SUBSYSTEM=="usb", DRIVER=="hub ", MODE="0666", ATTR{idVendor}=="1d6b"
237
+ SUBSYSTEM=="usb", DRIVER=="usb ", MODE="0666", ATTR{idVendor}=="2109"
238
+ SUBSYSTEM=="usb", DRIVER=="usb ", MODE="0666", ATTR{idVendor}=="1d6b"
239
239
240
240
If you don't like wide open mode ` 0666 ` , you can restrict access by group like this:
241
241
242
- SUBSYSTEM=="usb", DRIVER=="hub ", MODE="0664", GROUP="dialout"
242
+ SUBSYSTEM=="usb", DRIVER=="usb ", MODE="0664", GROUP="dialout"
243
243
# Linux 6.0 or later (its ok to have this block present for older Linux kernels):
244
- SUBSYSTEM=="usb", DRIVER=="hub ", \
244
+ SUBSYSTEM=="usb", DRIVER=="usb ", \
245
245
RUN+="/bin/sh -c \"chown -f root:dialout $sys$devpath/*-port*/disable || true\"" \
246
246
RUN+="/bin/sh -c \"chmod -f 660 $sys$devpath/*-port*/disable || true\""
247
247
0 commit comments