2018-07-17, 07:26 PM
The solution now implemented is a little different form your suggestions, and maybe even less work.
I have added the following line to my: /boot/config.txt
See also: https://www.raspberrypi.org/forums/viewt...p?t=201483
and: https://raspberrypi.stackexchange.com/qu...ect=1&lq=1
As someone else described, GPIO pin 3 did not work for me either (2015 model 3 RPi).
When I now press the button the RPi does a shutdown. I did not want to do it via software, because then I rely on the WiFi, and sometimes my iPhone does not find the openplotter network anymore (any my GPS then also drops out on the other RPi with the chartplotter on it). So I guess this is a more reliable and direct way to do it.
After the shutdown I can safely flip the switch on my main panel.
I have added the following line to my: /boot/config.txt
Quote:dtoverlay=gpio-shutdown,gpio_pin=21
See also: https://www.raspberrypi.org/forums/viewt...p?t=201483
and: https://raspberrypi.stackexchange.com/qu...ect=1&lq=1
As someone else described, GPIO pin 3 did not work for me either (2015 model 3 RPi).
When I now press the button the RPi does a shutdown. I did not want to do it via software, because then I rely on the WiFi, and sometimes my iPhone does not find the openplotter network anymore (any my GPS then also drops out on the other RPi with the chartplotter on it). So I guess this is a more reliable and direct way to do it.
After the shutdown I can safely flip the switch on my main panel.