# Turn on switch while sleep

**URL:** <https://forums.balena.io/t/turn-on-switch-while-sleep/283409>\
**Category:** balenaFin\
**Created:** [April 6, 2021, 9:18am UTC](https://forums.balena.io/t/turn-on-switch-while-sleep/283409 "2021-04-06T09:18:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricardoosorio](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ricardoosorio/32/5675_2.png) [@ricardoosorio](https://forums.balena.io/u/ricardoosorio)\
**Post date:** [April 6, 2021, 9:18am UTC](https://forums.balena.io/t/turn-on-switch-while-sleep/283409/1 "2021-04-06T09:18:06Z")

</div>

Hi there,

we really need some help/guidance to add a switch to turn on when sleeping. We try to use a switch between PC9 and 5V from gpio rail and it does turn on. But also resets if pressed while turned on so isn’t a solution. We also try to use the IDAC to set a pin to max power and use it but guess is just 3v3. So let us know how to implement the basic “power on/off” button. It’s a must for us.

Thank you so much

---

<div class="post-metadata">

**Author:** ![tmigone](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/tmigone/32/2814_2.png) [@tmigone](https://forums.balena.io/u/tmigone)\
**Post date:** [April 6, 2021, 3:09pm UTC](https://forums.balena.io/t/turn-on-switch-while-sleep/283409/3 "2021-04-06T15:09:50Z")

</div>

Hi Ricardo, what device are you using? Is this for a Raspberry Pi board?

---

<div class="post-metadata">

**Author:** ![ricardoosorio](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ricardoosorio/32/5675_2.png) [@ricardoosorio](https://forums.balena.io/u/ricardoosorio)\
**Post date:** [April 6, 2021, 3:17pm UTC](https://forums.balena.io/t/turn-on-switch-while-sleep/283409/5 "2021-04-06T15:17:10Z")

</div>

It’s a balenafin 1.1.1. Sorry, thought since we were in the balenafin forum wasn’t needed to specified.  
We manage to power-off using the sleep from firmware. But to turn on we have no documentation.

BTW: Before on a raspberry pi we were using the pijuice and we also try the atxraspi.

---

<div class="post-metadata">

**Author:** ![tmigone](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/tmigone/32/2814_2.png) [@tmigone](https://forums.balena.io/u/tmigone)\
**Post date:** [April 6, 2021, 3:44pm UTC](https://forums.balena.io/t/turn-on-switch-while-sleep/283409/6 "2021-04-06T15:44:57Z")

</div>

Oh no worries, that’s my fault for not realising!  
I noticed there is another forums thread about this topic which is already in progress so let’s move discussion over there.
