Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 2 of 2
  1. #1

    PiCore Player and gpio-poweroff / gpio-shutdown overlays


    We are upgrading our power manager board to make it working with native gpio-poweroff and gpio-shutdown overlays instead of the python script you kindly integrated to Picore.
    We succeded to use these overlays under Volumio2 and Dietpi, so now we are looking to use them under Picore.

    Good news, after editing config.txt, the gpio-poweroff is working.

    But not gpio-shutdown, as I think a service must be added to monitor shutdown pin.
    On Dietpi it's systemd-logind service, but I have no idea what is the equivalent under Picore.

    Do you think Picore player could care these overlays later ?

    Thanks !

    Name:   gpio-shutdown
    Info:   Initiates a shutdown when GPIO pin changes. The given GPIO pin
            is configured as an input key that generates KEY_POWER events.
            This event is handled by systemd-logind by initiating a
            shutdown. Systemd versions older than 225 need an udev rule
            enable listening to the input device:
                    ACTION!="REMOVE", SUBSYSTEM=="input", KERNEL=="event*", \
                            SUBSYSTEMS=="platform", DRIVERS=="gpio-keys", \
                            ATTRS{keys}=="116", TAG+="power-switch"
            This overlay only handles shutdown. After shutdown, the system
            can be powered up again by driving GPIO3 low. The default
            configuration uses GPIO3 with a pullup, so if you connect a
            button between GPIO3 and GND (pin 5 and 6 on the 40-pin header),
            you get a shutdown and power-up button.

  2. #2
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Obviously we don't run systemd, but anything is possible. Listening to a GPIO pin is rather easy. And then integration of the overlays into our interface. Please drop us a PM or an email, and we can discuss the specifics.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts