Inducing local, sleep-like neural activity in awake mice can completely offset the cognitive damage of sleep deprivation.