Lm_sensors: Can't Access Procfs/sysfs File (OS Mandriva 2007.0, ядро 2.6.17-5mdv)

Для новичков как вообще в Linux, так и в конкретной теме, к которой относится вопрос.

Модератор: Bizdelnick

Netman
Сообщения: 145
Статус: Просто прохожий...
ОС: Debian GNU/Linux, FreeBSD

Lm_sensors: Can't Access Procfs/sysfs File

Сообщение Netman »

Здравствуйте!

Решил поэкспериметировать с Superkaramba - попробовать создать пару тем и пр. Выянил, что для отображения температуры процессора, скорости вращения куллера и пр. необходимо установить lm_sensors - что я и попытался сделать.

Сначала скачал и установил:

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

urpmi lm_sensors


Все установилось. Затем как и положено (было сообщено по окончанию установки) выполнил команду

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

sensors-detect

Получил следующий результат:

Код:

Driver `eeprom' (should be inserted): Detects correctly: * Bus `SMBus I801 adapter at 5000' Busdriver `i2c-i801', I2C address 0x50 Chip `SPD EEPROM' (confidence: 8) * Bus `NVIDIA i2c adapter 0 at 1:00.0' Busdriver `UNKNOWN', I2C address 0x50 (and 0x51 0x52 0x53 0x54 0x55 0x56 0x57) Chip `DDC monitor' (confidence: 8) Driver `to-be-written' (should be inserted): Detects correctly: * ISA bus address 0x0290 (Busdriver `i2c-isa') Chip `ITE 8702F Super IO Sensors' (confidence: 9) I will now generate the commands needed to load the I2C modules. To make the sensors modules behave correctly, add these lines to /etc/modules.conf: #----cut here---- # I2C module options alias char-major-89 i2c-dev #----cut here---- To load everything that is needed, add this to some /etc/rc* file: #----cut here---- # I2C adapter drivers modprobe i2c-i801 # modprobe unknown adapter TT-Budget-S-1401 PCI # modprobe unknown adapter NVIDIA i2c adapter 0 at 1:00.0 # modprobe unknown adapter NVIDIA i2c adapter 1 at 1:00.0 # modprobe unknown adapter NVIDIA i2c adapter 2 at 1:00.0 modprobe i2c-isa # I2C chip drivers modprobe eeprom # no driver for ITE 8702F Super IO Sensors yet # sleep 2 # optional /usr/bin/sensors -s # recommended #----cut here---- WARNING! If you have some things 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 it's done. Do you want to generate /etc/sysconfig/lm_sensors? (YES/no): y Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors for initialization at boot time.

Как я понял, не были опеределны соотв. модули для DVB-карты и для видеокарты - но они меня не слишком интересуют.
Далее добавил соотв. строки в указаные файлы.
Перезагрузился.

Однако, похоже, что не все прошло успешно, т.к. пытаясь проверить работу сенсеров получаю следующие сообщение:

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

# sensors -s
Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs and libsensors
was compiled with sysfs support!
For older kernels, make sure you have done 'modprobe i2c-proc'!


Как с этим справится?

ОС: Mandriva 2007.0
Ядро: родное, 2.6.17-5mdv
Hi! I'm a signature virus. Copy me into your signature to help me spread.
Спасибо сказали:
foxIG
Сообщения: 261
ОС: Mandriva 2010 PP

Re: Lm_sensors: Can't Access Procfs/sysfs File

Сообщение foxIG »

modprobe i2c-proc

you have mounted sysfs and libsensors
was compiled with sysfs support! - это сделали?
Спасибо сказали:
Netman
Сообщения: 145
Статус: Просто прохожий...
ОС: Debian GNU/Linux, FreeBSD

Re: Lm_sensors: Can't Access Procfs/sysfs File

Сообщение Netman »

foxIG писал(а):
10.05.2007 19:36
modprobe i2c-proc

Это необходимо для более ранних версий ядра

foxIG писал(а):
10.05.2007 19:36
you have mounted sysfs and libsensors
was compiled with sysfs support! - это сделали?

Устанавливал, как я уже сказал из пакетов, т.ч. самостоятельно я libsensors не собирал, но libsysfs и sysfsutils, о которых сказано на lm-sensors.org установлены.
На счет того смонтирована ли sysfs - не знаю, как в этом удостоверится. Вот вывод mount:

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

# mount
/dev/hda3 on / type reiserfs (rw,notail)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
/dev/hda6 on /home type ext3 (rw)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=ext2:vfat,--)
/dev/hda1 on /mnt/win_c type vfat (rw,umask=0,iocharset=utf8)
/dev/hda2 on /mnt/win_d type fuseblk (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
Hi! I'm a signature virus. Copy me into your signature to help me spread.
Спасибо сказали:
foxIG
Сообщения: 261
ОС: Mandriva 2010 PP

Re: Lm_sensors: Can't Access Procfs/sysfs File

Сообщение foxIG »

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) cмонтирован
Спасибо сказали: