Posts by satfan

    It works ...! I `m so stupid... I shouldn't be counting pins at 2am at night ... Since I connected a fan to pin 4 and pin 6, I didn't see that I didn't connect pin1 and pin2. So I tried to make the connection between pins 7-8 instead of 5-6

    Thx for your help !

    By the way ... is it possible to reconnect the fan to a other Pin which is shut down if I´m in the shutdown mode ? Maybe I have to add something in that script.

    I made the following things ...

    The script should work ... but I don´t get any reaction if I shorten Pin5 Pin6.

    I get a strange answer if I start the script manually ..

    /storage/hyperion/bin/listen-for-shutdown.py:10: RuntimeWarning:

    A physical pull up resistor is fitted on this channel!

    GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_UP)

    ###################

    autostart.sh :

    Code
    /usr/bin/sh /storage/hyperion/bin/listen-for-shutdown.sh start

    listen-for-shutdown.sh :

    listen-for-shutdown.py :

    That doesnt work.

    I install the rpi tools, and it can be found at:

    /storage/.kodi/addons/virtual.rpi-tools/lib

    i get the following:

    Code
    LibreELEC:~/hyperion/bin #  ./listen-for-shutdown.sh start
    Starting listen-for-shutdown.py
    LibreELEC:~/hyperion/bin # Traceback (most recent call last):
      File "/storage/hyperion/bin/listen-for-shutdown.py", line 4, in <module>
        import RPi.GPIO as GPIO
    ImportError: No module named RPi.GPIO

    thank you ... but now I have the problem to implent the script.

    See the thread:

    "listen for shutdown"

    the script looks like that it is working, but I did not get any reaction if I shorten Pin5-Pin6

    I get that strange message if I start in manually:

    Code
    LibreELEC:~/hyperion/bin # ./listen-for-shutdown.sh stop
    Stopping listen-for-shutdown.py
    
    LibreELEC:~/hyperion/bin # ./listen-for-shutdown.sh start
    Starting listen-for-shutdown.py
    LibreELEC:~/hyperion/bin # /storage/hyperion/bin/listen-for-shutdown.py:10: RuntimeWarning: A physical pull up resistor is fitted on this channel!
      GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_UP)

    Hi,

    I wood like to ad a script which enables the posibility of a power button usage.

    I found manauls to do that, but non of them worked at libreelec.

    this are the script which should run:

    As well the intallation script is not working.

    Hope there is a way to add this simple funktionality to shutdown an restart the Pi with a shorting pin 5 and 6 (GPIO3 and GND)

    Thx in advance


    install:

    listen-for-shutdown.sh

    listen-for-shutdown.py

    Thankyou ..

    As far as I understand that there is a chance, that I have the new, working version of the bootloader which supports a work_on_GPIO as I need it per default. I think somebody of you guys see that in a second .

    Thx for help !

    Thanks for your support! But I have no idea where to find a bootloader with the right behavior or what to change about the existing one.

    I just find the following:

    Raspberry Pi 4 bootloader configuration - Raspberry Pi Documentation

    Is that the right thing. And is the only thing what I have change is in the parts: I need a helping hand here. Thx !

    WAKE_ON_GPIO

    If 1 then sudo halt will run in a lower power mode until either GPIO3 or GLOBAL_EN are shorted to ground.

    Default: 1 (0 in original version of bootloader 2019-05-10)

    Version: All

    POWER_OFF_ON_HALT

    If 1 and WAKE_ON_GPIO=0 then sudo halt will switch off all PMIC outputs. This is lowest possible power state for halt but may cause problems with some HATs because 5V will still be on. GLOBAL_EN must be shorted to ground to boot.

    Pi 400 has a dedicated power button which operates even if the processor is switched off. This behaviour is enabled by default, however, WAKE_ON_GPIO=2 may be set to use an external GPIO power button instead of the dedicated power button.

    Default: 0

    Version: 2019-07-15

    #####################

    Hi, I am using the latest version on LibreElec. Due to the changes to the Raspberry PI4,

    I need the function so that the behavior corresponds to earlier models, where both 3V3 and 5V pins remain switched on after the "Sudo halt".

    As far as I could find out so far, I have to change the bootloader. A working one should be found somewhere on the net (but I haven't found it yet)

    I have no idea if it is possible to change the bootloader. It would be great if there was some way to implement this feature to pause and run Kodi via an external signal.

    Thanks for your support