Problems with PowerBlock on/off
I follow the installation scripts and I get:
pi@retropie:~ $ wget -O - https://raw.githubusercontent.com/petrockblog/PowerBl
ock/master/install.sh | sudo bash
--2020-04-26 15:37:24-- https://raw.githubusercontent.com/petrockblog/PowerBlock/master/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 188.8.131.52
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|184.108.40.206|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2059 (2.0K) [text/plain]
Saving to: ‘STDOUT’
100%[===================>] 2.01K --.-KB/s in 0s
2020-04-26 15:37:24 (9.71 MB/s) - written to stdout [2059/2059]
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.11.0-3+deb9u4).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Cloning into 'PowerBlock'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 16 (delta 1), reused 9 (delta 0), pack-reused 0
Receiving objects: 100% (16/16), 8.51 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
[....] Starting powerblock (via systemctl): powerblock.service.
Installation of PowerBlock service done.
[SUCCESS] The PowerBlock driver executable is installed
[SUCCESS] The PowerBlock service is running
You can find the configuration file at /etc/powerblockconfig.cfg.
pi@retropie:~ $ Connection to 192.168.2.4 closed by remote host.
Connection to 192.168.2.4 closed.
After this, the switch will not shut off the RPi (I'm running the most recent verson of RetroPie).
However, after I unplug and rreplug in the power supply, the RPi will start with the press of the switch, but it won't shut down when I press the switch.
Also, the LED on the switch contunually fades up and down as if the Pi were booting up.
However, when I "pi@retropie:/etc $ sudo bash powerblockswitchoff.sh" it does shut down the RPi.
I need to take a look into it. I guess you are using RetroPie 4.6, right? Which Raspberry Pi model are you using?
sudo bash powerblockswitchoff.sh
Yes. I am using 4.6.1
The switch turns on, but once Retropie and EmulationStation starts the switch won't turn it off.
Btw, I tried uninstalling and reinstalling today with the same results. I am hoping to use a latching swtich to power on and off my project, so I hope to get an answer soon. Are there logs that I can share?
@petrockblog RiPi 3 B+
I am preparing a complete RetroPie image for the Raspberry Pi 4 with the most recent RetroPie version and activated PowerBlock driver. I am currently uploading it, but that will take some more time. As soon as that is done I will post the link! In this way we can rule out that there is any software issue.
@petrockblog Thank you. Will the Rasperry Pi 4 image work with my rPi 3?
Ah, I see. No, for the RPi 3 you can download this image - RetroPie 4.6 with activated PowerBlock driver: https://www.petrockblock.com/wp-content/uploads/2020/05/retropie-4.6-rpi2_rpi3-powerblock.img_.gz
I think it might be the PowerBlock itself. I tried your image and it didn’t work. Then I remebered that I had another PowerBlock. I tried that one and it did work with your image. The older PowerBlock works with my previous image too.
Hi! Can you contact me via email, please? We can arrange a replacement then!
@petrockblog That's nice that you offer, but it was %100 my fault. I was in my classroom and accientally hooked up a 12V monitor power supply to my Retropie (long story) instead of the 5v power supply. If fried the Pi and I should have realized that the PowerBlock would have been fried too. Perhaps I did, but put it in a drawer ans forgot about it and then assumed it worked. Your product is great and the support too.
Thanks for the kudos!