Well it could be a hardware problem, but the most likely problem is a code structure or state machine issue. The most common cause is some code path that causes the Electron to immediately go back to sleep when it wakes up. It happens so fast it looks like nothing happened.