for me its similar but I don't need boredom, I either get the insight randomly or in dreams/waking up
Physical work can help. Or just doing something that's not too engaging.
Some places I've experienced sudden insight for a technical problem:
* playing a video game on Saturday evening
* briefly awake at 3am to use the bathroom
* shopping for tea kettles on Amazon
* reading aloud in a writer's group
The idea just pops into my head, sometimes throwing me off the task I'm actually focused on. I assume there's a subconscious portion of my brain still calculating the problem even when I don't realize it, but I can see why some people believe their insights come from a higher power.