All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] control f71889fg pwm on 2.6.34
@ 2010-06-02 16:57 Roman Evstifeev
  2010-06-10  8:26 ` Hans de Goede
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Roman Evstifeev @ 2010-06-02 16:57 UTC (permalink / raw)
  To: lm-sensors


[-- Attachment #1.1: Type: text/plain, Size: 2278 bytes --]

Hi. I have Mainboard* with F71889FG-based controller.
* - MSI P41T-C31 (
http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1792 )

After f71882fg module loaded - it creates bunch of the sysfs entries, and i
can succesfully read temperature and fan speed values from it. But i can't
control the pwm with it.
I tried pwmconfig utility as well as writing to sysfs files directly. sysfs
values get changed, but actual fan speed does not.


************* dmesg ************
[   14.238796] f71882fg: Found f71889fg chip at 0xa00, revision 21
[   14.238935] f71882fg f71882fg.2560: Fan: 1 is in duty-cycle mode
[   14.238936] f71882fg f71882fg.2560: Fan: 2 is in duty-cycle mode
[   14.238938] f71882fg f71882fg.2560: Fan: 3 is in duty-cycle mode


*********************** sensors *********************
linux-md9k:/sys/class/hwmon # sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +39.0°C  (high = +76.0°C, crit = +100.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +38.0°C  (high = +76.0°C, crit = +100.0°C)

f71889fg-isa-0a00
Adapter: ISA adapter
in0:         +1.69 V
in1:         +1.08 V  (max =  +2.04 V)
in2:         +1.10 V
in3:         +0.96 V
in4:         +0.02 V
in5:         +0.02 V
in6:         +0.01 V
in7:         +1.69 V
in8:         +1.62 V
fan1:          0 RPM  ALARM
fan2:          0 RPM  ALARM
fan3:       1538 RPM
temp1:       +18.0°C  (high = +255.0°C, hyst = +251.0°C)
                      (crit = +255.0°C, hyst = +251.0°C)  sensor = Intel
PECI
temp2:       +33.0°C  (high = +255.0°C, hyst = +251.0°C)
                      (crit = +109.0°C, hyst = +105.0°C)  sensor =
thermistor
temp3:       +33.0°C  (high = +255.0°C, hyst = +253.0°C)
                      (crit = +255.0°C, hyst = +253.0°C)  sensor =
transistor

**************** trying manual control ************
linux-md9k:/sys/class/hwmon # cat hwmon2/device/pwm3_enable
1
linux-md9k:/sys/class/hwmon # cat hwmon2/device/pwm3
255
linux-md9k:/sys/class/hwmon # echo 140 > hwmon2/device/pwm3
linux-md9k:/sys/class/hwmon # echo 0 > hwmon2/device/pwm3
linux-md9k:/sys/class/hwmon # cat hwmon2/device/pwm3
0
*********************************************************


Can somebody please help me debug this?

[-- Attachment #1.2: Type: text/html, Size: 2534 bytes --]

[-- Attachment #2: Type: text/plain, Size: 153 bytes --]

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] control f71889fg pwm on 2.6.34
  2010-06-02 16:57 [lm-sensors] control f71889fg pwm on 2.6.34 Roman Evstifeev
@ 2010-06-10  8:26 ` Hans de Goede
  2010-06-10  8:35 ` Jean Delvare
  2010-06-10 16:39 ` Roman Evstifeev
  2 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2010-06-10  8:26 UTC (permalink / raw)
  To: lm-sensors

Hi,

On 06/02/2010 06:57 PM, Roman Evstifeev wrote:
> Hi. I have Mainboard* with F71889FG-based controller.
> * - MSI P41T-C31 (
> http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no\x1792
> <http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no\x1792> )
>
> After f71882fg module loaded - it creates bunch of the sysfs entries,
> and i can succesfully read temperature and fan speed values from it. But
> i can't control the pwm with it.
> I tried pwmconfig utility as well as writing to sysfs files directly.
> sysfs values get changed, but actual fan speed does not.
>

Chances are the pwm outputs are not hooked up (yes manufacturers do that),
or that the fan you're trying to control is controlled by a different
pwm then pwm3 (yes vendors do that too).

Regards,

