diff options
author | Vadim Mikhailov <mvp@users.noreply.github.com> | 2019-07-31 13:10:48 -0700 |
---|---|---|
committer | Vadim Mikhailov <mvp@users.noreply.github.com> | 2019-07-31 13:14:24 -0700 |
commit | 1961aa02e9924a54a6219d16c61a0beb0d626e46 (patch) | |
tree | 92d37b9b8882f364d0ad93000d0c5483b01ed194 | |
parent | 5db248771eb81921f0ec87a9075e7d741b8f88a2 (diff) |
Add explicit workaround for USB device not removed after port power down on Linux
-rw-r--r-- | README.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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_ |