RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Controlblock immediate shutdown with switch attached

    Scheduled Pinned Locked Moved ControlBlock, PowerBlock & Co.
    controlblockpi 4shutdownservice
    4 Posts 2 Posters 484 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      moorezo
      last edited by

      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;

      1. controlblock driver not installed
      2. install controlblock driver via retropie setup
      3. enable driver.
      4. shutdown pi using command
      5. turn on with the powerswitch - lights pulse as they should and pi starts fine, lights go solid once started. Everything seems great!
      6. shutdown with power switch, fast pulse from lights, all ok.
      7. 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!

      1 Reply Last reply Reply Quote 0
      • M
        moorezo
        last edited by moorezo

        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.

        1 Reply Last reply Reply Quote 0
        • M
          moorezo
          last edited by

          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 with

          sudo update-rc.d -f fancontrol.sh remove

          Many thanks to Widge on the sinden discord for diagnosing this!

          1 Reply Last reply Reply Quote 1
          • P
            petrockblog Global Moderator
            last edited by

            Glad to hear that!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            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.