Temporarily pressing the power button (or pulling the PWR_BUT line to
ground) does shutdown the system but it seems to take much longer, often
more than a minute. I have put together a small PIC and a super-capacitor
setup; the PIC monitors the main power line and triggers the shutdown and
That was it - after issuing the shutdown command I had put the program on
an endless loop with a usleep; instead, the service now exits right after
issuing the reboot command the reboot indeed occurs as before, within 8
seconds or so.
Thank you!
On Thursday, June 2, 2016 at 6:34:13 PM UTC-4,
any reason you cant just use the pwr_butt input and use the apci driver ?
On 6/2/2016 3:28 PM, YP66 wrote:
> I am working on an automatic shutdown based on an external signal
> (through a digital IO line), on a BB black, running Debian Jessie.
>
> I build a program that monitors the digital
My guess is your systemd service isn’t exiting and so the shutdown pauses until
your service exits or after a timeout, the service is sent a kill signal to
exit.
Regards,
John
> On Jun 2, 2016, at 3:28 PM, YP66 wrote:
>
> I am working on an automatic shutdown based on
I am working on an automatic shutdown based on an external signal (through
a digital IO line), on a BB black, running Debian Jessie.
I build a program that monitors the digital line and when that line goes
high, the program calls
system("/sbin/shutdown -h now");
When I run that program