Sleep is a dynamic process in most animals, involving distinct stages that probably perform multiple functions for the brain. Before sleep functions can be initiated, it is likely that behavioral responsiveness to the outside world needs to be reduced, even while the animal is still awake. Recent work in Drosophila has uncovered a sleep switch in the dorsal fan-shaped body (dFB) of the fly's central brain, but it is not known whether these sleep-promoting neurons also govern the acute need to ignore salient stimuli in the environment during sleep transitions. We found that optogenetic activation of the sleep switch suppressed behavioral responsiveness to mechanical stimuli, even in awake flies, indicating a broader role for these neurons in regulating arousal. The dFB-mediated suppression mechanism and its associated neural correlates requires innexin6 expression, suggesting that the acute need to reduce sensory perception when flies fall asleep is mediated in part by electrical synapses.