Update autosleep.c