Please help me get sensors working on 2.6?

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
Hi,

I am currently using kernel 2.6 with Debian. I am trying to be able to read the temperature of the hard drive and cpu from the coputer. I currently have installed gdesklets and gkrellm. I have tried everything, and nothing seems to work.

Please help me,
pitupepito

 

drag

Elite Member
Jul 4, 2002
8,708
0
0
The subsystems that use sensors are called i2c and lm_sensors. I2c I beleive is the support for the special system bus that sensors run off of. lm_sensors is the low level drivers or something like that.

Check out linux system hardware monitoring

You need kernel support for both things, I think, definately i2c. If you used Debian's 2.6.0 kernel look for the module packages for this stuff.
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
thanks for the response drag.

My system is Debian unstable. I have compiled the kernel modules for i2c. I also have mounted syfs in /sys. the problem in lm-sensors that I am having is that it still tries to look for the monitoring information in /proc and not in /sys.

this is what I currently have mounted:
/dev/hda9 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
none /proc/bus/usb usbdevfs rw,devuid=0,devgid=1010,devmode=0660 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/hda5 /mnt/vfat vfat rw,noexec,nosuid,nodev,gid=1004,user=marilyn 0 0
none /sys sysfs rw 0 0


the modules that I have loaded are:
Module Size Used by
it87 21632 0
lm75 6592 0
lm78 17408 0
i2c_via 3264 0
w83781d 33728 0
i2c_philips_par 3912 0
via686a 18244 0
i2c_dev 8192 0
adm1021 10944 0
eeprom 5824 0
i2c_viapro 5836 0
btcx_risc 3844 0
fglrx 204972 0
usblp 11200 0
hid 15936 0
uhci_hcd 30472 0
ohci_hcd 28288 0
ehci_hcd 33152 0
evdev 7232 0
i2c_algo_bit 9416 2 i2c_via,i2c_philips_par
i2c_sensor 2368 7 it87,lm75,lm78,w83781d,via686a,adm1021,eeprom
i2o_config 10696 0
i2o_proc 51548 0
i2o_core 44340 2 i2o_config,i2o_proc
i2c_algo_pcf 6336 0
tvaudio 20544 0
video_buf 17536 0
i2c_core 20868 13 it87,lm75,lm78,w83781d,via686a,i2c_dev,adm1021,eeprom,i2c_viapro,i2c_algo_bit,i2c_sensor,i2c_algo_pcf,tvaudio
scanner 20352 0
usbmouse 4288 0
usbkbd 5952 0
usbcore 106196 10 usblp,hid,uhci_hcd,ohci_hcd,ehci_hcd,scanner,usbmouse,usbkbd
rtc 10664 0

When I type "sensors" in the shell I get the following:
eeprom-i2c-3-57
Adapter: Philips Parallel port adapter
Algorithm: Unavailable from sysfs
Unknown EEPROM type (0)

eeprom-i2c-3-56
Adapter: Philips Parallel port adapter
Algorithm: Unavailable from sysfs
Unknown EEPROM type (0)

eeprom-i2c-3-55
Adapter: Philips Parallel port adapter
Algorithm: Unavailable from sysfs
Unknown EEPROM type (0)

eeprom-i2c-3-54
Adapter: Philips Parallel port adapter
Algorithm: Unavailable from sysfs
Unknown EEPROM type (0)

eeprom-i2c-3-53
Adapter: Philips Parallel port adapter
Algorithm: Unavailable from sysfs
Unknown EEPROM type (0)

eeprom-i2c-3-52
Adapter: Philips Parallel port adapter
Algorithm: Unavailable from sysfs
Unknown EEPROM type (0)

eeprom-i2c-3-51
Adapter: Philips Parallel port adapter
Algorithm: Unavailable from sysfs
Unknown EEPROM type (0)

eeprom-i2c-3-50
Adapter: Philips Parallel port adapter
Algorithm: Unavailable from sysfs
Unknown EEPROM type (0)

eeprom-i2c-2-50
Adapter: SMBus Via Pro adapter at 0400
Algorithm: Unavailable from sysfs
Memory type: DDR SDRAM DIMM
Memory size (MB): 256








I also tried running the script in the following website: http://www.mail-archive.com/gentoo-user@gentoo.org/msg31031.html
but I get the following error messages:
./myscript.sh: line 6: cd: /sys/bus/i2c/devices/0-0290: No such file or directory
cat: name: No such file or directory
CURRENT SENSOR VALUES ()
cat: temp_input2: No such file or directory
(standard_in) 1: parse error
CPU temp: ÂC
cat: temp_input1: No such file or directory
(standard_in) 1: parse error
Sys temp: ÂC

cat: fan_input1: No such file or directory
CPU fan : RPM
cat: fan_input2: No such file or directory
Sys fan : RPM

cat: in_input0: No such file or directory
(standard_in) 1: parse error
Vcore : V
cat: in_input1: No such file or directory
(standard_in) 1: parse error
DDR Vtt : V
cat: in_input2: No such file or directory
(standard_in) 1: parse error
+3.3V : V
cat: in_input3: No such file or directory
(standard_in) 1: parse error
+5V : V
cat: in_input4: No such file or directory
(standard_in) 1: parse error
+12V : V
cat: in_input7: No such file or directory
(standard_in) 1: parse error
+5Vsb : V


please somebody help me,
pitupepito :(
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Do you have a /sys directory? I don't.

It's something new and not normal in Debian. It's a lot like the proc drirectory were you need to mount it, but it's a imaginary partition or disk.

check out here

Hope that's all it is.