Raspberry Pi: Disable USB Power Passthrough

Need a way to disable USB power to a Raspberry Pi? In my case, I needed USB power disabled on a Raspberry Pi 3 B+ running OctoPrint and directly connected to a my CR-10S. The USB power was keeping the 3D printer control board powered on even through the main 12v board power was turned off. This causes unnecessary power draw and was a safety concern having it constantly powered.

From some quick research, these commands should only work on Raspberry Pi’s with USB 2. The Raspberry Pi 4 uses USB 3 and therefore requires a different set of commands.

Install uhubctl

sudo apt-get install uhubctl

Turn all USB power off

sudo uhubctl -p 2 -a 0

Turn all USB power on

sudo uhubctl -p 1 -a 0

Sources

Leave a Comment