I have problem with OnOff Shim
my /etc/cleanshutd.conf is:
config for cleanshutd (commented out values are the defaults)
By pressing the push-button on the Shim, I am able to turn on my RPi3B+
I am unable to turn the power off by pressing the same button
I check the signals with oscilloscope and it looks like when doing the OFF press, the level on pin BCM17 goes low and the level on pin BCM4 stays high.
It looks like the software is running
root@RPi3AP:~# service cleanshutd status
● cleanshutd.service - LSB: Monitoring GPIO shutdown trigger
Loaded: loaded (/etc/init.d/cleanshutd; generated; vendor preset: enabled)
Active: active (running) since Thu 2019-03-07 22:32:45 GMT; 32min ago
Process: 303 ExecStart=/etc/init.d/cleanshutd start (code=exited, status=0/SUC
├─ 391 /bin/bash /usr/bin/cleanshutd
└─4308 sleep 1
Mar 07 22:32:44 RPi3AP systemd: Starting LSB: Monitoring GPIO shutdown trigge
Mar 07 22:32:45 RPi3AP cleanshutd: Starting…
Mar 07 22:32:45 RPi3AP systemd: Started LSB: Monitoring GPIO shutdown trigger
Following the hint from here Onoff Shim not restart when I execute
root@RPi3AP:~# sudo /lib/systemd/system-shutdown/gpio-poweroff poweroff
the response is:
Reading config file /etc/cleanshutd.conf
Using power off pin
and the system is powered down.
How to fix it?