09-10-2020, 01:31 PM
If you want to check if the hardware is still functioning, you can use the command tool gpio.
Needs admins rights so call it with sudo in front of it.
It the hardware is ok but the scripts gives problems, you can also use an overlay for it, by adding adding a line like to /boot/config:
dtoverlay=gpio-shutdown,gpio_pin=22,active_low=0,gpio_pull=off
Exact settings depend on you system button wiring.
Check /boot/overlays/README for more documentation about the overlays, contains some neat tricks ;-)
Needs admins rights so call it with sudo in front of it.
It the hardware is ok but the scripts gives problems, you can also use an overlay for it, by adding adding a line like to /boot/config:
dtoverlay=gpio-shutdown,gpio_pin=22,active_low=0,gpio_pull=off
Exact settings depend on you system button wiring.
Check /boot/overlays/README for more documentation about the overlays, contains some neat tricks ;-)