2025-05-13, 03:45 AM
Running a MacArthur Hat, latest version, Openplotter ...
I have the power down enabled through OpenPlotter settings, GPIO 21 and 26, just as they should be, its made the correct entries in firmware/config.txt
I have a second pi configured the same way for guages/kiosk
When I remove the switched 12V the kiosk takes 3 or 4 seconds to shut down, as it should .. the plotter shuts down in around 1 second ...
Every time a boot, OpenCPN complains it was not shutdown correctly. This frequently cause issues, as OpenCPN like to run with its config file open for writes, which leads to corruption.
I added added a 10 second delay to shutdown.py after the pkil and before the halt ... and it still shuts down in 1 second or so ... I'm now stumped. The only way it can know it is supposed to be shutting down is presumably if shutdown.py spots the pin going low and begins the shutdown process .. but that shoud hit the sleep(10) .. which it isnt.
Clues? Ideas? This is doing my head in ... to save anyone asking if I have the pins configured correctly:
I have the power down enabled through OpenPlotter settings, GPIO 21 and 26, just as they should be, its made the correct entries in firmware/config.txt
I have a second pi configured the same way for guages/kiosk
When I remove the switched 12V the kiosk takes 3 or 4 seconds to shut down, as it should .. the plotter shuts down in around 1 second ...
Every time a boot, OpenCPN complains it was not shutdown correctly. This frequently cause issues, as OpenCPN like to run with its config file open for writes, which leads to corruption.
I added added a 10 second delay to shutdown.py after the pkil and before the halt ... and it still shuts down in 1 second or so ... I'm now stumped. The only way it can know it is supposed to be shutting down is presumably if shutdown.py spots the pin going low and begins the shutdown process .. but that shoud hit the sleep(10) .. which it isnt.
Clues? Ideas? This is doing my head in ... to save anyone asking if I have the pins configured correctly:

