Some of the remedies of insomnia includes avoiding the use of caffeine, alcohol and cigarette, staying away from electronic devices such as cellular phones, laptops, tablets and television at night, listening to music, avoiding stress, taking magnesium rich foods and doing yoga daily.