OK, option 1 is to open up your laptop and give it a really good once over with an air blaster, make sure you get rid of all the dust in there that will be compounding your overheating problem. Thanks to@cunningphil on twitter for this suggestion.
If that doesn't help then option 2 might be something like this, which I'm currently using and seems to be having the desired affect:
Enter the following code into a file:
Code:
#!/bin/bash
while :
do
if [ `acpi -t | awk '{print $4}' | awk -F "." '{print $1}'` -gt 84 ]
then
kill -STOP `ps ax | grep [g]hb | awk '{print$1}'`
sleep 30
kill -CONT `ps ax | grep [g]hb | awk '{print$1}'`
fi
done
Save your file and make it executable. Next, start your video encoding using handbrake, and in a separate terminal window, run your batch file.
It relies on you having sensible output from the acpi command, which you ma not have by defualt. If acpi does not work for you, then try installing lm-sensors
You would then need to update the script to lm-sensors instead of acpi.
Let me know how you get on with this. You might need to adjust the temperature threshold. I'm using 84 degrees, which may be a little overzealous, I don't know. I'm still experimenting with it!
Bookmarks