Power button after remote shutdown

All about WTware on Raspberry. WTware works with Raspberry Pi 4, Raspberry Pi 3B+, Pi 3 and Pi 2 devices
http://www.winterminal.com
Post Reply
Webjom
Posts: 24
Joined: Tue Sep 10, 2019 10:19 am

Power button after remote shutdown

Post by Webjom »

After remote shutdown, raspberry pi 4 remains powered, can it be turned on via the button ..... where do I write "dtoverlay = gpio-shutdown" to start pin 5 and 6 to work?
akatik
SUPPORT
SUPPORT
Posts: 630
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

Re: Power button after remote shutdown

Post by akatik »

We have never tried it. And there is no "gpio-shutdown" overlay in wtware distributive.

Test it with Raspbian first. After you find what and where to write, tell me and we'll try to add overlay file to wtware.
Webjom
Posts: 24
Joined: Tue Sep 10, 2019 10:19 am

Re: Power button after remote shutdown

Post by Webjom »

here is the exact tutorial that is written in python. Too bad wtware python does not take. But if you can rewrite the example link with the procedure. https://howchoo.com/g/mwnlytk3zmm/how-t ... spberry-pi
akatik
SUPPORT
SUPPORT
Posts: 630
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

Re: Power button after remote shutdown

Post by akatik »

I connect button between pin05 (GPIO03) and pin06 (ground) on Pi3B+. Then I write into wtware config:

Code: Select all

infobox=always, shutdown
To get shutdown button into wtware popup window in the right bottom corner of screen.

Terminal boots up. I press shutdown button in popup window. Terminal shut down, turn off screen, but red led on Raspberry is on.

I press button between pin05 and pin06 - and Raspberry is turned on!

"dtoverlay = gpio-shutdown" is for turning Raspberry off with this button, it needs OS support. Turning raspberry on is in hardware, and it works on Pi3B+.

For Raspberry Pi 4, update the bootloader, "Recovery" chapter here: https://www.raspberrypi.org/downloads/

It writes the latest bootloader with power on enabled (WAKE_ON_GPIO=1). Afer you update bootloader, Pi 4 will power up with button on pin05 and pin06 in the same way as previous Pi models.
aj777
Posts: 6
Joined: Tue Oct 13, 2020 12:37 pm

Re: Power button after remote shutdown

Post by aj777 »

Hi
When you press power off button, Pi switches "off" but the red light stays on.
Is there a way to get it to shut down completely yet from WTWare?
This will allow to power back on with button.
Now it "shuts down", but it does not switch back on again with button.
It is a big problem as I cannot expect the end users to pull on the cables every time they want to restart.
Any help will really be appreciated
akatik
SUPPORT
SUPPORT
Posts: 630
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

Re: Power button after remote shutdown

Post by akatik »

aj777 wrote: Tue Oct 13, 2020 2:02 pm Now it "shuts down", but it does not switch back on again with button.
Which button are you talking about?

If it's PI4 did you upgrade bootloader EEPROM?
aj777
Posts: 6
Joined: Tue Oct 13, 2020 12:37 pm

Re: Power button after remote shutdown

Post by aj777 »

I have upgraded the EEPROM
I use a Argon1 case with button
It switched on when you first plug in the Pi
But after shutdown from WTWare the red light stays on and it wont switch on
You have to hold in power button again for 4sec for the red light to go out, then you can switch on with switch again
If you shut down from WTWare it should shut down completely so red power led is also out
Then power button will be able to switch Pi on again
akatik
SUPPORT
SUPPORT
Posts: 630
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

Re: Power button after remote shutdown

Post by akatik »

aj777 wrote: Wed Oct 14, 2020 8:07 am I use a Argon1 case with button
Argon made their own controller to switch power. We can not control them. Above I wrote about button between pin05 (GPIO03) and pin06 (ground) that should turn on halted Raspberry. Led light is turned on when Pi 4 is halted.
aj777
Posts: 6
Joined: Tue Oct 13, 2020 12:37 pm

Re: Power button after remote shutdown

Post by aj777 »

akatik wrote: Wed Oct 14, 2020 2:06 pm
aj777 wrote: Wed Oct 14, 2020 8:07 am I use a Argon1 case with button
Argon made their own controller to switch power. We can not control them. Above I wrote about button between pin05 (GPIO03) and pin06 (ground) that should turn on halted Raspberry. Led light is turned on when Pi 4 is halted.
It does not make a difference of what button is used to switch on. I can switch on with Argon no problem and also used pin 5 and 6 with other button.
The issue is that WTWare does not shut down completely when you ask it to.
If you say Shut Down in WTWare program, the Pi stays on with Red light.
If WTWare shuts down properly, any button will work to switch on again.
aka
SUPPORT
SUPPORT
Posts: 939
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: Power button after remote shutdown

Post by aka »

aj777 wrote: Thu Oct 15, 2020 10:40 am The issue is that WTWare does not shut down completely when you ask it to.
WTware or Raspberry hardware? Does Raspbian on same hardware shut down completely?
aj777
Posts: 6
Joined: Tue Oct 13, 2020 12:37 pm

Re: Power button after remote shutdown

Post by aj777 »

I think the extra board on the Argon is what is cutting and controlling the power. So the WTWare is not the problem. it is the Argon1 that cannot seem to switch on the Raspberry Pi from the "Red Light" state. Seems the WTWare is working as it should.
Thank you for helping. The problem is not solved, but at least I understand more where the issue is.
I will contact Argon40 to find out if they can make the Pi wake up from the red light state.
Webjom
Posts: 24
Joined: Tue Sep 10, 2019 10:19 am

Re: Power button after remote shutdown

Post by Webjom »

Is it possible to incorporate gpio control? i need to get this procedure there

https://thepihut.com/blogs/raspberry-pi ... -gpio-pins
Post Reply