To conclude, sleep is far more important than just how you feel when you wake up; it can – and does – have huge implications for the production of testosterone and the associated repercussions (mood, libido, morning erections and erectile dysfunction). If you’re not waking up with a boner, it’s time to get on top of your health.