The only thing I've found that helps is feeling like I achieved something worthwhile in my day. So after 6+ hours of video games it'll be like 1am, I'll yawn and suddenly think, oh I should get in a couple hours of writing. Whereas if I had already cleaned the house and emailed my family then I'll be in bed by 11.
It's a problem where the solution is to not have the problem in the first place, which doesn't help if you already have the problem.
Thank you for that missing missing reasons link! I feel ever-so-slightly wiser for having read it.
I've heard missing missing reason stories from coworkers and acquaintances without knowing exactly why they seemed off. The details about why they do it were very illuminating.