fix #9
1. extend the time of device stay on
2. start server when wake up