Green’s Dictionary of Slang

whip v.2

[? SE whiplash, the way in which one’s head slumps suddenly onto one’s shoulder]

(US campus) to fall asleep while sitting up.

[US]P. Munro Sl. U. 204: Astro 3 is so boring that I always start to whip after the first ten minutes.