now put 2 cpu heatsinks on the top and they have cut the temp down a few degrees.
It was 39C in the shade here today and my aircon is a little under engineered

Code: Select all
#!/bin/bash
TJ_MAX=90
if [ $EUID -ne 0 ]; then
echo "This script must be run as a root user"
exit 1
fi
if [ ! -x /usr/sbin/rdmsr ]; then
echo You need msr-tools to run this script.
exit 1
fi
n=`/sbin/lsmod | grep -c "msr"`
if [ ! $n -gt 0 ]; then
echo Kernel module msr must be loaded before running this script.
echo Load with: sudo modprobe msr
exit 1
fi
READOUT=`rdmsr --processor 0 --unsigned --bitfield 22:16 0x19c`
let TEMP=$TJ_MAX-$READOUT
echo $TEMP
Code: Select all
rdmsr --processor 0 --decimal --bitfield 22:16 0x19c