a light bulb goes off/on (in someone's head)
idiomDefinition of a light bulb goes off/on (in someone's head)
chiefly US, informal
—used to say that a person suddenly understands something or has a great idea After thinking about the problem for several days, a light bulb went off in her head, and she knew how to solve it.