One way to avoid daytime sleepiness is to take magnesium supplements earlier in the evening, so that a lower amount of magnesium will remain by the time you wake up.