Hi, I have a PiPAD case for the Pi and 7" screen which has a power button on the back.
It comes with these instructions for making the button work on raspbian:
Can I get some help getting it to work in my balena project?
I am running a version of x11-window-manager updated to balenalib/raspberrypi3-64:bullseye.
Thanks.