Установка lm-sensors на Ubuntu or Debian Linux для мониторинга скорости вентилятора и температуры процессора:
apt-get install lm-sensors
Пример вывода:
apt-get install lm-sensors Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово Будут установлены следующие дополнительные пакеты: libsensors4 Предлагаемые пакеты: fancontrol sensord read-edid i2c-tools НОВЫЕ пакеты, которые будут установлены: libsensors4 lm-sensors обновлено 0, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 161 kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 443 kB. Хотите продолжить? [Д/н] y Получено:1 http://mirror.yandex.ru/debian/ jessie/main libsensors4 amd64 1:3.3.5-2 [51,5 kB] Получено:2 http://mirror.yandex.ru/debian/ jessie/main lm-sensors amd64 1:3.3.5-2 [109 kB] Получено 161 kБ за 0с (432 kБ/c) Выбор ранее не выбранного пакета libsensors4:amd64. (Чтение базы данных … на данный момент установлено 31432 файла и каталога.) Подготовка к распаковке …/libsensors4_1%3a3.3.5-2_amd64.deb … Распаковывается libsensors4:amd64 (1:3.3.5-2) … Выбор ранее не выбранного пакета lm-sensors. Подготовка к распаковке …/lm-sensors_1%3a3.3.5-2_amd64.deb … Распаковывается lm-sensors (1:3.3.5-2) … Обрабатываются триггеры для systemd (215-17+deb8u5) … Обрабатываются триггеры для man-db (2.7.0.2-5) … Настраивается пакет libsensors4:amd64 (1:3.3.5-2) … Настраивается пакет lm-sensors (1:3.3.5-2) … Обрабатываются триггеры для libc-bin (2.19-18+deb8u6) … Обрабатываются триггеры для systemd (215-17+deb8u5) …
Chapter 1. Как начать использовать lm-sensors on a Ubuntu or Debian?
Выполните следующую команду и просто на все вопросы нажимайте Enter, чтобы принять значения по умолчанию:
sensors-detect
Пример вывода:
# sensors-detect revision 6209 (2014-01-14 22:51:58 +0100) # System: DEPO Computers X7DBR-8 [0123456789] # Board: Supermicro X7DBR-8 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 15h power sensors... No AMD Family 16h power sensors... No Intel digital thermal sensor... Success! (driver `coretemp') Intel AMB FB-DIMM thermal sensor... Success! (driver `i5k_amb') 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'... No Trying family `SMSC'... No Trying family `VIA/Winbond/Nuvoton/Fintek'... Yes Found `Winbond W83627HF/F/HG/G Super IO Sensors' Success! (address 0x295, driver `w83627hf') 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): Found `IPMI BMC Unknown'... Success! (confidence 8, driver `to-be-written') 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): 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-i801' for device 0000:00:1f.3: Intel Enterprise Southbridge - ESB2 Module i2c-dev loaded successfully. Next adapter: SMBus I801 adapter at 1100 (i2c-0) Do you want to scan it? (YES/no/selectively): Client found at address 0x2d Probing for `Myson MTP008'... No Probing for `National Semiconductor LM78'... No Probing for `National Semiconductor LM79'... No Probing for `National Semiconductor LM80'... No Probing for `National Semiconductor LM96080'... No Probing for `National Semiconductor LM85'... No Probing for `National Semiconductor LM96000 or PC8374L'... No Probing for `Analog Devices ADM1027'... No Probing for `Analog Devices ADT7460 or ADT7463'... No Probing for `SMSC EMC6D100 or EMC6D101'... No Probing for `SMSC EMC6D102'... No Probing for `SMSC EMC6D103'... No Probing for `SMSC EMC6D103S or EMC2300'... No Probing for `SMSC EMC6W201'... No Probing for `Winbond WPCD377I'... No Probing for `Analog Devices ADT7473'... No Probing for `Analog Devices ADT7476'... No Probing for `Analog Devices ADT7490'... No Probing for `Andigilog aSC7611'... No Probing for `Andigilog aSC7621'... No Probing for `National Semiconductor LM87'... No Probing for `Analog Devices ADM1024'... No Probing for `National Semiconductor LM93'... No Probing for `National Semiconductor LM94 or LM96194'... No Probing for `Winbond W83781D'... No Probing for `Winbond W83782D'... No Probing for `Winbond W83783S'... No Probing for `Winbond W83791D'... No Probing for `Winbond W83792D'... No Probing for `Winbond W83793R/G'... No Probing for `Nuvoton W83795G/ADG'... No Probing for `Winbond W83627HF'... Success! (confidence 8, driver `use-isa-instead', other addresses: 0x48 0x49) Probing for `Winbond W83627EHF'... No Probing for `Winbond W83627DHG/W83667HG/W83677HG'... No Probing for `Asus AS99127F (rev.1)'... No Probing for `Asus AS99127F (rev.2)'... No Probing for `Asus ASB100 Bach'... No Probing for `Winbond W83L784R/AR/G'... No Probing for `Winbond W83L785R/G'... No Probing for `Genesys Logic GL518SM'... No Probing for `Genesys Logic GL520SM'... No Probing for `Genesys Logic GL525SM'... No Probing for `Analog Devices ADM9240'... No Probing for `Dallas Semiconductor DS1780'... No Probing for `National Semiconductor LM81'... No Probing for `Analog Devices ADM1026'... No Probing for `Analog Devices ADM1025'... No Probing for `Philips NE1619'... No Probing for `Texas Instruments AMC6821'... No Probing for `Analog Devices ADM1029'... No Probing for `Analog Devices ADM1030'... No Probing for `Analog Devices ADM1031'... No Probing for `Analog Devices ADM1022'... No Probing for `Texas Instruments THMC50'... No Probing for `VIA VT1211 (I2C)'... No Probing for `ITE IT8712F'... No Probing for `ALi M5879'... No Probing for `SMSC LPC47M15x/192/292/997'... No Probing for `SMSC DME1737'... No Probing for `SMSC SCH5027D-NW'... No Probing for `Fintek F75373S/SG'... No Probing for `Fintek F75375S/SP'... No Probing for `Fintek F75387SG/RG'... No Probing for `Winbond W83791SD'... No Client found at address 0x2f Probing for `National Semiconductor LM78'... No Probing for `National Semiconductor LM79'... No Probing for `National Semiconductor LM80'... No Probing for `National Semiconductor LM96080'... No Probing for `Analog Devices ADT7470'... No Probing for `Winbond W83781D'... No Probing for `Winbond W83782D'... No Probing for `Winbond W83791D'... No Probing for `Winbond W83792D'... No Probing for `Winbond W83793R/G'... Success! (confidence 8, driver `w83793') Probing for `Nuvoton W83795G/ADG'... No Probing for `Winbond W83627HF'... No Probing for `Winbond W83627EHF'... No Probing for `Winbond W83627DHG/W83667HG/W83677HG'... No Probing for `Asus AS99127F (rev.1)'... No Probing for `Asus AS99127F (rev.2)'... No Probing for `Asus ASB100 Bach'... No Probing for `Winbond W83L786NR/NG/R/G'... No Probing for `Analog Devices ADM9240'... No Probing for `Dallas Semiconductor DS1780'... No Probing for `National Semiconductor LM81'... No Probing for `Maxim MAX6639'... No Probing for `Analog Devices ADM1029'... No Probing for `ITE IT8712F'... No Probing for `SMSC EMC2104'... No Probing for `Fintek custom power control IC'... No Probing for `Winbond W83791SD'... No Client found at address 0x48 Probing for `National Semiconductor LM75'... No Probing for `National Semiconductor LM75A'... No Probing for `Dallas Semiconductor DS75'... No Probing for `National Semiconductor LM77'... No Probing for `Analog Devices ADT7410/ADT7420'... No Probing for `Analog Devices ADT7411'... No Probing for `Maxim MAX6642'... No Probing for `National Semiconductor LM73'... No Probing for `National Semiconductor LM92'... No Probing for `National Semiconductor LM76'... No Probing for `Maxim MAX6633/MAX6634/MAX6635'... No Probing for `NXP/Philips SA56004'... No Probing for `SMSC EMC1023'... No Probing for `SMSC EMC1043'... No Probing for `SMSC EMC1053'... No Probing for `SMSC EMC1063'... No Client found at address 0x49 Probing for `National Semiconductor LM75'... No Probing for `National Semiconductor LM75A'... No Probing for `Dallas Semiconductor DS75'... No Probing for `National Semiconductor LM77'... No Probing for `Analog Devices ADT7410/ADT7420'... No Probing for `Maxim MAX6642'... No Probing for `National Semiconductor LM73'... No Probing for `National Semiconductor LM92'... No Probing for `National Semiconductor LM76'... No Probing for `Maxim MAX6633/MAX6634/MAX6635'... No Probing for `NXP/Philips SA56004'... No Probing for `SMSC EMC1023'... No Probing for `SMSC EMC1043'... No Probing for `SMSC EMC1053'... No Probing for `SMSC EMC1063'... No Next adapter: Radeon i2c bit bus DVI_DDC (i2c-1) Do you want to scan it? (yes/NO/selectively): Next adapter: Radeon i2c bit bus VGA_DDC (i2c-2) Do you want to scan it? (yes/NO/selectively): Next adapter: Radeon i2c bit bus MONID (i2c-3) Do you want to scan it? (yes/NO/selectively): Next adapter: Radeon i2c bit bus CRT2_DDC (i2c-4) Do you want to scan it? (yes/NO/selectively): Now follows a summary of the probes I have just done. Just press ENTER to continue: Driver `w83793': * Bus `SMBus I801 adapter at 1100' Busdriver `i2c_i801', I2C address 0x2f Chip `Winbond W83793R/G' (confidence: 8) Driver `coretemp': * Chip `Intel digital thermal sensor' (confidence: 9) Driver `i5k_amb': * Chip `Intel AMB FB-DIMM thermal sensor' (confidence: 9) Driver `w83627hf': * ISA bus, address 0x295 Chip `Winbond W83627HF/F/HG/G Super IO Sensors' (confidence: 9) Driver `to-be-written': * ISA bus Chip `IPMI BMC Unknown' (confidence: 8) Note: there is no driver for IPMI BMC Unknown yet. Check http://www.lm-sensors.org/wiki/Devices for updates. To load everything that is needed, add this to /etc/modules: #----cut here---- # Chip drivers coretemp i5k_amb w83627hf w83793 #----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)y Successful! Monitoring programs won't work until the needed modules are loaded. You may want to run '/etc/init.d/kmod start' to load them. Unloading i2c-dev... OK Unloading cpuid... OK
Просто выполните следующую команду, чтобы проверить температуры процессора и скорости вращения вентилятора и другие данные:
sensors
Вывод:
i5k_amb-isa-0000 Adapter: ISA adapter Ch. 0 DIMM 0: +79.0°C (low = +127.5°C, high = +127.5°C) Ch. 0 DIMM 1: +77.5°C (low = +127.5°C, high = +127.5°C) Ch. 1 DIMM 0: +81.5°C (low = +127.5°C, high = +127.5°C) Ch. 1 DIMM 1: +62.0°C (low = +127.5°C, high = +127.5°C) Ch. 2 DIMM 0: +71.5°C (low = +127.5°C, high = +127.5°C) Ch. 3 DIMM 0: +66.5°C (low = +127.5°C, high = +127.5°C) coretemp-isa-0000 Adapter: ISA adapter Core 0: +46.0°C (high = +86.0°C, crit = +100.0°C) Core 1: +48.0°C (high = +86.0°C, crit = +100.0°C) Core 2: +50.0°C (high = +86.0°C, crit = +100.0°C) Core 3: +48.0°C (high = +86.0°C, crit = +100.0°C) coretemp-isa-0001 Adapter: ISA adapter Core 0: +48.0°C (high = +86.0°C, crit = +100.0°C) Core 1: +48.0°C (high = +86.0°C, crit = +100.0°C) Core 2: +44.0°C (high = +86.0°C, crit = +100.0°C) Core 3: +45.0°C (high = +86.0°C, crit = +100.0°C)
или можно вывести с сортировкой и подсветкой красным цветом найденных параметров
sensors | egrep -i --color 'core|fan|temp'
coretemp-isa-0000 Core 0: +39.0°C (high = +86.0°C, crit = +100.0°C) Core 1: +40.0°C (high = +86.0°C, crit = +100.0°C) Core 2: +35.0°C (high = +86.0°C, crit = +100.0°C) Core 3: +42.0°C (high = +86.0°C, crit = +100.0°C) coretemp-isa-0001 Core 0: +43.0°C (high = +86.0°C, crit = +100.0°C) Core 1: +43.0°C (high = +86.0°C, crit = +100.0°C) Core 2: +38.0°C (high = +86.0°C, crit = +100.0°C) Core 3: +40.0°C (high = +86.0°C, crit = +100.0°C)
у меня результат вывода:
soc_dts1-virtual-0
Adapter: Virtual device
temp1: +38.0°C
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +37.0°C (high = +105.0°C, crit = +105.0°C)
Core 1: +37.0°C (high = +105.0°C, crit = +105.0°C)
soc_dts0-virtual-0
Adapter: Virtual device
temp1: +36.0°C
В каком файле хранятся настройки sensors, чтобы правильно подписать устройства?