I have had insomnia for a long time. When I first got it, I combat it with keeping a very regular sleep schedule. Also, I would stop any stressful activities before bed time. This included: games, studying, talking to people, and TV. Also, I would last eat 2 hours before bed I would basically lock myself in my room and read a really easy read book. I also quite all caffeine and alcohol. I also tried valerian root (it is a home remedy). When I did wake up and could not get back to sleep, I would read in bed (not recommended I know, but if I go somewhere else to read, I would never get back to sleep). I never went to see a doctor because I figured that they could not help. All their meds are addictive for insomnia.
In any case I still suffer from chronic insomnia on and off. I just have to wait for it to pass. I eventually saw a doctor for it. He prescribed ambien, but it is addictive, so I can't take it often. I also use a CPAP (as other user mentioned), but it doesn't fix my insomnia completely.
Sorry for the long post. This is a BIG issue for me