SME Pages wellsi.com


lm_sensors for SME

14th May 2005 Ian Wells

Thanks to Reinhold and wififun

Introduction

This page only covers installation, please also see lm_sensors for SME

Three installation methods are described in these pages

This is the description of the latest available lm_sensors RPM, it should work but there can be problems.
The most recent RPM can be found at http://download.atrpms.net/production/packages/redhat-7.3-i386/atrpms/
The version that I used (2.8.6) is no longer available.

Installation

Download the RPM: http://download.atrpms.net/production/packages/redhat-7.3-i386/atrpms/lm_sensors-2.9.1-39.rh7.3.at.i386.rpm
If this link is broken use the link above it and download the latest rpm.

  1. Install the RPM
# rpm -Uvh lm_sensors-2.8.7-0_32.rh7.3.at.i386.rpm
  1. Detect the sensors on your mainboard, (run as root)
# /usr/sbin/sensors-detect

For my mainboard, I just hit enter for all questions, which then uses the defaults which can be seen as CAPs.

  1. Note down the lines it suggests to put into /etc/modules.conf, for my mainboard it indicated
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
options it87 ignore=-1,0x290
#----cut here----
  1. Modify /etc/modules.conf via a template fragment
# mkdir -p /etc/e-smith/templates-custom/etc/modules.conf
# pico /etc/e-smith/templates-custom/etc/modules.conf/10i2c
{
    foreach my $line
        (
          "alias char-major-89 i2c-dev",
          "options it87 ignore=-1,0x290",
        )
    {
        unless (exists $lines{$line})
        {
            push @lines, $line;
        }
    }
    "";
}
# /sbin/e-smith/expand-template  /etc/modules.conf
  1. Set up and start the service.
  # ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S86lm_sensors
  # /sbin/e-smith/config set lm_sensors service status enabled
  # /sbin/service lm_sensors start

Notes

On one test PC the temperature could not be displayed from running sensors, but it was read correctly in Sysmon. My research came up with the following which appears appropriate:
User had an old kernel module (2.6.5) with recent user-space tools (2.8.6), which was causing the problems

/etc/sysconfig/lm_sensors contains the list of modules to be loaded. Unnecessary modules can be removed, however the list must stay numbered from 0 without gaps. For details of how to identify which modules are required look at http://www2.lm-sensors.nu/~lm78/identify.html

Further Information

Now return to lm_sensors for SME