Skip to contentSkip to conversation

ITE IT8721F, IT8758E it87 standalone driver report

lm-sensors [email protected] 2 participants 5 messages Apr 6, 2011 – Apr 9, 2011

lore
Share & tools
lore
#0 lore raw

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 kernel sources: replace original drivers/hwmon/it87.c with new one. Next i compile and install kernel and found a problem:

Quoted 2 lines
# modprobe it87
FATAL: Error inserting it87 (/lib/modules/***/drivers/hwmon/it87.ko): Device or resource busy

But found a solution:

Quoted 3 lines

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)

Quoted 5 lines
# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +55.0°C (crit = +85.0°C)
Quoted 16 lines

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
CPU Fan: 903 RPM (min = 14 RPM)
Sys Fan: 0 RPM (min = 12 RPM) ALARM
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

For more information look at my blog post
http://www.aleksandr.ru/blog/ubuntu_9_10___lm_sensors___ite_it8721f_it8758e.html
(in Russian language)

Signature · 7 lines
 Rebel                          mailto:[email protected]


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw
Quoted 6 lines · On Thu, 7 Apr 2011 00:17:22 +0400, [email protected] 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.

Quoted 4 lines

kernel sources: replace original drivers/hwmon/it87.c with new one. Next i compile and install kernel and found a problem:

Quoted 2 lines
# modprobe it87
FATAL: Error inserting it87 (/lib/modules/***/drivers/hwmon/it87.ko): Device or resource busy
Quoted 24 lines

But found a solution:

Quoted 3 lines

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)

Quoted 16 lines
# 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.

Quoted 2 lines
Quoted 2 lines

CPU Fan: 903 RPM (min = 14 RPM)
Sys Fan: 0 RPM (min = 12 RPM) ALARM

Are these correct?

Quoted 3 lines
Quoted 3 lines

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.

Quoted 3 lines

For more information look at my blog post
http://www.aleksandr.ru/blog/ubuntu_9_10___lm_sensors___ite_it8721f_it8758e.html
(in Russian language)

Unfortunately I can't read Russian.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw
In reply to [email protected]

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.

Quoted 6 lines · Rebel
Quoted 6 lines · On Thu, 7 Apr 2011 00:17:22 +0400, [email protected] wrote:
Quoted 5 lines

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.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

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.

Quoted 29 lines
Quoted 28 lines
Quoted 28 lines

kernel sources: replace original drivers/hwmon/it87.c with new one. Next i compile and install kernel and found a problem:

Quoted 2 lines
# modprobe it87
FATAL: Error inserting it87 (/lib/modules/***/drivers/hwmon/it87.ko): Device or resource busy

But found a solution:

Quoted 3 lines

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)

Quoted 16 lines
# 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

Quoted 8 lines
Quoted 4 lines

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.

Quoted 1 line

DRAM Voltage 1.827 V

Maybe in4, although the value is slightly different.

Quoted 1 line

+3.30V 3.401V

in3, already labeled as it is an internal voltage for the IT8721F chip.

Quoted 2 lines

+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.)

Quoted 23 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines

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).

Quoted 6 lines
Quoted 3 lines
Quoted 3 lines

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:

Quoted 7 lines

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.

Quoted 9 lines

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.

Quoted 2 lines

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.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
author
#3 lore raw
In reply to [email protected]

Hello, Jean.

Quoted 5 lines · You
Quoted 2 lines

+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.)

More values? But there is no more values in my BIOS.

Quoted 6 lines
Quoted 3 lines

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.

I don't know how it can be, but before running sensors3 at first time, /etc/sensors.d was an empty folder, but now there is it8721.conf wich holds data i put into /etc/sensors.conf

Quoted 8 lines
Quoted 2 lines

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.)

Here is the log of my actions:
- i have removed old sensors2 (apt-get remove lm-sensors) but may be
Ubuntu hasn't deleted the old config file.
- i compiled new sensors from sources and run it without parameters (the output was temp1 fan1 and so on)
- in /etc/sensors.conf i put my chip and some labels
- run newly built sensors with config /etc/srnsors.conf "sensors -c /etc/sensors.conf" and output was with correct labels i put in /etc/sensors.conf
- i have deleted my chip and labesls from /etc/srnsors.conf and run sensors again without config, output was correct with my labels

I think, when i run sensors with edited config /etc/sensors.conf it creates file in /etc/sensors.d. Is it right?

Signature · 8 lines
С уважением,
 Rebel                         http://www.aleksandr.ru


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#4 lore raw
In reply to [email protected]
Quoted 11 lines · Rebel

Hello, Jean.

Quoted 5 lines · You
Quoted 2 lines

+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.)

More values? But there is no more values in my BIOS.

I mean more samples for a given values. Often monitored values oscillate between two or three values. On some systems you have to leave and re-enter the monitoring screen in the BIOS to get new values, but most of them update the values every second automatically.

Quoted 6 lines
Quoted 2 lines

This is simply not possible. "sensors" reads the configuration files again each time to run it.

I don't know how it can be, but before running sensors3 at first time, /etc/sensors.d was an empty folder, but now there is it8721.conf wich holds data i put into /etc/sensors.conf

Either you live in the 4th dimension, or your distribution has extra code doing that kind of magic. The code at lm-sensors.org doesn't do anything like this.

Quoted 18 lines
Quoted 5 lines

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.)

Here is the log of my actions:
- i have removed old sensors2 (apt-get remove lm-sensors) but may be
Ubuntu hasn't deleted the old config file.
- i compiled new sensors from sources and run it without parameters (the output was temp1 fan1 and so on)
- in /etc/sensors.conf i put my chip and some labels
- run newly built sensors with config /etc/srnsors.conf "sensors -c /etc/sensors.conf" and output was with correct labels i put in /etc/sensors.conf
- i have deleted my chip and labesls from /etc/srnsors.conf and run sensors again without config, output was correct with my labels

Quoted 2 lines

I think, when i run sensors with edited config /etc/sensors.conf it creates file in /etc/sensors.d. Is it right?

Our code doesn't do this, no. Your Linux distribution, maybe, but this is the first time I hear of this.

Signature · 7 lines
Jean Delvare
http://khali.linux-fr.org/wishlist.html

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors