Tuesday, May 10, 2011

Get CPU Temp To Display In XBMC.

Install the "lm-sensors" package:
# sudo apt-get install -y lm-sensors

Identify the installed sensors and load the required modules:
# sudo apt-get install -y lm-sensors
You can press enter for each of the questions, except for the last one which is "Do you want to add these lines automatically?" where you should type "yes" and hit enter.

Reboot your device.

Verify sensors is working:
sensors -u

Edit your advancedsettings.xml and insert the following line:
echo "$(sensors -u | grep "temp1_input"| awk '{print $2 }' |awk '{printf("%d C \n",$1 + 0.5);}')"
XBMC should now detect the temperature of your cpu cores.

No comments:

Post a Comment