This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MacArthur hat with power module powerdown issue?
#3
(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.
Reply


Messages In This Thread
RE: MacArthur hat with power module powerdown issue? - by EricGesner - 2024-02-17, 04:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)