Controlblock restarts Pi after shutdown
-
Hello, I'm using controlblock on Raspberry Pi 4 running latest retropie image. I use canakit power supply which is one of the good power supplies. I have no controllers connected to controlblock, and I have modified configuration to state "gamepadtype" : "none". I installed controlblock driver through retropie packages menu option. I have a power led connected to led pins, which functions exactly as expected (light blinking during boot/shutdown, solid after raspbian is loaded), and a power button that shuts down the pi as I would expect.
However my problem is booting up. When I plug in the power adapter, Pi automatically boots up (not sure if expected), and when I shut down through either button, command line (shutdown -h now), or RetroPie gui, the Pi shuts down, but immediately starts up again within a second of everything powering down.
I suspected a short on my power button, but it functions fine for calling the shutdown script, if it was shorted, it wouldn't do anything when pressed. I have fans on 5v and gnd pins of controlblock, however this occurs even with the fans unplugged.
On Raspberry Pi, I have a USB nvme adapter/drive (I use the USB drive as boot drive), noctua 5v fan, and wired xbox 360 controller. I'm not sure if these contribute to the issue in any way, but it doesn't make much sense for usb ports to have anything to do with reboots.
I appreciate any recommendations to solve the issue. Thanks.
-
Hi, you can test if it is related to the button wiring, when you disconnect your power button and just use a jumper or similar to open or close the "switch" pins on the ControlBlock. Connected switch pins are handled as "power on" event by the ControlBlock. Disconnected switch pin are handled as "power off" event. Does this give your further insights?
-
Thank you @petrockblog , I found out the switch I used was a normally on momentary switch, and I expected it to be normally off. I've had those switches forever in my components to reuse bin. I never bothered to measure with multimeter based on the fact that pressing it did shut down Retropie as I expected. This one's totally on me and sorry to bug you, I appreciate you helping out.
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.