настройка lm_sensors и pwmconfig (trisquelgnulinux)

Kubuntu, Xubuntu и другие

Модератор: Модераторы разделов

Ответить
Аватара пользователя
shevan
Сообщения: 992
ОС: Debian, Puppy

настройка lm_sensors и pwmconfig

Сообщение shevan »

Код: Выделить всё

uname -a
Linux trisquel 2.6.38-12-generic #0trisquel1 SMP Tue Oct 25 15:17:30 UTC 2011 i686 athlon i386 GNU/Linux


Код: Выделить всё

aptitude show lm-sensors
Пакет: lm-sensors
Состояние: установлен
...
Версия: 1:3.2.0-1ubuntu1


Код: Выделить всё

sudo sensors-detect
# sensors-detect revision 5861 (2010-09-21 17:21:05 +0200)
# System: BIOSTAR Group A780L3L

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...                           Success!
    (driver `k10temp')
AMD Family 11h thermal 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):
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      Yes
Found `ITE IT8721F/IT8758E Super IO Sensors'                Success!
    (address 0xe80, driver `to-be-written')
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor'...                   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): YES
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:14.0: ATI Technologies Inc SB600/SB700/SB800 SMBus

Next adapter: Radeon i2c bit bus 0x90 (i2c-0)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x50
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 No
Probing for `EDID EEPROM'...                                Yes
    (confidence 8, not a hardware monitoring chip)

Next adapter: Radeon i2c bit bus 0x91 (i2c-1)
Do you want to scan it? (YES/no/selectively):

Next adapter: Radeon i2c bit bus 0x92 (i2c-2)
Do you want to scan it? (YES/no/selectively):

Next adapter: Radeon i2c bit bus 0x93 (i2c-3)
Do you want to scan it? (YES/no/selectively):

Next adapter: Radeon i2c bit bus 0x14 (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 `to-be-written':
  * ISA bus, address 0xe80
    Chip `ITE IT8721F/IT8758E Super IO Sensors' (confidence: 9)

Driver `k10temp' (autoloaded):
  * Chip `AMD Family 10h thermal sensors' (confidence: 9)

Note: there is no driver for ITE IT8721F/IT8758E Super IO Sensors yet.
Check http://www.lm-sensors.org/wiki/Devices for updates.

No modules to load, skipping modules configuration.

Unloading cpuid... OK

вижу строку Driver `to-be-written':

Далее пробую более новую версию sensors-detect
cd /tmp
wget http://www.lm-sensors.org/svn/lm-sensors/t.../sensors-detect
perl sensors-detect

Код: Выделить всё

# sensors-detect revision $Revision$
# System: BIOSTAR Group A780L3L

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...                           Success!
    (driver `k10temp')
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
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):
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      Yes
Found `ITE IT8721F/IT8758E Super IO Sensors'                Success!
    (address 0xe80, driver `it87')
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):

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:14.0: ATI Technologies Inc SB600/SB700/SB800 SMBus

Next adapter: Radeon i2c bit bus 0x90 (i2c-0)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x50
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 No
Probing for `EDID EEPROM'...                                Yes
    (confidence 8, not a hardware monitoring chip)

Next adapter: Radeon i2c bit bus 0x91 (i2c-1)
Do you want to scan it? (YES/no/selectively):

Next adapter: Radeon i2c bit bus 0x92 (i2c-2)
Do you want to scan it? (YES/no/selectively):

Next adapter: Radeon i2c bit bus 0x93 (i2c-3)
Do you want to scan it? (YES/no/selectively):

Next adapter: Radeon i2c bit bus 0x14 (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 `it87':
  * ISA bus, address 0xe80
    Chip `ITE IT8721F/IT8758E Super IO Sensors' (confidence: 9)

Driver `k10temp' (autoloaded):
  * Chip `AMD Family 10h thermal sensors' (confidence: 9)

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no):
Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors
for initialization at boot time.
You should now start the lm_sensors service to load the required
kernel modules.

Unloading cpuid... OK


init скрипт, который идет от дистрибутива стартовал
Он по ходу должен был загрузить модули
Вручную модуль

Код: Выделить всё

sudo modprobe it87
FATAL: Error inserting it87 (/lib/modules/2.6.38-12-generic/kernel/drivers/hwmon/it87.ko): Device or resource busy


pwmconfig выводит

Код: Выделить всё

/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed


sensors

Код: Выделить всё

acpitz-virtual-0
Adapter: Virtual device
temp1:       +14.0°C  (crit = +127.0°C)

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +4.5°C  (high = +70.0°C)


В арче с полпинка завелось, правда там и ядро новее.
Я думаю что с этим ядром должно работать и ошибка в другом.
В чём может быть?
Спасибо сказали:
Аватара пользователя
shevan
Сообщения: 992
ОС: Debian, Puppy

Re: настройка lm_sensors и pwmconfig

Сообщение shevan »

драйвер it87 не грузился из-за конфликта с ACPI
Добавил параметр к ядру в /etc/default/grub
GRUB_CMDLINE_LINUX="acpi_enforce_resources=lax"

Теперь модуль грузится, сенсоры отображаются, и соответственно pwmconfig настраивается

Код: Выделить всё

sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:       +13.0°C  (crit = +127.0°C)

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +4.5°C  (high = +70.0°C)

it8721-isa-0e80
Adapter: ISA adapter
in0:         +3.00 V  (min =  +0.00 V, max =  +3.06 V)
in1:         +2.94 V  (min =  +0.00 V, max =  +3.06 V)
in2:         +1.42 V  (min =  +0.00 V, max =  +3.06 V)
+3.3V:       +3.41 V  (min =  +0.00 V, max =  +6.12 V)
in4:         +1.21 V  (min =  +0.00 V, max =  +3.06 V)
in5:         +1.58 V  (min =  +0.00 V, max =  +3.06 V)
in6:         +1.21 V  (min =  +0.00 V, max =  +3.06 V)
3VSB:        +3.31 V  (min =  +0.00 V, max =  +6.12 V)
Vbat:        +3.34 V
fan1:       2129 RPM  (min =   16 RPM)
fan2:          0 RPM  (min =   96 RPM)  ALARM
fan3:          0 RPM  (min =   63 RPM)  ALARM
temp1:       +13.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermal diode
temp2:      +108.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermal diode
temp3:       +17.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermal diode


Часть вывода из pwmconfig

Код: Выделить всё

Devices:
hwmon0 is acpitz
hwmon1/device is k10temp
hwmon2/device is it8721

Current temperature readings are as follows:
hwmon0/temp1_input    12
hwmon1/device/temp1_input    2
hwmon2/device/temp1_input    12
hwmon2/device/temp2_input    107
hwmon2/device/temp3_input    17

Select a temperature sensor as source for hwmon2/device/pwm1:
1) hwmon0/temp1_input
2) hwmon1/device/temp1_input
3) hwmon2/device/temp1_input
4) hwmon2/device/temp2_input
5) hwmon2/device/temp3_input
6) None (Do not affect this PWM output)


и файл /etc/fancontrol

Код: Выделить всё

INTERVAL=10
DEVPATH=hwmon2=devices/platform/it87.3712
DEVNAME=hwmon2=it8721
FCTEMPS= hwmon2/device/pwm1=hwmon2/device/temp1_input
FCFANS= hwmon2/device/pwm1=hwmon2/device/fan1_input
MINTEMP= hwmon2/device/pwm1=20
MAXTEMP= hwmon2/device/pwm1=60
MINSTART= hwmon2/device/pwm1=150
MINSTOP= hwmon2/device/pwm1=100


По идее, должен быть правильным
Только запуск sudo fancontrol & никак не повлиял на обороты
Я правильно вроде настроил?


апдейт.

Запустил инит скриптом

Код: Выделить всё

sudo /etc/init.d/fancontrol.dpkg-bak start

Заработало
Спасибо сказали:
Аватара пользователя
shevan
Сообщения: 992
ОС: Debian, Puppy

Re: настройка lm_sensors и pwmconfig

Сообщение shevan »

Еще одно

Код: Выделить всё

  PWM 255 FAN 2142
    PWM 240 FAN 2142
    PWM 225 FAN 2129
    PWM 210 FAN 2045
    PWM 195 FAN 1939
    PWM 180 FAN 1839
    PWM 165 FAN 1739
    PWM 150 FAN 1622
    PWM 135 FAN 1506
    PWM 120 FAN 1388
    PWM 105 FAN 1256
    PWM 90 FAN 1112
    PWM 75 FAN 962
    PWM 60 FAN 802
    PWM 45 FAN 42187 (probably incorrect)
    PWM 30 FAN 33750 (probably incorrect)
    PWM 28 FAN 0
    Fan Stopped at PWM = 28

Значения (probably incorrect) их где-то отредактировать можно? И надо?
Спасибо сказали:
Ответить