Preventing the system from entering sleep