Make sure your bedroom is pitch black, tape over LEDs on your electronics as needed, use F.lux on your computer to dim the blue part of the light spectrum after sunset (full spectrum light bulbs are bad for this reason), and you’re well on the way to fixing the problem. Melatonin might help, it worked until it didn’t. Light control has worked better than anything else.
Make sure your bedroom is pitch black, tape over LEDs on your electronics as needed, use F.lux on your computer to dim the blue part of the light spectrum after sunset (full spectrum light bulbs are bad for this reason), and you’re well on the way to fixing the problem. Melatonin might help, it worked until it didn’t. Light control has worked better than anything else.