Turn off USBs or GPIO when RetroPie goes to sleep?
-
I have a basic Retropie Build, with EasyGet USB controllers and lighted buttons. All good, but the LEDs stay on even when the screen goes to sleep.
Any ideas how to turn them off whilst it is asleep? Perhaps turning off a USB port.
I have LEDs powered on a separate USB cable. Should be possible to turn them off via a transistor off a GPIO pin.Is there a RetroPie configuration I could use to control a GPIO pin for this? Or is there a Raspberry Pi Python script one could use?
Thanks!
-
@sturbek I dunno about turning off a USB port, but if you are using a powered hub, you could trigger that on and off via GPIO as you suggest. Nothing is built into RetroPie to do this--you're gonna have to build something from scratch.
A recent MAKE article was published with details about how to go about it with a relay:
https://makezine.com/2018/03/19/control-electronic-relays/
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.