summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Mikhailov <mvp@users.noreply.github.com>2019-07-31 13:10:48 -0700
committerVadim Mikhailov <mvp@users.noreply.github.com>2019-07-31 13:14:24 -0700
commit1961aa02e9924a54a6219d16c61a0beb0d626e46 (patch)
tree92d37b9b8882f364d0ad93000d0c5483b01ed194
parent5db248771eb81921f0ec87a9075e7d741b8f88a2 (diff)
Add explicit workaround for USB device not removed after port power down on Linux
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index d22fcf7..ea01896 100644
--- a/README.md
+++ b/README.md
@@ -218,8 +218,14 @@ This is Linux kernel issue. It may be eventually fixed in kernel, see more discu
Basically what happens here is that kernel USB driver knows about power off,
but doesn't send notification about it to udev.
-You can find workaround for this issue in [this article](https://goo.gl/qfrmGK).
+You can use this workaround for this issue:
+ sudo uhubctl -a off -l ${location} -p ${port}
+ sudo udevadm trigger --action=remove /sys/bus/usb/devices/${location}.${port}/
+
+Device file will be removed by udev, but USB device will be still visible in `lsusb`.
+Note that path `/sys/bus/usb/devices/${location}.${port}` will only exist if device was detected on that port.
+When you turn power back on, device should re-enumerate properly (no need to call `udevadm` again).
#### _Power comes back on after few seconds on Linux_