# Electron sleep problems, yet again

**URL:** <https://community.particle.io/t/electron-sleep-problems-yet-again/42230>\
**Category:** Troubleshooting\
**Created:** [June 3, 2018, 7:53pm UTC](https://community.particle.io/t/electron-sleep-problems-yet-again/42230 "2018-06-03T19:53:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![modles](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@modles](https://community.particle.io/u/modles)\
**Post date:** [June 4, 2018, 10:00pm UTC](https://community.particle.io/t/electron-sleep-problems-yet-again/42230/5 "2018-06-04T22:00:18Z")

</div>

@rickkas7 Thanks, The reason for using cellular\_off was that I thought it was blocking, whereas Cellular.off was not? and I'm running SYSTEM THREAD enabled.

> [@Electron SLEEP\_MODE\_DEEP tips and examples](https://community.particle.io/t/electron-sleep-mode-deep-tips-and-examples/27823/5):
>
> There’s one more useful case: If, for example, you wake up, read a sensor, and go back to sleep, you don’t need to turn the cellular modem on then off again unless it was a cold boot. If the modem was already in sleep it will stay asleep and you’ll still have low power consumption. In this example, you get two fast sleeps (awake for 2 seconds), and the third time it stays awake long enough to publish. With this code running on system firmware 0.7.0 I got 160 uA after sleep after cold boot, aft…

Oh and by bad state, do you mean anything like this?  
Occasionally the modem turns off goes into a limbo state with complete system pulling 40ma with slow pulsing green led and code lockup. I have to rely on external watchdog timer to reset it, at which point it enters proper sleep.

---

_[View the full topic](https://community.particle.io/t/electron-sleep-problems-yet-again/42230)._
