USB was always a shitty standard to begin with, nothing should ever require unplugging and plugging to get it to work, yet I have to do that to my webcam every day.
USB was always a shitty standard to begin with, nothing should ever require unplugging and plugging to get it to work, yet I have to do that to my webcam every day.
If the USB device still doesn't respond then it means that they have some buggy firmware that requires a hard reboot to work.
Example for a USB reset in linux: https://marc.info/?l=linux-usb&m=121459435621262&w=2
That Linux USB reset does not work.
(I even replace `reboot` with a script warning of this gotcha :) )
Caveat: this is with a typical x86 motherboard. Not all SBCs have RTCs needed to use rtcwake (e.g. RPi doesn't I think?)
I've never seen a device so far that has a physical switch to make sure it's really been unplugged, but I'd imagine someone could find a use case.
I don't know if it's the board or if it's down to circuitpython, but being able to software powercycle the USB ports on my motherboard would be really useful, particularly as the RP2040 is mounted inside the PC.