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.

Update: WOL for ZOTAC HD-ND22 and Ethernet Fix for XBMCLive

/etc/network/interfaces now looks as follows:


You will notice there has been a couple of modifications.
  1. pre-up /usr/sbin/ethtool -s eth0 speed 1000 duplex full
    This line helps resolve issues where the Ethernet connection is not always active on Boot.
  2. pre-up /usr/sbin/ethtool -s eth0 wol g
    This line is used in lieu of ethernet-wol g
    for the sake of connection stability on boot.

/etc/default/grub was also edited to remove acpi_enforce_resource=lax since it no longer seems to aid in any beneficial way.


And finally last but not least /etc/rc.local was modified to look as follows: