My solution to similar problem: I just work or browse at night (made possible by f.lux) for an hour while wife goes to sleep; I am tired and don't browse in bed anymore (using melatonin as needed).
We sleep with lights out. Kids can complicate this scenario :)