Read the statement by Michael Teeuw here.
MMM-PIR-Senor shut off usb port(s)
-
Hello,
I think it would be nice, if the usb port is shut down, when the monitor turns of. I have some speakers on my MM via usb and they make some noise. When it is still in the night you can hear it.
It it possible to cut of the energy supply to one or two usb ports?Sebastian
-
From the quick googling I’ve done, it may be possible to disable/enable raspberry pi usb power with commands:
Disable
echo 0x0 > /sys/devices/platform/bcm2708_usb/buspowerEnable
echo 0x1 > /sys/devices/platform/bcm2708_usb/buspowerHowever I haven’t tested. I’d recommend writing a new module that handles this and listens for the
USER_PRESENCEevent notification that the Pir module triggers.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login