I am trying to get working a safe shutdown button on my RockPi 4C+ running the debian image provided by Radxa. I know the device has a shutdown button on the board but I have a special case that I designed that houses a few different addition boards and the button is not accessible. I have in the past with RaspPI been able to get this working so I am not totally green with GPIO on these SBC boards but this one is kicking my ass. Would a generous soul that has got this working please post basic steps to get this working. If you can post a few check commands along the way that would be very helpful also.
Thank you.
WayneR