Environment circuits

The TARDIS environment circuits were the controls of the Doctor's TARDIS responsible for simulation of light within the ship. At "night," the circuits would dim the lights to darken the ship, and when the travellers woke up the TARDIS would respond by bringing the light up. Ace also wondered if the TARDIS would keep a room dark if she subconsciously wanted it, without knowing she did.

When the Grey Man took control of the TARDIS, the ship became completely dark, requiring the Seventh Doctor, Benny, and Ace to use torches. (PROSE: Falls the Shadow)