line in my /etc/rc.local
Code: Select all
python /home/pi/bin/softshut.py &Basically after writing the script I just shut down the pi, connect the power-switch and trying to turn it on with its on button but nothing.
Thanks
Code: Select all
python /home/pi/bin/softshut.py &When the RPi is shut down the CPU and of course the OS is halted so the RPi cannot respond to any code in that state.plasticus wrote:Ok, I changed the code as that one seemed outdated. I followed this https://github.com/PiSupply/Pi-Supply-Switch but still no sign of life..it won't turn on..and the switch is made to be able to turn on and off. In addition (I guess this is due to the script), if now I plug it with the normal power source it will boot up and then immediately shutdown by itself..
If that does not work then there is something wrong with the switch board.Press the Soft button and keep pressed for a reboot.
well but I don't have to rebootThe very last line in your link tells you how to start the RPi:Press the Soft button and keep pressed for a reboot.
Press the On button to power on the Raspberry Pi.
If that does not work then there is something wrong with the switch hardware.plasticus wrote:......Press the On button to power on the Raspberry Pi.
cool, that's a starting point..I was really sure the circuit was fine..will unsolder it and do it again..klricks wrote: If that does not work then there is something wrong with the switch hardware.