Have you tried 'paradoxical intention'? It's basically convincing yourself that the goal is to stay awake, instead of falling asleep. It gets rid of some of the performance anxiety surrounding falling asleep, and tends to force you to focus on something else (keeping awake). It has helped me in the past!