My son uses this on his laptop. He says it helps.
http://justgetflux.com/
Insomnia runs in my family big time, so I feel your pain! I have to get off my computer about an hour before I want to go to sleep, and use a K4NT with a clip on light. It's an led light, but it doesn't seem to bother me.
I also use an audio book stuck in my ear all night. Something that I know backwards and forwards, so I don't stay awake to see what happens. I just have it so it will loop all night, every night. It works for me just like geometry class in high school!! We won't even talk about my grade in that class!

S