I have a Raspberry Pi with an Amazonbasics 10-port USB hub which has a PPPS (port per port switching) function, basically, it can turn off power to any power via a tool called
When I use
uhubctl to turn off power to a device, the RPI doesn't recognize the device being turned off, the devices still appear in
ifconfig (these are USBB modems) and
dmesg stays completely silent.
It caused no troubles this far but I am sure this is not the best practice.
What would be an elegant solution to this? Do I need to unmount the USB devices before cutting the power?
I know how to do this to a USB drive but not modems.