From: "Mini Stac" Date: Sat, 12 Apr 2008 17:57:22 +0000 Subject: Re: [lm-sensors] D201GLY2 Ubuntu 7.10 fan control Message-Id: MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============7985249799149276810==" List-Id: References: In-Reply-To: To: lm-sensors@vger.kernel.org --===============7985249799149276810== Content-Type: multipart/alternative; boundary="----=_Part_23880_13477163.1208023042214" ------=_Part_23880_13477163.1208023042214 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline pwmconfig was being run with sudo. echo to pwm1_enable and pwm2_enable results in: bash: /sys/class/hwmon/hwmon0/device/pwm1_enable: Permission denied pwm1_enable is set at 2, pwm2_enable 1 I guess this means its a driver issue? Sensors detect identifies: Driver `w83627ehf' (should be inserted): Detects correctly: * ISA bus, address 0x290 Chip `Winbond W83627DHG Super IO Sensors' (confidence: 9) On Thu, Apr 10, 2008 at 7:46 PM, Jean Delvare wrote: > On Thu, 10 Apr 2008 05:00:22 +0800, Mini Stac wrote: > > Kernel version is 2.6.22-14 > > > > The 3.0.1 script gets further but comes up with the same result (full > output > > below): > > hwmon0/device/pwm1_enable stuck to 2 > > > > I know that the fan speed can be controlled manually under Windows. > > Thanks if there is anything else to try. > > > > > > Found the following devices: > > hwmon0/device is w83627dhg > > > > Found the following PWM controls: > > hwmon0/device/pwm1 > > hwmon0/device/pwm1 is currently setup for automatic speed control. > > In general, automatic mode is preferred over manual mode, as > > it is more efficient and it reacts faster. Are you sure that > > you want to setup this output for manual control? (n) y > > 0 > > 1 > > hwmon0/device/pwm1_enable stuck to 2 > > Manual control mode not supported, skipping hwmon0/device/pwm1. > > hwmon0/device/pwm2 > > hwmon0/device/pwm2 stuck to 0 > > Manual control mode not supported, skipping hwmon0/device/pwm2. > > hwmon0/device/pwm3 > > hwmon0/device/pwm3 stuck to 0 > > Manual control mode not supported, skipping hwmon0/device/pwm3. > > hwmon0/device/pwm4 > > hwmon0/device/pwm4 stuck to 0 > > Manual control mode not supported, skipping hwmon0/device/pwm4. > > There are no usable PWM outputs. > > Just to make sure: you're running pwmconfig as root, aren't you? Only > root can change the chip's settings. > > Can you try setting the PWM output to manual mode manually? > > echo 1 > /sys/class/hwmon/hwmon0/device/pwm1_enable > cat /sys/class/hwmon/hwmon0/device/pwm1_enable > echo 1 > /sys/class/hwmon/hwmon0/device/pwm2_enable > cat /sys/class/hwmon/hwmon0/device/pwm2_enable > > If it works then the problem is in the pwmconfig script (or bash). If > it doesn't then the problem would be in the w83627ehf driver. > > -- > Jean Delvare > ------=_Part_23880_13477163.1208023042214 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline pwmconfig was being run with sudo.
echo to pwm1_enable and pwm2_enable results in:
      bash: /sys/class/hwmon/hwmon0/device/pwm1_enable: Permission denied
pwm1_enable is set at 2, pwm2_enable 1

I guess this means its a driver issue? Sensors detect identifies:
    Driver `w83627ehf' (should be inserted):
      Detects correctly:
      * ISA bus, address 0x290
        Chip `Winbond W83627DHG Super IO Sensors' (confidence: 9)

On Thu, Apr 10, 2008 at 7:46 PM, Jean Delvare <khali@linux-fr.org> wrote:
On Thu, 10 Apr 2008 05:00:22 +0800, Mini Stac wrote:
> Kernel version is 2.6.22-14
>
> The 3.0.1 script gets further but comes up with the same result (full output
> below):
> hwmon0/device/pwm1_enable stuck to 2
>
> I know that the fan speed can be controlled manually under Windows.
> Thanks if there is anything else to try.
>
>
> Found the following devices:
>    hwmon0/device is w83627dhg
>
> Found the following PWM controls:
>    hwmon0/device/pwm1
> hwmon0/device/pwm1 is currently setup for automatic speed control.
> In general, automatic mode is preferred over manual mode, as
> it is more efficient and it reacts faster. Are you sure that
> you want to setup this output for manual control? (n) y
> 0
> 1
> hwmon0/device/pwm1_enable stuck to 2
> Manual control mode not supported, skipping hwmon0/device/pwm1.
>    hwmon0/device/pwm2
> hwmon0/device/pwm2 stuck to 0
> Manual control mode not supported, skipping hwmon0/device/pwm2.
>    hwmon0/device/pwm3
> hwmon0/device/pwm3 stuck to 0
> Manual control mode not supported, skipping hwmon0/device/pwm3.
>    hwmon0/device/pwm4
> hwmon0/device/pwm4 stuck to 0
> Manual control mode not supported, skipping hwmon0/device/pwm4.
> There are no usable PWM outputs.

Just to make sure: you're running pwmconfig as root, aren't you? Only
root can change the chip's settings.

Can you try setting the PWM output to manual mode manually?

echo 1 > /sys/class/hwmon/hwmon0/device/pwm1_enable
cat /sys/class/hwmon/hwmon0/device/pwm1_enable
echo 1 > /sys/class/hwmon/hwmon0/device/pwm2_enable
cat /sys/class/hwmon/hwmon0/device/pwm2_enable

If it works then the problem is in the pwmconfig script (or bash). If
it doesn't then the problem would be in the w83627ehf driver.

--
Jean Delvare

------=_Part_23880_13477163.1208023042214-- --===============7985249799149276810== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors --===============7985249799149276810==--