The only way to prevent primary hypersomnia is by avoiding night work and social activities that delay bed time) and diet may offer some relief. Patients should avoid alcohol and caffeine.