Please always reply to the list when a discussion started on said list. People who read the beginning of a story are often interested in its end too. On Thu, 7 Apr 2011 23:29:11 +0400, Rebel wrote: > > On Thu, 7 Apr 2011 00:17:22 +0400, atr_temp@xxxxxxx wrote: > >> Hello, Lm-sensors. > >> > >> Sending report about using standalone driver for IT8721F, IT8758E at > >> Ubuntu 9.10 with kernel 2.6.31.12 with motherboard Foxconn D42S. > >> > >> I was unable to build just driver from sources, so i put it into my > > > Can you please report what the problem was? I would like to fix it. > > When i run "make" in it87 driver folder, it was unable to find some .o > files, so i had to build kernel. And now, when i already have kernel > built there is no errors. So it is not a problem :) Yes, standalone drivers need a configured kernel tree to build. So they aren't completely standalone. > >> kernel sources: replace original drivers/hwmon/it87.c with new one. > >> Next i compile and install kernel and found a problem: > >> > # modprobe it87 > >> > FATAL: Error inserting it87 (/lib/modules/***/drivers/hwmon/it87.ko): Device or resource busy > >> But found a solution: > >> > Basically, you need to add a new kernel line in your menu.lst to fix > >> > this behavior. > >> > acpi_enforce_resources=lax > >> And it was good for me. > >> Now the sensors give me correct output, but without names (temp1, fan1 > >> and so on), so i had to edit /etc/sensors.conf and now the output is > >> correct for me (temp and fans) > >> > # sensors > >> > acpitz-virtual-0 > >> > Adapter: Virtual device > >> > temp1: +55.0°C (crit = +85.0°C) > >> > > >> > it8721-isa-0a10 > >> > Adapter: ISA adapter > >> > in0: +2.76 V (min = +1.38 V, max = +2.05 V) ALARM > >> > in1: +2.80 V (min = +1.30 V, max = +3.05 V) > >> > in2: +2.06 V (min = +0.66 V, max = +2.98 V) > >> > +3.3V: +3.41 V (min = +5.66 V, max = +1.87 V) ALARM > >> > in4: +1.87 V (min = +2.82 V, max = +2.60 V) ALARM > >> > in5: +1.04 V (min = +1.68 V, max = +1.02 V) ALARM > >> > in6: +2.23 V (min = +1.43 V, max = +1.48 V) ALARM > >> > 3VSB: +3.24 V (min = +4.37 V, max = +0.72 V) ALARM > >> > Vbat: +3.05 V > > > If you want help to figure out the labels and scaling factors of the > > remaining voltage inputs, please go to your BIOS, find the hardware > > monitoring menu, and write down all voltage values it reports. If a > > given item oscillates between different values, write them all down. > > Here is my bios output: > > CPU Core 1.044 V This is a little surprising but that would be in5. > DRAM Voltage 1.827 V Maybe in4, although the value is slightly different. > +3.30V 3.401V in3, already labeled as it is an internal voltage for the IT8721F chip. > +5.00V 4.988V > +12.0V 11.816V For these two, we would need more values from the BIOS to conclude, as we have 4 candidates (in0, in1, in2 and in6.) > > >> > CPU Fan: 903 RPM (min = 14 RPM) > >> > Sys Fan: 0 RPM (min = 12 RPM) ALARM > > > Are these correct? > > Yes it is. CPU fan is controlled by pwm in bios, system fan is absent > (but there is 4-pin connector for it). > > >> > CPU Temp: +54.0°C (low = -107.0°C, high = +80.0°C) sensor = thermal diode > >> > temp2: -56.0°C (low = -10.0°C, high = +127.0°C) sensor = thermal diode > >> > M/B Temp: +35.0°C (low = -61.0°C, high = +127.0°C) sensor = thermal diode > > > Apparently temp2 isn't connected so you can add: > > > ignore temp2 > > > to your configuration file. You could also adjust the temperature > > limits for temp1 and temp3. > > > If you come up with a good configuration file, please post it and I'll > > add it to the wiki. > > This output i made by adding chip and labels to sensors.conf > chip "it8721-*" > label temp1 "CPU Temp" > label temp3 "M/B Temp" > label fan1 "CPU Fan" > label fan2 "Sys Fan" > After this i run sensors but it outputs temp1, temp2 and so on (no my > labels). Next i run "sensors -c /etc/sensors.conf" and output was > correct. And after deleting chip and labels from configuration file too. This is simply not possible. "sensors" reads the configuration files again each time to run it. > All next times running sensors without -c the output was > correct, why? Not sure what you did exactly, but /etc/sensors.conf is not used by lm-sensors 3.x if /etc/sensors3.conf is present. /etc/sensors3.conf is always checked first, to make it possible to have both lm-sensors 2 and lm-sensors 3 installed on a given machine (although nobody should be doing this any longer.) The preferred approach these days is to leave /etc/sensors3.conf untouched, and create a dedicated configuration file for your mainboard in directory /etc/sensors.d. -- Jean Delvare _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors