If one walks to school, one will have enough energy to go to school and to sleep during non caring teachers
If one doesn't have non caring teachers. Chug down black coffee, the taste if one does not like will keep one awake. The Caffeine will also keep one awake.
If you don't want to drink coffee you could always occupy yourself with things other than sleep. Flick a pencil in your hand, tap your foot, shake your leg, anything. Sleep in free periods if you can, and try to stay up till a reasonable time to sleep, like eight or nine o' clock PM.