How to meditate before going to bed and after waking up?
Actually there is a reference to this and it is this video where the Dalai Lama advises a group of people to meditate before going to bed and immediately after waking up.

Before after waking up: our mind is filled freshness,you are relaxed and generally this continues to the rest of the day! You can face your obstacles easier!

Before going to bed: The stress built up during the day has to be gradually released before you can fall asleep.You too help your body relax better!