Sleep fixes

After sleeping, the screen would not wake. This behavior is now fixed.