Hi,
I have problem with OnOff Shim
my /etc/cleanshutd.conf is:
config for cleanshutd (commented out values are the defaults)
daemon_active=1
trigger_pin=4
led_pin=off
poweroff_pin=4
hold_time=1
shutdown_delay=0
polling_rate=1
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
Docs: man:systemd-sysv-generator(8)
Process: 303 ExecStart=/etc/init.d/cleanshutd start (code=exited, status=0/SUC
CGroup: /system.slice/cleanshutd.service
├─ 391 /bin/bash /usr/bin/cleanshutd
└─4308 sleep 1
Mar 07 22:32:44 RPi3AP systemd[1]: Starting LSB: Monitoring GPIO shutdown trigge
Mar 07 22:32:45 RPi3AP cleanshutd[303]: Starting…
Mar 07 22:32:45 RPi3AP systemd[1]: 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.
Question:
How to fix it?