Or, if your doctor directs you to, the total daily dose of modafinil may be divided into a morning dose and a noon dose. For obstructive sleep apnea, take this medication by mouth with or without food as directed by your doctor, usually once daily in the morning.