Nuvigil, often known as a wakefulness promoting medication, is a prescription substance sanctioned by the regulatory body for managing excessive sleepiness associated with a sleep disorder or irregular work schedules . It functions by enhancing wakefulness and alleviating feelings of somnolence .