Processes within the cerebral cortex may be responsible for elements of sleep control such as how long, and how deeply, we sleep.