lm_sensors bugs
There are few bugs with lm_sensors in stable (see below the log output), firstly after installing the lm_sensors and sensors-detect, you can’t actually use sensors-detect i got in that log message “No i2c device files found.” ; after reboot sensors-detect did worked, but there are new log info “/dev/port: No such file or directory” on almost every sensors-detect question, and at the end unloading from i2c-dev did not worked “Unloading i2c-dev… failed” , then as user typing sensors give you this error “sensors_init: Kernel interface error”, which I though I did not start the services, but if I try to start it, I’ll get this message “/etc/conf.d/lm_sensors does not exist, try running sensors-detect” so seems there are some more stuff to fix there.
[[apu4c:~# apk add sysfsutils lm_sensors perl lm_sensors-detect
(1/4) Installing sysfsutils (2.1.0-r8)
(2/4) Installing lm_sensors (3.3.5-r5)
(3/4) Installing perl (5.20.2-r0)
(4/4) Installing lm_sensors-detect (3.3.5-r5)
Executing busybox-1.23.2-r0.trigger
OK: 271 MiB in 52 packages
apu4c:~# sensors-detect
No i2c device files found.
apu4c:~# reboot
apu4c:$ sensors-detect$ sudo su -
You need to be root to run this script.
apu4c:
apu4c:~# sensors-detect
- sensors-detect revision 6209 (2014-01-14 22:51:58 +0100)
- System: PC Engines APU [1.0]
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.
Some south bridges, CPUs or memory controllers contain embedded
sensors.
Do you want to scan for them? This is totally safe. (YES/no): yes
Module cpuid loaded successfully.
Silicon Integrated Systems SIS5595… No
VIA VT82C686 Integrated Sensors… No
VIA VT8231 Integrated Sensors… No
AMD K8 thermal sensors… No
AMD Family 10h thermal sensors… No
AMD Family 11h thermal sensors… No
AMD Family 12h and 14h thermal sensors… Success!
(driver `k10temp’)
AMD Family 15h thermal sensors… No
AMD Family 15h power sensors… No
AMD Family 16h power sensors… No
Intel digital thermal sensor… No
Intel AMB FB-DIMM thermal sensor… No
VIA C7 thermal sensor… No
VIA Nano thermal sensor… No
Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): yes
/dev/port: No such file or directory
Some systems (mainly servers) implement IPMI, a set of common
interfaces
through which system health data may be retrieved, amongst other
things.
We first try to get the information from SMBIOS. If we don’t find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no): yes
- DMI data unavailable, please consider installing dmidecode 2.7
- or later for better results.
/dev/port: No such file or directory
Some hardware monitoring chips are accessible through the ISA I/O
ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have
any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no): yes
/dev/port: No such file or directory
Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): yes
Using driver `i2c-piix4’ for device 0000:00:14.0: ATI Technologies Inc
SB600/SB700/SB800 SMBus
Module i2c-dev loaded successfully.
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `k10temp’:
* Chip `AMD Family 12h and 14h thermal sensors’ (confidence: 9)
Do you want to generate /etc/modules-load.d/lm_sensors.conf? (yes/NO):
yes
You should now start the lm_sensors service to load the required
kernel modules.
Unloading i2c-dev… failed
Unloading cpuid… OK
apu4c:~#
apu4c:$ sensors$ sudo /etc/init.d/lm_sensors start
sensors_init: Kernel interface error
apu4c:
* /etc/conf.d/lm_sensors does not exist, try running sensors-detect
* ERROR: lm_sensors failed to start
apu4c:$ sudo /etc/init.d/lm_sensors start$ sudo su -
apu4c:
apu4c:~# sensors
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +58.0°C (high = +70.0°C)
(crit = +100.0°C, hyst = +97.0°C)
apu4c:~# /etc/init.d/lm_sensors start
* /etc/conf.d/lm_sensors does not exist, try running sensors-detect
* ERROR: lm_sensors failed to start
apu4c:~#]]
(from redmine: issue id 4657, created on 2015-09-25)