Posts by DeWildeP

    Hello, i have an Element14 Pi Desktop case with a powerbutton on it.
    I recently updated to LibreElec 12.0.1 and now my shutdownscript does not work anymore.
    After some search i found that GPIO is not supported anymore and i need to switch to gpiozero.

    After a couple of hours fiddling around, trying to alter the script and even use chatGPT for coding help i gave up...


    Anyone wants to help me in creating a working script?

    My shutdown.py script used to look like this:

    with the help of chatGPT i got this output to convert it to gpiozero:

    But that gives errors in the debug log like:


    Anyone has some ideas? I hope i'm not the only one using a hardware case for Raspberry Pi with a power button :)