Hi
I sucessfully to created a service for activate the Reset Button with this documentation : https://wiki.52pi.com/index.php?title=C-0063#How_to_Program_the_Reset_Button_on_Retro_Flag_Dream_Case
I notice some error, because I installed :
sudo apt install python3-rpi-lgpio
And not :
sudo apt-get install python3-rpi.gpio
The script doesn't work.
I replaced sp.getoutput("sudo init 0") with sp.getoutput("sudo reboot") in the reset_button.py file.
And I removed the user / group from the file reset_button.service
Before activate the service I used :
sudo chmod +x /path/to/your/reset_button.py
For finish :
sudo systemctl daemon-reload
sudo systemctl enable reset_button.service
sudo systemctl start reset_button.service
sudo systemctl status reset_button.service
And the reset button will work !