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

    Power and Power Switch

    Scheduled Pinned Locked Moved ControlBlock, PowerBlock & Co.
    14 Posts 2 Posters 5.3k 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.
    • numbercrowN
      numbercrow @petrockblog
      last edited by

      @petrockblog do I need SPI and I2C enabled for the v1.6 ControlBlock? The instructions on the old site seem contradictory.

      1 Reply Last reply Reply Quote 0
      • numbercrowN
        numbercrow @numbercrow
        last edited by

        @numbercrow hooked a button up and used jstest and the pi is not seeing the change in state from the ControlBlock. I'm open to suggestions. Thanks

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

          For all ControlBlocks with revision number 1.X you need to enable the I2C interface via raspi-config.
          For all ControlBlocks with revision number 2.X you need to enable the SPI interface via raspi-config.

          Thanks for pointing me to the command-line setup instructions. I have corrected the repository URL for the rev. 1.X driver. It is git://github.com/petrockblog/ControlBlockService.git!

          numbercrowN 1 Reply Last reply Reply Quote 0
          • numbercrowN
            numbercrow @petrockblog
            last edited by

            @petrockblog Thanks, I'll give this a try with only I2C and the other controlblockservice.

            1 Reply Last reply Reply Quote 0
            • numbercrowN
              numbercrow
              last edited by

              Update: I started from scratch with a fresh install of Raspbian then a command line install of retropie from binaries. I installed the correct ControlBlockService.

              The power switch functionality still does not work (after booting the Pi shuts down with the switch in either position. So I disabled the power switch in the config.

              Running Jstest now the pi is seeing the button pressed from the ControlBlock. So at least basic functioning of reading keypresses works, I would really like to have the ability to shut down the pi using a switch (the reason I bought this) but will settle for doing so using retropie.

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

                Could you post an image of your hardware setup / wiring here? Maybe I get an idea for the cause then ...

                1 Reply Last reply Reply Quote 0
                • numbercrowN
                  numbercrow
                  last edited by numbercrow

                  Sure, here is a picture:
                  http://imgur.com/t3c0rQg

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

                    Thanks for the image, that helped.
                    If you want to use the power switch functionality it is mandatory that you attach the USB connector to the ControlBlock.

                    1 Reply Last reply Reply Quote 0
                    • numbercrowN
                      numbercrow
                      last edited by

                      Tried with the power applied to the ControlBlock and the Pi led has a single green flash upon plugging in but the switch won't turn on the pi. Tried also applying power to both the pi and the ControlBlockk and it shuts down with the switch in either position.

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

                        A single green flash upon plugging inis normal. If the switch does not turn on the Pi, then the wiring with the switch or the switch itself would be the next components to look at.

                        1 Reply Last reply Reply Quote 0
                        • numbercrowN
                          numbercrow
                          last edited by

                          Switch is fine. Checked and double checked. When I get a chance this Summer I'll examine the code and see if I can figure out what is going on with the service and hardware. Any suggestions on where to start?

                          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.