My daughters laptop did the same thing, it got very hot underneath and the fan was going the whole time then it would turn off by itself, i fixed the problem by opening the back and cleaning all the dust away from the front of the fan, now it works perfect, try it.
sean, April 2010