[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.
User avatar
Spruc3Moose
Posts: 34
Joined: Thu May 05, 2016 4:00 am
Location: Maryland
Has thanked: 2 times
Been thanked: 5 times

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

Post by Spruc3Moose » Sat Dec 03, 2016 12:41 pm

Camble wrote:@Spruc3Moose Have you amended your /boot/config.txt to include the following line:

Code: Select all

dtoverlay=gpio-poweroff,gpiopin=22,active_low="y"
yes, I have been following the guide entirely...just other have experienced, when I add that to the config file, I get the kernel panic message and when I remove it, it goes away.

User avatar
Paddy
Posts: 52
Joined: Sat Jun 25, 2016 4:21 am
Has thanked: 10 times
Been thanked: 17 times

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

Post by Paddy » Sun Dec 04, 2016 3:17 am

strange ... I'm also getting a kernel panic ...

after adding following command line the Pi starts to shutdown:

Code: Select all

echo "@reboot     /usr/bin/nice -n 19 /usr/bin/python ~/GBZ-Power-Monitor_PB/gbz_power_monitor.py" >> mycron; crontab mycron;rm mycron
After short booting I'm getting kernel panic ...

thats how my config.txt looks:

Code: Select all

max_usb_current=1
dtoverlay=gpio-poweroff,gpiopin=22,active_low="y"
dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
disable_audio_dither=1

User avatar
Paddy
Posts: 52
Joined: Sat Jun 25, 2016 4:21 am
Has thanked: 10 times
Been thanked: 17 times

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

Post by Paddy » Sun Dec 04, 2016 4:15 am

it's working now for me (without power plugged) ...

I have replaced the /boot/config.txt with this (I have done these before) and added the "dtoverlay=gpio-poweroff,gpiopin=22,active_low="y"" line ...

http://www.mediafire.com/file/5am8ss7b7 ... config.txt

edit: ok, it's strange ... after some successful shutdowns I'm now receiving the kernel panic after booting. Looks like the Pi immediately shutsdown after the script started. Checked the wiring -> ok; checked twice -> ok ... I have no idea

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 » Sun Dec 04, 2016 5:36 am

Paddy wrote:it's working now for me (without power plugged) ...

I have replaced the /boot/config.txt with this (I have done these before) and added the "dtoverlay=gpio-poweroff,gpiopin=22,active_low="y"" line ...

http://www.mediafire.com/file/5am8ss7b7 ... config.txt

edit: ok, it's strange ... after some successful shutdowns I'm now receiving the kernel panic after booting. Looks like the Pi immediately shutsdown after the script started. Checked the wiring -> ok; checked twice -> ok ... I have no idea
Some people have had issues with the cable plugged in. The board I'm using to test here works with or without the charging cable, so I'm having trouble replicating the problem again.

Your /boot/config.txt looks fine. The one you posted has the first 55 lines commented out, so not really much different to what you had.

@Spruc3Moose Have you tried a fresh image?

There is a way to force the Pi to reboot on kernel panic. With this board, it should power everything off at that point.

To /etc/sysctl.conf, add:

Code: Select all

kernel.panic = 1

User avatar
Spruc3Moose
Posts: 34
Joined: Thu May 05, 2016 4:00 am
Location: Maryland
Has thanked: 2 times
Been thanked: 5 times

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

Post by Spruc3Moose » Sun Dec 04, 2016 8:09 am

@camble

I have tried many fresh images on two pi zeros and I have still not seen any safe shutdown video...power switch still just shuts down the pi immediately.

I added the kernel.panic = 1, but now the pi reboots when I initiate a shutdown from the emulation station menu.

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 » Sun Dec 04, 2016 8:15 am

Spruc3Moose wrote:@camble

I have tried many fresh images on two pi zeros and I have still not seen any safe shutdown video...power switch still just shuts down the pi immediately.

I added the kernel.panic = 1, but now the pi reboots when I initiate a shutdown from the emulation station menu.
It will kernel panic if the switch is set to ON and you shut it down manually, yes. Because the PowerBoost will not power off unless the switch is set to OFF.

User avatar
Spruc3Moose
Posts: 34
Joined: Thu May 05, 2016 4:00 am
Location: Maryland
Has thanked: 2 times
Been thanked: 5 times

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

Post by Spruc3Moose » Sun Dec 04, 2016 2:04 pm

Camble wrote:
Spruc3Moose wrote:@camble

I have tried many fresh images on two pi zeros and I have still not seen any safe shutdown video...power switch still just shuts down the pi immediately.

I added the kernel.panic = 1, but now the pi reboots when I initiate a shutdown from the emulation station menu.
It will kernel panic if the switch is set to ON and you shut it down manually, yes. Because the PowerBoost will not power off unless the switch is set to OFF.
So i'm not sure what the next step is to make the safe shutdown work...if I flip the switch off, it still just shuts down immediately

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 » Sun Dec 04, 2016 4:27 pm

Spruc3Moose wrote:
Camble wrote:
Spruc3Moose wrote:if I flip the switch off, it still just shuts down immediately
Does this happen when just running on battery?

User avatar
Spruc3Moose
Posts: 34
Joined: Thu May 05, 2016 4:00 am
Location: Maryland
Has thanked: 2 times
Been thanked: 5 times

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

Post by Spruc3Moose » Sun Dec 04, 2016 5:50 pm

Camble wrote:
Spruc3Moose wrote:
Camble wrote:
Does this happen when just running on battery?
yes, i have not tried shutting down while charging.

Enix
Posts: 35
Joined: Tue May 17, 2016 11:51 am
Has thanked: 4 times
Been thanked: 1 time

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

Post by Enix » Tue Dec 06, 2016 8:06 am

Is there a new batch coming?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest