Updated autosleep.c to incorporate powersuspend