This Steve Wozniak interview made me think of a story. It was of an inventor who was trying to either remember his dreams, or wake himself up from nodding off to keep his train of thought - and he’d do so by holding something heavy in one hand that, when he nodded off, would fall and create a loud noise, rousing him from his near-slumber.
I like the take Greg Kinnear’s character has on this in Baby Mama. “I keep this notebook by my bed. I’ll wake up in the middle of the night with these ideas out of my dreams, and I jot them all down … They never make a lick of sense.”