Голосование

Интересовались Вы когда-нибудь температурой своих устройств?

Да, несколько раз было
Вынужденно было, а простотак - нет
Постоянно за ней слежу
Нет
А ещё есть темература?

Автор Тема: Температура процессора, HDD, системной платы и других девайсов.  (Прочитано 28319 раз)

Ян

  • Гость
lm_sensors
« Ответ #15 : 19.03.2009 16:55:58 »
Моё упорство кончилось, едет крыша.

Все началось с невинной мысли пошалить вентиляторами (fancontrol), послушать сенсоры (sensors). По прошлому опыту в Mandriva, Fedora и OpenSUSE машинально выполнял одни и те же команды и всё у меня было хорошо и никогда с ядром я дела не имел :(
Потыкался в разные чаты, форумы, всегда натыкался на RTFM. Я покурил мануалы и стал понимать, что надо пересобирать ядро, таскать в него модули и т. п. Принялся изучать все хитрости и тонкости ядерного искусства, ужаснулся, и, в надежде "вдруг можно проще?", обращаюсь к вам.

Начал ставить bmcsensors, полез на  http://bmcsensors-26.sourceforge.net/ , и получал файлик .diff. Понимаю что это патч, этим надо патчить, но ЧТО? Также на сайте указано что качать исходники ядра (что мне не хочется).
А с i2c-ipmi я даже разбираться не стал, мне уже не хорошо.

Как мне завести lm_sensors?

[root@maingate ~]# sensors-detect
# sensors-detect revision 4271 (2006-12-26 03:53:20 -0800)

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.

We can start with probing for (PCI) I2C or SMBus adapters.
Do you want to probe now? (YES/no):
Probing for PCI bus adapters...
Use driver `i2c-i801' for device 0000:00:1f.3: Intel ICH9

We will now try to load each adapter module in turn.
Module `i2c-i801' already loaded.
If you have undetectable or unsupported adapters, you can have them
scanned by manually loading the modules before running this script.

We are now going to do the I2C/SMBus adapter probings. Some chips may
be double detected; we choose the one with the highest confidence
value in that case.
If you found that the adapter hung after probing a certain address,
you can specify that address to remain unprobed.

Next adapter: SMBus I801 adapter at 0400 (i2c-0)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x08
Client found at address 0x17
Client found at address 0x44
Probing for `Maxim MAX6633/MAX6634/MAX6635'...              No
Client found at address 0x60
Client found at address 0x69
Client found at address 0x6e

Some chips are also 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 LM78-J' 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
Probing for `Winbond W83627HF' at 0x290...                  No
Probing for `Silicon Integrated Systems SIS5595'...         No
Probing for `VIA VT82C686 Integrated Sensors'...            No
Probing for `VIA VT8231 Integrated Sensors'...              No
Probing for `IPMI BMC KCS' at 0xca0...                      Success!
    (confidence 4, driver `bmcsensors')
Probing for `IPMI BMC SMIC' at 0xca8...                     No

Some Super I/O chips may also contain 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 `ITE'...                                      No
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       No
Probing for Super-I/O at 0x4e/0x4f
Trying family `ITE'...                                      No
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       No

Some CPUs or memory controllers may also contain embedded sensors.
Do you want to scan for them? (YES/no):
AMD K8 thermal sensors...                                   No
Intel Core family thermal sensor...                         No
Intel AMB FB-DIMM thermal sensor...                         No

Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `bmcsensors' (should be inserted):
  Detects correctly:
  * ISA bus, address 0xca0
    Chip `IPMI BMC KCS' (confidence: 4)

I will now generate the commands needed to load the required modules.
Just press ENTER to continue:

To make the sensors modules behave correctly, add these lines to
/etc/modprobe.d/lm_sensors:

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----


Do you want to generate /etc/modprobe.d/lm_sensors ? (YES/no):
Your /etc/modprobe.d/lm_sensors has been
generated successfully.
To load everything that is needed, these commands should be executed
at startup:

#----cut here----
# You must also install and load the IPMI modules
modprobe i2c-ipmi
# Chip drivers
# Warning: the required module bmcsensors is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
modprobe bmcsensors
# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
#----cut here----

If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones! You really
should try these commands right now to make sure everything is
working properly. Monitoring programs won't work until the needed
modules are loaded.[table][tr][td][/table]

In the ALT Linux system loading of the sensor modules at startup is handled
by the lm_sensors service, which is configured in /etc/sysconfig/lm_sensors.
Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no):
The lm_sensors service will load the modules at boot time;
make sure that it is enabled.

[root@maingate ~]# service lm_sensors start
Loading sensor modules: i2c-ipmi(not found) bmcsensors(not found)       [PASSED]

[root@maingate ~]# modprobe i2c-ipmi
FATAL: Module i2c_ipmi not found.
[root@maingate ~]# modprobe bmcsensors
FATAL: Module bmcsensors not found.

[root@maingate ~]# modprobe -l | grep i2c
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-viapro.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-ali1563.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-via.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-prosavage.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-i810.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-parport-light.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-isa.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-piix4.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-amd756-s4882.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/scx200_acb.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-pca-isa.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-ali15x3.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-sis630.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-ocores.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-parport.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-ali1535.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-savage4.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-nforce2.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-sis96x.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-amd756.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-stub.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-amd8111.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-voodoo3.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-i801.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/busses/i2c-sis5595.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/i2c-core.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/chips/ds1374.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/chips/pcf8574.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/chips/max6875.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/chips/ds1337.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/chips/pcf8591.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/chips/pca9539.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/chips/eeprom.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/i2c-dev.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/algos/i2c-algo-pca.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/algos/i2c-algo-bit.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/i2c/algos/i2c-algo-pcf.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/video/matrox/i2c-matroxfb.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/media/video/ir-kbd-i2c.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/media/video/cx88/cx88-vp3054-i2c.ko
/lib/modules/2.6.18-ovz-smp-alt14/kernel/drivers/acpi/i2c_ec.ko



« Последнее редактирование: 19.03.2009 17:06:46 от Ян »

Drool

  • Гость
Re: lm_sensors
« Ответ #16 : 19.03.2009 16:58:45 »
service lm_sensors stop
chkconfig lm_sensors off
И Вы останетесь без проблемных lm_sensors при загрузке. Дальше курить что ему не нравится.

Ян

  • Гость
Re: lm_sensors
« Ответ #17 : 19.03.2009 17:01:20 »
И Вы останетесь без проблемных lm_sensors при загрузке. Дальше курить что ему не нравится.
[root@maingate ~]# service lm_sensors stop
Unloading sensor modules:                                               [ DONE ]
[root@maingate ~]# chkconfig lm_sensors off
Теперь перезагружаться и lm_sensors заработают?! 0_0

Drool

  • Гость
Re: lm_sensors
« Ответ #18 : 19.03.2009 17:04:02 »
[root@maingate ~]# service lm_sensors stop
Unloading sensor modules:                                               [ DONE ]
[root@maingate ~]# chkconfig lm_sensors off
Теперь перезагружаться и lm_sensors заработают?! 0_0

Так, стоп. Меня ввело в заблуждение Ваша подпись что Вы без иксов. Я принял это за проблему ;) Это просто вырубание сенсоров.

