Reorganized platform-dependent code
Auto-away timer check reduced to 1s