Don't you think that you've got the answer to your problem when you say
"OK, the fan doesn't appear to work, so even to last for an hour the computer has to be raised a couple of inches off the desk "
It's most likely the C.P.U overheating and shutting down the computer.
Download SpeedFan by Alfredo Milani Comporetti and monitor the temperatures, it's FREE>