Melatonin is inhibited by light reaching the eyes. An eye mask might be enough. Speaking with regard to sleep, not cancer, I have to block any LEDs on things like battery chargers to sleep well. I despise the trend of putting blue power indicators on things used at night (I'm looking at you, Air-O-Swiss).