No on demand restricting while device sleeping

Closes #1243