04-21-2019, 01:47 PM
For those who want to use the RPI with a HAT and not use the Ethernet or USB you can kill the power to both USB/Ethernet with this command.
Disable
sudo sh -c 'echo 0x0 > /sys/devices/platform/soc/3f980000.usb/buspower'
Enable
sudo sh -c 'echo 0x1 > /sys/devices/platform/soc/3f980000.usb/buspower'
Put it in a script and have it auto-magically kill the power with each boot.
#!/bin/bash
sleep 25 #<----adjust the sleep time to your preference
[command here]
Disable
sudo sh -c 'echo 0x0 > /sys/devices/platform/soc/3f980000.usb/buspower'
Enable
sudo sh -c 'echo 0x1 > /sys/devices/platform/soc/3f980000.usb/buspower'
Put it in a script and have it auto-magically kill the power with each boot.
#!/bin/bash
sleep 25 #<----adjust the sleep time to your preference
[command here]