F.lux is a great program but like Doc Wils said, it can only do so much.
Our bodies and brains also have positional memory. This is why sleep hygiene is so important. We need to teach our bodies that laying down in bed means sleep. Sometimes even having a night time ritual/routine helps. It starts the process of turning everything off. No tv or reading while in bed. Even if the person is sitting up in bed, it's going to make a difference.
Apnea Board Moderator
Breathe deeply and count to zen.