Skip to contentSkip to conversation

Please list which file to etc/rc* file modiify

DISCUSSION Rob 2 participants 10 messages May 19, 2005

lore
Share & tools
lore

Rob

author
#0 lore raw

Hello, I have successfully installed LM sensors version 2.8.4, and I am using them with a 2.6.3 Mandrake 10 kernel.

sensors works when i tell it sensors in the terminal, but the values are off (double), Per the FAQ it tells me to modify the conf file. I have an asus A7N8XE-deluxe, which i know uses the asb100 file. When I modify the file in that area, cut the fan info to divide by 2, and swap the labels for CPU and Motherboard. Save, then do sensors-s then rebooted, and none of my changes to effect.

[rob@Oneniisama rob]$ sensors
eeprom-i2c-0-51
Adapter: SMBus nForce2 adapter at 5000
Memory type: DDR SDRAM DIMM
Memory size (MB): 512

eeprom-i2c-0-50
Adapter: SMBus nForce2 adapter at 5000
Memory type: DDR SDRAM DIMM
Memory size (MB): 512

asb100-i2c-1-2d
Adapter: SMBus nForce2 adapter at 5500
VCore 1: +1.68 V (min = +1.55 V, max = +1.73 V)
+3.3V: +3.30 V (min = +3.12 V, max = +3.46 V)
+5V: +4.97 V (min = +4.73 V, max = +5.24 V)
+12V: +11.67 V (min = +10.76 V, max = +13.19 V)
-12V (reserved):
-12.13 V (min = -0.00 V, max = -0.00 V)
-5V (reserved):
-5.12 V (min = -0.00 V, max = -0.00 V)
CPU Fan: 11637 RPM (min = 1997 RPM, div = 4) <------------- this is double what it really is
Chassis Fan:
12500 RPM (min = 3994 RPM, div = 2) <------------- this is double what it really is
Power Fan:3994 RPM (min = 3994 RPM, div = 2) ALARM ---------------variable speed fan, 3000 sounds like a safer min M/B Temp: +52?C (high = +0?C, hyst = +0?C)<------really is cpu temp CPU Temp (Intel):
+40?C (high = +45?C, hyst = +40?C) <----40 is likely the mobo temp Power Temp:
+127?C (high = +0?C, hyst = +0?C)
CPU Temp (AMD):
+25?C (high = +80?C, hyst = +75?C)
vid: +1.650 V
alarms:

I dont know what the intel and amd temps are. I have an AMD processor, and it runs about 55 degrees.

sensors-detect

told me to do this

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

And i did

To load everything that is needed, add this to some /etc/rc* file:

Which file? there are many folders and files.

#----cut here----
# I2C adapter drivers
modprobe i2c-nforce2
# I2C chip drivers
modprobe asb100
modprobe smbus-arp
modprobe eeprom

# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
#----cut here----

I think that this may be why its not recognizing my changes, becuase it doesnt know where in the conf file to look? The etc/rc additions perhaps tell it where to look in the conf file, but I dont know which etc/rc file to add too, there are rc1-6 folders, and each has many files. Which folder and file do I add too?

Thank you in advance for any help. I'm a semi newbie, and I have been able to figure out the rest, but this is where I am getting lost, as a specific file to modify is not listed.

Thank you again

Rob

#1 lore raw

[please reply to the list, not to me]

Hi Rob,

Quoted 6 lines

sensors works when i tell it sensors in the terminal, but the values are off (double), Per the FAQ it tells me to modify the conf file. I have an asus A7N8XE-deluxe, which i know uses the asb100 file. When I modify the file in that area, cut the fan info to divide by 2, and swap the labels for CPU and Motherboard. Save, then do sensors-s then rebooted, and none of my changes to effect.

This is expected, because rebooting will reset the hardware monitoring chip configuration. "sensors -s" needs to be run after each boot.

Quoted 10 lines

