Page 1 of 1

Interesting RPI pushbutton on/off switch

Posted: Thursday 26 September 2024 15:17
by HvdW
In fact this post has nothing to do with Domoticz and at the same time it has.

There are occasions that I try to jeopardize my sytem by experimenting with Domoticz.
Sometimes the system 'hangs' and I can see the WiFi leds flicker and the green led flickering as well.
That means there is still life in the system, however I am not able to get Domoticz pages in the browser nor do I have SSH access.
Up till today I had to shut off the system by switching off power.
That does harm the linux system sometimes and can lead to a reinstall of everything in case you didn't backup.

The button procedure is described in this youtube video showing an undocumented feature of dtoverlay.
This means you don't have to write a python script to shut off the system.

The push button both closes the system and starts it up as well.

Re: Interesting RPI pushbutton on/off switch

Posted: Friday 27 September 2024 2:24
by solarboy
Have a look at "Monit" It usually will restart my system for me but I still think a manual restart button is a good idea, something on the GPIO pins should do it.

Re: Interesting RPI pushbutton on/off switch

Posted: Friday 27 September 2024 11:49
by FlyingDomotic
That's what I did on my RPi(s).

Details at http://scruss.com/blog/2017/10/21/combi ... pberry-pi/

FYI, I implemented this plus a PWM FAN control (adding a single transistor and a resistor) to manage fan speed depending on internal temperature. More details if needed.

Re: Interesting RPI pushbutton on/off switch

Posted: Friday 27 September 2024 16:02
by willemd
HvdW wrote: Thursday 26 September 2024 15:17 In fact this post has nothing to do with Domoticz and at the same time it has.

There are occasions that I try to jeopardize my sytem by experimenting with Domoticz.
Sometimes the system 'hangs' and I can see the WiFi leds flicker and the green led flickering as well.
That means there is still life in the system, however I am not able to get Domoticz pages in the browser nor do I have SSH access.
Up till today I had to shut off the system by switching off power.
That does harm the linux system sometimes and can lead to a reinstall of everything in case you didn't backup.

The button procedure is described in this youtube video showing an undocumented feature of dtoverlay.
This means you don't have to write a python script to shut off the system.

The push button both closes the system and starts it up as well.
Sounds like a network issue. I had similar problems often while using an outdated ziggo router (the white one) I got it replaced and it has not reoccurred once.