It's something that you just get used to. When I had to travel long distance in a cramped bus daily I used to sleep on the way. The effect was so strong I from doing this every day that I really had to fight falling asleep in every bus I rode on after that. Now the habit is gone again.