Insomnia is when people can not sleep . Insomnia can be grouped into primary and secondary , or comorbid , insomnia . Primary insomnia is a sleep disorder not attributable to a medical , psychiatric , or environmental cause .