asb100-i2c-1-2d
(...)
M/B Temp: +52?C (high = +0?C, hyst = +0?C)<------really is cpu temp CPU Temp (Intel):
+40?C (high = +45?C, hyst = +40?C) <----40 is likely the mobo temp Power Temp:
+127?C (high = +0?C, hyst = +0?C)
CPU Temp (AMD):
+25?C (high = +80?C, hyst = +75?C)

Quoted 2 lines

I dont know what the intel and amd temps are. I have an AMD processor, and it runs about 55 degrees.

I think you are correct. temp1 is CPU temp, temp2 is motherboard temp, and temp3 and temp4 are not used. You can hide them by using the following lines in /etc/sensors.conf:
ignore temp3
ignore temp4
Make sure to add these in the asb100-* section.

Quoted 16 lines

To load everything that is needed, add this to some /etc/rc* file:

Which file? there are many folders and files.

#----cut here----
# I2C adapter drivers
modprobe i2c-nforce2
# I2C chip drivers
modprobe asb100
modprobe smbus-arp
modprobe eeprom

# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
#----cut here----
Quoted 5 lines

I think that this may be why its not recognizing my changes, becuase it doesnt know where in the conf file to look? The etc/rc additions perhaps tell it where to look in the conf file, but I dont know which etc/rc file to add too, there are rc1-6 folders, and each has many files. Which folder and file do I add too?

The exact thing to do depends on the distribution, which is why sensors-detect cannot give more details.

If your distribution has a file named /etc/rc.d/rc.local, the most simple solution is to put the lines there. That's what I do.

Else, if your distribution has an /etc/sysconfig directory, then you should let sensors-detect write its configuration file here (it should ask you), then get the lm_sensors.init script in lm_sensors2/prog/init and copy it to /etc/rc.d/init.d. Then you should be able to enable the execution at boot time by using the chkconfig command of Mandrake.

This only holds if you installed lm_sensors manually. If you installed it from Mandrake packages, then the init script should already be present in /etc/rc.d/init.d, and all you need to do is create the config file with sensors-detect, and maybe activate the script by using chkconfig. Check the manual page of chkconfig for details about how you need to run it to enable services at boot time.

I cannot tell more since I am not using a Mandrake or a similar distribution myself. Hopefully you'll figure out the rest by yourself.

Jean

author
#2 lore raw
In reply to Rob
Quoted 11 lines · Jean Delvare

[please reply to the list, not to me]

Hi Rob,

Quoted 6 lines

sensors works when i tell it sensors in the terminal, but the values are off (double), Per the FAQ it tells me to modify the conf file. I have an asus A7N8XE-deluxe, which i know uses the asb100 file. When I modify the file in that area, cut the fan info to divide by 2, and swap the labels for CPU and Motherboard. Save, then do sensors-s then rebooted, and none of my changes to effect.

Quoted 2 lines

This is expected, because rebooting will reset the hardware monitoring chip configuration. "sensors -s" needs to be run after each boot.

Tried this again, upon reboot typed sensors -s then ran sensors, still no change. This appears to be an issue that many are having, in a webforum i particpate in, we are all encountering sensors not responding to changes in the conf file. One user even deleted the conf file and replaced it with a dummy file, and sensors still worked. As of now, we still cant find out how to talk to sensors and modify its output and computations.

Quoted 1 line

Have now removed all sensors additions to files, and sensors still loads and works, even at system boot, it tells me loading module lm sensors. So sensors will work without having information in other files (ie you dont need to modify any rc files to get it to work), but there is still the issue of how do you talk to lm sensors if its not reading the conf file?

Rob

Quoted 65 lines
Quoted 10 lines

asb100-i2c-1-2d
(...)
M/B Temp: +52?C (high = +0?C, hyst = +0?C)<------really is cpu temp CPU Temp (Intel):
+40?C (high = +45?C, hyst = +40?C) <----40 is likely the mobo temp Power Temp:
+127?C (high = +0?C, hyst = +0?C)
CPU Temp (AMD):
+25?C (high = +80?C, hyst = +75?C)

