I am the one who remains awake when you sleep. But I need to rest when you awake. Who Am I?

I am your Subconscious Mind.