Unfortunately 777 OFCR certifications (and assuming 787 as well) require display of lights warning signs etc so while one would need a truly dark environment to sleep, it will never be a reality.
Eculaytus oil does the trick quite well. Maybe some wet towels as well. And of course gotto to be really tired.
‘For a while I carried my own memory foam 12inches by 18inches orthopedic pillow, it helped but was cumbersome-so left it after a while.
Lastly use use ear plugs it firstly helps I think.
Good luck
