How to Install lm_sensors on Ubuntu 16.04
How to Install lm_sensors on Ubuntu 16.04
The primary goal of the lm_sensors project is to provide the best and most complete hardware health monitoring drivers for Linux. This software can be used by users who wants to know the hardware health status of their machine. This project can also be used on high-end/unattended servers by setting it to monitor the hardware and email the administrator in the event of a problem, before it becomes critical. Unfortunately, the lm_sensors project can' t be pre-configured to work out-of-the-box because of the different hardware people use. Therefore, if you want to use it, you' ll need to configure to suit your system and hardware specs.
To install lm-sensors on a Ubuntu or Debian Linux
root@linuxhelp:~# apt-get install lm-sensors
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
fancontrol sensord read-edid i2c-tools
The following NEW packages will be installed:
lm-sensors
0 upgraded, 1 newly installed, 0 to remove and 450 not upgraded.
Need to get 85.3 kB of archives.
After this operation, 383 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 lm-sensors amd64 1:3.4.0-2 [85.3 kB]
Fetched 85.3 kB in 0s (91.0 kB/s)
Selecting previously unselected package lm-sensors.
(Reading database ... 173268 files and directories currently installed.)
Preparing to unpack .../lm-sensors_1%3a3.4.0-2_amd64.deb ...
Unpacking lm-sensors (1:3.4.0-2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu4) ...
Setting up lm-sensors (1:3.4.0-2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu4) ...
How to use to use lm-sensors on a Ubuntu or Debian?
Run the following command first time only and simply press ENTER to accept the defaults
root@linuxhelp:~# sensors-detect
# sensors-detect revision 6284 (2015-05-31 14:00:33 +0200)
# System: VMware, Inc. VMware Virtual Platform [None]
# Board: Intel Corporation 440BX Desktop Reference Platform
# Kernel: 4.4.0-21-generic x86_64
# Processor: Intel(R) Core(TM) i5-2310 CPU @ 2.90GHz (6/42/7)
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):
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... No
AMD Family 15h thermal sensors... No
AMD Family 16h thermal sensors... No
AMD Family 15h power sensors... No
AMD Family 16h power sensors... No
Intel digital thermal sensor... Success
(driver `coretemp' )
Intel AMB FB-DIMM thermal sensor... No
Intel 5500/5520/X58 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):
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE' ... Yes
Found unknown chip with ID 0x0f00
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE' ... No
Trying family `SMSC' ... No
Trying family `VIA/Winbond/Nuvoton/Fintek' ... No
Trying family `ITE' ... No
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):
Probing for `IPMI BMC KCS' at 0xca0... No
Probing for `IPMI BMC SMIC' at 0xca8... No
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):
Probing for `National Semiconductor LM78' at 0x290... No
Probing for `National Semiconductor LM79' at 0x290... No
Probing for `Winbond W83781D' at 0x290... No
Probing for `Winbond W83782D' at 0x290... No
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):
Using driver `i2c-piix4' for device 0000:00:07.3: Intel 82371AB PIIX4 ACPI
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `coretemp' :
* Chip `Intel digital thermal sensor' (confidence: 9)
To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
coretemp
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!
Do you want to add these lines automatically to /etc/modules? (yes/NO)
Unloading cpuid... OK
Simply run the following command to see CPU temp and fan speed and other data:
root@linuxhelp:~# sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +100.0° C (high = +100.0° C, crit = +100.0° C)
Core 0: +100.0° C (high = +100.0° C, crit = +100.0° C)
(or)
root@linuxhelp:~# sensors | egrep -i --color ' core|fan|temp'
coretemp-isa-0000
Core 0: +100.0° C (high = +100.0° C, crit = +100.0° C)
Comments ( 0 )
No comments available