lumoro07
Posts: 11
Joined: Thu Feb 05, 2015 12:44 am

Pi Supply Switch not working as intended

Wed Sep 14, 2016 4:02 pm

First of all, what i want to achieve is to be able to power ON and OFF my RPi3B with a single momentary switch.

I bought and assembled the Pi Supply Switch and placed the neccesary files / codes onto the RPi3.
The on and off buttons work, but i don't need those. The soft-off button doesn't do anything, it doesn't turn the pi on or off.

From what i understand, the Pi Supply Switch should be able to turn the RPi3 ON and OFF with ONE button, am i correct? I find this confusing because i'm not seeing any references in the code that would turn the RPi3 ON.

Besides that, the RPi3 shuts down after a few minutes. Usually this means that pin 7 and 8 aren't connected but i'm fairly sure it's all connected like it should.

Any help is greatly appreciated.

EDIT: I also noticed this error on starting my RPi : "Failed to start rc.local compatibility", that might be the issue.

EDIT 2 : I should probably mention, i'm using a RPi 3B running RetroPie.


softshut.py :
Image

rc.local :
Image

Setup :

Image
Last edited by lumoro07 on Thu Sep 15, 2016 6:43 pm, edited 2 times in total.

lumoro07
Posts: 11
Joined: Thu Feb 05, 2015 12:44 am

Re: Pi Supply Switch not working as intended

Thu Sep 15, 2016 3:16 pm

I've tried to make a crontab by adding "@reboot python /home/pi/PiSupply/softshut.py" to the crontab file but that doesn't seem to make any difference.

Return to “General discussion”