LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lm_sensors detection issues (https://www.linuxquestions.org/questions/linux-newbie-8/lm_sensors-detection-issues-492703/)

swammi 10-15-2006 07:03 PM

lm_sensors detection issues
 
I've been having some issues with getting lm_sensors setup.

First:
Code:

Linux localhost.localdomain 2.6.17-prep #1 Sun Oct 15 12:06:46 PDT 2006 i686 athlon i386 GNU/Linux
I've followed the QUICKINSTALL instructions and then...

Code:

[root@localhost lm_sensors-2.10.1]# sensors-detect
# sensors-detect revision 4171 (2006-09-24 03:37:01 -0700)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.
.
.
.
Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `w83l785ts' (should be inserted):
  Detects correctly:
  * Bus `SMBus nForce2 adapter at 5100'
    Busdriver `i2c-nforce2', I2C address 0x2e
    Chip `Winbond W83L785TS-S' (confidence: 8)

Driver `eeprom' (should be inserted):
  Detects correctly:
  * Bus `SMBus nForce2 adapter at 5000'
    Busdriver `i2c-nforce2', I2C address 0x50
    Chip `eeprom' (confidence: 6)
  * Bus `SMBus nForce2 adapter at 5000'
    Busdriver `i2c-nforce2', I2C address 0x52
    Chip `eeprom' (confidence: 6)
  * Bus `SMBus nForce2 adapter at 5000'
    Busdriver `i2c-nforce2', I2C address 0x57
    Chip `eeprom' (confidence: 6)

  EEPROMs are *NOT* sensors! They are data storage chips commonly
  found on memory modules (SPD), in monitors (EDID), or in some
  laptops, for example.

Driver `w83781d' (may not be inserted):
  Misdetects:
  * ISA bus address 0x0290 (Busdriver `i2c-isa')
    Chip `Winbond W83627HF' (confidence: 8)

Driver `w83627hf' (should be inserted):
  Detects correctly:
  * ISA bus address 0x0290 (Busdriver `i2c-isa')
    Chip `Winbond W83627HF Super IO Sensors' (confidence: 9)

I will now generate the commands needed to load the required modules.
Just press ENTER to continue:

To make the sensors modules behave correctly, add these lines to
/etc/modules.conf:

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----

To load everything that is needed, add this to some /etc/rc* file:

#----cut here----
# I2C adapter drivers
modprobe i2c-nforce2
modprobe i2c-isa
# Chip drivers
modprobe w83l785ts
modprobe eeprom
modprobe w83627hf
# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
#----cut here----

If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones! You really
should try these commands right now to make sure everything is
working properly. Monitoring programs won't work until the needed
modules are loaded.

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): y
Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors
for initialization at boot time.

But when I run sensors...
Code:

[root@localhost lm_sensors-2.10.1]# sensors
Can't access procfs/sysfs file
Kernel interface access error
For 2.6 kernels, make sure you have mounted sysfs and libsensors
was compiled with sysfs support!

Based on some googling, I thought this might have something to do with some i2c modules not being loaded.
Code:

[root@localhost lm_sensors-2.10.1]# lsmod | grep i2c
i2c_dev                10244  0
i2c_isa                6656  1 w83627hf
i2c_nforce2            7552  0

I've seen some output with i2c_sensors, but I don't have it and can't modprobe it.
Any ideas?
Swammi

comprookie2000 10-15-2006 08:09 PM

Try ;
modprobe w83l785ts
modprobe w83627hf

Then see if it works;

swammi 10-15-2006 08:42 PM

Sorry, I forgot to mention this...
Code:

[root@localhost dev]# modprobe w83627hf && modprobe w831785ts
FATAL: Module w831785ts not found.

Incidentally, I don't know what w831785ts monitors on my board (lanparty nf2).

comprookie2000 10-15-2006 09:21 PM

What make and model motherboard?

swammi 10-15-2006 10:33 PM

btw, I was modprobing the incorrect driver: w831785ts instead of w83l785ts. Duh, there's an L in there, not a 1. It all looks the same in monospace characters. Nevertheless, sensors still outputs the same message.
Code:

[root@localhost lm_sensors-2.10.1]# sensors
Can't access procfs/sysfs file
Kernel interface access error
For 2.6 kernels, make sure you have mounted sysfs and libsensors
was compiled with sysfs support!


swammi 10-16-2006 05:57 PM

also, I didn't mention that sys is mounted and populated...however, I do not know if libsensors was compiled with sysfs support. I used the install documentation with the .tar.

How can I check if there were some compilation errors with the sysfs install?

swammi 10-16-2006 11:31 PM

I followed the sysfsutils-2.1.0 INSTALL directions. But it appears that 1.3.0 is still installed...

Code:

[root@localhost sysfsutils-2.1.0]# yum list sysfs*
Loading "installonlyn" plugin
Setting up repositories
updates                                                              [1/3]
core                                                                [2/3]
extras                                                              [3/3]
Reading repository metadata in from local files
Installed Packages
sysfsutils.i386                          1.3.0-1.2.1            installed
sysfsutils-devel.i386                    1.3.0-1.2.1            installed

Unless I'm misinterpreting this, could this cause some issues with lm_sensors?

jaykayjamiroquai 11-30-2006 08:29 PM

Add this line to /etc/fstab

sysfs /sys sysfs defaults 0 0

Afterwards, mount /sys or reboot


All times are GMT -5. The time now is 04:21 AM.