lm_sensors

From Leo's Notes
Last edited on 14 June 2020, at 22:23.


Usage

Install lm_sensors and run sensors-detect. Once all adapters are found, use sensors to show all sensor values.


Troubleshooting

lm_sensors: sensors-detect finds a sensor but cannot load module

After installing lm_sensors and running sensors-detect, the following happens:

# sensors-detect
*omitting first part of sensors-detect output*

Now follows a summary of the probes I have just done.
Just press ENTER to continue: 

Driver `w83627hf':
  * ISA bus, address 0x290
    Chip `Winbond W83637HF/HG Super IO Sensors' (confidence: 9)

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): 
Starting lm_sensors: loading module w83627hf No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
[FAILED]

Unloading i2c-dev... OK

It is obvious that a sensor was found, but the module is not being loaded. Check dmesg to see if there is an ACPI conflict:

# dmesg | tail
w83627hf: Found W83637HF chip at 0x290
ACPI: I/O resource w83627hf [0x295-0x296] conflicts with ACPI region IP__ [0x295-0x296]
ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
i2c /dev entries driver
w83627hf: Found W83637HF chip at 0x290
ACPI: I/O resource w83627hf [0x295-0x296] conflicts with ACPI region IP__ [0x295-0x296]
ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
i2c /dev entries driver
w83627hf: Found W83637HF chip at 0x290
ACPI: I/O resource w83627hf [0x295-0x296] conflicts with ACPI region IP__ [0x295-0x296]
ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver

To resolve this issue, add acpi_enforce_resources=lax to the boot parameters:

hiddenmenu
title CentOS (2.6.32-71.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=75da8d80-9b93-4ea1-8f3c-0ce53b3b4d5c rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=us SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto acpi_enforce_resources=lax rhgb quiet
        initrd /initramfs-2.6.32-71.el6.x86_64.img