If I'm on the computer/tablet too late, I put on a pair of "blue block" orange glasses for a couple hours before bed. My doctor recommended them and they actually do help a lot, I feel sleepy when I should rather than wide awake. (Nursing homes use them too - what could be a better endorsement?)