yoyojacky / powerbutton

This is a remote power controller for Raspberry Pi 3 mode B.
1 stars 0 forks source link

Powering on after shutdown not working #1

Open hawwwran opened 7 years ago

hawwwran commented 7 years ago

Hi, I just tried to set up the device and I have a problem. I turn off my Pi using button on EP-0077 (that works fine), then I poweroff my Pi using the same button (that works fine), but when I try to start it again, somewhere in the middle of the boot, the EP-0077 shuts down the Pi by powering it off in an instance. Any idea what's wrong?

On http://wiki.52pi.com/index.php/Power_Button_For_RPi_SKU:_EP-0077, three PINs are mentioned: Disk Status 21 Pin 40 Shut Down 24 Pin 18 PWR Status 26 Pin 37

But in config.txt, PIN 25 is mentioned, in gpioshutdown PIN 26 is mentioned. What about the PIN 24?

Thank you

federicohuman commented 7 years ago

Hi pal, did you manage to make it work?

hawwwran commented 7 years ago

Hi, I didn't. You did? I solved id using another device (my own) listening for the shutdown. It switch power off for 3s after shutdown, what resets the device. Because it works when restarted.

yoyojacky commented 7 years ago

hi pal, Sorry for my low response. it is tested on raspberry Pi 3 module B, but did not pass the Pi 2B, so i am looking for another way to solve this problem. Disk Status Led is mapped to IR remote power button board, if you put "dtoverlay=pi3-act-led, gpio=21" to your /boot/config.txt file, and the PWR status is the LED of Power, it was also mapped to IR remote power button board, so that you can just ignore it. the GPIO pin 24 will listen to the signal which is sending from the MCU on Ir remote board. so you do not need to change it. Pin25 mentioned before is a trigger pin for MCU, if your system is completely shutting down, MCU will get the status from Pin 25 so that it can trigger the power off script on your system, so that it can be shutting down properly. and then the MCU will cut off the power.

federicohuman commented 6 years ago

I have installed the board following the tutorial. The first time I plug it on/off works ok.

Second time it turns on and after little time it is off without pressing any button, and this keeps repeating.

yoyojacky commented 6 years ago

@federicohuman , hi, do you put the shell script on your OS's folder like wiki said and give a executable permission to it ?

yoyojacky commented 6 years ago

did you edit the /etc/rc.local file ?