Reboot Button RPi4/Libreelec 10.0.1

  • Hello and merry christmas to you all...

    I have for a couple of days searching the net to make a "Reboot-Button" to my Pi. But there is VERY different ways to make it work. I am going to connect the button over pin GPIO3 & Ground, but there is discussions if that is right or wrong. So i wonder, is that ok to do that? And do i need to change in the "Config.txt" or in eeprom as they suggest?

    Best regards,Thore from Sweden

  • Pino GPIO3 (pin 5) --> GND (pin 6)

    add to /boot/config.txt

    dtoverlay=gpio-shutdown


    Grounding GPIO3 starts the clean shutdown process.

    After shutdown, grounding again power on the RPI.

    But .... Librelec will display a confirmation dialog for shutdown.

    To bypass that:

    edit:

    /storage/.kodi/userdata/keymaps/gen.xml

    add:

    <keymap>

    <global>

    <keyboard>

    <key id="61662">Shutdown</key>

    </keyboard>

    </global>


    I believe all this is already in the forum.