Witty!Pi!Immediately!Shutdown!After!Startup - UUGear Witty Pi User Manual

Realtime clock and power management for raspberry pi
Table of Contents

Advertisement

There!are!two!scenarios!that!could!cause!the!"dead!lock"!status:!
!! Witty!Pi!schedules!the!next!auto!shutdown,!and!then!Raspberry!Pi!gets!shutdown!
in!a!way!that!without!pulling!down!the!GPIOc4!pin,!such!as!disconnecting!power!
supply!directly,!or!calling!"sudo!shutdown!–h!now"!command!by!the!user.!Since!
the!GPIOc4!pin!is!not!pulled!down,!Witty!Pi's!daemon!is!not!aware!of!the!
shutdown,!and!hence!it!will!not!disable!the!auto!shutdown!alarm!before!cutting!
the!power.!When!the!shutdown!alarm!gets!activated!while!Witty!Pi!and!Raspberry!
Pi!are!not!powered,!Witty!Pi's!software!doesn't!have!a!chance!to!clear!the!alarm!
state,!and!that!equals!to!long!hold!the!button!without!releasing!it,!which!prevents!
your!Raspberry!Pi!to!get!powered!on!again.!
!! The!scheduled!shutdown!comes!when!your!Raspberry!Pi!is!on!the!process!of!
shutting!down.!Since!the!software!may!have!been!closed!when!the!shutdown!
alarm!comes,!it!may!not!be!able!to!clear!the!shutdown!alarm,!and!the!result!will!
be!the!same!as!the!previous!scenario.!
To!avoid!the!dead!lock,!please!make!sure!not!to!call!the!"sudo!shutdown!–h!now"!
command!by!yourself,!and!not!to!unplug/disconnect!the!power!supply!for!Witty!Pi!
before!finishing!the!gracefully!shutdown!process.!This!can!avoid!the!first!scenario!
mentioned!above.!
If!you!use!schedule!script,!or!manually!schedule!a!shutdown!in!very!short!future,!it!is!
better!to!let!Witty!Pi!to!shutdown!your!Raspberry!Pi,!otherwise!it!will!become!the!
second!scenario!that!causes!the!dead!lock,!when!the!scheduled!shutdown!comes!
during!the!manually!shutdown!process.!
If!you!are!expecting!an!auto!startup,!please!make!sure!your!Witty!Pi!has!power!supply!
connected.!
If!you!want!to!shutdown!your!Raspberry!Pi!manually,!please!tap!the!button!on!Witty!
Pi.!If!you!want!to!shutdown!Raspberry!Pi!in!your!own!script,!you!can!call!"gpio!mode!
7!out"!(GPIOc4!pin!is!pin!7!in!the!wiringPi).!

Witty!Pi!Immediately!Shutdown!after!Startup?!

Some!customers!meet!the!situation!that!after!installing!the!software!and!reboot,!Witty!
Pi!immediately!shutdown!Raspberry!Pi!after!successfully!boot,!with!or!without!having!
the!white!LED!lighted!up.!This!could!repeat!no!matter!how!many!times!you!press!the!
button!to!startup.! !
You!may!need!to!disconnect!Witty!Pi!from!your!Raspberry!Pi,!and!power!on!
Raspberry!Pi!only!for!troubleshooting.!
There!are!two!possible!reasons!that!can!cause!this!kind!of!problem:!
!
! ! ! ! ! ! ! ! ! ! !
!
19!

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Witty Pi and is the answer not in the manual?

Table of Contents