This question already has an answer here:

I have installed on my laptop Ubuntu 15.04. Today I have closed the lid, the laptop got into suspend mode and I put my laptop in my bag. After 3 hours I got him out and it was hot as hell! The laptop woke up from suspend by itself and continued to work while was in my backpack. What I can do to prevent this kind of problems?

marked as duplicate by Eric Carvalho, 2707974, Community Sep 15 '15 at 7:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.