Quoted 2 lines

I dont know what the intel and amd temps are. I have an AMD processor, and it runs about 55 degrees.

I think you are correct. temp1 is CPU temp, temp2 is motherboard temp, and temp3 and temp4 are not used. You can hide them by using the following lines in /etc/sensors.conf:
ignore temp3
ignore temp4
Make sure to add these in the asb100-* section.

Quoted 16 lines

To load everything that is needed, add this to some /etc/rc* file:

Which file? there are many folders and files.

#----cut here----
# I2C adapter drivers
modprobe i2c-nforce2
# I2C chip drivers
modprobe asb100
modprobe smbus-arp
modprobe eeprom

# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
#----cut here----
Quoted 5 lines

I think that this may be why its not recognizing my changes, becuase it doesnt know where in the conf file to look? The etc/rc additions perhaps tell it where to look in the conf file, but I dont know which etc/rc file to add too, there are rc1-6 folders, and each has many files. Which folder and file do I add too?

The exact thing to do depends on the distribution, which is why sensors-detect cannot give more details.

If your distribution has a file named /etc/rc.d/rc.local, the most simple solution is to put the lines there. That's what I do.

Else, if your distribution has an /etc/sysconfig directory, then you should let sensors-detect write its configuration file here (it should ask you), then get the lm_sensors.init script in lm_sensors2/prog/init and copy it to /etc/rc.d/init.d. Then you should be able to enable the execution at boot time by using the chkconfig command of Mandrake.

This only holds if you installed lm_sensors manually. If you installed it from Mandrake packages, then the init script should already be present in /etc/rc.d/init.d, and all you need to do is create the config file with sensors-detect, and maybe activate the script by using chkconfig. Check the manual page of chkconfig for details about how you need to run it to enable services at boot time.

I cannot tell more since I am not using a Mandrake or a similar distribution myself. Hopefully you'll figure out the rest by yourself.

Jean

author
#3 lore raw
In reply to Rob

http://www.linuxquestions.org/questions/showthread.php?s=&threadid%5402

This is the webforum where we are trying to get this working as well. And that ticket site, is exactly what I'm going through. Would you like the Mandrake rpms to look at?

Rob

[root@Oneniisama rob]# strace sensors -s execve("/usr/bin/sensors", ["sensors", "-s"], [/* 62 vars */]) = 0 uname({sys="Linux", node="Oneniisama", ...}) = 0
brk(0) = 0x8063000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x40017000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size•558, ...}) = 0 old_mmap(NULL, 95558, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3) = 0
open("//usr/lib/libsensors.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300]\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size3520, ...}) = 0 old_mmap(NULL, 206884, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) 0x40030000 old_mmap(0x4003f000, 77824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe0
00) = 0x4003f000
old_mmap(0x40052000, 67620, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON
YMOUS, -1, 0) = 0x40052000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@Z\1\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size34740, ...}) = 0 old_mmap(NULL, 1340908, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) 0x40063000 old_mmap(0x401a5000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x14
2000) = 0x401a5000
old_mmap(0x401a8000, 9708, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONY
MOUS, -1, 0) = 0x401a8000
close(3) = 0
open("/lib/tls/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 5\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size9108, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x401ab000
old_mmap(NULL, 141600, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) 0x401ac000 old_mmap(0x401ce000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x210
00) = 0x401ce000
close(3) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0x401ab8a0, limit:1048575, seg_
32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, usea
ble:1}) = 0
munmap(0x40018000, 95558) = 0
open("/usr/share/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No s
uch file or directory)

brk(0)                                  = 0x8063000
brk(0x8084000)                          = 0x8084000
brk(0)                                  = 0x8084000

