Power and Power Switch
-
@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
-
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!
-
@petrockblog Thanks, I'll give this a try with only I2C and the other controlblockservice.
-
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.
-
Could you post an image of your hardware setup / wiring here? Maybe I get an idea for the cause then ...
-
Sure, here is a picture:
http://imgur.com/t3c0rQg -
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. -
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.
-
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.
-
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?
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.