Ян

  • Гость
Re: lm_sensors
« Ответ #19 : 19.03.2009 17:06:11 »
Видимо я не сумел даже высказать свою проблему, мозг мой кипит.
Как мне завести lm_sensors?

Drool

  • Гость
Re: lm_sensors
« Ответ #20 : 19.03.2009 17:07:35 »
Видимо я не сумел даже высказать свою проблему, мозг мой кипит.
Как мне завести lm_sensors?

А что оно ответит на
service lm_sensors start
service lm_sensors status
  ?

Ян

  • Гость
Re: lm_sensors
« Ответ #21 : 19.03.2009 17:09:52 »
Цитировать
А что оно ответит на
service lm_sensors start
service lm_sensors status
  ?

Я ж уже писал в шапке
[root@maingate ~]# service lm_sensors start
Loading sensor modules: i2c-ipmi(not found) bmcsensors(not found)       [PASSED]
[root@maingate ~]# service lm_sensors status
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.

Drool

  • Гость
Re: lm_sensors
« Ответ #22 : 19.03.2009 17:11:38 »
Кстати, а что за материнка? И в рута переключаетесь через "su" или "su -" ?

Ян

  • Гость
Re: lm_sensors
« Ответ #23 : 19.03.2009 17:15:35 »
Кстати, а что за материнка? И в рута переключаетесь через "su" или "su -" ?
Совершаю ошибку, сижу под рутом.
Железо HP ProLiant ML150
http://h10010.www1.hp.com/wwpc/ru/ru/sm/WF06a/15351-15351-241434-3328424-3328424-3580609.html

