I try to get only a few hours of sleep the night before my trip, if possible. That, plus earplugs, wine, and melatonin does the trick.
I still wake up if we stop in a brightly-lit station, or when we go over a hard patch of track, but I can usually fall back asleep pretty easily. I'd say I get...