Freeplaytech Forum

Full Version: Turn on/off immediately without delay
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does anyone know if its possible to remove the 5s delay to powering on / off the system with software? Or is that due to the hardware config of the power switch?
After the add-on board with the added hotkey, I'd like to remove that delay.

Sure.  I wouldn't recommend removing the delay completely, but maybe set it to a lower time.  I don't think you'd want to bump it and have it shut down.

Edit this file /home/pi/Freeplay/Freeplay-Support/

nano /home/pi/Freeplay/Freeplay-Support/

It should look like this: and the line you want to edit looks like this.
pwr_btn_timeout = 4.0   # how many seconds does the power button need to be held
Thanks!! Does this also change the delay when turning on?
No. The delay turning it on is completely different. When you first push the ON button, it supplies power to the Raspberry Pi. The Pi starts booting up. When the operating system boots up, it can take over, and it will then turn on the green LED and hold the system ON by itself (until you shut it down).