Код: Выделить всё
olej@ESPRIMO:~$ xsensors
Код: Выделить всё
olej@ESPRIMO:~$ xsensors
Во-первых, этот предмет хорошо известен закоренелым пользователям Windows ... поскольку в Windows железо нагружается так, что всё кипит, и забота эта общеизвестна.
Только ... не всё там соответствует действительности ... или многое очень различается в зависимости от типа используемого дистрибутива ... у автора там, судя по картинке, Ubuntu с Gnome:Обновлено: 1 октября, 2021
Код: Выделить всё
olej@ESPRIMO:/sys/class/hwmon/hwmon2$ aptitude search fancontrol
p fancontrol - управление скоростью вентиляторов
olej@ESPRIMO:/sys/class/hwmon/hwmon2$ sudo apt install fancontrol
[sudo] пароль для olej:
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Следующие НОВЫЕ пакеты будут установлены:
fancontrol
Обновлено 0 пакетов, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 19 пакетов не обновлено.
Необходимо скачать 22,2 kB архивов.
После данной операции объём занятого дискового пространства возрастёт на 96,3 kB.
Пол:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 fancontrol all 1:3.6.0-2ubuntu1 [22,2 kB]
Получено 22,2 kB за 0с (114 kB/s)
Выбор ранее не выбранного пакета fancontrol.
(Чтение базы данных … на данный момент установлено 392469 файлов и каталогов.)
Подготовка к распаковке …/fancontrol_1%3a3.6.0-2ubuntu1_all.deb …
Распаковывается fancontrol (1:3.6.0-2ubuntu1) …
Настраивается пакет fancontrol (1:3.6.0-2ubuntu1) …
Created symlink /etc/systemd/system/multi-user.target.wants/fancontrol.service → /lib/systemd/system/fancontrol.service.
Обрабатываются триггеры для man-db (2.9.1-1) …
Обрабатываются триггеры для systemd (245.4-4ubuntu3.15) …
Код: Выделить всё
olej@ESPRIMO:/sys/class/hwmon/hwmon2$ which fancontrol
/usr/sbin/fancontrol
olej@ESPRIMO:/sys/class/hwmon/hwmon2$ which pwmconfig
/usr/sbin/pwmconfig
Код: Выделить всё
olej@ESPRIMO:/sys/class/hwmon/hwmon2$ sudo pwmconfig
# pwmconfig version 3.6.0
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.
We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.
/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed
Дописываю:Возможные проблемы
Только для 9.10 и выше. Если сенсоры не работают то:
Выполните в терминале:
sudo gedit /etc/default/grub
В открывшемся окне добавляем или изменяем строку:
GRUB_CMDLINE_LINUX="acpi_enforce_resources=lax"
Сохраняем файл и закрываем окно.
Затем в терминале выполняем:
sudo update-grub2
Перезагружаемся и заново устанавливаем сенсоры.
Код: Выделить всё
root@ESPRIMO:/boot# cd /etc/default/
root@ESPRIMO:/etc/default# cat grub | grep GRUB_CMDLINE_LINUX
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_LINUX="acpi_enforce_resources=lax"
Код: Выделить всё
root@ESPRIMO:/etc/default# update-grub2
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Генерируется файл настройки grub …
Найден образ linux: /boot/vmlinuz-5.4.0-97-generic
Найден образ initrd: /boot/initrd.img-5.4.0-97-generic
Найден образ linux: /boot/vmlinuz-5.4.0-96-generic
Найден образ initrd: /boot/initrd.img-5.4.0-96-generic
Найден образ linux: /boot/vmlinuz-5.4.0-94-generic
Найден образ initrd: /boot/initrd.img-5.4.0-94-generic
Найден образ linux: /boot/vmlinuz-5.4.0-92-generic
Найден образ initrd: /boot/initrd.img-5.4.0-92-generic
Найден образ linux: /boot/vmlinuz-5.4.0-91-generic
Найден образ initrd: /boot/initrd.img-5.4.0-91-generic
File descriptor 5 (pipe:[372870]) leaked on lvs invocation. Parent PID 37288: /bin/sh
File descriptor 6 (pipe:[372870]) leaked on lvs invocation. Parent PID 37288: /bin/sh
File descriptor 10 (pipe:[372873]) leaked on lvs invocation. Parent PID 37288: /bin/sh
завершено
Код: Выделить всё
olej@ESPRIMO:/boot/grub$ cat grub.cfg | grep splash
linux /boot/vmlinuz-5.4.0-97-generic root=UUID=b7603c4a-181f-4dc7-b894-3806abe89ec6 ro acpi_enforce_resources=lax quiet splash $vt_handoff
linux /boot/vmlinuz-5.4.0-97-generic root=UUID=b7603c4a-181f-4dc7-b894-3806abe89ec6 ro acpi_enforce_resources=lax quiet splash $vt_handoff
linux /boot/vmlinuz-5.4.0-96-generic root=UUID=b7603c4a-181f-4dc7-b894-3806abe89ec6 ro acpi_enforce_resources=lax quiet splash $vt_handoff
linux /boot/vmlinuz-5.4.0-94-generic root=UUID=b7603c4a-181f-4dc7-b894-3806abe89ec6 ro acpi_enforce_resources=lax quiet splash $vt_handoff
linux /boot/vmlinuz-5.4.0-92-generic root=UUID=b7603c4a-181f-4dc7-b894-3806abe89ec6 ro acpi_enforce_resources=lax quiet splash $vt_handoff
linux /boot/vmlinuz-5.4.0-91-generic root=UUID=b7603c4a-181f-4dc7-b894-3806abe89ec6 ro acpi_enforce_resources=lax quiet splash $vt_handoff
Код: Выделить всё
olej@ESPRIMO:~$ sudo sensors-detect
...
Found `Nuvoton W83667HG-B (NCT5571D) Super IO Sensors' Success!
(address 0xa00, driver `w83627ehf')
...
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `w83627ehf':
* ISA bus, address 0xa00
Chip `Nuvoton W83667HG-B (NCT5571D) Super IO Sensors' (confidence: 9)
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
w83627ehf
#----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)yes
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 cpuid... OK
Код: Выделить всё
olej@ESPRIMO:~$ sudo pwmconfig
[sudo] пароль для olej:
# pwmconfig version 3.6.0
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.
We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.
/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed
Код: Выделить всё
olej@ESPRIMO:~$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Generated by sensors-detect on Sat Feb 5 14:03:16 2022
# Chip drivers
coretemp
w83627ehf
Код: Выделить всё
olej@ESPRIMO:~$ lsmod | grep "coretemp"
coretemp 20480 0
olej@ESPRIMO:~$ lsmod | grep "w83627ehf"
olej@ESPRIMO:~$
olej@ESPRIMO:~$ sudo modprobe w83627ehf
[sudo] пароль для olej:
olej@ESPRIMO:~$ echo $?
0
olej@ESPRIMO:~$ lsmod | grep "w83627ehf"
w83627ehf 49152 0
hwmon_vid 16384 1 w83627ehf
Код: Выделить всё
olej@ESPRIMO:~$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +86.0°C (high = +80.0°C, crit = +100.0°C)
Core 0: +85.0°C (high = +80.0°C, crit = +100.0°C)
Core 1: +87.0°C (high = +80.0°C, crit = +100.0°C)
Core 2: +86.0°C (high = +80.0°C, crit = +100.0°C)
Core 3: +79.0°C (high = +80.0°C, crit = +100.0°C)
acpitz-acpi-0
Adapter: ACPI interface
temp1: +27.8°C (crit = +105.0°C)
temp2: +29.8°C (crit = +105.0°C)
w83667hg-isa-0a00
Adapter: ISA adapter
Vcore: 0.00 V (min = +0.00 V, max = +1.74 V)
in1: 0.00 V (min = +1.70 V, max = +0.17 V) ALARM
AVCC: 3.42 V (min = +0.93 V, max = +0.94 V) ALARM
+3.3V: 3.41 V (min = +1.97 V, max = +3.55 V)
in4: 0.00 V (min = +0.02 V, max = +0.26 V) ALARM
in5: 0.00 V (min = +0.86 V, max = +1.69 V) ALARM
in6: 200.00 mV (min = +1.02 V, max = +0.44 V) ALARM
3VSB: 3.42 V (min = +1.54 V, max = +0.03 V) ALARM
Vbat: 3.33 V (min = +1.20 V, max = +3.12 V) ALARM
fan1: 0 RPM (min = 397 RPM, div = 64) ALARM
fan2: 1962 RPM (min = 897 RPM, div = 16)
fan3: 0 RPM (min = 4218 RPM, div = 64) ALARM
fan4: 0 RPM (min = 680 RPM, div = 32) ALARM
fan5: 0 RPM (min = 4687 RPM, div = 32) ALARM
AUXTIN: +43.0°C (high = -1.0°C, hyst = -57.0°C) sensor = CPU diode
PECI Agent 1: +86.0°C (high = -0.5°C, hyst = +75.0°C) ALARM sensor = Intel PECI
SYSTIN: -128.0°C (high = -0.5°C, hyst = +75.0°C) sensor = CPU diode
cpu0_vid: +0.000 V
intrusion0: ALARM
pch_haswell-virtual-0
Adapter: Virtual device
temp1: +55.0°C
Код: Выделить всё
olej@ESPRIMO:~/2022$ ls -l /sys/class/hwmon/hwmon*
lrwxrwxrwx 1 root root 0 фев 5 13:47 /sys/class/hwmon/hwmon0 -> ../../devices/virtual/thermal/thermal_zone0/hwmon0
lrwxrwxrwx 1 root root 0 фев 5 13:47 /sys/class/hwmon/hwmon1 -> ../../devices/virtual/thermal/thermal_zone2/hwmon1
lrwxrwxrwx 1 root root 0 фев 5 13:47 /sys/class/hwmon/hwmon2 -> ../../devices/platform/coretemp.0/hwmon/hwmon2
lrwxrwxrwx 1 root root 0 фев 5 14:08 /sys/class/hwmon/hwmon3 -> ../../devices/platform/w83627ehf.2560/hwmon/hwmon3
Код: Выделить всё
olej@ESPRIMO:~$ sudo pwmconfig
# pwmconfig version 3.6.0
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.
We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.
Found the following devices:
hwmon0 is acpitz
hwmon1 is pch_haswell
hwmon2 is coretemp
hwmon3/device is w83667hg
Found the following PWM controls:
hwmon3/device/pwm1 current value: 75
hwmon3/device/pwm1 is currently setup for automatic speed control.
In general, automatic mode is preferred over manual mode, as
it is more efficient and it reacts faster. Are you sure that
you want to setup this output for manual control? (n)
Меня пока интересует ручное управление, чтобы посмотреть (послушать) как шум конкретного кулера зависит оборотов, и как температура зависит от оборотов....
Код: Выделить всё
olej@ESPRIMO:~$ ls /sys/class/hwmon
hwmon0 hwmon1 hwmon2 hwmon3
Код: Выделить всё
olej@ESPRIMO:~$ cat /sys/class/hwmon/hwmon*/name
acpitz
pch_haswell
coretemp
Код: Выделить всё
olej@ESPRIMO:~$ cat /sys/class/hwmon/hwmon2/temp*_label
Package id 0
Core 0
Core 1
Core 2
Core 3
Код: Выделить всё
olej@ESPRIMO:~$ ls /sys/class/hwmon/hwmon2/temp1_*
/sys/class/hwmon/hwmon2/temp1_crit /sys/class/hwmon/hwmon2/temp1_input /sys/class/hwmon/hwmon2/temp1_max
/sys/class/hwmon/hwmon2/temp1_crit_alarm /sys/class/hwmon/hwmon2/temp1_label
olej@ESPRIMO:~$ cat /sys/class/hwmon/hwmon2/temp1_input
75000
А зона ответственная за управление кулерами:
Код: Выделить всё
olej@ESPRIMO:~$ ls /sys/class/hwmon/hwmon3/device/ | grep pwm
pwm1
pwm1_enable
pwm1_max_output
pwm1_mode
pwm1_start_output
pwm1_step_output
pwm1_stop_output
pwm1_stop_time
pwm1_target
pwm1_tolerance
pwm2
pwm2_enable
pwm2_max_output
pwm2_mode
pwm2_start_output
pwm2_step_output
pwm2_stop_output
pwm2_stop_time
pwm2_target
pwm2_tolerance
pwm3
pwm3_enable
pwm3_max_output
pwm3_mode
pwm3_start_output
pwm3_step_output
pwm3_stop_output
pwm3_stop_time
pwm3_target
pwm3_tolerance
Код: Выделить всё
olej@ESPRIMO:/sys/class/hwmon$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +75.0°C (high = +80.0°C, crit = +100.0°C)
Core 0: +73.0°C (high = +80.0°C, crit = +100.0°C)
Core 1: +74.0°C (high = +80.0°C, crit = +100.0°C)
Core 2: +75.0°C (high = +80.0°C, crit = +100.0°C)
Core 3: +69.0°C (high = +80.0°C, crit = +100.0°C)
acpitz-acpi-0
Adapter: ACPI interface
temp1: +27.8°C (crit = +105.0°C)
temp2: +29.8°C (crit = +105.0°C)
w83667hg-isa-0a00
Adapter: ISA adapter
Vcore: 0.00 V (min = +0.00 V, max = +1.74 V)
in1: 0.00 V (min = +1.70 V, max = +0.17 V) ALARM
AVCC: 3.42 V (min = +0.93 V, max = +0.94 V) ALARM
+3.3V: 3.42 V (min = +1.97 V, max = +3.55 V)
in4: 0.00 V (min = +0.02 V, max = +0.26 V) ALARM
in5: 0.00 V (min = +0.86 V, max = +1.69 V) ALARM
in6: 200.00 mV (min = +1.02 V, max = +0.44 V) ALARM
3VSB: 3.42 V (min = +1.54 V, max = +0.03 V) ALARM
Vbat: 3.33 V (min = +1.20 V, max = +3.12 V) ALARM
fan1: 0 RPM (min = 405 RPM, div = 128) ALARM
fan2: 3013 RPM (min = 897 RPM, div = 16)
fan3: 0 RPM (min = 5273 RPM, div = 128) ALARM
fan4: 0 RPM (min = 703 RPM, div = 128) ALARM
fan5: 0 RPM (min = 5273 RPM, div = 128) ALARM
AUXTIN: +41.0°C (high = -1.0°C, hyst = -57.0°C) sensor = CPU diode
PECI Agent 1: +75.0°C (high = -0.5°C, hyst = +75.0°C) ALARM sensor = Intel PECI
SYSTIN: -128.0°C (high = -0.5°C, hyst = +75.0°C) sensor = CPU diode
cpu0_vid: +0.000 V
intrusion0: ALARM
pch_haswell-virtual-0
Adapter: Virtual device
temp1: +54.5°C
Дальше совсем просто :
Код: Выделить всё
olej@ESPRIMO:~$ uptime
15:36:42 up 1:49, 1 user, load average: 0,07, 0,08, 0,38
Код: Выделить всё
olej@ESPRIMO:/sys/class/hwmon$ sudo systemctl stop fancontrol
olej@ESPRIMO:/sys/class/hwmon$
Код: Выделить всё
root@ESPRIMO:/sys/class/hwmon/hwmon2# echo 1 >>/sys/class/hwmon/hwmon3/device/pwm2_enable
root@ESPRIMO:/sys/class/hwmon/hwmon2# cat /sys/class/hwmon/hwmon3/device/pwm2_enable
1
Код: Выделить всё
root@ESPRIMO:/sys/class/hwmon/hwmon2# echo 127 > /sys/class/hwmon/hwmon3/device/pwm2
root@ESPRIMO:/sys/class/hwmon/hwmon2# cat /sys/class/hwmon/hwmon3/device/pwm2
0
root@ESPRIMO:/sys/class/hwmon/hwmon2# cat /sys/class/hwmon/hwmon3/device/fan2_input
843
root@ESPRIMO:/sys/class/hwmon/hwmon2# cat /sys/class/hwmon/hwmon2/temp1_input
31000
Код: Выделить всё
root@ESPRIMO:/sys/class/hwmon/hwmon2# echo 255 > /sys/class/hwmon/hwmon3/device/pwm2
root@ESPRIMO:/sys/class/hwmon/hwmon2# cat /sys/class/hwmon/hwmon3/device/pwm2
255
olej@ESPRIMO:/etc$ cat /sys/class/hwmon/hwmon3/device/fan2_input
4017
olej@ESPRIMO:/etc$ cat /sys/class/hwmon/hwmon2/temp1_input
29000
Код: Выделить всё
root@ESPRIMO:/sys/class/hwmon/hwmon2# echo 127 > /sys/class/hwmon/hwmon3/device/pwm2
root@ESPRIMO:/sys/class/hwmon/hwmon2# cat /sys/class/hwmon/hwmon3/device/pwm2
127
olej@ESPRIMO:/etc$ cat /sys/class/hwmon/hwmon3/device/fan2_input
1721
olej@ESPRIMO:/etc$ cat /sys/class/hwmon/hwmon2/temp1_input
29000
Код: Выделить всё
root@ESPRIMO:/sys/class/hwmon/hwmon2# echo 200 > /sys/class/hwmon/hwmon3/device/pwm2
root@ESPRIMO:/sys/class/hwmon/hwmon2# cat /sys/class/hwmon/hwmon3/device/pwm2
200
olej@ESPRIMO:/etc$ cat /sys/class/hwmon/hwmon2/temp1_input
28000
olej@ESPRIMO:/etc$ cat /sys/class/hwmon/hwmon3/device/fan2_input
3245
Сейчас этот форум просматривают: нет зарегистрированных пользователей и 9 гостей