Hello!
First of all, my goal is to make a button connected to GPIO 3 reboot the system.
To give you the overall picture, I have about 4 Pi2s in a network rack running libreelec 11.0.6 that plays my entire video library constantly. Randomly it will stop playing or get hung up at a black screen. I wanted to add a button to the panel for each pi so that it will just reboot the system instead of needing to get inside the rack to power them off and back on.
I've followed a few random threads I've found here about adding dtoverlay=gpio-shutdown or dtoverlay=gpio-reboot with and without gpio_pin=3 to the config.txt but, that still only powers it down.
I've tried adding a keyboard.xml and gen.xml to /storage/.kodi/userdata/keymaps, replacing shutdown with reboot and still getting a shutdown no matter what, and sometimes not even that.
keyboard.xml
gen.xml
I've double checked the physical layer too. Multiple different buttons, wires, ect. No luck.
Its weird because one out of the 4 pi's it works, and the only difference that I can see is just that I haven't updated it to 11.0.6, its currently on 11.0.3.
The holy grail would be something where a press would reboot, a hold would shut it down. I've seen threads with scripts and whatnot in them but they were always along with some LED indicator which I don't need.
I am a novice when it comes to all of this stuff, and by pure luck I've managed to get this far into creating essentially my own TV station. I don't know any code so please be easy on me if I ask any dumb questions.
Any ideas?