Drool

  • Гость
Re: lm_sensors
« Ответ #24 : 19.03.2009 17:20:18 »
Совершаю ошибку, сижу под рутом.

Я спросил как Вы переключаетесь в рута?

Железо HP ProLiant ML150
http://h10010.www1.hp.com/wwpc/ru/ru/sm/WF06a/15351-15351-241434-3328424-3328424-3580609.html

HP ProLiant ML110:
Цитировать
]# sensors-detect
# sensors-detect revision 4271 (2006-12-26 03:53:20 -0800)

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.

We can start with probing for (PCI) I2C or SMBus adapters.
Do you want to probe now? (YES/no):
Probing for PCI bus adapters...
Use driver `i2c-i801' for device 0000:00:1f.3: Intel ICH9

We will now try to load each adapter module in turn.
Module `i2c-i801' already loaded.
If you have undetectable or unsupported adapters, you can have them
scanned by manually loading the modules before running this script.

We are now going to do the I2C/SMBus adapter probings. Some chips may
be double detected; we choose the one with the highest confidence
value in that case.
If you found that the adapter hung after probing a certain address,
you can specify that address to remain unprobed.

Next adapter: SMBus I801 adapter at 18e0 (i2c-0)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x08
Client found at address 0x14
Client found at address 0x30
Client found at address 0x44
Probing for `Maxim MAX6633/MAX6634/MAX6635'...              No
Client found at address 0x50
Handled by driver `eeprom' (already loaded), chip type `eeprom'
Client found at address 0x69

Some chips are also 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 LM78-J' 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
Probing for `Winbond W83627HF' at 0x290...                  No
Probing for `Silicon Integrated Systems SIS5595'...         No
Probing for `VIA VT82C686 Integrated Sensors'...            No
Probing for `VIA VT8231 Integrated Sensors'...              No
Probing for `IPMI BMC KCS' at 0xca0...                      Success!
    (confidence 4, driver `bmcsensors')
Probing for `IPMI BMC SMIC' at 0xca8...                     No

Some Super I/O chips may also contain 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 `ITE'...                                      No
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       No
Probing for Super-I/O at 0x4e/0x4f
Trying family `ITE'...                                      No
Trying family `National Semiconductor'...                   No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Fintek'...                       No

Some CPUs or memory controllers may also contain embedded sensors.
Do you want to scan for them? (YES/no):
AMD K8 thermal sensors...                                   No
Intel Core family thermal sensor...                         No
Intel AMB FB-DIMM thermal sensor...                         No

Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `eeprom' (should be inserted):
  Detects correctly:
  * Bus `SMBus I801 adapter at 18e0'
    Busdriver `i2c-i801', I2C address 0x50
    Chip `eeprom' (confidence: 6)

  EEPROMs are *NOT* sensors! They are data storage chips commonly
  found on memory modules (SPD), in monitors (EDID), or in some
  laptops, for example.

Driver `bmcsensors' (should be inserted):
  Detects correctly:
  * ISA bus, address 0xca0
    Chip `IPMI BMC KCS' (confidence: 4)

