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

Completed sale threads will be moved here to keep things tidy in the main For Sale forum.
garthster
Posts: 22
Joined: Mon Jan 15, 2018 11:40 pm
Has thanked: 1 time
Been thanked: 1 time

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

Post by garthster » Mon Feb 19, 2018 3:17 pm

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 ........

garthster
Posts: 22
Joined: Mon Jan 15, 2018 11:40 pm
Has thanked: 1 time
Been thanked: 1 time

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

Post by garthster » Wed Feb 21, 2018 8:31 pm

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.

SidSilver
Posts: 263
Joined: Sun May 22, 2016 6:22 am
Location: France
Has thanked: 137 times
Been thanked: 37 times

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

Post by SidSilver » Fri Mar 09, 2018 2:43 pm

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 ;) .

erotundo87
Posts: 1
Joined: Tue Aug 21, 2018 1:42 pm

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

Post by erotundo87 » Tue Aug 21, 2018 1:51 pm

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

User avatar
Camble
Posts: 885
Joined: Thu May 05, 2016 2:31 am
Location: Scotland
Has thanked: 269 times
Been thanked: 488 times

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

Post by Camble » Tue Aug 21, 2018 4:16 pm

@erotundo87 is this what you're looking for?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest