Hello,

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.


Code:
--------------------
    dtoverlay=gpio-shutdown,gpio_pin=22,active_low=0
  dtoverlay=gpio-poweroff,gpiopin=17
--------------------


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 !


Code:
--------------------
    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.
--------------------


------------------------------------------------------------------------
audiophonics's Profile: http://forums.slimdevices.com/member.php?userid=65830
View this thread: http://forums.slimdevices.com/showthread.php?t=109270

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to