Controlblock immediate shutdown with switch attached
-
Hi there,
Wondering if someone could help. I've got the controlblock all wired up and the controls are working. I've got a powerswitch that was working fine but after re-imaging I'm having some problems with it doing an immediate shutdown, but not the first time after installing the driver.
Steps to reproduce;
- controlblock driver not installed
- install controlblock driver via retropie setup
- enable driver.
- shutdown pi using command
- turn on with the powerswitch - lights pulse as they should and pi starts fine, lights go solid once started. Everything seems great!
- shutdown with power switch, fast pulse from lights, all ok.
- Next time I try to start the pi is shutdown as soon as it's started up and I've got no idea why it would work once and then not the second time.
I've pasted my log here, I think it's calling the shutdown but not sure why it would....
2023-01-23 17:25:53.346 DEBUG [450] [Logger::logMessage@18] Starting ControlBlock driver. 2023-01-23 17:25:53.358 DEBUG [450] [Logger::logMessage@18] Created configuration. isEnabled: true, address: 0, pad type: arcade, power switch: true, only one gamepad: false 2023-01-23 17:25:53.358 DEBUG [450] [Logger::logMessage@18] Created configuration. isEnabled: false, address: 2, pad type: arcade, power switch: false, only one gamepad: false 2023-01-23 17:25:53.413 DEBUG [450] [Logger::logMessage@18] Enabled power signal. 2023-01-23 17:25:53.413 DEBUG [450] [Logger::logMessage@18] Created PowerSwitch. doShutdown: 1 2023-01-23 17:25:53.413 DEBUG [450] [Logger::logMessage@18] Starting gamepad polling ... 2023-01-23 17:25:53.529 DEBUG [539] [Logger::logMessage@18] Starting ControlBlock driver. 2023-01-23 17:25:53.535 DEBUG [539] [Logger::logMessage@18] Created configuration. isEnabled: true, address: 0, pad type: arcade, power switch: true, only one gamepad: false 2023-01-23 17:25:53.535 DEBUG [539] [Logger::logMessage@18] Created configuration. isEnabled: false, address: 2, pad type: arcade, power switch: false, only one gamepad: false
Anyone got any ideas??
Many thanks!
-
To add a bit more info...
I'm running the fresh image of barebones 9.1.I've just tried formatting and reimagining again to check my install hasn't got messed up somehow. Same result with now totally fresh install.
Also tested without the switch by just shorting the switch pins, same result.
Game controls are working fine though - on that one first boot after I've installed the driver or if I start with power into the pi instead of the controlblock. Normally I've got power plugged into the controlblock.
Thanks for anyone reading.
-
Update...
Turns out the barebones 9.1 image has fan control installed as default which was using one of the pins. Stopping it fixed my problem withsudo update-rc.d -f fancontrol.sh remove
Many thanks to Widge on the sinden discord for diagnosing this!
-
Glad to hear that!
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.