pimoroni / clean-shutdown

Python daemon to watch a GPIO pin and trigger a clean shutdown.
MIT License
125 stars 40 forks source link

OnOff Shim does not shut down the Raspberry #32

Closed ghost closed 1 year ago

ghost commented 2 years ago

Hi guys,

I'm new here because of a very tricky problem, other users in the german raspberry forum can't solve.

I ordered an OnOff Shim and connected it to the raspberry via the socket which was soldered to the shim. I then installed the OnOff Shim Script using the one line command and with the software I'd like to use (Phoniebox) I run the following /etc/cleanshutd.conf-Script:

daemon_active=1 trigger_pin=17 led_pin=25 poweroff_pin=4 hold_time=2 shutdown_delay=0 polling_rate=1

The pins are not used by other connections. There is no problem to start the raspberry by using the button on the Shim or an external attached button via the "BTN"-holes. But I do not manage to shut down the raspberry when pressing the external button or the button on the shim. The red light on the shim flashes, but the raspberry keeps running. Furthermore the button's light is not working - only when shutting down the raspberry through the terminal right at the end the light flashes 3 times - so the GPIO seems to work. The light itself works fine when connecting it to the 3V-PIN.

I already ordered a new OnOff Shim because I thought there could be a soldering problem - no change at all. I used another external button - no change at all.

The guys from the german forum ask me to to sudo systemctl disable cleanshutd and sudo systemctl start cleanshutd

as well as to insert disable_cleanshutd=1 into the /boot/config.txt.

No change at all.

When I do raspi-gpio get 17 I always get GPIO 17: level=0 fsel=0 func=INPUT no matter if I press the button or not.

Do you have any help for this issue? Why is it impossible to get the raspberry to shutdown and the button's light to shine when running the raspberry and not only at the end of a terminal's induced shutdown process?

Thank you for your help!

ghost commented 2 years ago

when doing sudo systemctl status cleanshutd I receive:

(/etc/init.d/cleanshutd; generated) Active: inactive (dead) Docs: man:systemd-sysv-generator(8)

and here is a .gif showing what is happening when pressing the button on the shim (or the external attached button as well): ezgif-7-61a51f10f584