Page 29 of 37

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

Posted: Sat Dec 03, 2016 12:41 pm
by Spruc3Moose
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.

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

Posted: Sun Dec 04, 2016 3:17 am
by Paddy
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

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

Posted: Sun Dec 04, 2016 4:15 am
by Paddy
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

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

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

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

Posted: Sun Dec 04, 2016 8:09 am
by Spruc3Moose
@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.

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

Posted: Sun Dec 04, 2016 8:15 am
by Camble
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.

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

Posted: Sun Dec 04, 2016 2:04 pm
by Spruc3Moose
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

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

Posted: Sun Dec 04, 2016 4:27 pm
by Camble
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?

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

Posted: Sun Dec 04, 2016 5:50 pm
by Spruc3Moose
Camble wrote:
Spruc3Moose wrote:
Camble wrote:
Does this happen when just running on battery?
yes, i have not tried shutting down while charging.

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

Posted: Tue Dec 06, 2016 8:06 am
by Enix
Is there a new batch coming?