![background image](http://html1.mh-extra.com/html/uugear/witty-pi-3/witty-pi-3_user-manual_1065766036.webp)
33
In order avoid this problem, 1-Wire interface should be disabled, or assigned to a different GPIO pin
before installation of Witty Pi’s software. If the problem already happens, you need to take out the
micro SD card from Raspberry Pi and access its file system via a card reader.
You need to edit the config.txt file in the “boot” volume to change the GPIO pin used by 1-Wire
interface, or you can disable 1-Wire interface if you don’t need it for now. You need to find
something like “dtoverlay=w1-gpio” in the file.
If you want 1-Wire to use GPIO-18, just replace “dtoverlay=w1-gpio” with:
dtoverlay=w1-gpio,gpiopin=18
If you want to disable 1-Wire interface, just comment it out:
#dtoverlay=w1-gpio
Save the file and eject your micro SD card, and put it back to your Raspberry Pi. Now your
Raspberry Pi should be able to boot normally.
2.
Software does not run automatically after Raspberry Pi system is on
After installing the software, you will have “daemon.sh”, “syncTime.sh” and “runScript.sh” scripts
in the directory that has software installed. These scripts should be executed automatically after the
operating system is up.
If these scripts are not automatically executed for any reason, Witty Pi 3 will cut the power of
Raspberry Pi. In this case, the first place to check is the “/etc/init.d/wittypi” file, and there is
possibility that it contains wrong paths to these scripts.
If you are running a special distribution of OS, make sure to check if the commands in the
“/etc/init.d/wittypi” file do exist in the system, or it will fail silently. For example, Minibian doesn’t
have “sudo” command.
3.
Witty Pi 3 is unexpectedly woken up by shutdown alarm
This could happen, after you scheduled a shutdown in the future, and then Witty Pi 3 lost power
connection. Raspberry Pi is off ungracefully and later the power connection is resume. If the
shutdown alarm occurs when Raspberry Pi is still off, it will wake it up, which is unexpected. The
software will detect this situation and shutdown your Raspberry Pi immediately.
Next time when you turn on your Raspberry Pi, it will be normal again, and you can find this
message in the log, for previous shutdown:
Seems I was unexpectedly woken up by shutdown alarm, must go back to sleep…
Sometimes the same case can happen when you tap the button to turn on your Raspberry Pi, if the
shutdown alarm occurs during the time that no power supply was connected.