ATX-Raspi no longer works with Pi4

Started by benoitpixel, December 10, 2023, 07:38:56 PM

benoitpixel

Hello,
I transferred the ATX-Raspi module from my old Pi2 to a Pi4.
On the Pi2 I chose option 1 when launching "sudo bash shutdownchecksetup.sh".
Everything had worked normally.
On the Pi4, I made the same connections and the same installation but the "Reboot" and "Shutdown" functions when I press the button have no effect.
The green LED of GPIO8 does not light up after "Reboot".
So the script does not start and does not running.
I tried with option 2 of "sudo bash shutdownchecksetup.sh" but that doesn't work either.
What could have been the modification of the 2 Pi cards on the hardware or software part (I'm with the Bullseye OS)?
Thank you in advance for your help.
Regards.
Benoit

Felix

This is just a matter of getting that script to run and work correctly. Do you see any errors during startup that would indicate the reason the script isn't running?
A permissions issue maybe?

benoitpixel

Hello,
After much research, I found the cause of ATX-Raspi not working on my Pi4.
The problem was with the "/etc/rc.local" file.
On my old Pi2, there was only the "shutdowncheck" script to launch at startup.
But on the Pi4, I had already put another script to launch an application at startup and adding the ATX-Raspi script on top of that created a conflict.
The "shutdowncheck" script does not accept other scripts in "/etc/rc.local".
Regards.
Benoit

Felix

Thanks for the follow up report. Yes, that would well explain why the script could not be running. We need the script to run otherwise it cannot monitor the signals from ATXRaspi to perform the reset/shutdown.

benoitpixel

Hello,
In fact I had to move my script to another "autostart" startup file so that the 2 scripts work correctly on the Pi4.
Are you still selling your ATX-Raspi module because it is out of stock everywhere at distributors in Europe ?
Regards.
Benoit

Felix

Yes it should  be back in stock sometime soon in Europe. In the US we are waiting for parts to make more boards, but the MCU has been on backorder for a long time so I hope in the next couple weeks we get some and can clear some backlog and have it in stock here as well.