How do I disable a USB Port but let the device stay powered?

The following command disables the device but also stops the device from charging:

echo '1-1.2' | sudo tee /sys/bus/usb/drivers/usb/unbind

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.