A driver can maintain alertness by:

To maintain alertness while driving, strategies include wearing sunglasses to reduce eye strain; maintaining a cool temperature inside the cab; avoiding heavy foods; and traveling with someone else who can share the responsibilities of driving.
DMV Writen Test