Hans

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] control f71889fg pwm on 2.6.34
  2010-06-02 16:57 [lm-sensors] control f71889fg pwm on 2.6.34 Roman Evstifeev
  2010-06-10  8:26 ` Hans de Goede
@ 2010-06-10  8:35 ` Jean Delvare
  2010-06-10 16:39 ` Roman Evstifeev
  2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2010-06-10  8:35 UTC (permalink / raw)
  To: lm-sensors

Hi Roman,

On Wed, 2 Jun 2010 20:57:15 +0400, Roman Evstifeev wrote:
> Hi. I have Mainboard* with F71889FG-based controller.
> * - MSI P41T-C31 (
> http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no\x1792 )
> 
> After f71882fg module loaded - it creates bunch of the sysfs entries, and i
> can succesfully read temperature and fan speed values from it. But i can't
> control the pwm with it.
> I tried pwmconfig utility as well as writing to sysfs files directly. sysfs
> values get changed, but actual fan speed does not.
> (...)

Does the vendor advertise any form of fan speed (or noise) control on
this board? In the manual or in the BIOS? The PWM outputs of your chip
may simply not be wired on your board. It's not listed in SpeedFan's
database as being fan-control-capable:
http://www.almico.com/forummotherboards.php?man&9

So unless you have a good reason to believe that fan control should
work on your board, I am inclined to believe this is a hardware
limitation and not a driver bug.

> **************** trying manual control ************
> linux-md9k:/sys/class/hwmon # cat hwmon2/device/pwm3_enable
> 1
> linux-md9k:/sys/class/hwmon # cat hwmon2/device/pwm3
> 255
> linux-md9k:/sys/class/hwmon # echo 140 > hwmon2/device/pwm3
> linux-md9k:/sys/class/hwmon # echo 0 > hwmon2/device/pwm3
> linux-md9k:/sys/class/hwmon # cat hwmon2/device/pwm3
> 0
> *********************************************************

Have you tried pwm1 and pwm2? On many boards, only one fan can be
controlled, so only one PWM output is working.

You should try our "pwmconfig" script to automatically test all PWM
outputs.

-- 
Jean Delvare
http://khali.linux-fr.org/wishlist.html

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] control f71889fg pwm on 2.6.34
  2010-06-02 16:57 [lm-sensors] control f71889fg pwm on 2.6.34 Roman Evstifeev
  2010-06-10  8:26 ` Hans de Goede
  2010-06-10  8:35 ` Jean Delvare
@ 2010-06-10 16:39 ` Roman Evstifeev
  2 siblings, 0 replies; 4+ messages in thread
From: Roman Evstifeev @ 2010-06-10 16:39 UTC (permalink / raw)
  To: lm-sensors

2010/6/10 Jean Delvare <khali@linux-fr.org>:
> Hi Roman,
>
> On Wed, 2 Jun 2010 20:57:15 +0400, Roman Evstifeev wrote:
>> Hi. I have Mainboard* with F71889FG-based controller.
>> * - MSI P41T-C31 (
>> http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no\x1792 )
>>
>> After f71882fg module loaded - it creates bunch of the sysfs entries, and i
>> can succesfully read temperature and fan speed values from it. But i can't
>> control the pwm with it.
>> I tried pwmconfig utility as well as writing to sysfs files directly. sysfs
>> values get changed, but actual fan speed does not.
>> (...)
>
> Does the vendor advertise any form of fan speed (or noise) control on
> this board? In the manual or in the BIOS? The PWM outputs of your chip
> may simply not be wired on your board.

In BIOS there is "CPU Smart Fan Target" option, which allows to choose
desired temperature of CPU, i believe. But it should work only if
4-pin cooler connected to the CPU_Fan on mainboard. MB seems to not
allow to change voltage of 3-pin Fan, connected to this 4-pin slot by
any means (nor via BIOS nor manually via sysfs)

> It's not listed in SpeedFan's
> database as being fan-control-capable:
> http://www.almico.com/forummotherboards.php?man&9

I think this list if far from completeness... my prevoius mainboard,
which is capable of fan control (MSI 965-Neo-F v2) is not listed there
too.

>
> So unless you have a good reason to believe that fan control should
> work on your board, I am inclined to believe this is a hardware
> limitation and not a driver bug.
>
>> **************** trying manual control ************
>> linux-md9k:/sys/class/hwmon # cat hwmon2/device/pwm3_enable
>> 1
>> linux-md9k:/sys/class/hwmon # cat hwmon2/device/pwm3
>> 255
>> linux-md9k:/sys/class/hwmon # echo 140 > hwmon2/device/pwm3
>> linux-md9k:/sys/class/hwmon # echo 0 > hwmon2/device/pwm3
>> linux-md9k:/sys/class/hwmon # cat hwmon2/device/pwm3
>> 0
>> *********************************************************
>
> Have you tried pwm1 and pwm2? On many boards, only one fan can be
> controlled, so only one PWM output is working.
>
> You should try our "pwmconfig" script to automatically test all PWM
> outputs.

Yes, i tried other pwms, when all the fans are connected. Manually and
with pwmconfig - no result.

It seems that the only way to control fan speed is via BIOS with 4-pin
CPU-cooler...
Anyways thanks for your help.

> --
> Jean Delvare
> http://khali.linux-fr.org/wishlist.html
>

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-10 16:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-02 16:57 [lm-sensors] control f71889fg pwm on 2.6.34 Roman Evstifeev
2010-06-10  8:26 ` Hans de Goede
2010-06-10  8:35 ` Jean Delvare
2010-06-10 16:39 ` Roman Evstifeev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.