open("/usr/share/locale/locale.alias", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size%86, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
018000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2586

read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
open("/usr/share/locale/en_US/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size8476, ...}) = 0
mmap2(NULL, 178476, PROT_READ, MAP_PRIVATE, 3, 0) = 0x401cf000
close(3)                                = 0
open("/etc/sensors.conf", O_RDONLY)     = 3
open("/proc/mounts", O_RDONLY)          = 4

fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000
read(4, "rootfs / rootfs rw 0 0\n/dev/root"..., 1024) = 344
close(4) = 0
munmap(0x401fb000, 4096) = 0
open("/sys/bus/i2c/devices", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
getdents64(4, /* 7 entries */, 4096) = 208
open("/sys/bus/i2c/devices/0-0051/name", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

read(5, "eeprom\n", 4096)               = 7
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/class/i2c-adapter/i2c-0/device/name", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000
read(5, "SMBus nForce2 adapter at 5000\n", 4096) = 30
close(5) = 0
munmap(0x401fb000, 4096) = 0
open("/sys/bus/i2c/devices/0-0050/name", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

read(5, "eeprom\n", 4096)               = 7
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/class/i2c-adapter/i2c-0/device/name", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000
read(5, "SMBus nForce2 adapter at 5000\n", 4096) = 30
close(5) = 0
munmap(0x401fb000, 4096) = 0
open("/sys/bus/i2c/devices/1-0048/name", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

read(5, "asb100 subclient\n", 4096)     = 17
close(5)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-0049/name", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

read(5, "asb100 subclient\n", 4096)     = 17
close(5)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/name", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

read(5, "asb100\n", 4096)               = 7
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/class/i2c-adapter/i2c-1/device/name", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000
read(5, "SMBus nForce2 adapter at 5500\n", 4096) = 30

close(5)                                = 0
munmap(0x401fb000, 4096)                = 0
getdents64(4, /* 0 entries */, 4096)    = 0
close(4)                                = 0

open("/sys/class/i2c-adapter", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
getdents64(4, /* 4 entries */, 4096) = 112
open("/sys/class/i2c-adapter/i2c-1/device/name", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000
read(5, "SMBus nForce2 adapter at 5500\n", 4096) = 30
close(5) = 0
munmap(0x401fb000, 4096) = 0
open("/sys/class/i2c-adapter/i2c-0/device/name", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000
read(5, "SMBus nForce2 adapter at 5000\n", 4096) = 30

close(5)                                = 0
munmap(0x401fb000, 4096)                = 0
getdents64(4, /* 0 entries */, 4096)    = 0
close(4)                                = 0

ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfffe488) = -1 ENOTTY (Inappropriate i
octl for device)
fstat64(3, {st_mode=S_IFREG|0644, st_sizeV775, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000
read(3, "# Sensors configuration file use"..., 8192) = 8192 read(3, " SMBus adapter\"\n#\n# If we refer "..., 8192) = 8192 read(3, "ard\n# uses the recommended resis"..., 8192) = 8192
read(3, " 3.3 * 1.05\n set in3_min 5.0 "..., 8192) = 8192
read(3, "u typically get the\n# most serio"..., 8192) = 8192
read(3, "ith double quotes.\n#\n# label \""..., 8192) = 8192
read(3, " set pwm1 255\n# set "..., 8192) = 7623
read(3, "", 4096) = 0
read(3, "", 8192) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfffe478) = -1 ENOTTY (Inappropriate i
octl for device)
close(3) = 0
munmap(0x401fb000, 4096) = 0
open("/sys/bus/i2c/devices/1-002d/vrm", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "90", 2)                       = 2
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/vid", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

read(3, "1650\n", 4096)                 = 5
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_min0", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "1567", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/vid", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

read(3, "1650\n", 4096)                 = 5
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_max0", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "1732", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/vid", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

read(3, "1650\n", 4096)                 = 5
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_min1", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "1567", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/vid", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size@96, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

read(3, "1650\n", 4096)                 = 5
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_max1", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "1732", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_min2", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "3135", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_max2", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "3465", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_min3", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "2827", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_max3", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "3125", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_min4", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "2842", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_max4", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "3473", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_max5", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "2720", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_min5", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "3324", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_max6", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "2851", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/in_min6", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "3151", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/temp_max1", O_WRONLY|O_CREAT|O_TRUNC, 0666) 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "45000", 5)                    = 5
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/temp_hyst1", O_WRONLY|O_CREAT|O_TRUNC, 0666) 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "40000", 5)                    = 5
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/temp_max2", O_WRONLY|O_CREAT|O_TRUNC, 0666) 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "60000", 5)                    = 5
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/temp_hyst2", O_WRONLY|O_CREAT|O_TRUNC, 0666) 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "50000", 5)                    = 5
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/temp_max3", O_WRONLY|O_CREAT|O_TRUNC, 0666) 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "45000", 5)                    = 5
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/temp_hyst3", O_WRONLY|O_CREAT|O_TRUNC, 0666) 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "40000", 5)                    = 5
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/temp_max4", O_WRONLY|O_CREAT|O_TRUNC, 0666) 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "60000", 5)                    = 5
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/temp_hyst4", O_WRONLY|O_CREAT|O_TRUNC, 0666) 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "50000", 5)                    = 5
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/fan_div1", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "4", 1)                        = 1
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/fan_min1", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "2000", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/fan_div2", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40
1fb000

write(3, "2", 1)                        = 1
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/fan_min2", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) 0x40 1fb000

write(3, "4000", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/fan_div3", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) 0x40 1fb000

write(3, "2", 1)                        = 1
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0

open("/sys/bus/i2c/devices/1-002d/fan_min3", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) 0x40 1fb000

write(3, "4000", 4)                     = 4
close(3)                                = 0
munmap(0x401fb000, 4096)                = 0
exit_group(0)                           = ?

[root@Oneniisama rob]#

Quoted 19 lines · Jean Delvare
Quoted 6 lines

This appears to be an issue that many are having, in a webforum i particpate in, we are all encountering sensors not responding to changes in the conf file. One user even deleted the conf file and replaced it with a dummy file, and sensors still worked. As of now, we still cant find out how to talk to sensors and modify its output and computations.

Please take a look at ticket #1817:
http://www2.lm-sensors.nu/~lm78/readticket.cgi?ticket17

Looks exactly like your problem. Mandrake too. Isn't by any chance your webforum Mandrake-related?

I really want to see the output of "strace sensors -s" for users having the problem. It would also be very interesting to see if Mandrake applied some patches to lm_sensors when building the RPM.

Thanks,
Jean

#4 lore raw
In reply to Rob
Quoted 8 lines

Tried this again, upon reboot typed sensors -s then ran sensors, still no change. This appears to be an issue that many are having, in a webforum i particpate in, we are all encountering sensors not responding to changes in the conf file. One user even deleted the conf file and replaced it with a dummy file, and sensors still worked. As of now, we still cant find out how to talk to sensors and modify its output and computations.

Oh OK, looks like I misunderstood your exact problem in the first place.

Care to point us to the webforum in question for us to take a look?

Quoted 6 lines

Have now removed all sensors additions to files, and sensors still loads and works, even at system boot, it tells me loading module lm sensors. So sensors will work without having information in other files (ie you dont need to modify any rc files to get it to work), but there is still the issue of how do you talk to lm sensors if its not reading the conf file?

At least this means that your distribution handles things by itself, which is always more comfortable. However, this may also mean that Mandrake did some changes to our code, which may explain it doesn't work as usual.

Which configuration file are you editing exactly? The standard configuration file location and name is /etc/sensors.conf. You may use "strace sensors -s" to trace the execution of "sensors -s" and see exactly where sensors gets its configuration data.

Jean

#5 lore raw
In reply to Rob
Quoted 7 lines

This appears to be an issue that many are having, in a webforum i particpate in, we are all encountering sensors not responding to changes in the conf file. One user even deleted the conf file and replaced it with a dummy file, and sensors still worked. As of now, we still cant find out how to talk to sensors and modify its output and computations.

Please take a look at ticket #1817:
http://www2.lm-sensors.nu/~lm78/readticket.cgi?ticket17

Looks exactly like your problem. Mandrake too. Isn't by any chance your webforum Mandrake-related?

I really want to see the output of "strace sensors -s" for users having the problem. It would also be very interesting to see if Mandrake applied some patches to lm_sensors when building the RPM.

Thanks,
Jean

author
#6 lore raw
In reply to Rob

can you walk me through how to change those values? are we still messing with the conf file?

Rob

Quoted 18 lines · Jean Delvare
Quoted 3 lines

[root@Oneniisama rob]# strace sensors -s execve("/usr/bin/sensors", ["sensors", "-s"], [/* 62 vars */]) = 0 (...)

The output seems totally normal, so I don't understand what's going on. This would seem to accuse the chip driver more than the sensors program.

Please try changing the values manually and see how it is going. For example, do:

cat /sys/bus/i2c/devices/1-002d/fan_div1
echo 4 > /sys/bus/i2c/devices/1-002d/fan_div1
(wait 3 seconds)
cat /sys/bus/i2c/devices/1-002d/fan_div1

If it doesn't return 4 then the chip driver is faulty, or, more likely, the chip itself. Could be that the chip is locked in read-only mode. We do not have a datasheet for the ASB100 so it's hard to tell.

#7 lore raw
In reply to Rob
Quoted 5 lines

Hi Jean,

Hmmm. I'm going to butt in with a suggesstion. Using strace seems to me to be inherently user unfriendly (but it will of course give up the required tidbit of information).

True, this is user unfriendly and highly valueable for us developers. strace will tell so much more than just where the configuration file is read.

Nevertheless...

Quoted 2 lines

Would it make sense for sensors to print out the name of the configuration file as one of the first lines of output?

Not as part of the output, where I would consider it noise. However, printing the information as part of "sensors --help" would be great, agreed. I just added that (together with removing the default configuration file locations list, and having only one default configuration file, which sounds sufficent and saner).

Quoted 2 lines

Disclaimer: I myself am new to the lm_sensors scene and I've never actually run sensors on any computer yet.

Feel free to voice in and, why not, provide some code if you have other good ideas like this one :)

Thanks,

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#8 lore raw
In reply to Rob
Quoted 3 lines

[root@Oneniisama rob]# strace sensors -s execve("/usr/bin/sensors", ["sensors", "-s"], [/* 62 vars */]) = 0 (...)

The output seems totally normal, so I don't understand what's going on. This would seem to accuse the chip driver more than the sensors program.

Please try changing the values manually and see how it is going. For example, do:

cat /sys/bus/i2c/devices/1-002d/fan_div1
echo 4 > /sys/bus/i2c/devices/1-002d/fan_div1
(wait 3 seconds)
cat /sys/bus/i2c/devices/1-002d/fan_div1

If it doesn't return 4 then the chip driver is faulty, or, more likely, the chip itself. Could be that the chip is locked in read-only mode. We do not have a datasheet for the ASB100 so it's hard to tell.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#9 lore raw
In reply to Rob
Quoted 2 lines

can you walk me through how to change those values? are we still messing with the conf file?

No, I think that the config file is innocent, which is why I want you to try to change the driver values directly. Please try the following sequence and report results:

cat /sys/bus/i2c/devices/1-002d/fan_div1
echo 4 > /sys/bus/i2c/devices/1-002d/fan_div1
(wait 3 seconds)
cat /sys/bus/i2c/devices/1-002d/fan_div1

(and try with other writable files in the /sys/bus/i2c/devices/1-002d/directory if you want, too)

Thanks,

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/