Setting in my computer is such that the system suspends when I close the lid.When I open the lid later on, the system boots up as though it was starting for the first time,and it was previously shut down. Once I log in to my account and start using ubuntu 14.04 , there is a message stating that system problem was encountered and suggests me to send an error report. I have recently, erased and re-installed ubuntu 14.04 and my software is up to date. This thing(system program problem), occurs each time I close my lid. And all my previous work is lost.
What is the solution?