I will now generate the commands needed to load the required modules.
Just press ENTER to continue:

To make the sensors modules behave correctly, add these lines to
/etc/modprobe.d/lm_sensors:

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----


Do you want to generate /etc/modprobe.d/lm_sensors ? (YES/no):
Your /etc/modprobe.d/lm_sensors has been
generated successfully.
To load everything that is needed, these commands should be executed
at startup:

#----cut here----
# I2C adapter drivers
modprobe i2c-i801
# You must also install and load the IPMI modules
modprobe i2c-ipmi
# Chip drivers
modprobe eeprom
# Warning: the required module bmcsensors is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
modprobe bmcsensors
# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
#----cut here----

If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones! You really
should try these commands right now to make sure everything is
working properly. Monitoring programs won't work until the needed
modules are loaded.

In the ALT Linux system loading of the sensor modules at startup is handled
by the lm_sensors service, which is configured in /etc/sysconfig/lm_sensors.
Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no):
The lm_sensors service will load the modules at boot time;
make sure that it is enabled.

# service lm_sensors restart
Unloading sensor modules: WARNING: /etc/modprobe.d/atapi_strimmer line 1: ignoring bad line starting with 'strimmer'
WARNING: /etc/modprobe.d/atapi_strimmer line 1: ignoring bad line starting with 'strimmer'
eeprom WARNING: /etc/modprobe.d/atapi_strimmer line 1: ignoring bad line starting with 'strimmer'
WARNING: /etc/modprobe.d/atapi_strimmer line 1: ignoring bad line starting with 'strimmer'
i2c-i801                                                                                                                                             [ DONE ]
Loading sensor modules: WARNING: /etc/modprobe.d/atapi_strimmer line 1: ignoring bad line starting with 'strimmer'
i2c-i801 WARNING: /etc/modprobe.d/atapi_strimmer line 1: ignoring bad line starting with 'strimmer'
i2c-ipmi(not found) WARNING: /etc/modprobe.d/atapi_strimmer line 1: ignoring bad line starting with 'strimmer'
eeprom WARNING: /etc/modprobe.d/atapi_strimmer line 1: ignoring bad line starting with 'strimmer'
bmcsensors(not found)                                                                          [PASSED]

# service lm_sensors status
coretemp-isa-0000
Adapter: ISA adapter
temp1:       +46°C  (high =  +100°C)

Так что вполне возможно на Вашем пролианте lm_sensors не может найти ничего ему знакомого.
« Последнее редактирование: 23.10.2011 18:18:36 от МИНЗДРАВ »

Ян

  • Гость
Re: lm_sensors
« Ответ #25 : 19.03.2009 17:26:07 »
Извините, через "su".

Но: Probing for `IPMI BMC KCS' at 0xca0...                      Success!
    (confidence 4, driver `bmcsensors')

Drool

  • Гость
Re: lm_sensors
« Ответ #26 : 19.03.2009 17:27:39 »
1. Извините, через "su".

2. Но: Probing for `IPMI BMC KCS' at 0xca0...                      Success!
    (confidence 4, driver `bmcsensors')

1. Не нужно так делать. Нужно через "su -": http://www.altlinux.org/Su
2. Присмотритесь - у меня точно так же.

Drool

  • Гость
Re: lm_sensors
« Ответ #27 : 19.03.2009 17:28:46 »
Можете попробовать с помощью скрипта update-kernel обонвить ядро из бранча 4.1. У вас очень старое.

Оффлайн edkirgudu

  • Завсегдатай
  • *
  • Сообщений: 64
    • Email
Re: lm_sensors
« Ответ #28 : 19.03.2009 20:23:39 »
Вообще то для обыкновенного контроля вполне хватает mbmon или xbmon c hddtemp

Drool

  • Гость
Re: lm_sensors
« Ответ #29 : 19.03.2009 20:27:18 »
Вообще то для обыкновенного контроля вполне хватает mbmon или xbmon c hddtemp

lm_sensors при перегреве делает poweroff. А эти так умеют?