Page 37 of 37

Re: [Pre-Order] Safe Shutdown Switch (PowerBoost Version) - Closed

Posted: Mon Feb 19, 2018 3:17 pm
by garthster
ok, so I reinstalled the power monitor script.

Works the same as before.

Ran python ~/GBZ-Power-Monitor_PB/gbz_power_monitor.py over SSH and then hit the switch and it shutdown like it should!

Turned it back on and it went back to not shutting down.

I can get the shutdown switch to work by manually starting the power moniter script, but I am at a loss as to why is doesnt run on its own in the background ........

Re: [Pre-Order] Safe Shutdown Switch (PowerBoost Version) - Closed

Posted: Wed Feb 21, 2018 8:31 pm
by garthster
I did some more trouble shooting tonight and came across a couple of things.

no. 1 - checking for python scripts shows two sets running

Code: Select all

root@retropieaaa:~# ps -aef | grep python
pi         439   401  0 01:46 ?        00:00:00 /bin/sh -c /usr/bin/nice -n 19 /usr/bin/python ~/GBZ-Power-Monitor_PB/gbz_power_monitor.py
pi         440   439  0 01:46 ?        00:00:01 /usr/bin/python /home/pi/GBZ-Power-Monitor_PB/gbz_power_monitor.py
root       441   402  0 01:46 ?        00:00:00 /bin/sh -c /usr/bin/nice -n 19 /usr/bin/python ~/GBZ-Power-Monitor_PB/gbz_power_monitor.py
root       444   441  0 01:46 ?        00:00:01 /usr/bin/python /root/GBZ-Power-Monitor_PB/gbz_power_monitor.py
root      1232  1212  0 03:25 pts/0    00:00:00 grep python
no. 2 crontab -l lists the script once like it should

Code: Select all

root@retropieaaa:~# crontab -l
@reboot /usr/bin/nice -n 19 /usr/bin/python ~/GBZ-Power-Monitor_PB/gbz_power_monitor.py
No. 3 after the reinstall the system correctly powers down on low battery warning like it should. So this is an improvement.

Re: [Pre-Order] Safe Shutdown Switch (PowerBoost Version) - Closed

Posted: Fri Mar 09, 2018 2:43 pm
by SidSilver
Hi there !

I have a strange behavior with the Safe Shutdown v1.1 and Powerboost 1000C
When I only plug usb to the powerboost, everything is OK
But if I plug the battery to the powerboost, then the script immediately shutdown even if the power button is ON

Any idea ?

[edit] thanks for the help on discord Camble ;) .

Re: [Pre-Order] Safe Shutdown Switch (PowerBoost Version) - Closed

Posted: Tue Aug 21, 2018 1:51 pm
by erotundo87
Hi!

It's possible do a order or have the structure of the board to reproduce this? Because i have a similiar problem with depletion of battery in RPi Zero W so when the LBO sent's the signal, the pi goes off without problem but the powerboost maintain on so i need to turn off after pi shutdown the powerboost

Regards

erotundo87

Re: [Pre-Order] Safe Shutdown Switch (PowerBoost Version) - Closed

Posted: Tue Aug 21, 2018 4:16 pm
by Camble
@erotundo87 is this what you're looking for?