2024-02-17, 04:12 PM
(This post was last modified: 2024-02-17, 08:44 PM by EricGesner.)
(2024-02-17, 10:42 AM)Sailoog Wrote: Attention, shutdown setting should be 'transition': 1
shutdown = {'gpio': '21', 'transition': 1, 'pull': 0}
poweroff = {'gpio': '26', 'transition': 1}
But you could also have a wiring mistake. I think your switch could be connected to "12V" instead of "12V SW" or connected to both at the same time:
Thank you for the response!
My switch is definitely connected to 12V SW. Additionally, I measure 12V across the 12V and GND terminal at he MacArthur hat when switch is off and system is off.
When I checked this morning I found GPIO 21 was set to low-high in the systems dialog. However, I believe it was high-low when I configured it yesterday. However setting/resetting it correctly today did not resolve the issue!
Current state after resetting Shutdown management and rebooting raspberry pi and then using the switch to turn off and then back on is:
See attatched image capture of settings dialog:
[GENERAL] section of the ~/.opneplotter/openplotter.conf file:
[GENERAL] section of the ~/.opneplotter/openplotter.conf file:
shutdown = {'gpio': '21', 'transition': 1, 'pull': 0}
poweroff = {'gpio': '26', 'transition': 1}
And it appears the switch is still causing a crash rather than a controlled shutdown sequence as shown here.
pi@openplotter:~ $ last -x
runlevel (to lvl 5) 6.1.21-v8+ Sat Feb 17 09:28 still running
pi tty7 :0 Sat Feb 17 09:28 gone - no logout
pi tty1 Sat Feb 17 09:28 gone - no logout
reboot system boot 6.1.21-v8+ Wed Dec 31 19:00 still running
runlevel (to lvl 5) 6.1.21-v8+ Sat Feb 17 09:28 - 09:28 (00:00)
pi tty7 :0 Sat Feb 17 09:28 - crash (-19770+14:28)
pi tty1 Sat Feb 17 09:28 - crash (-19770+14:28)
reboot system boot 6.1.21-v8+ Wed Dec 31 19:00 still running
shutdown system down 6.1.21-v8+ Sat Feb 17 09:28 - 19:00 (-19770+14:28)
runlevel (to lvl 5) 6.1.21-v8+ Fri Feb 16 21:05 - 09:28 (12:22)
So I’m still having the shutdown problem. Please suggest additional troubleshooting steps that I should try.
ALos here is the state of gpio's using
pi@openplotter:~ $ raspi-gpio get 21
GPIO 21: level=1 fsel=0 func=INPUT pull=UP
pi@openplotter:~ $ raspi-gpio get 26
GPIO 26: level=1 fsel=1 func=OUTPUT pull=DOWN
So I’m still having the shutdown problem. Please suggest additional troubleshooting steps that I should try.