Re: [beagleboard] Shutdown from inside a service is very slow

2016-06-02 Thread YP66
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

Re: [beagleboard] Shutdown from inside a service is very slow

2016-06-02 Thread YP66
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,

Re: [beagleboard] Shutdown from inside a service is very slow

2016-06-02 Thread evilwulfie
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

Re: [beagleboard] Shutdown from inside a service is very slow

2016-06-02 Thread John Syne
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

[beagleboard] Shutdown from inside a service is very slow

2016-06-02 Thread YP66
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